kitty shell prompt: fallback to plain ascii prompt in case of unicode errors

This commit is contained in:
Kovid Goyal 2018-07-14 06:35:43 +05:30
parent 8268f9f612
commit 255cacf912
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -155,7 +155,10 @@ def real_main(global_opts):
while True: while True:
try: try:
cmdline = input('🐱 ') try:
cmdline = input('🐱 ')
except UnicodeEncodeError:
cmdline = input('kitty> ')
except EOFError: except EOFError:
break break
except KeyboardInterrupt: except KeyboardInterrupt: