contents   index   previous   next



Clib.getche()

syntax:

Clib.getche()

return:

number - character value of the key pressed.

 

description:

This method waits until a key is pressed and returns the character value of that key. The character will be printed (echoed) to the screen. Some key presses, such as extended keys and function keys, may generate multiple Clib.getche() return values. If a key was pressed before calling the function but never cleared from the keyboard buffer, that value will be returned instead of the next pressed key. This is not a common occurrence but can happen. To see whether there are any key values pending in the keyboard buffer, use Clib.kbhit().

 

see:

Clib.getch()

 

 


Clib.gets()