Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!ames!ucbcad!ucbvax!sdcsvax!hutch From: hutch@sdcsvax.UCSD.EDU (Jim Hutchison) Newsgroups: comp.unix.wizards Subject: Re: stuff chars Message-ID: <2270@sdcsvax.UCSD.EDU> Date: Wed, 3-Dec-86 02:30:34 EST Article-I.D.: sdcsvax.2270 Posted: Wed Dec 3 02:30:34 1986 Date-Received: Wed, 3-Dec-86 06:23:29 EST References: <19@houligan.UUCP> Reply-To: hutch@sdcsvax.UUCP (Jim Hutchison) Organization: UCSD EMU Project (Educational Microcomputer Unix) Lines: 20 <> 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@sdcsvax.ucsd.edu "Yes, yes, ofcourse I disclaim everything. No,no that is not my tape..."