# $Id$
#
# $Log$
+# Revision 1.11 2008/02/14 01:55:57 james
+# *** empty log message ***
+#
# Revision 1.10 2008/02/13 18:05:06 james
# *** empty log message ***
#
INCLUDES=
-PROJECTHDRS= crt.h tty.h ansi.h vt102.h keys.h history.h ring.h slide.h log.h ipc.h context.h symsocket.h prototypes.h
+PROJECTHDRS= crt.h tty.h ansi.h vt102.h keys.h history.h ring.h slide.h log.h ipc.h symsocket.h term.h context.h prototypes.h
HDRS=project.h
-SRCS=ansi.c crt.c html.c libsympathy.c render.c version.c vt102.c tty.c \
+SRCS=ansi.c crt.c html.c libsympathy.c render.c version.c vt102.c tty.c term.c \
history.c ring.c ptty.c terminal.c util.c log.c ipc.c slide.c symsocket.c
CPROTO=cproto
/*
* $Log$
+ * Revision 1.20 2008/02/14 01:55:57 james
+ * *** empty log message ***
+ *
* Revision 1.19 2008/02/13 16:57:29 james
* *** empty log message ***
*
for (i = 0; i < p->escape_ptr; ++i)
{
- vt102_send (c, p->escape_buf[i]);
+ term_send (c, p->escape_buf[i]);
}
p->escape_ptr = 0;
if ((p->escape_buf[2] >= 'A') || (p->escape_buf[2] <= 'Z'))
{
- vt102_send (c, KEY_UP + (p->escape_buf[2] - 'A'));
+ term_send (c, KEY_UP + (p->escape_buf[2] - 'A'));
}
else if ((p->escape_buf[2] >= 'a') || (p->escape_buf[2] <= 'z'))
{
- vt102_send (c, KEY_154 + (p->escape_buf[2] - 'a'));
+ term_send (c, KEY_154 + (p->escape_buf[2] - 'a'));
}
else
{
}
if ((p->escape_buf[2] >= '0') || (p->escape_buf[2] <= '9'))
{
- vt102_send (c, KEY_180 + (p->escape_buf[2] - '0'));
+ term_send (c, KEY_180 + (p->escape_buf[2] - '0'));
}
else
{
}
else
{
- vt102_send (c, ch);
+ term_send (c, ch);
}
}
/*
* $Log$
+ * Revision 1.4 2008/02/14 01:55:57 james
+ * *** empty log message ***
+ *
* Revision 1.3 2008/02/13 09:12:21 james
* *** empty log message ***
*
TTY *t;
History *h;
Log *l;
+ Term *r;
} Context;
#endif /* __CONTEXT_H__ */
--- /dev/null
+/*
+ * term.c:
+ *
+ * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
+ * All rights reserved.
+ *
+ */
+
+static char rcsid[] = "$Id$";
+
+/*
+ * $Log$
+ * Revision 1.1 2008/02/14 01:55:57 james
+ * *** empty log message ***
+ *
+ */
+
--- /dev/null
+/*
+ * term.h:
+ *
+ * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
+ * All rights reserved.
+ *
+ */
+
+/*
+ * $Id$
+ */
+
+/*
+ * $Log$
+ * Revision 1.1 2008/02/14 01:55:57 james
+ * *** empty log message ***
+ *
+ */
+
+#ifndef __TERM_H__
+#define __TERM_H__
+
+#endif /* __TERM_H__ */
/*
* $Log$
+ * 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)
{
/*
* $Log$
+ * Revision 1.26 2008/02/14 01:55:57 james
+ * *** empty log message ***
+ *
* Revision 1.25 2008/02/13 16:57:29 james
* *** empty log message ***
*
vt102_send (Context * c, uint8_t key)
{
uint8_t ch;
+
+ if (!c->t) return;
+
#if 0
fprintf (stderr, "vts: %d(%c)\n", key, (key > 31) ? key : ' ');
#endif