diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-07-23 12:48:18 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-07-23 12:48:18 +0000 |
commit | b72f9bea434f4ed4d8049ca7ec0d041d03bfecd6 (patch) | |
tree | ffe70179927a0ba7ce03677f06f38f99a5e6b5fb /tty-write.c | |
parent | 9c6fa9085735d800643e2052a6d0d34ae4ee1344 (diff) | |
download | rtmux-b72f9bea434f4ed4d8049ca7ec0d041d03bfecd6.tar.gz rtmux-b72f9bea434f4ed4d8049ca7ec0d041d03bfecd6.tar.bz2 rtmux-b72f9bea434f4ed4d8049ca7ec0d041d03bfecd6.zip |
Sync OpenBSD patchset 162:
More tty code tidying: move the saved cursor/region position (from before the
screen was updated) out of struct screen and into struct tty_ctx.
Diffstat (limited to 'tty-write.c')
-rw-r--r-- | tty-write.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/tty-write.c b/tty-write.c index a74b6722..7072c4ad 100644 --- a/tty-write.c +++ b/tty-write.c @@ -1,4 +1,4 @@ -/* $Id: tty-write.c,v 1.21 2009-07-23 12:38:01 tcunha Exp $ */ +/* $Id: tty-write.c,v 1.22 2009-07-23 12:48:18 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -18,43 +18,9 @@ #include <sys/types.h> -#include <string.h> - #include "tmux.h" void -tty_write0(struct window_pane *wp, tty_cmd_func *cmdfn) -{ - struct tty_ctx ctx; - - memset(&ctx, 0, sizeof ctx); - ctx.wp = wp; - tty_write(cmdfn, &ctx); -} - -void -tty_writenum(struct window_pane *wp, tty_cmd_func *cmdfn, u_int num) -{ - struct tty_ctx ctx; - - memset(&ctx, 0, sizeof ctx); - ctx.wp = wp; - ctx.num = num; - tty_write(cmdfn, &ctx); -} - -void -tty_writeptr(struct window_pane *wp, tty_cmd_func *cmdfn, void *ptr) -{ - struct tty_ctx ctx; - - memset(&ctx, 0, sizeof ctx); - ctx.wp = wp; - ctx.ptr = ptr; - tty_write(cmdfn, &ctx); -} - -void tty_write(tty_cmd_func *cmdfn, struct tty_ctx *ctx) { struct window_pane *wp = ctx->wp; |