Added some debugging

This commit is contained in:
Anton Hvornum 2021-04-04 15:17:33 +02:00
parent 36bc243cf8
commit 918bc95edf
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 8 additions and 1 deletions

View File

@ -166,6 +166,13 @@ class sys_command():#Thread):
except UnicodeDecodeError:
return None
output = output.strip('\r\n ')
if len(output) <= 0:
return None
print([output])
return None
if self.peak_output:
from .user_interaction import get_terminal_width
@ -179,7 +186,7 @@ class sys_command():#Thread):
sys.stdout.flush()
# And print the new output we're peaking on:
sys.stdout.write(output.strip('\r\n '))
sys.stdout.write(output)
sys.stdout.flush()
def run(self):