aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h53
1 files changed, 25 insertions, 28 deletions
diff --git a/tmux.h b/tmux.h
index a81c0b44..6e6f0c9b 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.547 2010-03-08 15:02:07 tcunha Exp $ */
+/* $Id: tmux.h,v 1.548 2010-03-15 12:51:23 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -718,43 +718,36 @@ struct screen_write_ctx {
#define screen_hsize(s) ((s)->grid->hsize)
#define screen_hlimit(s) ((s)->grid->hlimit)
-/* Input parser sequence argument. */
-struct input_arg {
- u_char data[64];
- size_t used;
-};
-
/* Input parser context. */
struct input_ctx {
- struct window_pane *wp;
+ struct window_pane *wp;
struct screen_write_ctx ctx;
- u_char *buf;
- size_t len;
- size_t off;
- size_t was;
+ struct grid_cell cell;
- struct grid_cell cell;
+ struct grid_cell old_cell;
+ u_int old_cx;
+ u_int old_cy;
- struct grid_cell saved_cell;
- u_int saved_cx;
- u_int saved_cy;
+ u_char interm_buf[4];
+ size_t interm_len;
+
+ u_char param_buf[64];
+ size_t param_len;
+
+ u_char input_buf[256];
+ size_t input_len;
-#define MAXSTRINGLEN 1024
- u_char *string_buf;
- size_t string_len;
- int string_type;
-#define STRING_SYSTEM 0
-#define STRING_APPLICATION 1
-#define STRING_NAME 2
+ int param_list[24]; /* -1 not present */
+ u_int param_list_len;
- struct utf8_data utf8data;
+ struct utf8_data utf8data;
- u_char intermediate;
- void *(*state)(u_char, struct input_ctx *);
+ int ch;
+ int flags;
+#define INPUT_DISCARD 0x1
- u_char private;
- ARRAY_DECL(, struct input_arg) args;
+ const struct input_state *state;
};
/*
@@ -1824,6 +1817,10 @@ int window_pane_spawn(struct window_pane *, const char *,
const char *, const char *, struct environ *,
struct termios *, char **);
void window_pane_resize(struct window_pane *, u_int, u_int);
+void window_pane_alternate_on(
+ struct window_pane *, struct grid_cell *);
+void window_pane_alternate_off(
+ struct window_pane *, struct grid_cell *);
int window_pane_set_mode(
struct window_pane *, const struct window_mode *);
void window_pane_reset_mode(struct window_pane *);