16

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.

migrated from stackoverflow.com Apr 5 '11 at 9:11

This question came from our site for professional and enthusiast programmers.

  • 1
    With french keyboard, on mac OsX, type ctrl + $ then type quit... – ling Apr 23 '14 at 5:18
24

Not sure what layout you have, but for me in Finnish layout it is Ctrl + å.

  • 1
    with Finnish layout and on Mac OS X it seems to be ctrl + ¨. Thanks for hinting me to right direction. – eis Oct 13 '15 at 7:58
  • 2
    with German layout and on Mac OS X it seems to be ctrl + ü – moudrick Mar 28 '16 at 9:34
  • Spanish layout: ctrl + '+' – Sebastian Breit Dec 5 '16 at 17:52
  • 1
    Same for Swedish keyboard! – Klas Mellbourn Oct 19 '18 at 20:19
  • Same for Norwegian (CTRL+Å) – Arjan Einbu Apr 4 at 17:22
33

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].

2

You can also use the command "set escape" followed by any key you want to set the escape character.

example: telnet> set escape ctrlp

1

I often don't remember the key-sequences... except at the telnet prompt this sequence works: telnet> quit

followed by the return key.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.