v2.2
This commit is contained in:
@@ -664,7 +664,7 @@ class UI:
|
|||||||
print('\x1bc')
|
print('\x1bc')
|
||||||
decoder.as_terminal()
|
decoder.as_terminal()
|
||||||
elif k == 'q':
|
elif k == 'q':
|
||||||
self.QUEUE.append(self.files[index])
|
self.QUEUE.append((self.files[index],d.width))
|
||||||
print(f'{C}{self.files[index]} {B}added to pumpqueue')
|
print(f'{C}{self.files[index]} {B}added to pumpqueue')
|
||||||
sleep(1)
|
sleep(1)
|
||||||
print('\x1bc')
|
print('\x1bc')
|
||||||
@@ -675,10 +675,10 @@ class UI:
|
|||||||
if FIFO_ENABLED:
|
if FIFO_ENABLED:
|
||||||
if len(self.QUEUE) > 0:
|
if len(self.QUEUE) > 0:
|
||||||
self.QUEUE.reverse()
|
self.QUEUE.reverse()
|
||||||
buffer=self.QUEUE[-1]
|
buffer_filename, buffer_width=self.QUEUE[-1]
|
||||||
self.QUEUE.pop()
|
self.QUEUE.pop()
|
||||||
self.QUEUE.reverse()
|
self.QUEUE.reverse()
|
||||||
decoder=ANSIDecoder(buffer,d.width)
|
decoder=ANSIDecoder(buffer_filename,buffer_width)
|
||||||
PMSG=f'{M}pump: pumped from pumpqueue {C}{self.files[index]} {M}to fifo - {C}{FIFO_PATH}'
|
PMSG=f'{M}pump: pumped from pumpqueue {C}{self.files[index]} {M}to fifo - {C}{FIFO_PATH}'
|
||||||
else:
|
else:
|
||||||
decoder=ANSIDecoder(self.files[index],d.width)
|
decoder=ANSIDecoder(self.files[index],d.width)
|
||||||
@@ -1148,7 +1148,7 @@ class ANSIDecoder:
|
|||||||
self.output_lines=[]
|
self.output_lines=[]
|
||||||
self.as_irc_lines()
|
self.as_irc_lines()
|
||||||
for _ in self.output_lines:
|
for _ in self.output_lines:
|
||||||
self.fifo(_)
|
self.fifo(_[:137])
|
||||||
################################################################################################### RE-ENCODING ENCODINGS
|
################################################################################################### RE-ENCODING ENCODINGS
|
||||||
def as_terminal_lines(self):
|
def as_terminal_lines(self):
|
||||||
default_fg=7
|
default_fg=7
|
||||||
|
|||||||
Reference in New Issue
Block a user