7x\x1b bug fixed
This commit is contained in:
12
dr1p4ns1.py
12
dr1p4ns1.py
@@ -100,6 +100,7 @@ def getfiles(argv=""):
|
||||
class D:
|
||||
def __init__(self):
|
||||
self.delay=FLOODRATE_INTERVAL_SECONDS
|
||||
self.correct=0
|
||||
########################################################################################################## CLASS DR1P4NS1 - 2
|
||||
|
||||
class dr1p4ns1:
|
||||
@@ -631,11 +632,14 @@ class UI:
|
||||
sleep(1)
|
||||
break
|
||||
print(f'{C}loading{B}: {S}{self.files[index]}')
|
||||
d=dr1p4ns1(ansifile=self.files[index],width=80,debug=False)
|
||||
try:
|
||||
d=dr1p4ns1(ansifile=self.files[index],width=80,debug=False)
|
||||
except:
|
||||
pass
|
||||
decoder=ANSIDecoder(self.files[index],d.width)
|
||||
print('\x1bc')
|
||||
decoder.as_terminal()
|
||||
except:
|
||||
except
|
||||
pass
|
||||
elif k == 'right':
|
||||
index+=1
|
||||
@@ -1240,7 +1244,7 @@ class ANSIDecoder:
|
||||
if __name__=="__main__":
|
||||
dr1p=D()
|
||||
FIFO_ENABLED = os.path.exists(FIFO_PATH)
|
||||
files = getfiles(sys.argv)
|
||||
ui = UI(files)
|
||||
dr1p.files = getfiles(sys.argv)
|
||||
ui = UI(dr1p.files)
|
||||
#################################################################################################### #######################
|
||||
########################################################################################### dr1p4ns1 version 2.666 ##### EOF
|
||||
Reference in New Issue
Block a user