библиотека программных диалогов с интерактивными программами (programmed dialogue library with interactive programs)
SLAVE CONTROL
void
exp_slave_control(fd,enable)
int fd;
int enable;
Pty trapping is normally done automatically by the expect
functions. However, if you want to issue an ioctl, for example,
directly on the slave device, you should temporary disable
trapping.
Pty trapping can be controlled with exp_slave_control. The first
argument is the file descriptor corresponding to the spawned
process. The second argument is a 0 if trapping is to be
disabled and 1 if it is to be enabled.