During line editing, let Ctrl-C discard the current input line and
authorschwarze <schwarze@openbsd.org>
Fri, 13 Aug 2021 10:56:54 +0000 (10:56 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 13 Aug 2021 10:56:54 +0000 (10:56 +0000)
commita93de8ed3aee4e99049f40b75a27773855bc1f29
treec59ea433997ac9e31e6ec4b152114dc111a532dd
parent177a8915a47849298740bc7b772e9677d698b1af
During line editing, let Ctrl-C discard the current input line and
provide a fresh prompt instead of exiting the program.  This aligns
behaviour with bc(1), ftp(1), sftp(1), and all the shells.

OK naddy@

Both martijn@ and naddy@ point out that this program might profit
from signal handling during more of its code, but that would require
more code inspection, design work, and testing which i'm not planning
to do right now.  Consider standard behaviour during line editing
as a first step.
usr.bin/cdio/cdio.c