def test_case(nth_col): return join( cursor_character_absolute(nth_col), 'a', HT, 'b', )
def test_case(n_cols, n_tabs): return join( cursor_character_absolute(n_cols), 'a', cursor_forward_tabulation(n_tabs), 'b', )
def test_case(): return join( reset_to_initial_state(), line_position_absolute(), CR, 'hello world', line_position_absolute(pyt.config.height // 2), CR, 'middle of screen', line_position_absolute(pyt.config.height), CR, 'goodbye world', )
def test_case(): return join( reset_to_initial_state(), 'hello world', LF, 'super long text string under hello world', line_position_absolute(pyt.config.height // 2), CR, 'middle of screen', LF, 'second middle line', line_position_absolute(pyt.config.height), CR, 'goodbye world', LF, 'second line of bottom', line_position_absolute(), CR, 'overwrite new top line', )
def set_tab_col(nth_col): return join( cursor_character_absolute(nth_col), character_tabulation_set(), )
def clear_col_case(nth_col): return join( clear_col(nth_col), test_tabs(), )
def clear_all(): return join( tabuation_clear(3), test_tabs(), )
def clear_col(nth_col): return join( cursor_character_absolute(nth_col), tabuation_clear(), )
def test_tabs(): return join( cursor_character_absolute(), ('a' + HT) * (n_tabs + 1), LF)
def reset_tabs(): return join(*( set_tab_col(i * pyt.config.tab_width) for i in range(n_tabs) ))