diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-22 18:09:43 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-22 18:09:43 +0000 |
commit | 18d72e69289fa3dbdb0766ea7f9c0ff8908626b9 (patch) | |
tree | db3fca1dba3a1041c902764f32b2fcdf2cd915c2 /tmux.h | |
parent | 4930e894c278a9267861ccf3db231d97d2208741 (diff) | |
download | rtmux-18d72e69289fa3dbdb0766ea7f9c0ff8908626b9.tar.gz rtmux-18d72e69289fa3dbdb0766ea7f9c0ff8908626b9.tar.bz2 rtmux-18d72e69289fa3dbdb0766ea7f9c0ff8908626b9.zip |
Partial copy mode. Currently does the same as scroll mode but using a cursor. Also fix bug where resizing would leave crap lying around.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.93 2007-11-22 09:11:20 nicm Exp $ */ +/* $Id: tmux.h,v 1.94 2007-11-22 18:09:43 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -334,14 +334,14 @@ struct msg_resize_data { #define ATTR_ITALICS 0x40 /* Modes. */ -#define MODE_CURSOR 0x01 -#define MODE_INSERT 0x02 -#define MODE_KCURSOR 0x04 -#define MODE_KKEYPAD 0x08 -#define MODE_SAVED 0x10 -#define MODE_HIDDEN 0x20 -#define MODE_BACKGROUND 0x40 -#define MODE_NOCURSOR 0x80 +#define MODE_CURSOR 0x001 +#define MODE_INSERT 0x002 +#define MODE_KCURSOR 0x004 +#define MODE_KKEYPAD 0x008 +#define MODE_SAVED 0x010 +#define MODE_HIDDEN 0x020 +#define MODE_BACKGROUND 0x040 +#define MODE_BGCURSOR 0x080 /* * Virtual screen. This is stored as three blocks of 8-bit values, one for @@ -623,6 +623,7 @@ void cmd_send_string(struct buffer *, const char *); char *cmd_recv_string(struct buffer *); extern const struct cmd_entry cmd_attach_session_entry; extern const struct cmd_entry cmd_bind_key_entry; +extern const struct cmd_entry cmd_copy_mode_entry; extern const struct cmd_entry cmd_detach_client_entry; extern const struct cmd_entry cmd_has_session_entry; extern const struct cmd_entry cmd_kill_session_entry; @@ -766,6 +767,7 @@ 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_reduce_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); @@ -817,6 +819,9 @@ void window_parse(struct window *, struct buffer *); void window_draw(struct window *, struct buffer *, u_int, u_int); void window_key(struct window *, int); +/* window-copy.c */ +extern const struct window_mode window_copy_mode; + /* window-scroll.c */ extern const struct window_mode window_scroll_mode; |