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