Cygwin: pty: Avoid screen distortion on slave read.

- Echo back print is distorted when the cygwin program which calls
  Win32 console API directly calls slave read(). This patch fixes
  the issue.
This commit is contained in:
Takashi Yano
2020-02-09 23:46:01 +09:00
committed by Corinna Vinschen
parent 2bae159171
commit b0474b704a
2 changed files with 32 additions and 22 deletions

View File

@ -2206,7 +2206,7 @@ class fhandler_pty_slave: public fhandler_pty_common
}
void set_switch_to_pcon (int fd);
void reset_switch_to_pcon (void);
void push_to_pcon_screenbuffer (const char *ptr, size_t len);
void push_to_pcon_screenbuffer (const char *ptr, size_t len, bool is_echo);
void mask_switch_to_pcon_in (bool mask);
void fixup_after_attach (bool native_maybe, int fd);
bool is_line_input (void)
@ -2215,6 +2215,7 @@ class fhandler_pty_slave: public fhandler_pty_common
}
void setup_locale (void);
void set_freeconsole_on_close (bool val);
void trigger_redraw_screen (void);
void wait_pcon_fwd (void);
};