コード例 #1
0
ファイル: convulsions.py プロジェクト: Dynado/fabulous
#!/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."
コード例 #2
0
ファイル: move.py プロジェクト: Dynado/fabulous
#!/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
コード例 #3
0
#!/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
コード例 #4
0
ファイル: convulsions.py プロジェクト: laarmen/fabulous
#!/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."