On Fri, Jul 12, 2024 at 08:10:48PM +0700, Yuri Khan wrote: > On Fri, 12 Jul 2024 at 19:15, Pierre Rouleau wrote: > > > Does Emacs already have a predicate function that can be used to check if > > the specified key sequence is valid for Emacs running in terminal mode? > > > > For example, "C-;" is not accessible on Emacs running in terminal mode > > because this is not an ASCII control character. It's available for Emacs > > running in graphical environment, but not in terminal mode. > > This is probably not solvable because an advanced terminal can > implement a protocol extension that represents arbitrary keys as > escape sequences that can then be turned into Emacs key events using > input-decode-map. Well, that's not fair :-) "God made the VT100, all else is the work of man" [1] Cheers [1] https://en.wikipedia.org/wiki/Leopold_Kronecker -- t