Using pseudo-terminals (pty) to control interactive programs · HackerTrans