How to prevent adb shell from exiting upon Ctrl+C When I adb shell into my device (from Windows desktop), and run some command there, sometimes I want to terminate that command. The standard unixy way to do it is with Ctrl+C key combination. However, when I do that, the whole adb shell terminates. 

How can I terminate just the current program inside the shell, not the shell itself?
I found sort of a workaround for this (at least for a rooted phone). If a phone is rooted, busybox is most probably installed. stty is part of busybox.


  stty intr ^x


Redefines Ctrl+X to act as a break command, e.g. what was previously Ctrl+C.