I think Gary makes an interesting point. I think the danger of using HUP is that many already use this keycombo (control + D) for closing out of a terminal session. Some ideas: INT followed by QUIT (control + \) or INT followed by STOP (control +
S)?
For reference, these are the current keybindings on my macos machine:
(base) ➜ ~ stty -a
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
stop = ^S; susp = ^Z; time = 0; werase = ^W;
and redhat machine:
➜ ~ stty -a
speed 38400 baud; rows 25; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
Shyam