diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-12 18:22:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-12 18:22:47 +0000 |
commit | 7cd3cf0eada8513907cd1cc78d7669752235f419 (patch) | |
tree | 387f8f8c1a2976775cd6718812010130d9e27676 /tmux.h | |
parent | 440a84b2aa0457f9d94903f04055c1b662d41fbc (diff) | |
download | rtmux-7cd3cf0eada8513907cd1cc78d7669752235f419.tar.gz rtmux-7cd3cf0eada8513907cd1cc78d7669752235f419.tar.bz2 rtmux-7cd3cf0eada8513907cd1cc78d7669752235f419.zip |
Make the window pane code handle panes of different sizes, and add a -l and -p arguments to split-window to specify the new window size in lines or as a percentage.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.224 2009-01-11 23:41:29 nicm Exp $ */ +/* $Id: tmux.h,v 1.225 2009-01-12 18:22:47 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -19,7 +19,7 @@ #ifndef TMUX_H #define TMUX_H -#define PROTOCOL_VERSION -6 +#define PROTOCOL_VERSION -7 /* Shut up gcc warnings about empty if bodies. */ #define RB_AUGMENT(x) do {} while (0) @@ -121,6 +121,9 @@ extern const char *__progname; /* Default prompt history length. */ #define PROMPT_HISTORY 100 +/* Default environment. */ +#define CHILD_ENVIRON { NULL /* TMUX= */, "TERM=screen", NULL } + /* Fatal errors. */ #define fatal(msg) log_fatal("%s: %s", __func__, msg); #define fatalx(msg) log_fatalx("%s: %s", __func__, msg); @@ -570,6 +573,11 @@ struct window_mode { /* Child window structure. */ struct window_pane { struct window *window; + + u_int sx; + u_int sy; + + u_int yoff; char *cmd; char *cwd; @@ -1353,12 +1361,15 @@ struct window *window_create(const char *, const char *, const char *, const char **, u_int, u_int, u_int); void window_destroy(struct window *); int window_resize(struct window *, u_int, u_int); +int window_add_pane(struct window *, + u_int, const char *, const char *, const char **, u_int); int window_remove_pane(struct window *, int); struct window_pane *window_pane_create(struct window *, u_int, u_int, u_int); void window_pane_destroy(struct window_pane *); int window_pane_spawn(struct window_pane *, const char *, const char *, const char **); int window_pane_resize(struct window_pane *, u_int, u_int); +void window_calculate_sizes(struct window *); int window_pane_set_mode( struct window_pane *, const struct window_mode *); void window_pane_reset_mode(struct window_pane *); |