home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- From: twod@socrates.demon.co.uk (Ian A Parkin)
- Path: sparky!uunet!pipex!demon!socrates.demon.co.uk!twod
- Subject: [Bug ??] CTL-c in vi
- Distribution: world
- Organization: Realizing Relentlessly
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
- Lines: 67
- Date: Sun, 24 Jan 1993 23:30:27 +0000
- Message-ID: <727918227snz@socrates.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- Not sure that this should be posted here but ...
-
- Whilst in vi I typed CTL-C ( emacs has a few things to answer for ) and
- something odd happened :
-
- I got the "Press return to continue" message at the bottom of the screen.
- It looked as if I had returned to the shell, I was given my usual prompt
- but when I tried to do things it went weird. The screen was limited to
- about ten lines ( except when output of commands such as 'ls' exceeded this )
- before the cursor 'wrapped around to line 1. The vi 'Input box' was displayed
- in the bottom left of the screen - I use showmode. To all intents & purposes
- I was in a 'vi shell' of some sort. Upon trying to log out all the usual
- logoff actions were started - syncing to disk, etc. However I was still in
- the vi shell. It was not until I managed to type :q! that things returned to
- normal. Typing 'exit' had no effect whatsoever. Typing 'stty sane' had no
- effect. Killing the parent process ( pid 47 ) did not free the terminal just
- got the login screen plus the input box !
-
- Is this a Berty-bug or life imitating art ?
-
- Does this happen on later releases of Linux / Elvis / Bash ?
-
- Anyone know a fix ?
-
- Config details :-
-
- uname -a :- Linux Twoddy 0.98.pl5-41 12/01/92 i386
- ( The SLS version )
-
- vi :- ELVIS 1.6 (27 April 1992)
-
- bash :- GNU bash, version 1.12.4
-
- stty -a :-
- speed 9600 baud; rows 25; columns 80; line = 0;
- intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
- eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
- lnext = ^V; min = 1; time = 0;
- -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
- -ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
- -iuclc ixany -imaxbel
- opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
- isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
- -echoctl -echoke
-
- ps -u $LOGNAME (from another login ) :-
-
- USER PID %CPU %MEM SIZE RSS TT STAT START TIME COMMAND
- ianp 132 0.0 4.8 297 408 a1 S 22:47 0:00 -bash (bash)
- ianp 47 0.0 4.8 299 412 a4 S 22:41 0:01 -bash (bash)
- ianp 326 60.0 2.3 64 196 a1 R 23:13 0:00 ps -u
- ianp 298 1.2 3.0 153 256 a4 S 23:10 0:02 /usr/bin/vi
- ianp 273 1.1 3.0 153 256 a4 S 23:10 0:02 /usr/bin/vi
-
- ps -a ( after kill pid 47 - virtual tty shows login prompt & input box ) :-
-
- PID TT STAT TIME COMMAND
- 132 a1 S 0:01 -bash (bash)
- 45 a2 S 0:00 /etc/getty 9600 tty2
- 46 a3 S 0:00 /etc/getty 9600 tty3
- 381 a4 S 0:00 /etc/getty 9600 tty4
- 386 a1 R 0:00 ps -a
-
- --
- -------------------------------------------------------------------------------
- It's not real you know
- -------------------------------------------------------------------------------
-