pty seems like the wrong tool?
h
pty seems like the wrong tool?