[Coco] raw mode?
Bob Devries
devries.bob at gmail.com
Thu Aug 20 21:28:46 EDT 2009
Yes, Willard, you're right.
Using raw (aka unbuffered) is more difficult when using stdin, however, at
least in C, it is possible to dup() the paths for stdin, stdout and stderr,
and then close the original, and use the duplicate instead, after setting
the _RBF flag.
----- Original Message -----
From: "Willard Goosey" <goosey at virgo.sdc.org>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Friday, August 21, 2009 10:52 AM
Subject: Re: [Coco] raw mode?
> On Thu, Aug 20, 2009 at 02:32:43PM +1000, Bob Devries wrote:
>
>> setting the flag _RBF does work, provided you do it before you open the
>> path to get input. I have used it on various occasions.
>
> Um, that seems ambigious. Do you mean set the flat before doing any
> input from it, or before opening the file (the second is a problem for
> stdin!)
>
> Thanks
> Willard
> --
> Willard Goosey goosey at sdc.org
> Socorro, New Mexico, USA
> I search my heart and find Cimmeria, land of Darkness and the Night.
> -- R.E. Howard
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list