-memset(termios,0,sizeof(termios));
-
-termios->c_iflag=ICRNL|IXON;
-termios->c_oflag=OPOST | ONLCR | NL0 | CR0 | TAB0 | BS0 | VT0 | FF0;
-termios->c_lflag=ISIG | ICANON | IEXTEN | ECHO | ECHOE | ECHOK | ECHOCTL | ECHOKE;
-
-termios->c_cc[VINTR]=003;
-termios->c_cc[VQUIT]=034;
-termios->c_cc[VERASE]=0177;
-termios->c_cc[VKILL]=025;
-termios->c_cc[VEOF]=004;
-termios->c_cc[VEOL]=0;
-termios->c_cc[VEOL2]=0;
-termios->c_cc[VSTART]=021;
-termios->c_cc[VSTOP]=023;
-termios->c_cc[VSUSP]=032;
-termios->c_cc[VLNEXT]=026;
-termios->c_cc[VWERASE]=027;
-termios->c_cc[VREPRINT]=022;
-termios->c_cc[VDISCARD]=017;
-
-termios->c_cflag=CS8 | CREAD | CLOCAL;
-
-cfsetispeed(termios,B9600);
-cfsetospeed(termios,B9600);
+ memset (termios, 0, sizeof (termios));
+
+ termios->c_iflag = ICRNL | IXON;
+ termios->c_oflag = OPOST | ONLCR | NL0 | CR0 | TAB0 | BS0 | VT0 | FF0;
+ termios->c_lflag =
+ ISIG | ICANON | IEXTEN | ECHO | ECHOE | ECHOK | ECHOCTL | ECHOKE;
+
+ termios->c_cc[VINTR] = 003;
+ termios->c_cc[VQUIT] = 034;
+ termios->c_cc[VERASE] = 0177;
+ termios->c_cc[VKILL] = 025;
+ termios->c_cc[VEOF] = 004;
+ termios->c_cc[VEOL] = 0;
+ termios->c_cc[VEOL2] = 0;
+ termios->c_cc[VSTART] = 021;
+ termios->c_cc[VSTOP] = 023;
+ termios->c_cc[VSUSP] = 032;
+ termios->c_cc[VLNEXT] = 026;
+ termios->c_cc[VWERASE] = 027;
+ termios->c_cc[VREPRINT] = 022;
+ termios->c_cc[VDISCARD] = 017;
+
+ termios->c_cflag = CS8 | CREAD | CLOCAL;
+
+ cfsetispeed (termios, B9600);
+ cfsetospeed (termios, B9600);