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

Thomas Dickey dickey at radix.net
Mon Feb 25 22:58:59 UTC 2008


On Mon, Feb 25, 2008 at 08:35:26PM +0100, Bram Moolenaar wrote:
> > Technically, they could also end with '{', '|' or '}', though I don't
> > recall any terminals which do this.
> 
> Good to know.  I now made it:
> 
> 		for (i = 2 + (tp[0] != CSI); i < len
> 				&& !(tp[i] >= '{' && tp[i] <= '~')
> 				&& !ASCII_ISALPHA(tp[i]); ++i)

no problem (the point is that responses tend to be formatted like
the strings that the terminal recognizes - so you'll be looking for
legal final-characters).

-- 
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/2125bb1a/attachment.pgp 


More information about the pkg-vim-maintainers mailing list