renaming ansi library, thers another with the same generic name
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
import sys, os
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
||||
import ansi
|
||||
import ansicodes
|
||||
from argparse import ArgumentParser
|
||||
|
||||
def setup_options():
|
||||
@@ -22,7 +22,7 @@ def setup_options():
|
||||
return opts
|
||||
|
||||
def long_format(table):
|
||||
bc = ansi.code()
|
||||
bc = ansicodes.code()
|
||||
for x,col in enumerate(table):
|
||||
for y,row in enumerate(col):
|
||||
bc.posprint(
|
||||
@@ -35,7 +35,7 @@ def long_format(table):
|
||||
|
||||
|
||||
def short_format(table):
|
||||
bc = ansi.code()
|
||||
bc = ansicodes.code()
|
||||
for x,col in enumerate(table):
|
||||
for y,row in enumerate(col):
|
||||
bc.posprint(
|
||||
@@ -57,7 +57,7 @@ if __name__ == "__main__":
|
||||
#sys.stdout.write(chr(c).decode('latin1'))
|
||||
# remove control chars
|
||||
table.pop(0)
|
||||
bc = ansi.code()
|
||||
bc = ansicodes.code()
|
||||
bc.clear()
|
||||
if opts.v:
|
||||
lines = int(25 - len(opts.cs)/2 - 2)
|
||||
|
||||
Reference in New Issue
Block a user