News for hackers. Stuff that matters.
Re:Using Pseudo-Terminals to Control Interactive Programs (2... by jevinskie on Saturday June 10, 2017 @01:30PM (#14528224)
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.
Re:Using Pseudo-Terminals to Control Interactive Programs (2... by drudru11 on Saturday June 10, 2017 @02:31PM (#14528512)
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.