On a side note; does anyone have suggestions for the inputChoice format? Is the current inputChoice(text, choices, keys, default) the preferred one, and is the 'N' or 'n' output the preferred one?
When I wrote it, my intention was to show what's the default by capitalizing that character. This is the way it's done in many command-line tools, for example apt-get.
However, this makes i18n hard: for example, in German, all nouns are capitalized, so the english 'show [l]ist' becomes '[L]iste anzeigen', making L look like the default hotkey.
Actually I meant the return value of inputChoice :). The way to show the keys is another, but maybe even more important, point.
As we now have proper colorization support on nearly all platforms (the only exception I know of is Python 2.4 or lower on Windows), we could instead use colors to indicate the default choice, e.g.:
(...)
Continue? ([y]es, [n]o) Where the n is printed in blue.
Colors have one big disadvantage: they either are bad on a white background or bad on a black background; but the two other solutions I could think don't really look good: * 'Continue? ([y]es, [n]o) (no)' * 'Continue? ([y]es, [N]O)' (fully capitalized word)
Too bad apt-get does not translate choices. Maybe someone has a German console programming book that covers multiple choice prompts? :D
--valhallasw