diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-21 22:20:44 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-21 22:20:44 +0000 |
commit | c64cf68244dab6801342d45f78d67a64decc2cae (patch) | |
tree | 5be75be3fdb75eeb3b21eb437702e220ec7bd8df /tmux.h | |
parent | 1e5cb8d2e4511be550a409baa9060bbd16f2de0e (diff) | |
download | rtmux-c64cf68244dab6801342d45f78d67a64decc2cae.tar.gz rtmux-c64cf68244dab6801342d45f78d67a64decc2cae.tar.bz2 rtmux-c64cf68244dab6801342d45f78d67a64decc2cae.zip |
Cut memory consumption by only allocating lines when there is actually data on them, and only as much as the right-most data. Everything else is filled in at runtime.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.91 2007-11-21 20:04:37 nicm Exp $ */ +/* $Id: tmux.h,v 1.92 2007-11-21 22:20:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -61,7 +61,7 @@ extern char *__progname; #define TTY_NAME_MAX 32 #endif -#define MAXTITLELEN 192 +#define MAXTITLELEN 128 /* Fatal errors. */ #define fatal(msg) log_fatal("%s: %s", __func__, msg); @@ -764,6 +764,10 @@ u_char screen_stringcolour(const char *); void screen_create(struct screen *, u_int, u_int); void screen_destroy(struct screen *); void screen_resize(struct screen *, u_int, u_int); +void screen_expand_line(struct screen *, u_int, u_int); +void screen_get_cell( + struct screen *, u_int, u_int, u_char *, u_char *, u_char *); +void screen_set_cell(struct screen *, u_int, u_int, u_char, u_char, u_char); void screen_draw_start(struct screen_draw_ctx *, struct screen *, struct buffer *, u_int, u_int); void screen_draw_stop(struct screen_draw_ctx *); |