I start telnet by telnet host port. How do I stop it in Windows? Shockingly, Ctrl+C doesn't work.
- 62,374
- 6,535
6 Answers
The
^]means ctrl + right bracket. As strange as that is, it works. You'll be taken to the telnet prompt, where you can typequitor simplyq.On international keyboards the ] character is often not a single key, and needs to be replaced with some other key. The correct key is typically the key to the right of P or the next key after that.
Here's a list based on comments below:
- Norwegian: ctrl + å
- Danish, Finnish, and Swedish: ctrl + ¨ [added by Fredrik C]
- French: ctrl + 6
- German, Turkish: ctrl + ü
- Swiss: ctrl + ¨
- Hungarian: ctrl + 5 or ctrl + ú
- Portuguese: ctrl + ´
- Dutch, Belgian: ctrl + $
- Canadian French: ctrl + ç
- Italian: ctrl + +
Quote from @jtbandes answer here: https://superuser.com/a/427/192525 All creds to him.
PS: Answer reproduced here for your convenience, since google took me to this question first, and none of the other answers here was sufficient for my case. The question How to send the escape character on OS X terminal? could be seen as a duplicate (more generic version) of this question, since the OP's problems are basically the same.
- 816
On debian 9, typing :
Ctrl + $
Allows you to show the prompt from telnet, then only type :
q
To exit
- 261
"How do I stop it in Windows?"
I miss the good old ALT + 29 ¹ on the numeric keypad. And then "quit". This works since DOS and (should) work across all KB layouts in windows. Tested 2023 with a Greek Island layout on windows 11.
¹ With ALT + number on numpad you get all ASCII codes.
^A is 1, ^B is 2 … ^[ is 27 (as ESC) and finally ^] is 29
ALT + 64 -> @
ALT + 64 -> A
- 163