From 2eb9a62c9113ed7e1b69c32f906c0065efc651e5 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 1 Oct 2022 22:00:44 -0600 Subject: [PATCH] Disable scroll lock --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 27fa747..30d72c7 100755 --- a/main.py +++ b/main.py @@ -10,6 +10,8 @@ logging.basicConfig( logging.info('') logging.info('Boot up') +os.system('stty -ixon') + import curses import requests import pytz @@ -101,7 +103,7 @@ if wa_api_key: def think_send(query): result = '' try: - res = wa_client.query(query, timeout=5) + res = wa_client.query(query, timeout=10) except BaseException as e: logging.error('Error hitting W|A API: {} - {}\n'.format(e.__class__.__name__, e)) return 'Network error'