renaming ansi library, thers another with the same generic name

This commit is contained in:
q
2019-02-24 08:24:30 +02:00
parent 26c22cafbf
commit 412339e35e
7 changed files with 11 additions and 11 deletions

View File

@@ -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)

View File

@@ -5,7 +5,7 @@ set -x
rm -rf markslider
mkdir -p markslider/scripts markslider/markslider
cp -v ansi.py md_color.py markslider.py markslider/markslider/
cp -v ansicodes.py md_color.py markslider.py markslider/markslider/
echo '#!/usr/bin/env python
# -*- coding: utf-8 -*-

View File

@@ -26,7 +26,7 @@ import sys,os,argparse,re,datetime
from argparse import ArgumentParser
import traceback,tty,termios,subprocess,signal
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import ansi,md_color
import ansicodes, md_color
HL=">"
EOS="# End of Slides"
@@ -745,7 +745,7 @@ def main():
global bc
global getch
global opts
bc = ansi.code()
bc = ansicodes.code()
getch = getch()
opts = setup_options()
if opts.screenshots:

View File

@@ -3,7 +3,7 @@
import sys,os,re
from argparse import ArgumentParser, RawDescriptionHelpFormatter
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import ansi
import ansicodes as ansi
__author__ = "Ville Rantanen <ville.q.rantanen@gmail.com>"
__version__ = "0.3"

View File

@@ -25,7 +25,7 @@ __version__ = "0.1"
import sys,os,argparse,re
from argparse import ArgumentParser
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import ansi
import ansicodes as ansi
def setup_options():
''' Create command line options '''