aboutsummaryrefslogtreecommitdiffstats
path: root/src/keydis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keydis.c')
-rw-r--r--src/keydis.c52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/keydis.c b/src/keydis.c
index 9a7bd45..27140ec 100644
--- a/src/keydis.c
+++ b/src/keydis.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.6 2008/02/28 12:12:25 james
+ * *** empty log message ***
+ *
* Revision 1.5 2008/02/23 11:48:37 james
* *** empty log message ***
*
@@ -116,6 +119,30 @@ keydis_ipc_hangup (KeyDis * _t, Context * c)
return 0;
}
+
+static int
+keydis_ipc_set_size (KeyDis * _t, Context * c,int w,int h)
+{
+CRT_Pos p={w,h};
+
+ KeyDis_IPC *t = (KeyDis_IPC *) _t;
+
+ ipc_msg_send_setsize (t->s,p);
+
+ return 0;
+}
+
+
+static int
+keydis_ipc_reset (KeyDis * _t, Context * c)
+{
+ KeyDis_IPC *t = (KeyDis_IPC *) _t;
+
+ ipc_msg_send_reset (t->s);
+
+ return 0;
+}
+
static int
keydis_vt102_key (KeyDis * _t, Context * c, int key)
{
@@ -179,6 +206,27 @@ keydis_vt102_hangup (KeyDis * _t, Context * c)
return 0;
}
+static int
+keydis_vt102_set_size (KeyDis * _t, Context * c,int w, int h)
+{
+ KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
+ CRT_Pos p={w,h};
+
+ vt102_resize(c,p);
+
+ return 0;
+}
+
+static int
+keydis_vt102_reset (KeyDis * _t, Context * c)
+{
+ KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
+
+ vt102_reset (c);
+
+ return 0;
+}
+
KeyDis *
@@ -192,6 +240,8 @@ keydis_vt102_new (void)
t->set_flow = keydis_vt102_set_flow;
t->set_ansi = keydis_vt102_set_ansi;
t->hangup = keydis_vt102_hangup;
+ t->set_size = keydis_vt102_set_size;
+ t->reset = keydis_vt102_reset;
return (KeyDis *) t;
}
@@ -207,6 +257,8 @@ keydis_ipc_new (Socket * s)
t->set_flow = keydis_ipc_set_flow;
t->set_ansi = keydis_ipc_set_ansi;
t->hangup = keydis_ipc_hangup;
+ t->set_size = keydis_ipc_set_size;
+ t->reset = keydis_ipc_reset;
t->s = s;
return (KeyDis *) t;
}