On linux, I am opening a pseudo tty on the master side. While there is no client on the slave side, the pseudo tty seems to be echoing everything I am writing to him, which is n
None of the older answers provided the correct C code, so here it is:
struct termios tmios; tcgetattr(ptfd, &tmios); tmios.c_lflag &= ~(ECHO); tcsetattr(ptfd, TCSANOW, &tmios);