1998-07-11 17:54:26 +00:00
|
|
|
*** ob/demo/chat/Client.cpp.orig Mon Jun 8 16:55:23 1998
|
|
|
|
--- ob/demo/chat/Client.cpp Tue Jun 23 09:57:59 1998
|
1997-06-04 03:38:53 +00:00
|
|
|
***************
|
1998-07-11 17:54:26 +00:00
|
|
|
*** 42,48 ****
|
|
|
|
#ifdef HAVE_TERMIO_H
|
|
|
|
ioctl(STDIN_FILENO, TCSETA, &TerminalSettings);
|
|
|
|
#else
|
|
|
|
! ioctl(STDIN_FILENO, TCSETS, &TerminalSettings);
|
|
|
|
#endif
|
1997-06-04 03:38:53 +00:00
|
|
|
|
1998-07-11 17:54:26 +00:00
|
|
|
//
|
|
|
|
--- 42,48 ----
|
|
|
|
#ifdef HAVE_TERMIO_H
|
|
|
|
ioctl(STDIN_FILENO, TCSETA, &TerminalSettings);
|
|
|
|
#else
|
|
|
|
! ioctl(STDIN_FILENO, TCSANOW, &TerminalSettings);
|
|
|
|
#endif
|
1997-06-04 03:38:53 +00:00
|
|
|
|
1998-07-11 17:54:26 +00:00
|
|
|
//
|
1997-06-04 03:38:53 +00:00
|
|
|
***************
|
1998-07-11 17:54:26 +00:00
|
|
|
*** 129,136 ****
|
|
|
|
ioctl(STDIN_FILENO, TCGETA, &ctl);
|
|
|
|
#else
|
|
|
|
struct termios ctl;
|
|
|
|
! ioctl(STDIN_FILENO, TCGETS, &TerminalSettings);
|
|
|
|
! ioctl(STDIN_FILENO, TCGETS, &ctl);
|
|
|
|
#endif
|
|
|
|
ctl.c_lflag &= ~(ICANON | ECHO);
|
|
|
|
ctl.c_cc[VMIN] = 1;
|
|
|
|
--- 129,136 ----
|
|
|
|
ioctl(STDIN_FILENO, TCGETA, &ctl);
|
|
|
|
#else
|
|
|
|
struct termios ctl;
|
|
|
|
! tcgetattr(STDIN_FILENO, &TerminalSettings);
|
|
|
|
! tcgetattr(STDIN_FILENO, &ctl);
|
|
|
|
#endif
|
|
|
|
ctl.c_lflag &= ~(ICANON | ECHO);
|
|
|
|
ctl.c_cc[VMIN] = 1;
|
1997-06-04 03:38:53 +00:00
|
|
|
***************
|
1998-07-11 17:54:26 +00:00
|
|
|
*** 138,144 ****
|
|
|
|
#ifdef HAVE_TERMIO_H
|
|
|
|
ioctl(STDIN_FILENO, TCSETA, &ctl);
|
|
|
|
#else
|
|
|
|
! ioctl(STDIN_FILENO, TCSETS, &ctl);
|
|
|
|
#endif
|
1997-06-04 03:38:53 +00:00
|
|
|
|
1998-07-11 17:54:26 +00:00
|
|
|
//
|
|
|
|
--- 138,144 ----
|
|
|
|
#ifdef HAVE_TERMIO_H
|
|
|
|
ioctl(STDIN_FILENO, TCSETA, &ctl);
|
|
|
|
#else
|
|
|
|
! tcsetattr(STDIN_FILENO, TCSANOW, &ctl);
|
|
|
|
#endif
|
1997-06-04 03:38:53 +00:00
|
|
|
|
1998-07-11 17:54:26 +00:00
|
|
|
//
|
1997-06-04 03:38:53 +00:00
|
|
|
***************
|
1998-07-11 17:54:26 +00:00
|
|
|
*** 179,185 ****
|
|
|
|
#ifdef HAVE_TERMIO_H
|
|
|
|
ioctl(STDIN_FILENO, TCSETA, &TerminalSettings);
|
|
|
|
#else
|
|
|
|
! ioctl(STDIN_FILENO, TCSETS, &TerminalSettings);
|
|
|
|
#endif
|
1997-06-04 03:38:53 +00:00
|
|
|
|
1998-07-11 17:54:26 +00:00
|
|
|
return status;
|
|
|
|
--- 179,185 ----
|
|
|
|
#ifdef HAVE_TERMIO_H
|
|
|
|
ioctl(STDIN_FILENO, TCSETA, &TerminalSettings);
|
|
|
|
#else
|
|
|
|
! tcsetattr(STDIN_FILENO, TCSANOW, &TerminalSettings);
|
|
|
|
#endif
|
1997-06-04 03:38:53 +00:00
|
|
|
|
1998-07-11 17:54:26 +00:00
|
|
|
return status;
|