mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
kitty shell prompt: fallback to plain ascii prompt in case of unicode errors
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user