1 --- comgt.0.32.orig/comgt.c 2006-10-20 16:49:46.000000000 +0200
2 +++ comgt.0.32/comgt.c 2013-12-28 19:40:28.000000000 +0100
12 @@ -81,7 +81,7 @@ char token[MAXTOKEN]; /* For gettoken(
13 char scriptfile[MAXPATH]; /* Script file name */
14 char scriptfilepath[MAXPATH]; /* temp storage for full path */
15 BOOL verbose=0; /* Log actions */
16 -struct termio cons, stbuf, svbuf; /* termios: svbuf=before, stbuf=while */
17 +struct termios cons, stbuf, svbuf; /* termios: svbuf=before, stbuf=while */
18 int comfd=0; /* Communication file descriptor. Defaults to stdin. */
19 char msg[STRINGL]; /* Massage messages here */
20 int preturn,returns[MAXGOSUBS];
21 @@ -926,7 +926,7 @@ void setcom(void) {
25 - struct termio console;
26 + struct termios console;
29 if(strcmp(token,"echo")==0) {
30 @@ -1281,7 +1281,7 @@ void opengt(void) {
31 parity=stbuf.c_cflag & (PARENB | PARODD);
32 stbuf.c_iflag &= ~(IGNCR | ICRNL | IUCLC | INPCK | IXON | IXANY | IGNPAR );
33 stbuf.c_oflag &= ~(OPOST | OLCUC | OCRNL | ONLCR | ONLRET);
34 - stbuf.c_lflag &= ~(ICANON | XCASE | ECHO | ECHOE | ECHONL);
35 + stbuf.c_lflag &= ~(ICANON | ECHO | ECHOE | ECHONL);
36 stbuf.c_lflag &= ~(ECHO | ECHOE);
38 stbuf.c_cc[VTIME] = 0;
39 @@ -1336,7 +1336,7 @@ void opendevice(void) {
40 parity=stbuf.c_cflag & (PARENB | PARODD);
41 stbuf.c_iflag &= ~(IGNCR | ICRNL | IUCLC | INPCK | IXON | IXANY | IGNPAR );
42 stbuf.c_oflag &= ~(OPOST | OLCUC | OCRNL | ONLCR | ONLRET);
43 - stbuf.c_lflag &= ~(ICANON | XCASE | ECHO | ECHOE | ECHONL);
44 + stbuf.c_lflag &= ~(ICANON | ECHO | ECHOE | ECHONL);
45 stbuf.c_lflag &= ~(ECHO | ECHOE);
47 stbuf.c_cc[VTIME] = 0;