On Fri, 5 Jul 2019 at 08:07, Ralph Corderoy <ra...@inputplus.co.uk> wrote:
> Here's me entering Ctrl-1, Ctrl-2, ... up to Ctrl-0 and then Enter. > > $ stty raw; \ > > ((timeout --foreground 4.2 dd bs=1; stty cooked; echo >&3) | hd) 3>&1 > 1^@^[^\^]^^^_^?9^M > 00000000 31 00 1b 1c 1d 1e 1f 7f 39 0d > |1.......9.| > 0000000a > $ > > You can see the TTY's ‘ctlecho’ setting causing Ctrl-2 to be echoed as > ‘^@’, NUL, and that's confirmed by the hex dump. 0x1c is backslash, > 0x5c, with Ctrl masking off 0x40. > I had no idea about those. It's a minefield! Tim. */ -- Next meeting: BEC, Bournemouth, Tuesday, 2019-08-06 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk