public readAvailable() as String
Reads all output currently available without blocking the GUI thread.
Terminal bytes decoded as UTF-8 text. Returns an empty string when no output is available.
chunk = pty.readAvailable()
if chunk != "":
print(chunk)