Using pseudo-terminals (pty) to control interactive programs | Hacker News Reader