Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: raphaelfinkel@my-dejanews.com
Subject: Linux/AXP 2.0.30 bug: TCSETAW
Date: 1998/08/11	[thread overview]
Message-ID: <6qqahl$7ph$1@nnrp1.dejanews.com> (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



                 reply	other threads:[~1998-08-11  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox