* Linux/AXP 2.0.30 bug: TCSETAW
@ 1998-08-11 4:00 raphaelfinkel
0 siblings, 0 replies; only message in thread
From: raphaelfinkel @ 1998-08-11 4:00 UTC (permalink / raw)
I have had to modify ispell and metamail for Linux/AXP 2.0.30 because when
they wait for a single character to be typed, they are not awakened until 4
characters have been typed. The problem does not occur on Linux/i386. My
fixes have been in this form:
original:
static struct termio sbuf;
sbuf.c_lflag &= ~(ECHO | ECHOK | ECHONL | ICANON);
(void) ioctl (0, TCSETAW, (char *) &sbuf);
modified:
static struct termios sbuf;
(void) tcsetattr(0, TCSADRAIN, &sbuf);
both have lines like this:
sbuf.c_cc[VMIN] = 1;
sbuf.c_cc[VTIME] = 0;
sbuf.c_lflag &= ~(ECHO | ECHOK | ECHONL | ICANON);
The fact that the fix is necessary implies that the kernel is not handling
TCSETAW correctly.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-08-11 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-11 4:00 Linux/AXP 2.0.30 bug: TCSETAW raphaelfinkel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox