The title says it all. Note that I'm using a non-US layout, Norwegian, so I can't create the Ctrl+] combination. I've found the trick before, but can't find it.
-
1With french keyboard, on mac OsX, type ctrl + $ then type quit... – ling Apr 23 '14 at 05:18
7 Answers
Type Ctrl+] to enter the telnet menu, then enter quit. For more commands, see man telnet.
Edit: Haven't noticed that you can't type Ctrl+], but I would be surprised if there isn't a way to type that with every keyboard. But you can change the escape character with the commandline option -e [char].
- 53,069
- 19
- 162
- 212
- 1,543
- 12
- 9
-
-
2@trygvis: Found out why it didn't work: `-e y` makes the `y` key the escape key. To use `Ctrl+y` you have to use `-e ^y` (that is the circumflex character). – Apr 04 '11 at 10:32
-
1Ah, doh. Thanks! Ctrl-å is the easiest for me (less to type), but very nice to know anyway. Cheers! – Trygve Laugstøl Apr 04 '11 at 10:39
-
not all keyboard layouts contain "common" symbols. For example [Italian keyboard lacks `~` and backtick](https://superuser.com/q/667622/241386), [French keyboard lacks `@`](https://askubuntu.com/q/280492/253474) which sometimes makes programming almost impossible on inconvenient without changing layout. In this case [Finnish keyboard has no brackets](https://mooselander.wordpress.com/2012/06/03/brackets-on-a-swedish-keyboard/). [German keyboard](https://teamtreehouse.com/community/how-can-i-type-square-brackets-in-workspaces-on-a-german-keyboard-using-mac), too – phuclv May 24 '17 at 03:00
-
[Swedish keyboards](https://superuser.com/q/240994/241386) faces the same problem – phuclv May 24 '17 at 03:06
Not sure what layout you have, but for me in Finnish layout it is Ctrl + å.
- 57,083
- 27
- 185
- 256
- 1,028
- 1
- 11
- 15
-
1with Finnish layout and on Mac OS X it seems to be ctrl + ¨. Thanks for hinting me to right direction. – eis Oct 13 '15 at 07:58
-
4
-
-
1
-
To answer your specific question: Ctrl+å then enter quit.
But to make it more fun it depends on your layout a lot:
(Remember on a Mac Ctrl is your ⌃ key)
- Default: Ctrl+[
- Dutch, Belgian: Ctrl+$
- French: Ctrl+6
- Finnish, Swedish, Norwegian, Danish: Ctrl+å
- Swiss: Ctrl+¨
- German: Ctrl+ü
- Hungarian and Turkish: Ctrl+5
- Portuguese: Ctrl+´
- Canadian French: Ctrl+ç
then enter quit.
For more commands, see man telnet.
- 167
- 1
- 5
I often don't remember the key-sequences... except at the telnet prompt this sequence works: telnet> quit
followed by the return key.
- 59
- 8
Ctrl5 (back to telnet) and then Ctrld (back to shell)
... helped me on following constellation
- AWS Web Terminal (in Firefox)
- Mac OS
- German keyboard layout
- 97
- 1