Anonymous user
Keyboard input/Obtain a Y or N response: Difference between revisions
Keyboard input/Obtain a Y or N response (view source)
Revision as of 16:21, 6 July 2017
, 6 years agodecode input to latin1
(read(1) is needed to capture a single keystroke. getc() waits for more input because of unicode.) |
(decode input to latin1) |
||
Line 959:
print $prompt;
$TTY.read(1).decode('latin1');
}
|