mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-24 22:45:17 +02:00
Fix in condition testing for tty of channel's out fd
This commit is contained in:
parent
05c9f0e371
commit
64531446fa
@ -1522,7 +1522,8 @@ client_simple_escape_filter(Channel *c, char *buf, int len)
|
|||||||
|
|
||||||
#ifdef WIN32_FIXME
|
#ifdef WIN32_FIXME
|
||||||
u_char * client_ansi_parser_filter(Channel *c, u_char **buf, u_int *len) {
|
u_char * client_ansi_parser_filter(Channel *c, u_char **buf, u_int *len) {
|
||||||
if (c->isatty) {
|
/* TODO - account fo error/extended stream*/
|
||||||
|
if (isatty(c->wfd)) {
|
||||||
telProcessNetwork(buffer_ptr(&c->output), buffer_len(&c->output));
|
telProcessNetwork(buffer_ptr(&c->output), buffer_len(&c->output));
|
||||||
buffer_clear(&c->output);
|
buffer_clear(&c->output);
|
||||||
buffer_append(&c->output, " \b", 2);
|
buffer_append(&c->output, " \b", 2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user