[Coco] Os9 Intercept
Retro Canada
retrocanada76 at gmail.com
Tue Oct 30 15:04:38 EDT 2012
Oh yes, you're right. Even windows console does the same. I forgot I
used _getch instead which does not need an ENTER. And the _getch can
be easily done in os9:
char _getch()
{
char c;
c = 0;
read(fileno(stdin), &c, 1);
return (c);
}
On Tue, Oct 30, 2012 at 12:56 PM, Theodore (Alex) Evans
<alxevans at concentric.net> wrote:
> On 12-10-30 11:35 AM, Retro Canada wrote:
>>
>> well I fount out that getchar demands an ENTER, like gets(stdin). This
>> C compiler is very buggy.
>
>
> While the C compiler has some bugs, this isn't one of them. It is an
> effect of buffered I/O. It will apear to work this way on most
> operating systems I have dealt with.
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
--
Panasonic FSA1-WSX
Commodore 64
Commodore 64C
Commodore 128
Apple //c
TRS-Color Computer 3
TI-99/4A
..and more coming!
More information about the Coco
mailing list