Cygwin: pty: Fix ESC[?3h and ESC[?3l handling again.

- Even with commit fe512b2b12, pty
  still has a problem in ESC[?3h and ESC[?3l handling if invalid
  sequence such as ESC[?$ is sent. This patch fixes the issue.
This commit is contained in:
Takashi Yano 2019-12-19 20:03:30 +09:00 committed by Corinna Vinschen
parent 76dcfd0c4d
commit 27202a1b14
1 changed files with 1 additions and 1 deletions

View File

@ -1263,7 +1263,7 @@ fhandler_pty_slave::push_to_pcon_screenbuffer (const char *ptr, size_t len)
{
p0 += 3;
bool exist_arg_3 = false;
while (p0 < buf + nlen && !isalpha (*p0))
while (p0 < buf + nlen && (isdigit (*p0) || *p0 == ';'))
{
int arg = 0;
while (p0 < buf + nlen && isdigit (*p0))