Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16296

Re: CTRL-C on command line does not cancel current command

From worley@alum.mit.edu (Dale R. Worley)
Newsgroups gnu.bash.bug
Subject Re: CTRL-C on command line does not cancel current command
Date 2020-05-10 21:50 -0400
Message-ID <mailman.2598.1589162343.3066.bug-bash@gnu.org> (permalink)
References <406707EB-FFAC-48BD-BA8F-37CFE09CFFB9@kelaita.com> <87h7wn44uh.fsf@hobgoblin.ariadne.com>

Show all headers | View raw


Paul Kelaita <paul@kelaita.com> writes:
> Sorry, I'm wondering if I should have taken this to the iSH forums,
> but it just seems like a bash issue.

You should ask around, because how Ctrl-C cancels input involves the
interaction of the OS, the bash code proper, and (I assume) the stdin
library.  E.g. if the OS doesn't actually deliver the characters to bash
until you type RET, then the OS has to take care of clearing the
partially-input line.  And all of these actions can be modulated by your
stty settings and any special input mode(s) that bash activates.

Dale

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: CTRL-C on command line does not cancel current command worley@alum.mit.edu (Dale R. Worley) - 2020-05-10 21:50 -0400

csiph-web