aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorstaffcvs <>2008-02-23 13:05:58 +0000
committerstaffcvs <>2008-02-23 13:05:58 +0000
commit667353b64b552aff9e785a20ee915fb343a0dac9 (patch)
tree3280757c1de4b64cac357a207160fe794e70f275 /src/util.c
parentfc338d9b30500f311d9555545477e4ba1775b403 (diff)
downloadsympathy-667353b64b552aff9e785a20ee915fb343a0dac9.tar.gz
sympathy-667353b64b552aff9e785a20ee915fb343a0dac9.tar.bz2
sympathy-667353b64b552aff9e785a20ee915fb343a0dac9.zip
*** empty log message ***
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/util.c b/src/util.c
index 0a74869..ba1e309 100644
--- a/src/util.c
+++ b/src/util.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.4 2008/02/23 13:05:58 staffcvs
+ * *** empty log message ***
+ *
* Revision 1.3 2008/02/13 16:57:29 james
* *** empty log message ***
*
@@ -79,10 +82,13 @@ void
raw_termios (struct termios *termios)
{
- termios->c_iflag = ICRNL | IXON;
- termios->c_oflag = OPOST | ONLCR | NL0 | CR0 | TAB0 | BS0 | VT0 | FF0;
- termios->c_lflag =
+ termios->c_iflag = 0;
+/*ICRNL | IXON;*/
+ termios->c_oflag = NL0 | CR0 | TAB0 | BS0 | VT0 | FF0;
+ termios->c_lflag = 0;
+/*
ISIG | ICANON | IEXTEN | ECHO | ECHOE | ECHOK | ECHOCTL | ECHOKE;
+*/
termios->c_cc[VINTR] = 003;
termios->c_cc[VQUIT] = 034;
@@ -105,12 +111,13 @@ void
default_termios (struct termios *termios)
{
- memset (termios, 0, sizeof (termios));
+// memset (termios, 0, sizeof (termios));
raw_termios (termios);
termios->c_cflag = CS8 | CREAD | CLOCAL;
+ termios->c_iflag |= PARMRK | INPCK;
- cfsetispeed (termios, B9600);
- cfsetospeed (termios, B9600);
+ //cfsetispeed (termios, B9600);
+ //cfsetospeed (termios, B9600);
}