bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: In a script, when you kill a process, you get a terminal style messa


From: Chet Ramey
Subject: Re: In a script, when you kill a process, you get a terminal style message...
Date: Mon, 22 Jan 2018 11:47:36 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 1/21/18 12:23 PM, gazelle@xmission.com wrote:

> 3) Using Escape v to edit a command line in vi mode works, but leaves the
> keyboard in a funny state.  Specifically, it leaves you at the next bash 
> prompt, but
> in "vi mode" - i.e, hitting k displays the previous line in the history 
> rather than
> entering a 'k'.  The user effect is that the keyboard appears to be "stuck" 
> until you
> hit ^C to reset things.

It just doesn't change the editing mode. If you were in command mode and
used `v' to edit and execute the command, you're still in command mode when
the edited file completes. You don't have to ^C; you can just use `i' to
enter insert mode like usual.

The Posix description of this editing command doesn't explicitly state that
the command leaves you in insert mode, but I agree that it probably makes
more sense to force readline into insert mode at this point. I'll look at
that.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]