Control-Z hanging vi - Why

Barry Shein root at bu-cs.UUCP
Sun Sep 22 09:57:38 AEST 1985


>From: goldman at ittvax.ATC.ITT.UUCP (Ken Goldman)
>Due to a keyboard which reverses the CTRL and SHIFT keys, users (including
>myself) occasionally type ^Z^Z instead of ZZ to write and exit from vi.
>This hangs the terminal - all characters are echoed but none have any
>effect, not even ESC or ^C or ^D.  The only solution is to kill the
>process from another terminal, losing the editing session.
>
>Anyone have a better way out?

Yes, send a HANGUP (kill -1 pid) to the top level shell on the terminal
and you'll probably be able to log back in and recover with a 'vi -r'.
(I know, you wanted a fix to VI, sorry, but this should help till it comes.)

	-Barry Shein, Boston University



More information about the Comp.unix mailing list