From: goodTweetieBird on
How would one turn off the buffering so that getchar would return a
character immediately without waiting for a carriage return?

thanks
From: goodTweetieBird on
On Apr 1, 11:02 pm, goodTweetieBird <goodTweetieB...(a)hotmail.com>
wrote:
> How would one turn off the buffering so that getchar would return a
> character immediately without waiting for a carriage return?
>
> thanks

Found it, getch it in Schildt '87. Looked at several online refs but
none mentioned immediate return.
From: Barry Schwarz on
On Tue, 1 Apr 2008 20:10:07 -0700 (PDT), goodTweetieBird
<goodTweetieBird(a)hotmail.com> wrote:

>On Apr 1, 11:02 pm, goodTweetieBird <goodTweetieB...(a)hotmail.com>
>wrote:
>> How would one turn off the buffering so that getchar would return a
>> character immediately without waiting for a carriage return?
>>
>> thanks
>
>Found it, getch it in Schildt '87. Looked at several online refs but
>none mentioned immediate return.

As long as you realize it is not standard.


Remove del for email
From: Arnie on
"Barry Schwarz" <schwarzb(a)dqel.com> wrote in message
news:ld66v3te91eudhbs3ks4sc71hs7aqj9rpe(a)4ax.com...
> On Tue, 1 Apr 2008 20:10:07 -0700 (PDT), goodTweetieBird
> <goodTweetieBird(a)hotmail.com> wrote:
>
>>On Apr 1, 11:02 pm, goodTweetieBird <goodTweetieB...(a)hotmail.com>
>>wrote:
>>> How would one turn off the buffering so that getchar would return a
>>> character immediately without waiting for a carriage return?
>>>
>>> thanks
>>
>>Found it, getch it in Schildt '87. Looked at several online refs but
>>none mentioned immediate return.
>
> As long as you realize it is not standard.

And as long as you realize that 'extended' keys (Function keys, et al)
return two characters for every key press.

- Arnie


From: Ben Voigt [C++ MVP] on
Barry Schwarz wrote:
> On Tue, 1 Apr 2008 20:10:07 -0700 (PDT), goodTweetieBird
> <goodTweetieBird(a)hotmail.com> wrote:
>
>> On Apr 1, 11:02 pm, goodTweetieBird <goodTweetieB...(a)hotmail.com>
>> wrote:
>>> How would one turn off the buffering so that getchar would return a
>>> character immediately without waiting for a carriage return?
>>>
>>> thanks
>>
>> Found it, getch it in Schildt '87. Looked at several online refs but
>> none mentioned immediate return.
>
> As long as you realize it is not standard.

It is part of both the POSIX and SUS standards.

>
>
> Remove del for email


 | 
Pages: 1
Prev: CRT (C Runtime Library)
Next: OLESTR