did you know that SSH has a little-known secret menu?

i wrote a post about this on cohost a while back, but since that site shut down i'm posting it here too

@rebane2001

Yes, but did you know that it is basically inaccessible on Keyboard layouts like e.g. de-DE?

@rebane2001

Oh and if I recall correctly the keyboard combination is also different on macOS too...

@agowa338 @rebane2001 MacOS and Windows both have plain OpenSSH, and the listed escape sequences work on both.
@bob_zim @agowa338 @rebane2001 *if* your keyboard layout has a functioning tilde key (a deadkey might output something else and it's nontrivial to make it output just the character itself (and it depends on the OS how it deals with it))

@phl Huh. I’m not sure I’ve seen a non-exotic (e.g, not for a Corne) layout which entirely lacks tilde as a discrete character. On my German keyboards, it’s on the AltGr layer of the +/* key. Same on Spanish QWERTY keyboards I’ve seen.

Not doubting that such a keyboard exists, I just thought I had seen most of the mass-produced layouts.

@phl By way of context, I used to work tech support for a vendor which sells Linux-based servers and which supported a bunch of applications which run on those servers on FreeBSD, Solaris, AIX, and a few other systems. I got calls from people all over the world, including people who had never really used a *NIX command line before, and had to walk them through filesystem operations and through using vim.

I remember dealing with at least seven different keyboard layouts more than once. JIS was a “fun” one because there are at least two wildly different layouts which people identify with that code. One has the tilde in the upper left like ANSI/ISO, the other has it two keys left of backspace.

@bob_zim The latter sounds suspiciously much like a Sun keyboard :D Esc to the left of 1?
@phl Left and up of 1, in the F row. Sometimes the 1 is extra wide and there is no key to its left.

@bob_zim ohh, right, that mode switch key is in the upper left.

I wonder just how many times my ISO trained hands would hit the ろ key instead of right shift if I ever had to use one of those things :D (I guess most other people think the same of the ISO 102nd key and left shift...)