kitty shell prompt: fallback to plain ascii prompt in case of unicode errors
This commit is contained in:
parent
8268f9f612
commit
255cacf912
1 changed files with 4 additions and 1 deletions
|
|
@ -155,7 +155,10 @@ def real_main(global_opts):
|
|||
|
||||
while True:
|
||||
try:
|
||||
cmdline = input('🐱 ')
|
||||
try:
|
||||
cmdline = input('🐱 ')
|
||||
except UnicodeEncodeError:
|
||||
cmdline = input('kitty> ')
|
||||
except EOFError:
|
||||
break
|
||||
except KeyboardInterrupt:
|
||||
|
|
|
|||
Loading…
Reference in a new issue