Subject: Weird tty problems on an SS2
To: None <port-sparc@NetBSD.ORG>
From: the Riz <riz@boogers.sf.ca.us>
List: port-sparc
Date: 09/09/1996 10:41:54
I remember the "stair-stepping xterm" and such problems which were
patched soon after the 1.1 release, but this machine is running
1.2_ALPHA (June 21st), and is exhibiting something similar, and I was
hoping someone could tell me what I've got set wrong.

The symptoms:  none of the special chars work as expected; they all seem to
require a newline to take effect, which of course renders them useless.
example:  "set filec" under csh allows escape to perform filename
completion.  However, what happens is the '^[' shows up at the end of
the current line, and when I hit return, the rest of the completed filename
is printed.  (The command is *not* executed, tho.)

Here's what 'stty -a' on the affected machine looks like:
% stty -a
speed 9600 baud; 0 rows; 0 columns;
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
        extproc
iflags: istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
        brkint -inpck -ignpar -parmrk
oflags: opost onlcr oxtabs
cflags: cread cs7 parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
        min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>;
        stop = ^S; susp = ^Z; time = 0; werase = ^W;

... and here's what 'stty -a' on an unaffected SS2 (running 1.2_BETA,
but it wasn't affected when it was running the same code as the affected
machine) 

boogers:riz  ~> stty -a
speed 9600 baud; 24 rows; 80 columns;
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
        -extproc
iflags: istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
        brkint -inpck -ignpar -parmrk
oflags: opost onlcr oxtabs
cflags: cread cs7 parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
        min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>;
        stop = ^S; susp = ^Z; time = 0; werase = ^W;

Now, I tried doing 'stty -extproc' (I think tcsh does this on the
unaffected machine), and it gets a little better (^R works), but the
filename-completion problem still remains.

Any ideas?

Thanks!
+j


-- 
Jeff Rizzo                                         http://boogers.sf.ca.us/~riz