- Subject: Re: newbie:Slang_getkey()
- From: "John E. Davis" <davis>
- Date: Sun, 27 Feb 2000 02:31:51 -0500
Joachim <nuklear@xxxxxxxxxxxxxx> wrote:
>Kann anybody give me a hint how the characters from stdin can be echoed
>to the stdout with the:
>
> SLang_getkey()
>
>function in real-time?
SLang_init_tty puts the terminal in non-echoing mode. You can either
do:
int my_getkey ()
{
int ch = SLang_getkey ();
fputc (ch, stdout);
fflush (stdout);
return ch;
}
or try calling
system ("stty echo");
_after_ calling SLang_init_tty.
--John
[2000 date index]
[2000 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]