aboutsummaryrefslogtreecommitdiffstats
path: root/src/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/tty.c b/src/tty.c
index e38ee51..72b31a1 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.5 2008/02/13 16:57:29 james
+ * *** empty log message ***
+ *
* Revision 1.4 2008/02/12 22:36:46 james
* *** empty log message ***
*
@@ -17,3 +20,27 @@ static char rcsid[] = "$Id$";
* *** empty log message ***
*
*/
+
+
+
+
+void
+tty_pre_select (TTY * t, fd_set * rfds, fd_set * wfds)
+{
+ FD_SET (t->rfd, &rfds);
+}
+
+#if 0
+int
+tty_post_select (Context * c, fd_set * rfds, fd_set * wfds)
+{
+
+ if (FD_ISSET (c->t->rfd, rfds))
+ {
+ if (vt102_dispatch (&c))
+ return -1;
+ }
+ return 0;
+}
+
+#endif