This commit is contained in:
decoded
2023-03-28 18:43:53 -05:00
parent 7188ec84fa
commit 5e4e4616bc

View File

@@ -1245,7 +1245,10 @@ class ANSIDecoder:
######################################################################################################################### dr1p4ns1.AUTOQUEUE=[4] #0=index,1=len,2=list,3=filename
def getkeythreaded(self):
tty.setcbreak(sys.stdin.fileno())
try:
print(f'{dr1p4ns1._rgb(55,55,55)}<<<{dr1p4ns1._rgb(155,155,155)} press any key to abort pump {dr1p4ns1._rgb(55,55,55)}>>> {dr1p4ns1._rgb(155,155,155)}-{dr1p4ns1._rgb(200,200,200)} {dr1p4ns1.AUTOQUEUE[0]+1}{dr1p4ns1._rgb(155,155,155)}/{dr1p4ns1._rgb(200,200,200)}{dr1p4ns1.AUTOQUEUE[1]+1}{dr1p4ns1._rgb(155,155,155)}')
except:
print(f'{dr1p4ns1._rgb(55,55,55)}<<<{dr1p4ns1._rgb(155,155,155)} press any key to abort pump {dr1p4ns1._rgb(55,55,55)}>>> {dr1p4ns1._rgb(155,155,155)}')
b = os.read(sys.stdin.fileno(), 3).decode()
if len(b) == 3:
k = ord(b[2])