kitty shell prompt: fallback to plain ascii prompt in case of unicode errors
This commit is contained in:
parent
8268f9f612
commit
255cacf912
@ -154,8 +154,11 @@ def real_main(global_opts):
|
|||||||
print('Use {} for assistance or {} to quit'.format(green('help'), green('exit')))
|
print('Use {} for assistance or {} to quit'.format(green('help'), green('exit')))
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
try:
|
try:
|
||||||
cmdline = input('🐱 ')
|
cmdline = input('🐱 ')
|
||||||
|
except UnicodeEncodeError:
|
||||||
|
cmdline = input('kitty> ')
|
||||||
except EOFError:
|
except EOFError:
|
||||||
break
|
break
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user