minchin/text.py
def clock_on_right(mystring):
    '''Takes a string, and prints it with the time right aligned'''
    taken = length_no_ansi(mystring)
    padding = (get_terminal_size().columns - 1) - taken - 5
    clock = time.strftime("%I:%M", time.localtime())
    print(mystring + " "*padding + clock)
def clock_on_right(mystring):
    '''Takes a string, and prints it with the time right aligned'''
    taken = length_no_ansi(mystring)
    padding = (get_terminal_size().columns - 1) - taken - 5
    clock = time.strftime("%I:%M", time.localtime())
    print(mystring + " "*padding + clock)
def clock_on_right ( mystring ) : taken = length_no_ansi ( mystring ) padding = ( get_terminal_size ( ) . columns - 1 ) - taken - 5 clock = time . strftime ( "%I:%M" , time . localtime ( ) ) print ( mystring + " " * padding + clock )
Takes a string, and prints it with the time right aligned
Takes a string and prints it with the time right aligned