![]() ![]() readline ()) # Low level usage using the raw `PTY` object from winpty import PTY # Start a new winpty-agent process of size (cols, rows) cols, rows = 80, 25 process = PTY ( cols, rows ) # Spawn a new console process, e.g., CMD process. write ( 'print("hello, world!") \r\n ' ) proc. This implies that using a single object ( winpty.PTY) it is possible to access to all functionality, as it follows: # High level usage using `spawn` from winpty import PtyProcess proc = PtyProcess. Pywinpty offers a single python wrapper around winpty library functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |