aboutsummaryrefslogtreecommitdiff
path: root/tty-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-22 20:53:38 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-22 20:53:38 +0000
commitddad0be5f773978c09e7c86ad79596ce7af9ec71 (patch)
tree31ca49deb0c7507e96dd2cc470e8ebc12afaed87 /tty-write.c
parentbb4bab4c262f3b7b8bc2df8857b417a229c595e1 (diff)
downloadrtmux-ddad0be5f773978c09e7c86ad79596ce7af9ec71.tar.gz
rtmux-ddad0be5f773978c09e7c86ad79596ce7af9ec71.tar.bz2
rtmux-ddad0be5f773978c09e7c86ad79596ce7af9ec71.zip
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.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/tty-write.c b/tty-write.c
index c9bc534e..2d44d7f8 100644
--- a/tty-write.c
+++ b/tty-write.c
@@ -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;