From: pete@q106fm.uucp (pete cervasio) Subject: Re: weird vi/less screen insect Date: Wed, 14 Apr 1993 17:04:57 CDT
oreillym@tartarus.uwa.edu.au (Michael O'Reilly) writes:
> David Lesher (wb8foz@skybridge.SCL.CWRU.Edu) wrote:
>
> : In any case, it looks as if I end up back in less, as I should. But I
> : hit a command, and it ACTS as if I'm still in vi! Parts of the screen
[stuff deleted]
> This is not specific to less/vi. Try useing elm, and starting emacs,
> and then typeing control-G. emacs doesn't exit by elm wakes up! chaos!
Aha! So that's what happened to me this morning. I recently changed my
.emacs file so F12 is save-buffers-kill-emacs where it used to do that
with F10... duh... F10 is now find-file. Anyway, I forgot that (even
though I made this nice reference card for my keyboard) and when I tried
to cancel (hit C-g C-x C-c) I got chaos just as you said. I don't
remember exactly what I did to get out of them both, but I did manage
it.
I thought that maybe I had miskeyed a C-z when I was reaching for the
C-x, but apparently not.
> As far as I am aware, this is actually a problem with bash. Bash is a
> little silly about intercepting signals in the background, and so it
> exits, so less/elm think that vi/emacs has exited, and so it starts
> reading the keyboard. Not wonderful.
>
> As yet, I haven't managed to find a patch for bash that will fix the
> problem. anyone???
Hear, hear! I'd hate to have to write an elm.el just to avoid this
in the future... :-)
BTW: If anyone wants to know what their various function and cursor
keys send (easily), just start emacs and type C-q and then the key... it
works great and is less filling.
Pete C.
+----------------------------------------------------------------------+
| Pete Cervasio | pete%q106fm.uucp@wupost.wustl.edu |
| I fish, therefore I am. | pete.cervasio@f1.n2250.z1.fidonet.org |
+----------------------------------------------------------------------+
| If you think of C as a preprocessor for your assembler, it makes |
| just as little sense as before. (me) |
+----------------------------------------------------------------------+