Rectangle copy support, from Robin Lee Powell.

This commit is contained in:
Nicholas Marriott
2010-02-06 17:35:01 +00:00
parent 8aba77b7be
commit 3ef3802629
5 changed files with 181 additions and 58 deletions

6
tmux.h
View File

@ -469,6 +469,7 @@ enum mode_key_cmd {
MODEKEYCOPY_PREVIOUSPAGE,
MODEKEYCOPY_PREVIOUSSPACE,
MODEKEYCOPY_PREVIOUSWORD,
MODEKEYCOPY_RECTANGLETOGGLE,
MODEKEYCOPY_RIGHT,
MODEKEYCOPY_SCROLLDOWN,
MODEKEYCOPY_SCROLLUP,
@ -674,6 +675,7 @@ SLIST_HEAD(joblist, job);
/* Screen selection. */
struct screen_sel {
int flag;
int rectflag;
u_int sx;
u_int sy;
@ -1774,8 +1776,8 @@ void screen_free(struct screen *);
void screen_reset_tabs(struct screen *);
void screen_set_title(struct screen *, const char *);
void screen_resize(struct screen *, u_int, u_int);
void screen_set_selection(
struct screen *, u_int, u_int, u_int, u_int, struct grid_cell *);
void screen_set_selection(struct screen *,
u_int, u_int, u_int, u_int, u_int, struct grid_cell *);
void screen_clear_selection(struct screen *);
int screen_check_selection(struct screen *, u_int, u_int);