Menu: Difference between revisions

36 bytes removed ,  15 years ago
→‎{{header|Tcl}}: increase Tcl-ishness
(→‎Tcl: Added implementation)
(→‎{{header|Tcl}}: increase Tcl-ishness)
Line 102:
set numWidth [string length $nc]
while true {
for {set i 0} {$i<$nc} {} {
set foreach s [lindex $choices $i]{
puts [format " %-*d: %s" $numWidth [incr i] $s]
puts [format " %-*d: %s" $numWidth $i $s]
}
puts -nonewline "$prompt: "
Anonymous user