Hacker News new | ask | show | jobs
by Sharlin 4707 days ago
The default escape character ~ does not work if the tilde key in your keyboard layout is a dead key [1], like it is in many European layouts. It can be changed via the EscapeChar config option or the -e command line parameter. It seems, though, that not just any old character is accepted - I tried to use ยง, which, in the Finnish layout, is in the same physical position as ~ is in the US version, but ssh complains about "bad escape character".

EDIT - I suppose it must be an ASCII character, which is not an entirely unreasonable requirement.

[1] http://en.wikipedia.org/wiki/Dead_key

4 comments

It works, you'll just have to type

  <tilde> <space> .
Weird - I did try that before writing the comment and it didn't work. May depend on the terminal or something.
I use a french mac layout and it works well. But you have to type ~ then press space, then press shift+; (because shift+; is .)
This must be why mosh's escape sequence never worked for me (ctrl-^ or ctrl-^.)
Seems to be fixed (to use the same as SSH): https://github.com/keithw/mosh/issues/215
You can change what the default escape character is in the ssh config file.