🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #13888

Re: losing input when switching from CBREAK to COOKED in SunOS-4

#13888
From: dupuy
Date: Tue, 20 Feb 1990 17:51
16 lines
1324 bytes
 > > I have a problem with typeahead in my interactions with tcsh on SunOS-4.
 > > The input buffer seems to be flushed when the shell switches from CBREAK
 > > to COOKED.

 > I noticed that SunOS 4.0 csh does not have this problem.  Does anyone have
 > source for this that can find out what it is doing to combat the flushed
 > typeahead?

The file completion in the "regular" csh provided in 4.3 BSD and SunOS 4.0
doesn't use CBREAK mode - it is always running in COOKED.  It sets ESC to
be the second end-of-line character so that whenever the user types ESC,
the shell gets the current line.  It then retypes over the existing line,
adding any file completion.  However, this method doesn't allow more than
one special character, and thus can't be used for custom line editing like
tcsh, ksh, and bash provide.
Technical Details
Message-ID: <5158@brazos.Rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request
From: dupuy@cs.columbia.edu
Newsgroups: comp.sys.sun
Subject: Re: losing input when switching from CBREAK to COOKED in SunOS-4
Keywords: Miscellaneous
Message-ID: <5158@brazos.Rice.edu>
Date: 20 Feb 90 17:51:12 GMT
Sender: root@rice.edu
Organization: Sun-Spots
Lines: 16
Approved: Sun-Spots@rice.edu
X-Refs:  Original: v9n41, Replies: v9n41 v9n43
X-Sun-Spots-Digest: Volume 9, Issue 52, message 2