Changeset View
Changeset View
Standalone View
Standalone View
scap/ansi.py
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | def reset(): | ||||
True | True | ||||
:returns: str | :returns: str | ||||
""" | """ | ||||
return esc(RESET_ALL) | return esc(RESET_ALL) | ||||
def logo(eyes=None, color=True, **colors): | def logo(eyes=None, color=True, **colors): | ||||
""" | r""" | ||||
Get the scap logo. | Get the scap logo. | ||||
Scappy the scap pig:: | Scappy the scap pig:: | ||||
___ ____ | ___ ____ | ||||
⎛ ⎛ ,---- | ⎛ ⎛ ,---- | ||||
\ //==--' | \ //==--' | ||||
_//| .·//==--' ____________________________ | _//| .·//==--' ____________________________ | ||||
Show All 33 Lines | def logo(eyes=None, color=True, **colors): | ||||
if not eyes: | if not eyes: | ||||
eyes = 'OO' | eyes = 'OO' | ||||
eyes = eyes[:2] | eyes = eyes[:2] | ||||
pallet['eyes'] = eyes.encode('utf-8') | pallet['eyes'] = eyes.encode('utf-8') | ||||
return ''.join(line % pallet for line in [ | return ''.join(line % pallet for line in [ | ||||
''' %(wing)s___%(reset)s %(wing)s____%(reset)s\n''', | r''' %(wing)s___%(reset)s %(wing)s____%(reset)s\n''', | ||||
''' %(wing)s⎛ ⎛ ,----%(reset)s\n''', | r''' %(wing)s⎛ ⎛ ,----%(reset)s\n''', | ||||
''' %(wing)s\ //==--'%(reset)s\n''', | r''' %(wing)s\ //==--'%(reset)s\n''', | ||||
''' %(pig)s_//|,.·%(wing)s//==--'%(reset)s ''', | r''' %(pig)s_//|,.·%(wing)s//==--'%(reset)s ''', | ||||
'''%(speed)s______%(text)s____''', | r'''%(speed)s______%(text)s____''', | ||||
'''%(speed)s_%(text)s____''', | r'''%(speed)s_%(text)s____''', | ||||
'''%(speed)s___%(text)s____''', | r'''%(speed)s___%(text)s____''', | ||||
'''%(speed)s__%(text)s____%(reset)s\n''', | r'''%(speed)s__%(text)s____%(reset)s\n''', | ||||
r''' %(pig)s_%(goggles)s%(eyes)s≣=-%(pig)s ''', | |||||
''' %(pig)s_%(goggles)s%(eyes)s≣=-%(pig)s ''', | r''' %(wing)s︶%(pig)s %(brand)sᴹw%(pig)s ⎞_§%(reset)s ''', | ||||
''' %(wing)s︶%(pig)s %(brand)sᴹw%(pig)s ⎞_§%(reset)s ''', | r'''%(speed)s______%(text)s ___\ ___\ ,\__ \/ __ \%(reset)s\n''', | ||||
'''%(speed)s______%(text)s ___\ ___\ ,\__ \/ __ \%(reset)s\n''', | r''' %(pig)s(%(nose)s∞%(pig)s)%(mouth)s_,''', | ||||
''' %(pig)s(%(nose)s∞%(pig)s)%(mouth)s_,''', | r'''%(pig)s ) ( |%(reset)s''', | ||||
'''%(pig)s ) ( |%(reset)s''', | r''' %(speed)s______%(text)s/__ \/ /__ / /_/ / /_/ /%(reset)s\n''', | ||||
''' %(speed)s______%(text)s/__ \/ /__ / /_/ / /_/ /%(reset)s\n''', | r''' %(pig)s¨--¨|| |- ( /%(reset)s''', | ||||
''' %(pig)s¨--¨|| |- ( /%(reset)s''', | r''' %(speed)s______%(text)s\____/ \___/ \__^_/ .__/%(reset)s\n''', | ||||
''' %(speed)s______%(text)s\____/ \___/ \__^_/ .__/%(reset)s\n''', | r''' %(hoof)s««%(pig)s_/%(reset)s''', | ||||
''' %(hoof)s««%(pig)s_/%(reset)s''', | r''' %(hoof)s«%(pig)s_/%(reset)s''', | ||||
''' %(hoof)s«%(pig)s_/%(reset)s''', | r''' %(signature)sjgs/bd808%(reset)s''', | ||||
''' %(signature)sjgs/bd808%(reset)s''', | r''' %(text)s/_/%(reset)s\n''', | ||||
''' %(text)s/_/%(reset)s\n''', | |||||
]) | ]) |
Content licensed under Creative Commons Attribution-ShareAlike 3.0 (CC-BY-SA) unless otherwise noted; code licensed under GNU General Public License (GPL) or other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL