I have a C program which works with a normal terminal using this code:
int dtr_rts = TIOCM_DTR | TIOCM_RTS; /* out-of-band signal */ ... int comfd = open(COM_PORT, O_RDWR); ... ioctl(comfd, TIOCMBIS, &dtr_rts);
Now I need to run this program on a pseudo-terminal. How do I read DTR/RTS on master side? Is DTR/RTS set to
1 or to
0 by default (i.e., on
TIOCMGET ioctl implemented for pseudo-terminals?