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:
parent
76dcfd0c4d
commit
27202a1b14
|
@ -1263,7 +1263,7 @@ fhandler_pty_slave::push_to_pcon_screenbuffer (const char *ptr, size_t len)
|
||||||
{
|
{
|
||||||
p0 += 3;
|
p0 += 3;
|
||||||
bool exist_arg_3 = false;
|
bool exist_arg_3 = false;
|
||||||
while (p0 < buf + nlen && !isalpha (*p0))
|
while (p0 < buf + nlen && (isdigit (*p0) || *p0 == ';'))
|
||||||
{
|
{
|
||||||
int arg = 0;
|
int arg = 0;
|
||||||
while (p0 < buf + nlen && isdigit (*p0))
|
while (p0 < buf + nlen && isdigit (*p0))
|
||||||
|
|
Loading…
Reference in New Issue