Live data from Hacker News

Using Pseudo-Terminals to Control Interactive Programs (2010)

rachid.koucha.free.fr

1–10 of 11 posts

Re: Using Pseudo-Terminals to Control Interactive Programs (2010)

#6

The problems that are solved by PTYs finally "clicked" for me when I read their example of the problematic fseek/flushing. I hadn't seen such a cogent expiation until now.

True, but be warned, that fseek is not a real example. You cannot fseek/lseek on character devices. You would have to use a different technique.

Re: Using Pseudo-Terminals to Control Interactive Programs (2010)

#7
For those seeing "Expect" and not knowing what's going on: https://en.wikipedia.org/wiki/Expect

One of Tcl's first "killer apps". Don Libes' (creator of Expect) book "Exploring Expect" is also one of those technical masterpieces that are very enjoyable, entertaining technical reads. Recommended if only for the discussions of terminals and interactive i/o.

[edit: typo/punctuation]

Post reply on HN