This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ctrl-c not working during bash command line editing
- From: Kitchens <fallofmath at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 1 Mar 2012 19:22:30 -0800
- Subject: Re: ctrl-c not working during bash command line editing
- Authentication-results: mr.google.com; spf=pass (google.com: domain of fallofmath@gmail.com designates 10.60.3.72 as permitted sender) smtp.mail=fallofmath@gmail.com; dkim=pass header.i=fallofmath@gmail.com
- References: <CAD0E44w5y63JWhtJS62Gk1d9pCyksF+DiY3oxRHkH=MPr5VoBQ@mail.gmail.com>
I've noticed this as well, and it seems to be a difference between
/dev/consX and /dev/ptyX ttys. Mintty seems to work fine, whereas
cmd.exe or Console2 (basically a cmd wrapper) cannot CTRL+C on the
command line to abort it. Ctrl+C does, however, issue a SIGINT for a
running process.
This issue has come up a lot in the mailing list archives, but at the
time all solutions pointed to using the "CYGWIN=tty" environment
variable -- which has been removed in the latest updates.
--
-Kitchens
.
On Thu, Mar 1, 2012 at 5:31 PM, Scott McCaskill
<scott.mccaskill@gmail.com> wrote:
> I use vi mode (set -o vi) in bash. ?A couple of days ago I updated my
> cygwin installation and now I'm no longer able to use ctrl-c to abort
> command line editing. ?Specifically, while typing a command or editing
> a previous command from the history, it used to be possible to discard
> the command text and return to a fresh prompt by pressing ctrl-c. ?I
> thought it might be something peculiar to my bash configuration, but I
> get the same behavior when running bash with --norc. ?I'm fairly
> certain that the last time I updated my cygwin installation prior to
> this was no earlier than December 2011.
>
> Any help is appreciated; let me know if you need more information
> (output of cygcheck -s -v -r attached).
>
> Scott McCaskill
>
> --
> Problem reports: ? ? ? http://cygwin.com/problems.html
> FAQ: ? ? ? ? ? ? ? ? ? http://cygwin.com/faq/
> Documentation: ? ? ? ? http://cygwin.com/docs.html
> Unsubscribe info: ? ? ?http://cygwin.com/ml/#unsubscribe-simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple