Forgot this file in previous commit

This commit is contained in:
Kovid Goyal
2018-05-10 16:20:58 +05:30
parent e0ce5d5629
commit b8e9921f3d

View File

@@ -74,7 +74,9 @@ def set_cursor_position(x, y) -> str: # (0, 0) is top left
return '\033[{};{}H'.format(y + 1, x + 1) return '\033[{};{}H'.format(y + 1, x + 1)
def set_scrolling_region(screen_size, top=None, bottom=None) -> str: def set_scrolling_region(screen_size=None, top=None, bottom=None) -> str:
if screen_size is None:
return '\033[r'
if top is None: if top is None:
top = 0 top = 0
if bottom is None: if bottom is None: