[TUHS] v7 source code for sh
Larry McVoy
lm at mcvoy.com
Mon Feb 21 07:02:16 AEST 2022
On Sun, Feb 20, 2022 at 03:54:12PM -0500, Chet Ramey wrote:
> >All that might have been implemented more elegant directly in the terminal
> >I/O instead of in every program? (that is, not in a MS-DOS-like way, where
> >every program even needs its own pager).
>
> Elegant, maybe, but it never seemed to take off.
>
> 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.
Not really. You want history files, I have one for each tty. Telling
the tty driver to write to this inode seems sort of weird. I guess you
could make it work, but to me, this screams libc or libhistory or
something like that. I agree it shouldn't be in each app that wants
it but isn't that what libraries are for?
More information about the TUHS
mailing list