Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send SIGTERM and SIGKILL with keyboard shortcut #2778

Closed
jtrakk opened this issue Jun 20, 2020 · 0 comments
Closed

Send SIGTERM and SIGKILL with keyboard shortcut #2778

jtrakk opened this issue Jun 20, 2020 · 0 comments

Comments

@jtrakk
Copy link

jtrakk commented Jun 20, 2020

Is your feature request related to a problem? Please describe.

Sometimes I'm running a program in a terminal and it doesn't respond to ctrl-c sigint or the others.

Describe the solution you'd like

I want to send sigterm or sigkill to an application running in the terminal using a custom keyboard shortcut.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

The other option is using pkill from another shell, but that's a hassle. This answer says it's impossible to do the keyboard shortcut from a shell, so the terminal seems like a good place to do it.

Other info

My current bindings are:

$ stty -a
speed 38400 baud; rows 36; columns 144; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant