Commit 86a6f588 authored by arnaudv6's avatar arnaudv6
Browse files

change to a non fatal locale error exception:

this was introduced with [1] and is nicely explained in [2].

(1) 3dcada4a
parent beb5317d
#!/usr/bin/env python3
#!/usr/bin/env python3
# Copyright (C) 2017-2020 Arnaud VALLETTE d'OSIA, aka Arnaudv6
......@@ -1408,7 +1408,13 @@ def main():
locale.setlocale(locale.LC_ALL, '') # First thing to do with curses
except locale.Error:
sys.exit('Your terminal is set to an unsupported locale.')
print('locale is unsupported or not set correctly.')
print('This is sometimes due to SSH environment.')
print('Press any key to exit, ENTER to proceed anyway.')
if not get_enter_key():
os.environ.setdefault('ESCDELAY', '25') # Nuke [Esc.] key's default delay in curses
os.environ.setdefault('NCURSES_NO_PADDING', 'True') # Unneeded timings
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment