change fallback behaviour

This commit is contained in:
user
2025-07-08 20:35:55 -04:00
parent 16d8858841
commit f236af2709

View File

@@ -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);
}
}