projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
645f1a5
)
Fix listCommands.
author
Eric S. Raymond
<esr@thyrsus.com>
Tue, 10 Oct 2006 08:20:59 +0000
(08:20 +0000)
committer
Eric S. Raymond
<esr@thyrsus.com>
Tue, 10 Oct 2006 08:20:59 +0000
(08:20 +0000)
src/sst.py
patch
|
blob
|
history
diff --git
a/src/sst.py
b/src/sst.py
index 635816e42e1cc910418ef1b450d86eaf104ac906..79c8e62d7f1f95381dd788e4412ad3810e4b6d0f 100644
(file)
--- a/
src/sst.py
+++ b/
src/sst.py
@@
-6064,12
+6064,14
@@
commands = {
def listCommands():
"Generate a list of legal commands."
- proutn(_("LEGAL COMMANDS ARE:"))
- for (k, key) in enumerate(commands):
+ prout(_("LEGAL COMMANDS ARE:"))
+ emitted = 0
+ for key in commands:
if not commands[key] or (commands[key] & game.options):
- if k % 5 == 0:
+ proutn("%-12s " % key)
+ emitted += 1
+ if emitted % 5 == 4:
skip(1)
- proutn("%-12s " % key)
skip(1)
def helpme():