hai,
could any one explian me abt this function and what it does?
i found it in a program so i am posting it as it is.
void setraw(struct termio &tty) { struct termio oldtty; oldtty = tty; oldtty.c_lflag &= ~ICANON; oldtty.c_lflag &= ~ECHO; oldtty.c_cc[VTIME] = 0; oldtty.c_cc[VMIN] = 1; ioctl(0, TCSETA, &oldtty); } void setcanon(struct termio &tty) { ioctl(0, TCSETA, &tty); }
thanks in advance.
BYE
Dinnu.
could any one explian me abt this function and what it does?
i found it in a program so i am posting it as it is.
void setraw(struct termio &tty) { struct termio oldtty; oldtty = tty; oldtty.c_lflag &= ~ICANON; oldtty.c_lflag &= ~ECHO; oldtty.c_cc[VTIME] = 0; oldtty.c_cc[VMIN] = 1; ioctl(0, TCSETA, &oldtty); } void setcanon(struct termio &tty) { ioctl(0, TCSETA, &tty); }
thanks in advance.
BYE
Dinnu.
Comment