🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10033

Re: shelltool child of another shelltool

#10033
From: Guy Harris
Date: Tue, 03 Jan 1989 21:23
30 lines
2021 bytes
>Here is a bug, unless someone can convince me it is a feature.

It's a hard-to-fix bug, I think.  I'll bet "ecsh" sets the tty modes to
the form you specify when it's running (so it can see each character as
you type it, and do the neat things you mention), and sets them back to
normal when running a program in the foreground (so that program doesn't
get confused).

Unfortunately, it probably doesn't do that when it runs a program in the
background, since it still owns the terminal.  "shelltool" wants to set
the tty modes for the new pseudo-tty to match your "standard" ones; it
does so by reading the modes on the terminal from which it was run.
Unfortunately, if you do it in the background, it picks up the "funny"
"ecsh" modes....

The Korn shell in EMACS mode does much the same thing, and causes much the
same problem. 

Workaround: try running it in the foreground and, once it's started up,
type ^Z and background it.  That way the modes will be "normal" when it
starts up.

>Incidentally, the olny reason I am running a shelltool from within another
>shelltool rather than from the menu is that I need it -Wn and that is not
>an escape sequence which I can echo from within the shell.

In that case, just add a new menu item to your root menu that runs
"shelltool" with the "-Wn" flag (if you don't have a root menu file of
your own, but use the system default one, copy that one and make it yours,
and then edit it).  Worked for me, at least under 4.0. 
Technical Details
Message-ID: <786@auspex.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request
References: <8812160250.AA05738@pawlsub.rpi.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: auspex!guy@uunet.uu.net (Guy Harris)
Newsgroups: comp.sys.sun
Subject: Re: shelltool child of another shelltool
Message-ID: <786@auspex.UUCP>
Date: 3 Jan 89 21:23:27 GMT
References: <8812160250.AA05738@pawlsub.rpi.edu>
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 30
Approved: Sun-Spots@rice.edu
Original-Date: 22 Dec 88 10:44:37 GMT
X-Sun-Spots-Digest: Volume 7, Issue 85, message 13 of 14