Using Pseudo-Terminals to Control Interactive Programs (2010)
rachid.koucha.free.fr
Using Pseudo-Terminals to Control Interactive Programs (2010)
1–10 of 11 posts
Re: Using Pseudo-Terminals to Control Interactive Programs (2010)
#2a less featured expect for some reason
Re: Using Pseudo-Terminals to Control Interactive Programs (2010)
#3The 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 (2010)
#4Controlling a human-interactive program with another program is pounding a screw, but it does work for simple programs.
Re: Using Pseudo-Terminals to Control Interactive Programs (2010)
#5Expect?
Re: Using Pseudo-Terminals to Control Interactive Programs (2010)
#6The 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)
#7For 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]
Re: Using Pseudo-Terminals to Control Interactive Programs (2010)
#8Expect?
Yes.[0]
Re: Using Pseudo-Terminals to Control Interactive Programs (2010)
#9in case not want to install tcl
Re: Using Pseudo-Terminals to Control Interactive Programs (2010)
#10Controlling a human-interactive program with another program is pounding a screw, but it does work for simple programs.
...or the interaction challenges that will give rise to significant advances in AI.