Skip to content

Commit 6c94fae

Browse files
committed
Fix: PTY was not accounting for initial TTY size
1 parent 427f8af commit 6c94fae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

session.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,15 @@ do_exec_no_pty(Session *s, const char *command)
822822
}
823823
if (!debug_flag)
824824
RevertToSelf();
825+
{
826+
/* TODO - check this - Create Process above is not respecting x# and y# chars, so we are doing this explicity on the
827+
* attached console agein */
828+
829+
COORD coord;
830+
coord.X = s->col;
831+
coord.Y = s->row;
832+
SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), coord);
833+
}
825834
}
826835

827836
/*

0 commit comments

Comments
 (0)