def main(): """ Prints date and then a chunk of filler text. Text "streams" onto the screen. """ print('\n') # pylint: disable=C0325 today = datetime.datetime.today() now = today.strftime('%c') # Make syre this is a portable date format. cli.tty(' ' * 35 + now) print('\n' * 2) # pylint: disable=C0325 cli.tty(STRING) print('\n' * 3) # pylint: disable=C0325
def main(): """ Output system info; if using bash, use animated text. """ if SHELL.interface == 'Tk': SHELL.view_info() SHELL.main_window.mainloop() elif SHELL.interface in ['sh', 'bash']: string = cli.Cli.ul('Shell Info', symbol='-', width=12, position=0) string += cli.Cli.view_info(get_str=True) cli.tty(string) print('\n')