More typing work

This commit is contained in:
Kovid Goyal
2020-03-06 08:35:23 +05:30
parent 686b5f297e
commit 8a34fede55
8 changed files with 56 additions and 34 deletions

View File

@@ -127,16 +127,16 @@ def screen_manipulate_title_stack(op, which):
write(CSI + '%d;%dt' % (op, which))
def report_device_attributes(mode, char):
def report_device_attributes(mode: int, char: int) -> None:
x = CSI
if char:
x += ord(char)
x += chr(char)
if mode:
x += str(mode)
write(CSI + x + 'c')
def write_osc(code, string=''):
def write_osc(code: int, string='') -> None:
if string:
string = ';' + string
write(OSC + str(code) + string + '\x07')