contents   index   previous   next



Clib.getch()

syntax:

Clib.getch()

return:

number - character value of the key pressed.

 

description:

This method works exactly like getche(), but does not echo the returned key to the screen. For example, the following code has you enter a password; each time you enter a letter an asterisk is written to the screen:

 

see:

Clib.getchar()

 

example:

var password;

for (var gg = 0; ;gg++)

{

var letter = Clib.getch();

if (letter == '\n') continue;

Clib.putc('*').

password[gg] = letter;

}

 


Clib.getchar()