--- np2/x11/cmserial.c 2004/06/17 14:28:39 1.2 +++ np2/x11/cmserial.c 2007/01/21 00:03:02 1.4 @@ -1,4 +1,4 @@ -/* $Id: cmserial.c,v 1.2 2004/06/17 14:28:39 monaka Exp $ */ +/* $Id: cmserial.c,v 1.4 2007/01/21 00:03:02 monaka Exp $ */ /* * Copyright (c) 2004 NONAKA Kimihiro @@ -12,8 +12,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -334,9 +332,8 @@ cmserial_create(UINT port, BYTE param, U /* set misc flag */ cfmakeraw(&options); - options.c_cflag |= CLOCAL | CREAD; /* enable recv and local mode */ - options.c_cflag |= CRTSCTS; /* hard flow */ - options.c_iflag |= ~(IXON | IXOFF); + options.c_cflag |= CLOCAL | CREAD; + options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG); #if defined(SERIAL_DEBUG) print_status(&options);