aboutsummaryrefslogtreecommitdiffstats
path: root/src/tty.c
blob: 72b31a12f161cfe615255166559466a585aaeba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * tty.c:
 *
 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
 * All rights reserved.
 *
 */

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 ***
 *
 * Revision 1.3  2008/02/09 15:47:28  james
 * *** 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