/*
* $Log$
+ * Revision 1.8 2008/02/14 10:39:14 james
+ * *** empty log message ***
+ *
+ * Revision 1.7 2008/02/14 01:55:57 james
+ * *** empty log message ***
+ *
* Revision 1.6 2008/02/14 00:57:58 james
* *** empty log message ***
*
sigaction (SIGINT, &sa, NULL);
}
+
TTY *
terminal_open (int rfd, int wfd)
{
TERMINAL *t;
pid_t child;
- char name[1024];
struct termios termios;
t = (TERMINAL *) malloc (sizeof (TERMINAL));
+ strcpy(t->name,"terminal");
t->rfd = rfd;
t->wfd = wfd;
t->recv = terminal_read;
t->xmit = terminal_write;
t->close = terminal_close;
+ t->blocked = 0;
terminal_getsize ((TTY *) t);