mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
...
This commit is contained in:
@@ -111,17 +111,25 @@ class UnicodeInput(Handler):
|
|||||||
def draw_screen(self):
|
def draw_screen(self):
|
||||||
self.write(clear_screen())
|
self.write(clear_screen())
|
||||||
self.draw_title_bar()
|
self.draw_title_bar()
|
||||||
|
y = 1
|
||||||
|
|
||||||
|
def writeln(text=''):
|
||||||
|
nonlocal y
|
||||||
|
self.print(text)
|
||||||
|
y += 1
|
||||||
|
|
||||||
if self.mode is HEX:
|
if self.mode is HEX:
|
||||||
self.print(_('Enter the hex code for the character'))
|
writeln(_('Enter the hex code for the character'))
|
||||||
else:
|
else:
|
||||||
self.print(_('Enter words from the name of the character'))
|
writeln(_('Enter words from the name of the character'))
|
||||||
self.write(self.prompt)
|
self.write(self.prompt)
|
||||||
self.write(self.current_input)
|
self.write(self.current_input)
|
||||||
with cursor(self.write):
|
with cursor(self.write):
|
||||||
self.print()
|
writeln()
|
||||||
if self.choice_line:
|
if self.choice_line:
|
||||||
self.print(self.choice_line)
|
writeln(self.choice_line)
|
||||||
self.print()
|
if self.mode is HEX:
|
||||||
|
writeln(styled('Use r followed by the index for the recent entries below', fg=FAINT))
|
||||||
|
|
||||||
def refresh(self):
|
def refresh(self):
|
||||||
self.update_prompt()
|
self.update_prompt()
|
||||||
|
|||||||
Reference in New Issue
Block a user