Keyboard input/Obtain a Y or N response: Difference between revisions

Content added Content deleted
(→‎{{header|TXR}}: Add tcsaflush call to meet requirement; discuss go-raw and show how it's implemented.)
(read(1) is needed to capture a single keystroke. getc() waits for more input because of unicode.)
Line 959: Line 959:


print $prompt;
print $prompt;
$TTY.getc;
$TTY.read(1);
}
}