From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,556a373ebb07abd1,start X-Google-Attributes: gid111c93,public From: raphaelfinkel@my-dejanews.com Subject: Linux/AXP 2.0.30 bug: TCSETAW Date: 1998/08/11 Message-ID: <6qqahl$7ph$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 380152134 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Aug 11 20:45:40 1998 GMT Newsgroups: comp.os.linux.alpha X-Http-User-Agent: Mozilla/4.03 [en] (X11; U; SunOS 5.5.1 sun4u) 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