1

Standard escape character is CTRL-] on telnet.

https://superuser.com/questions/398/how-to-send-the-escape-character-on-os-x-terminal/427#427

says that on Hungarian keyboard it is CTRL-5.

On my student's terminal it works. On my terminal CTRL-5 displays

^[[1;5u

and does not go into the

telnet>

prompt. What setting hinders me to escape telnet this way?

EDIT: I omitted one key ingredient: I use MobaXTerm. I tried on putty and CTRL-5 worked with 5 from the alphanumeric keyboard. MobaXTerm might swallow CTRL-5.

Gergely
  • 794
  • 1
  • 10
  • 24

1 Answers1

7

Press the correct 5 key.

There are two 5 keys on your keyboard, one at position E05 and one on the numeric keypad, wherever that happens to be (either a separate keypad or an overlain keypad accessible with a Fn key or similar). You are pressing the wrong one.

It does not matter that you have a Hungarian keyboard. The engravings on the keytops do not control what actions the keys cause. What matters is that you are using a Hungarian keyboard mapping such as hu101.kmap (on Linux operating systems).

In that keyboard mapping only one of the 5 keys produces the character in conjunction with the ⎈ Control modifier, the key at position E05. is of course the local escape sequence for the telnet program.

In that keyboard mapping the other 5 key, on the numeric keypad, produces the XTerm control sequence CSI 1 ; 5 u that you are seeing; which denotes the 5 key on the numeric keypad, in "application mode", occurring once, with the ⎈ Control modifier.

As the Hungarian keyboard map says:

    control keycode   6 = Control_bracketright

keycode  76 = KP_5
JdeBP
  • 66,967
  • 12
  • 159
  • 343