From 76c8a590db14131928f79123adcab934a3825501 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 27 Nov 2007 19:23:34 +0000 Subject: Big internal reorganisation to move tty control into parent. --- input-keys.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'input-keys.c') 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 @@ -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; } } -- cgit