import sys
import os

print "CWD:{0}".format(os.getcwd())
print "ARGS:{0}".format(sys.argv[1:])

def print_format_table():
    """
    prints table of formatted text format options
    """
    for style in xrange(8):
        for fg in xrange(30, 38):
            s1 = ''
            for bg in xrange(40, 48):
                format = ';'.join([str(style), str(fg), str(bg)])
                s1 += '\x1b[%sm %s \x1b[0m' % (format, format)
            print s1
        print '\n'

print("BEFORE")

print_format_table()

print("AFTER")
