Implement changing cursor shape

This commit is contained in:
Kovid Goyal
2016-10-21 06:23:05 +05:30
parent 38dfe12d4e
commit a4bef64de6
6 changed files with 93 additions and 32 deletions

View File

@@ -157,3 +157,9 @@ DECSTBM = b"r"
#: *Horizontal position adjust*: Same as :data:`CHA`.
HPA = b"'"
# Misc sequences
#: Change cursor shape/blink
DECSCUSR = b'q'

View File

@@ -119,7 +119,8 @@ class Stream(object):
esc.SGR: "select_graphic_rendition",
esc.DSR: "report_device_status",
esc.DECSTBM: "set_margins",
esc.HPA: "cursor_to_column"
esc.HPA: "cursor_to_column",
esc.DECSCUSR: 'set_cursor_shape',
}
#: A set of all events dispatched by the stream.