Subject: lib/4211: libedit disables VSTATUS and VEOL and fails to reenable them
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 10/03/1997 05:54:02
>Number: 4211
>Category: lib
>Synopsis: libedit disables VSTATUS and VEOL and fails to reenable them
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 3 04:05:02 1997
>Last-Modified:
>Originator: Dave Huang
>Organization:
Name: Dave Huang | Mammal, mammal / their names are called /
INet: khym@bga.com | they raise a paw / the bat, the cat /
FurryMUCK: Dahan | dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release: NetBSD-current as of October 1, 1997
>Environment:
System: NetBSD dahan.metonymy.com 1.2G NetBSD 1.2G (SPIFF) #135: Tue Sep 30 23:32:15 CDT 1997 khym@dahan.metonymy.com:/usr/src.local/sys/arch/i386/compile/SPIFF i386
>Description:
Libedit seems to disable the "stty status" and "stty eol" characters,
and doesn't re-enable them after it's done. This annoys me, since ftp
keeps clearing my status character.
Apparently, this is due to the following in /usr/include/sys/ttydefaults.h:
#define CEOL ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */
#define CSTATUS ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */
>How-To-Repeat:
$ stty status ^t eol ^a
$ stty
speed 9600 baud;
lflags: echoe echoke echoctl
cflags: cs8 -parenb
eol erase status
^A ^H ^T
$ ftp
ftp> quit
$ stty
speed 9600 baud;
lflags: echoe echoke echoctl
cflags: cs8 -parenb
erase
^H
$ stty status ^t eol ^a
$ set -o emacs
$ stty
speed 9600 baud;
lflags: echoe echoke echoctl pendin
cflags: cs8 -parenb
erase
^H
>Fix:
I dunno...
>Audit-Trail:
>Unformatted: