[TUHS] v7 source code for sh

Chet Ramey chet.ramey at case.edu
Mon Feb 21 08:39:46 AEST 2022

On 2/20/22 4:19 PM, Lyndon Nerenberg (VE7TFX/VE6BBM) wrote:
> Chet Ramey writes:
>> It always seemed like it would have been just the thing to implement as a
>> tty streams module, but research Unix went in a different direction.
> I'm really surprised nobody has implemented a basic readline as a
> tty line discipline by now.  I was poking around the OpenBSD NMEA
> line discipline code a few weeks ago and thinking it shouldn't be
> that hard to do.

It's not that hard. The complexity is in how sophisticated you want to get
with redisplay and whether you want to allow user-specified key bindings.

> Did anyone think about doing this in the past? If yes, what made you
> decide against doing it?  (Or a streams implementation, for that matter.)

There have been several implementations (I never did one). I suspect that
the people who were in a position to integrate that functionality into
distributed kernels were not supportive, or the code didn't get to them
at the right time.

``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet at case.edu    http://tiswww.cwru.edu/~chet/

More information about the TUHS mailing list