[net.unix] Shell layers: an idea

allbery@ncoast.UUCP (Brandon Allbery) (06/24/86)

Expires:

Quoted from <574@codas.ATT.UUCP> ["Re: multiplexing terminals..."], by mikel@codas.ATT.UUCP (Mikel Manitius)...
+---------------
| > "Shell layers" refers to "shl", which is NOT the same as DMD "layers".
| > Some people find "shl" useful; it doesn't require any special terminal.
| > Its main problem is that it merely multiplexes the terminal for several
| > concurrent processes, which have no way to tell what may be visible on
| > the current display.  A full window manager solves this problem.
| 
| You can very easily tell what is on your screen, if you do "stty loblk".
| This blocks processes which try to output to the terminal, if they are
| not in the current layer. When the layer becomes current, then they job
| is unblocked, and you may get flooded with output.
+---------------

Certainly.  Unless you do the following (which is also a problem with job
control, I've discovered:

% sh
[Or, for shl:
>>> sh
]
$ <CTRL-Z>
Stopped
% %
[Or, for shl:
>>> sh
]
[and where are you?]

I've also thought of a solution:  write a terminal program for a computer
(even a cheap CP/M system can handle it) to interface to job control/shl.
^Z causes the program to save the current screen and restore the previous one
(the csh or shl).  A command is then given to the terminal program to switch
jobs.  (This seems easier for a shl-based system to me; ``shl'' is then
interacted with locally, and the terminal program sends the command to the
real shl and switches screens again.)  Of course, you have to deal with emacs
and other programs which disable ^Z for their own purposes...

Any takers?  (My hands are full:  after releasing the bugfixed UA 0.4.4 to the
net, I'm getting cracking on 1.0.0.  Besides, we have neither shl nor job
control:  we run System III.)

--Brandon
-- 
ihnp4!sun!cwruecmp!ncoast!allbery ncoast!allbery@Case.CSNET ncoast!tdi2!brandon
(ncoast!tdi2!root for business) 6615 Center St. #A1-105, Mentor, OH 44060-4101
Phone: +01 216 974 9210      CIS 74106,1032      MCI MAIL BALLBERY (part-time)