stuff chars

Jim Hutchison hutch at sdcsvax.UCSD.EDU
Wed Dec 3 17:30:34 AEST 1986


<>
You can use TIOCSTI (simulate terminal input), and send what you wish.

I suggest sending "\n:stop\n" to stop vi, this should circumvent that
flushing problem you get with just sending ^Z to vi and letting it deal
with the intterupt.  This also gets around the problem of having the
stop character set to something other than ^Z (heaven forbid! :-)

map Q :!yourcommand &^M

You need the \n starter to get out of the "return to continue" message, and
the :stop to get vi stopped.  This seems a rather convoluted way to go.

What made a subshell so unsuitable to your needs?

-- 
=
    Jim Hutchison   UUCP:	{dcdwest,ucbvax}!sdcsvax!hutch
		    ARPA:	Hutch at sdcsvax.ucsd.edu
    "Yes, yes, ofcourse I disclaim everything.  No,no that is not my tape..."



More information about the Comp.unix.wizards mailing list