summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-27 19:23:34 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-27 19:23:34 +0000
commit76c8a590db14131928f79123adcab934a3825501 (patch)
tree359cbfac219a68d5137bd3ec02b31ecb33cbd288 /input-keys.c
parent97eca99d0bae6c4fdfc38a6f42d42f05c8faac4b (diff)
Big internal reorganisation to move tty control into parent.
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/input-keys.c b/input-keys.c
index 1d11893f..4031d381 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -1,4 +1,4 @@
-/* $Id: input-keys.c,v 1.3 2007-11-21 13:11:41 nicm Exp $ */
+/* $Id: input-keys.c,v 1.4 2007-11-27 19:23:33 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -55,13 +55,13 @@ struct {
/* Translate a key code from client into an output key sequence. */
void
-input_key(struct buffer *b, int key)
+input_key(struct window *w, int key)
{
u_int i;
log_debug2("writing key %d", key);
if (key != KEYC_NONE && key >= 0) {
- input_store8(b, key);
+ buffer_write8(w->out, (uint8_t) key);
return;
}
@@ -69,8 +69,8 @@ input_key(struct buffer *b, int key)
if (input_keys[i].key == key) {
log_debug2(
"found key %d: \"%s\"", key, input_keys[i].data);
- buffer_write(
- b, input_keys[i].data, strlen(input_keys[i].data));
+ buffer_write(w->out,
+ input_keys[i].data, strlen(input_keys[i].data));
return;
}
}