Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
executable file 36 lines (26 sloc) 1.277 kB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import with_statement
import sys
import os
sys.path.insert(0, os.path.abspath('..'))
from clint.textui import puts, indent, colored
lorem = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
if __name__ == '__main__':
puts('This is an example of text that is not indented. Awesome, eh?')
puts('Lets quote some text.')
with indent(4, quote=colored.blue('.')):
puts('This is indented text.')
with indent(3, quote=colored.blue(' >')):
puts('This is quoted text.')
puts(colored.green(lorem))
puts("And, we're back to the previous index level. That was easy.")
with indent(12, quote=colored.cyan(' |')):
puts('This is massively indented text.')
puts(colored.magenta('This is massively indented text that\'s colored'))
puts("Now I'll show you how to negatively indent.")
with indent(-5, quote=colored.yellow('!! ')):
puts('NOTE: ' + colored.red('INCEPTION!'))
puts('And back to where we were.')
puts('Back to level 1.')
puts('Back to normal.')
Jump to Line
Something went wrong with that request. Please try again.