commit bf14a31c88299d66db5e833affe9fefda480aff4 parent b9ce67f7c3dc780fe18c265b606a7336f3984bbd Author: amrfti <andrew@kloet.net> Date: Tue, 8 Jul 2025 20:35:55 -0400 change fallback behaviour Diffstat:
| M | src/Aquarium.cpp | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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); } }