Date: 02 May 1998 18:10:15 +0200 From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) To: samuel <SAMIGWE@worldnet.att.net> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: what constitutes "UNCOOKED" mode Message-ID: <xzpu378y7q0.fsf@skejdbrimir.ifi.uio.no> In-Reply-To: samuel's message of "Fri, 01 May 1998 18:43:39 %2B0000" References: <354A17DB.504B70D5@worldnet.att.net>
next in thread | previous in thread | raw e-mail | index | archive | help
samuel <SAMIGWE@worldnet.att.net> writes: > I have a simple question. In manipulating the termios structure I > normally set various fields to 0 thereby allowing my program to handle > input and output processing of read chars. Did you watch the load on your machine while your program ran? If you set all fields to 0, you put the terminal in raw, non-blocking mode, which means you are busy-looping reading EOF. Very suboptimal. Use cfmakeraw() instead (unfortunately, many widespread commercial Unices lack it so it's not very portable) -- Noone else has a .sig like this one. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpu378y7q0.fsf>