1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

terminal: fix intialization of terminal dimensions of no TTY is available

This commit is contained in:
Steffen Vogel 2019-02-12 16:17:36 +01:00
parent ad219667f9
commit ed54831e6e

View file

@ -34,6 +34,9 @@ Terminal::Terminal()
{
int ret;
window.ws_row = 0;
window.ws_col = 0;
isTty = isatty(fileno(stdin));
if (isTty) {