From 97077906455ecd86178611b4dc93f6775226f445 Mon Sep 17 00:00:00 2001 From: Ben Winston Date: Tue, 28 Feb 2023 21:01:08 -0500 Subject: bugfix: spit out a nicer message if curses can't draw --- roku_tui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'roku_tui.py') diff --git a/roku_tui.py b/roku_tui.py index b290b37..a3a3143 100755 --- a/roku_tui.py +++ b/roku_tui.py @@ -246,7 +246,10 @@ def startup(): if not config_file.exists(): init_run(config_file) config = RokuConfig(config_file) - curses.wrapper(main, config) + try: + curses.wrapper(main, config) + except curses.error as err: + print("Error with display — is your console window too small?") if __name__ == '__main__': startup() -- cgit v1.2.3