Love the Remote Terminal option and use it all the time.
How do I Ctrl-C with the terminal? Connected to RaspberryOS shell. Ctrl-C isn’t working for me so I have to close and restart the terminal. Thanks.
Love the Remote Terminal option and use it all the time.
How do I Ctrl-C with the terminal? Connected to RaspberryOS shell. Ctrl-C isn’t working for me so I have to close and restart the terminal. Thanks.
What does stty --all
show. For me in an ssh session it looks like:
speed 9600 baud; rows 40; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;
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
The key thing you care about is that intr = ^C
part. If you see that then something weird is going on.
Hi,
Try to use CTRL+Z.
CTRL-Z gets you back to the shell but suspends the process.
Mine seems the same as yours with intr=^C.
Does ^C work for you in sixfab’s remote terminal?
$ stty -a
speed 38400 baud; rows 27; columns 83; 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
Hmmm… my guess is that your browser is intercepting ^C and using it for something else.
One thing to try is:
stty intr ^Y
And then try using ^Y instead of ^C. That assumes your browser isn’t catching ^Y…
Also, almost nobody really uses quit (^\) anymore, so you might try that if ^Y doesn’t work.
Probably you should turn off quit before adding it for intr.
Thanks for the suggestions. Browser is Chrome.
I tried stty intr ^Y; no luck.
I tried ^\ and that worked to quit the foreground process. I can use that instead of ^C.