Open ppacory opened 3 years ago
is there a way to write to terminal window layout from python to send command to bash ? something like this: term1 = Terminal(....) term1.write("the command")
perhaps : ....
import sys with open("/dev/pts/1", "wb+", buffering=0) as term: term.write("hello".encode())
under linux : echo 'ls -l' > /dev/pts/1 ...
don't seem to be very clean solution ...
is there a way to write to terminal window layout from python to send command to bash ? something like this: term1 = Terminal(....) term1.write("the command")