123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #ifndef WINDOW_COPY_H
- #define WINDOW_COPY_H
- #include "tmux.h"
- enum window_copy_input_type {
- WINDOW_COPY_OFF,
- WINDOW_COPY_NAMEDBUFFER,
- WINDOW_COPY_NUMERICPREFIX,
- WINDOW_COPY_SEARCHUP,
- WINDOW_COPY_SEARCHDOWN,
- WINDOW_COPY_JUMPFORWARD,
- WINDOW_COPY_JUMPBACK,
- WINDOW_COPY_JUMPTOFORWARD,
- WINDOW_COPY_JUMPTOBACK,
- WINDOW_COPY_GOTOLINE,
- #ifdef TMATE
- WINDOW_COPY_PASSWORD,
- #endif
- };
- #ifdef TMATE
- typedef void (*copy_password_callback)(const char *password, void *private);
- #endif
- struct window_copy_mode_data {
- struct screen screen;
- struct screen *backing;
- int backing_written;
- struct mode_key_data mdata;
- u_int oy;
- u_int selx;
- u_int sely;
- int rectflag;
- int scroll_exit;
- u_int cx;
- u_int cy;
- u_int lastcx;
- u_int lastsx;
- enum window_copy_input_type inputtype;
- const char *inputprompt;
- char *inputstr;
- int inputexit;
- int numprefix;
- enum window_copy_input_type searchtype;
- char *searchstr;
- enum window_copy_input_type jumptype;
- char jumpchar;
- #ifdef TMATE
- copy_password_callback password_cb;
- void *password_cb_private;
- #endif
- };
- extern int window_copy_update_selection(struct window_pane *, int);
- extern void window_copy_redraw_screen(struct window_pane *);
- #endif
|