Possible Duplicate:
what to do when ctrl-c can't kill a process?
On my laptop I press the laptop function key + break. On my desktop, my break key (next to print screen) is like this:
Pause
Break
If I press it (no Ctrl/Alt/etc) I get this (ignore the echo's, they're just there so I could work out what was what):
# sleep 10;echo "no ctrl/alt/shift/etc"
[12]+ Stopped sleep 10
If I press it with shift, I get this:
[root@ID6052 public_html]# sleep 10;echo "shift + pause/break"
[13]+ Stopped sleep 10
If I press it with Ctrl nothing happens.
If I press Pause/Break with Alt, I get this:
[root@ID6052 public_html]# sleep 10;echo "alt + pause/break"
[15]+ Stopped sleep 10
How do I get it to just stop the program? If I get a list of running processes, all these "[xx]+ Stopped..." commands show up (in a stopped state). On my laptop, pressing the func+break (ie, just normal break key...the func button is also used for scroll lock, print screen etc) closes the programs down completely!
for example, do find .|less, and it doesn't quit (while in less). is there a way to quit those programs that allow text input (like less)?
– Oct 30 '09 at 23:56less, likevimoremacs, takes measures to more fully capture keyboard input. You have to know how to exit these programs (q (maybe ^Cq if in ‘tail’ mode) inless;vim; ^X^C inemacs). Though these (and most other) programs will let you suspend (stop) them with ^Z then you can use the shell to kill them (Peter's answer mentions this). It is possible for programs to ‘grab’ ^Z though, too (technically emacs does, but, by default, it suspends itself when it gets ^Z). AFAIK, there is no single way to quit any tty program from the same tty.