change fallback behaviour
This commit is contained in:
@@ -106,9 +106,9 @@ void Aquarium::getTerminalSize() {
|
|||||||
height = ws.ws_row;
|
height = ws.ws_row;
|
||||||
width = ws.ws_col;
|
width = ws.ws_col;
|
||||||
} else {
|
} else {
|
||||||
// Fallback
|
cleanup_terminal(0);
|
||||||
height = 24;
|
std::cerr << "Error: Unable to determine terminal size.\n";
|
||||||
width = 80;
|
std::exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user