예제 #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')