On Sun, Feb 24, 2008 at 11:00:18PM +0100, Bram Moolenaar wrote: > We don't know what it is. Could be a function key. > > > > I think every escape sequence is supposed to end in a letter. So we > > > could use this loop: > > > > > > for (i = 2 + (tp[0] != CSI); i < len && !ASCII_ISALPHA(tp[i]); ++i) > > > > Quickly looking over xterm's control sequences[0], there are sequences > > that don't end in a letter but responses to T_CRV should always end in > > c. > > You mean sequences that are send to the xterm? We were talking about > sequences that xterm sends back to the application and start with CSI. > > Oh, these sequences can also end in '~', I'll add that.
Technically, they could also end with '{', '|' or '}', though I don't recall any terminals which do this. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
pgp7ilBiJkIKQ.pgp
Description: PGP signature