#!/usr/bin/env python """I am *not* responsible if this causes severe physical or mental injury """ from terminate.term import display, stdout, Magic try: while True: for c in Magic.COLORS.iterkeys(): stdout.write(display(bg=c)) stdout.move('down',4) except KeyboardInterrupt: stdout.write(display('default')) print print "Interupt from keyboard. Exiting."
#!/usr/bin/env python """Outputs something like: spaand eggs george """ from terminate.term import stdout stdout.write('spam') stdout.move('left') stdout.write('and') stdout.move('right') stdout.write('eggs') stdout.move('left',3) stdout.move('down') stdout.write('george') print # trailing newline
#!/usr/bin/env python """Outputs something like: spaand eggs george """ from terminate.term import stdout stdout.write('spam') stdout.move('left') stdout.write('and') stdout.move('right') stdout.write('eggs') stdout.move('left', 3) stdout.move('down') stdout.write('george') print # trailing newline
#!/usr/bin/env python """I am *not* responsible if this causes severe physical or mental injury """ from terminate.term import display, stdout, Magic try: while True: for c in Magic.COLORS.iterkeys(): stdout.write(display(bg=c)) stdout.move('down', 4) except KeyboardInterrupt: stdout.write(display('default')) print print "Interupt from keyboard. Exiting."