openmic.social is an uncensored community. You may encounter strong language, controversial opinions, and mature or NSFW material. You must be 18+ to browse. Illegal content is prohibited and removed on sight — please report it. By continuing, you accept that you may see content you personally disagree with.
Well…Control-C is treated by bash differently than in emacs. It basically cancels the existing line and gives you a fresh line.
And IIRC, Control-V is also different, used to input literal control characters. Like, the terminal will handle that if it’s in cooked mode.
checks
$ od -x
hits Control-V Control-C Enter Control-D
^C
0000000 0a03
0000002
$
Yeah.
Control-U is also a notable difference I know off-the-cuff. In emacs, it’s the universal-argument prefix, which is an important way to pass arguments to functions. In readline, it’s kill-to-beginning-of-line.
absolutely brilliant <slow clap>
You know, I always kind of wondered what happened when I accidentally pressed control C, control V or whatnot in bash.
Level unlocked
Well…Control-C is treated by bash differently than in emacs. It basically cancels the existing line and gives you a fresh line.
And IIRC, Control-V is also different, used to input literal control characters. Like, the terminal will handle that if it’s in cooked mode.
checks
hits Control-V Control-C Enter Control-D
Yeah.
Control-U is also a notable difference I know off-the-cuff. In emacs, it’s the universal-argument prefix, which is an important way to pass arguments to functions. In readline, it’s kill-to-beginning-of-line.