Fix: PTY was not accounting for initial TTY size

This commit is contained in:
Manoj Ampalam 2016-09-30 14:50:33 -07:00
parent 427f8af803
commit 6c94fae80a

View File

@ -822,6 +822,15 @@ do_exec_no_pty(Session *s, const char *command)
}
if (!debug_flag)
RevertToSelf();
{
/* TODO - check this - Create Process above is not respecting x# and y# chars, so we are doing this explicity on the
* attached console agein */
COORD coord;
coord.X = s->col;
coord.Y = s->row;
SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
}
/*