diff --git a/src/Aquarium.cpp b/src/Aquarium.cpp index 24f0cf9..a6cc3eb 100644 --- a/src/Aquarium.cpp +++ b/src/Aquarium.cpp @@ -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); } }