Example #1
0
def test_case(nth_col):
    return join(
        cursor_character_absolute(nth_col),
        'a',
        HT,
        'b',
    )
Example #2
0
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',
    )
Example #4
0
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',
    )
Example #5
0
def set_tab_col(nth_col):
    return join(
        cursor_character_absolute(nth_col),
        character_tabulation_set(),
    )
Example #6
0
def clear_col_case(nth_col):
    return join(
        clear_col(nth_col),
        test_tabs(),
    )
Example #7
0
def clear_all():
    return join(
        tabuation_clear(3),
        test_tabs(),
    )
Example #8
0
def clear_col(nth_col):
    return join(
        cursor_character_absolute(nth_col),
        tabuation_clear(),
    )
Example #9
0
def test_tabs():
    return join(
        cursor_character_absolute(),
        ('a' + HT) * (n_tabs + 1),
        LF)
Example #10
0
def reset_tabs():
    return join(*(
        set_tab_col(i * pyt.config.tab_width)
        for i in range(n_tabs)
    ))