Пример #1
0
def clear_line_if_tty():
    if use_tty_output():
        std_out_clear_line()
    else:
        print(end='\n')
Пример #2
0
def return_caret_if_tty_output():
    if use_tty_output():
        print('\r', end='')
    else:
        print('\n', end='')
Пример #3
0
def show_complexity_notification():
    if use_tty_output():
        print("Time complexity:\r", end="")
Пример #4
0
def show_complexity_notification():
    if use_tty_output():
        print('Time complexity:\r', end='')
def clear_line_if_tty():
    if use_tty_output():
        std_out_clear_line()
    else:
        print(end='\n')