Bug#466789: Parsing of "terminal version" response too strict?

Thomas Dickey dickey at radix.net
Mon Feb 25 15:58:29 UTC 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20080225/4c1c5ea9/attachment.pgp 


More information about the pkg-vim-maintainers mailing list