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?
This will send a SIGQUIT signal which may not be appropriate for a server (dumps a core file for example) but I don't think it's a problem using this on an Android phone/tablet (which doesn't dump a core file by default). Easy solution that works in most cases.
Note that [Alt]+ produces the ASCII-Char ♥ in Windows which equals the ETX-Byte.
You can also press [Alt]+- (hold the Alt key down while pressing  and  on the numpad) if you don't wand windows to display a heart ;)