openbsd-ports/x11/xview/config/patches/p-libxview-ttysw-tty_main_c
2010-05-28 01:13:54 +00:00

28 lines
941 B
Plaintext

--- lib/libxview/ttysw/tty_main.c.orig Tue Jun 29 07:17:22 1993
+++ lib/libxview/ttysw/tty_main.c Sun May 23 14:16:14 2010
@@ -75,6 +75,11 @@ static char sccsid[] = "@(#)tty_main.c 20.93 93/06
int committed_left = 0;
#endif
+static int ttysw_process_point();
+static int ttysw_process_adjust();
+static int ttysw_process_motion();
+static int ttysw_process_keyboard();
+
extern Textsw_index textsw_insert();
#ifdef OW_I18N
extern Textsw_index textsw_insert_wcs();
@@ -906,8 +911,12 @@ ttysw_pty_input(ttysw, pty)
if (int_ucntl == (tiocsti & 0xff))
ttysw_process_STI(ttysw, owbp, cc - 1);
+#ifndef XV_USE_TERMIOS
(void) ioctl(ttysw->ttysw_tty, TIOCGETC, &ttysw->tchars);
(void) ioctl(ttysw->ttysw_tty, TIOCGLTC, &ttysw->ltchars);
+#else
+ (void) tcgetattr(ttysw->ttysw_tty, &ttysw->termios);
+#endif
ttysw_getp(TTY_VIEW_HANDLE_FROM_TTY_FOLIO(ttysw)); /* jcb for nng */
} else
#ifdef OW_I18N