public write(text as String) as Void:
Writes text to the terminal input stream.
text
pty.write("print(2 + 3)\n")