31. Get character

[<<<] [>>>]

Char = getch(Echo, Delay)

Waits for a keypress and returns its curses key code. If Echo is true, echo the character on the screen. If Delay is false, return -1 if there is no available keystroke (and do not wait for one). Both arguments are optional.


[<<<] [>>>]