From f236af270984470b2aea371cfa3e8edd344aecc8 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 8 Jul 2025 20:35:55 -0400 Subject: [PATCH] change fallback behaviour --- src/Aquarium.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }