aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-11 06:50:16 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-11 06:50:16 +0000
commite444b0b92ac9ce4e6aabeef48707e1bc36e0ad13 (patch)
treee8ee2c3da2b14e59f589e02bb6775b2e539444b1 /tty.c
parentc6be7d3ee67fa5034480bf892440be14c8e10d45 (diff)
downloadrtmux-e444b0b92ac9ce4e6aabeef48707e1bc36e0ad13.tar.gz
rtmux-e444b0b92ac9ce4e6aabeef48707e1bc36e0ad13.tar.bz2
rtmux-e444b0b92ac9ce4e6aabeef48707e1bc36e0ad13.zip
Split most of tty_cmd_cell off to tty_cell. First step on making tty_cmd_* take
a window_pane for later use emulating scroll region.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/tty.c b/tty.c
index 83b75929..c24ff6ed 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.65 2009-02-07 00:05:23 nicm Exp $ */
+/* $Id: tty.c,v 1.66 2009-02-11 06:50:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -630,14 +630,22 @@ tty_cmd_clearscreen(
void
tty_cmd_cell(struct tty *tty, struct screen *s, u_int oy, va_list ap)
{
+ struct grid_cell *gc;
+
+ gc = va_arg(ap, struct grid_cell *);
+
+ tty_cell(tty, s, oy, gc);
+}
+
+void
+tty_cell(struct tty *tty, struct screen *s, u_int oy, struct grid_cell *gc)
+{
struct grid_cell *gc;
u_int i, width;
u_char out[4];
tty_cursor(tty, s->cx, s->cy, oy);
- gc = va_arg(ap, struct grid_cell *);
-
/* If this is a padding character, do nothing. */
if (gc->flags & GRID_FLAG_PADDING)
return;