Other features
Other features
Posted Apr 20, 2018 2:45 UTC (Fri) by ewen (subscriber, #4772)In reply to: Other features by Ross
Parent article: A look at terminal emulators, part 1
Thanks for the explanation of the "application escape" mode. It looks like it's a custom control sequence which tells the terminal to make the ESC key press send a different (longer) code that the application can then recognise without waiting on a timeout. That's a clever idea, but one I don't think I've seen implemented anywhere else -- including on various hardware terminals. (I've used vi / vim for about 25 years at this point, and have just got used to expecting there'll be a delay between hitting ESC and actually coming out of insert mode, and delays in general -- at times I'm editing files via 300+ms RTT links, something that easily occurs when editing files on the other side of the world from where my terminal is running....)
Presumably if the terminal application was carefully enough programmed it could distinguish "ESC key pressed" and "CTRL-[" pressed, and invoke the magic "application escape" code only in the "ESC key pressed" case, and not in the "CTRL-[" case, thus leaving CTRL-[ as an option to insert literal 0x1b characters (eg, CTRL-V CTRL-[).
Ewen