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
pgpWnpPrcecgB.pgp
Description: PGP signature

