Skip to content

Send SIGTERM and SIGKILL with keyboard shortcut #2778

@jtrakk

Description

@jtrakk

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions