diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-12-06 09:46:23 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-12-06 09:46:23 +0000 |
commit | 103748d6adfe1b2d706cb0a1e1a128be5366d655 (patch) | |
tree | b9d4feef5012083d9c0ba96693322286645a27a3 /tty-write.c | |
parent | 6f142e9ac61783e79c27e56ed6aa2fc7ff13683d (diff) |
Major reorganisation of screen handling.
Diffstat (limited to 'tty-write.c')
-rw-r--r-- | tty-write.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tty-write.c b/tty-write.c index e796b3e1..a58f1b2e 100644 --- a/tty-write.c +++ b/tty-write.c @@ -1,4 +1,4 @@ -/* $Id: tty-write.c,v 1.1 2007-11-27 19:23:34 nicm Exp $ */ +/* $Id: tty-write.c,v 1.2 2007-12-06 09:46:23 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -24,8 +24,7 @@ void tty_write_client(void *ptr, int cmd, ...) { struct client *c = ptr; - - va_list ap; + va_list ap; va_start(ap, cmd); tty_vwrite_client(c, cmd, ap); @@ -36,8 +35,9 @@ void tty_vwrite_client(void *ptr, int cmd, va_list ap) { struct client *c = ptr; + struct screen *s = c->session->curw->window->screen; - tty_vwrite(&c->tty, cmd, ap); + tty_vwrite(&c->tty, s, cmd, ap); } void @@ -58,7 +58,7 @@ tty_vwrite_window(void *ptr, int cmd, va_list ap) va_list aq; u_int i; - if (w->screen.mode & MODE_HIDDEN) + if (w->flags & WINDOW_HIDDEN) return; for (i = 0; i < ARRAY_LENGTH(&clients); i++) { @@ -68,8 +68,8 @@ tty_vwrite_window(void *ptr, int cmd, va_list ap) if (c->session->curw->window != w) continue; - va_copy(aq, ap); - tty_vwrite(&c->tty, cmd, aq); + va_copy(aq, ap); + tty_vwrite_client(c, cmd, aq); va_end(aq); } } @@ -101,7 +101,7 @@ tty_vwrite_session(void *ptr, int cmd, va_list ap) continue; va_copy(aq, ap); - tty_vwrite(&c->tty, cmd, aq); + tty_vwrite_client(c, cmd, aq); va_end(aq); } } |