Add keypad mode support to replay commands

Also name the constants correctly
This commit is contained in:
Kovid Goyal
2020-06-29 12:46:34 +05:30
parent c68516ca8d
commit 025f6d7701
3 changed files with 12 additions and 4 deletions

View File

@@ -34,6 +34,14 @@ def screen_bell() -> None:
pass
def screen_normal_keypad_mode() -> None:
write('\x1b>')
def screen_alternate_keypad_mode() -> None:
write('\x1b=')
def screen_cursor_position(y: int, x: int) -> None:
write(CSI + '%s;%sH' % (y, x))