Commit 40ac360c authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

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

parent 5d1a82c8
......@@ -34,6 +34,9 @@ Terminal::Terminal()
{
int ret;
window.ws_row = 0;
window.ws_col = 0;
isTty = isatty(fileno(stdin));
if (isTty) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment