osdStdinSetEchoMode
osdStdinSetEchoMode
osd
1998 12-05
NAME
osdStdinSetEchoMode - set input echo mode
ARGUMENTS
SYNOPSIS
osdStdinSetEchoMode() sets the echo mode of the standard input
device. With echoing enabled (i.e., m is non-zero), all characters
entered on the standard input device are echoed to the console, if one
is present. With echoing disabled (i.e., m is zero), no characters
entered on the standard input device are echoed to the console.
EXAMPLE
char *GetPassword(char *prompt)
{
char *s;
long n;
if (prompt) fprintf(stdout, "%s: ", prompt);
osdStdinSetEchoMode(FALSE);
for (n = 0; 0 == n;) s = osdGetStdin(&n);
osdStdinSetEchoMode(TRUE);
return s;
}