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:
parent
ad219667f9
commit
ed54831e6e
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ Terminal::Terminal()
|
|||
{
|
||||
int ret;
|
||||
|
||||
window.ws_row = 0;
|
||||
window.ws_col = 0;
|
||||
|
||||
isTty = isatty(fileno(stdin));
|
||||
|
||||
if (isTty) {
|
||||
|
|
Loading…
Add table
Reference in a new issue