How do I quit telnet without using standard Ctrl+] combination?

19

4

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.

Trygve Laugstøl

Posted 2011-04-04T07:59:14.883

Reputation: 293

1With french keyboard, on mac OsX, type ctrl + $ then type quit... – ling – 2014-04-23T05:18:21.607

Answers

26

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

Bemmu

Posted 2011-04-04T07:59:14.883

Reputation: 808

1with Finnish layout and on Mac OS X it seems to be ctrl + ¨. Thanks for hinting me to right direction. – eis – 2015-10-13T07:58:06.720

4with German layout and on Mac OS X it seems to be ctrl + ü – moudrick – 2016-03-28T09:34:05.830

Spanish layout: ctrl + '+' – Sebastian Breit – 2016-12-05T17:52:33.453

1Same for Swedish keyboard! – Klas Mellbourn – 2018-10-19T20:19:48.200

Same for Norwegian (CTRL+Å) – Arjan Einbu – 2019-04-04T17:22:16.240

36

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

DarkDust

Posted 2011-04-04T07:59:14.883

Reputation: 1 405

not all keyboard layouts contain "common" symbols. For example Italian keyboard lacks ~ and backtick, French keyboard lacks @ which sometimes makes programming almost impossible on inconvenient without changing layout. In this case Finnish keyboard has no brackets. German keyboard, too

– phuclv – 2017-05-24T03:00:00.807

Swedish keyboards faces the same problem – phuclv – 2017-05-24T03:06:18.190

I tried with -e y earlier, typing ctrl+y didn't work. – Trygve Laugstøl – 2011-04-04T10:07:34.857

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). – None – 2011-04-04T10:32:59.687

1Ah, doh. Thanks! Ctrl-å is the easiest for me (less to type), but very nice to know anyway. Cheers! – Trygve Laugstøl – 2011-04-04T10:39:58.533

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

fitstek

Posted 2011-04-04T07:59:14.883

Reputation: 21

1

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

followed by the return key.

PReinie

Posted 2011-04-04T07:59:14.883

Reputation: 53