tmux  3.2a
About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.
  Fossies Dox: tmux-3.2a.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

window-copy.c File Reference
#include <sys/types.h>
#include <ctype.h>
#include <regex.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "tmux.h"
Include dependency graph for window-copy.c:

Go to the source code of this file.

Data Structures

struct  window_copy_cmd_state
 
struct  window_copy_mode_data
 

Macros

#define WINDOW_COPY_SEARCH_TIMEOUT   10000
 
#define WINDOW_COPY_SEARCH_ALL_TIMEOUT   200
 
#define WINDOW_COPY_DRAG_REPEAT_TIME   50000
 

Enumerations

enum  {
  WINDOW_COPY_OFF , WINDOW_COPY_SEARCHUP , WINDOW_COPY_SEARCHDOWN , WINDOW_COPY_JUMPFORWARD ,
  WINDOW_COPY_JUMPBACKWARD , WINDOW_COPY_JUMPTOFORWARD , WINDOW_COPY_JUMPTOBACKWARD
}
 
enum  { WINDOW_COPY_REL_POS_ABOVE , WINDOW_COPY_REL_POS_ON_SCREEN , WINDOW_COPY_REL_POS_BELOW }
 
enum  window_copy_cmd_action { WINDOW_COPY_CMD_NOTHING , WINDOW_COPY_CMD_REDRAW , WINDOW_COPY_CMD_CANCEL }
 
enum  window_copy_cmd_clear { WINDOW_COPY_CMD_CLEAR_ALWAYS , WINDOW_COPY_CMD_CLEAR_NEVER , WINDOW_COPY_CMD_CLEAR_EMACS_ONLY }
 

Functions

static const char * window_copy_key_table (struct window_mode_entry *)
 
static void window_copy_command (struct window_mode_entry *, struct client *, struct session *, struct winlink *, struct args *, struct mouse_event *)
 
static struct screenwindow_copy_init (struct window_mode_entry *, struct cmd_find_state *, struct args *)
 
static struct screenwindow_copy_view_init (struct window_mode_entry *, struct cmd_find_state *, struct args *)
 
static void window_copy_free (struct window_mode_entry *)
 
static void window_copy_resize (struct window_mode_entry *, u_int, u_int)
 
static void window_copy_formats (struct window_mode_entry *, struct format_tree *)
 
static void window_copy_pageup1 (struct window_mode_entry *, int)
 
static int window_copy_pagedown (struct window_mode_entry *, int, int)
 
static void window_copy_next_paragraph (struct window_mode_entry *)
 
static void window_copy_previous_paragraph (struct window_mode_entry *)
 
static void window_copy_redraw_selection (struct window_mode_entry *, u_int)
 
static void window_copy_redraw_lines (struct window_mode_entry *, u_int, u_int)
 
static void window_copy_redraw_screen (struct window_mode_entry *)
 
static void window_copy_write_line (struct window_mode_entry *, struct screen_write_ctx *, u_int)
 
static void window_copy_write_lines (struct window_mode_entry *, struct screen_write_ctx *, u_int, u_int)
 
static char * window_copy_match_at_cursor (struct window_copy_mode_data *)
 
static void window_copy_scroll_to (struct window_mode_entry *, u_int, u_int, int)
 
static int window_copy_search_compare (struct grid *, u_int, u_int, struct grid *, u_int, int)
 
static int window_copy_search_lr (struct grid *, struct grid *, u_int *, u_int, u_int, u_int, int)
 
static int window_copy_search_rl (struct grid *, struct grid *, u_int *, u_int, u_int, u_int, int)
 
static int window_copy_last_regex (struct grid *, u_int, u_int, u_int, u_int, u_int *, u_int *, const char *, const regex_t *, int)
 
static int window_copy_search_mark_at (struct window_copy_mode_data *, u_int, u_int, u_int *)
 
static char * window_copy_stringify (struct grid *, u_int, u_int, u_int, char *, u_int *)
 
static void window_copy_cstrtocellpos (struct grid *, u_int, u_int *, u_int *, const char *)
 
static int window_copy_search_marks (struct window_mode_entry *, struct screen *, int, int)
 
static void window_copy_clear_marks (struct window_mode_entry *)
 
static int window_copy_is_lowercase (const char *)
 
static void window_copy_search_back_overlap (struct grid *, regex_t *, u_int *, u_int *, u_int *, u_int)
 
static int window_copy_search_jump (struct window_mode_entry *, struct grid *, struct grid *, u_int, u_int, u_int, int, int, int, int)
 
static int window_copy_search (struct window_mode_entry *, int, int)
 
static int window_copy_search_up (struct window_mode_entry *, int)
 
static int window_copy_search_down (struct window_mode_entry *, int)
 
static void window_copy_goto_line (struct window_mode_entry *, const char *)
 
static void window_copy_update_cursor (struct window_mode_entry *, u_int, u_int)
 
static void window_copy_start_selection (struct window_mode_entry *)
 
static int window_copy_adjust_selection (struct window_mode_entry *, u_int *, u_int *)
 
static int window_copy_set_selection (struct window_mode_entry *, int, int)
 
static int window_copy_update_selection (struct window_mode_entry *, int, int)
 
static void window_copy_synchronize_cursor (struct window_mode_entry *, int)
 
static void * window_copy_get_selection (struct window_mode_entry *, size_t *)
 
static void window_copy_copy_buffer (struct window_mode_entry *, const char *, void *, size_t)
 
static void window_copy_pipe (struct window_mode_entry *, struct session *, const char *)
 
static void window_copy_copy_pipe (struct window_mode_entry *, struct session *, const char *, const char *)
 
static void window_copy_copy_selection (struct window_mode_entry *, const char *)
 
static void window_copy_append_selection (struct window_mode_entry *)
 
static void window_copy_clear_selection (struct window_mode_entry *)
 
static void window_copy_copy_line (struct window_mode_entry *, char **, size_t *, u_int, u_int, u_int)
 
static int window_copy_in_set (struct window_mode_entry *, u_int, u_int, const char *)
 
static u_int window_copy_find_length (struct window_mode_entry *, u_int)
 
static void window_copy_cursor_start_of_line (struct window_mode_entry *)
 
static void window_copy_cursor_back_to_indentation (struct window_mode_entry *)
 
static void window_copy_cursor_end_of_line (struct window_mode_entry *)
 
static void window_copy_other_end (struct window_mode_entry *)
 
static void window_copy_cursor_left (struct window_mode_entry *)
 
static void window_copy_cursor_right (struct window_mode_entry *, int)
 
static void window_copy_cursor_up (struct window_mode_entry *, int)
 
static void window_copy_cursor_down (struct window_mode_entry *, int)
 
static void window_copy_cursor_jump (struct window_mode_entry *)
 
static void window_copy_cursor_jump_back (struct window_mode_entry *)
 
static void window_copy_cursor_jump_to (struct window_mode_entry *)
 
static void window_copy_cursor_jump_to_back (struct window_mode_entry *)
 
static void window_copy_cursor_next_word (struct window_mode_entry *, const char *)
 
static void window_copy_cursor_next_word_end_pos (struct window_mode_entry *, const char *, u_int *, u_int *)
 
static void window_copy_cursor_next_word_end (struct window_mode_entry *, const char *, int)
 
static void window_copy_cursor_previous_word_pos (struct window_mode_entry *, const char *, int, u_int *, u_int *)
 
static void window_copy_cursor_previous_word (struct window_mode_entry *, const char *, int)
 
static void window_copy_scroll_up (struct window_mode_entry *, u_int)
 
static void window_copy_scroll_down (struct window_mode_entry *, u_int)
 
static void window_copy_rectangle_set (struct window_mode_entry *, int)
 
static void window_copy_move_mouse (struct mouse_event *)
 
static void window_copy_drag_update (struct client *, struct mouse_event *)
 
static void window_copy_drag_release (struct client *, struct mouse_event *)
 
static void window_copy_jump_to_mark (struct window_mode_entry *)
 
static void window_copy_acquire_cursor_up (struct window_mode_entry *, u_int, u_int, u_int, u_int, u_int)
 
static void window_copy_acquire_cursor_down (struct window_mode_entry *, u_int, u_int, u_int, u_int, u_int, u_int, int)
 
static void window_copy_scroll_timer (int fd, short events, void *arg)
 
static struct screenwindow_copy_clone_screen (struct screen *src, struct screen *hint, u_int *cx, u_int *cy, int trim)
 
static struct window_copy_mode_datawindow_copy_common_init (struct window_mode_entry *wme)
 
void window_copy_add (struct window_pane *wp, const char *fmt,...)
 
void window_copy_vadd (struct window_pane *wp, const char *fmt, va_list ap)
 
void window_copy_pageup (struct window_pane *wp, int half_page)
 
char * window_copy_get_word (struct window_pane *wp, u_int x, u_int y)
 
char * window_copy_get_line (struct window_pane *wp, u_int y)
 
static void * window_copy_cursor_word_cb (struct format_tree *ft)
 
static void * window_copy_cursor_line_cb (struct format_tree *ft)
 
static void * window_copy_search_match_cb (struct format_tree *ft)
 
static void window_copy_size_changed (struct window_mode_entry *wme)
 
static int window_copy_expand_search_string (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_append_selection (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_append_selection_and_cancel (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_back_to_indentation (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_begin_selection (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_stop_selection (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_bottom_line (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_cancel (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_clear_selection (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_copy_end_of_line (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_copy_line (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_copy_selection_no_clear (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_copy_selection (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_copy_selection_and_cancel (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_cursor_down (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_cursor_down_and_cancel (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_cursor_left (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_cursor_right (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_cursor_up (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_end_of_line (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_halfpage_down (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_halfpage_down_and_cancel (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_halfpage_up (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_history_bottom (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_history_top (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_jump_again (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_jump_reverse (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_middle_line (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_previous_matching_bracket (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_next_matching_bracket (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_next_paragraph (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_next_space (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_next_space_end (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_next_word (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_next_word_end (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_other_end (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_page_down (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_page_down_and_cancel (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_page_up (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_previous_paragraph (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_previous_space (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_previous_word (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_rectangle_on (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_rectangle_off (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_rectangle_toggle (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_scroll_down (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_scroll_down_and_cancel (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_scroll_up (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_search_again (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_search_reverse (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_select_line (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_select_word (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_set_mark (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_start_of_line (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_top_line (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_copy_pipe_no_clear (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_copy_pipe (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_copy_pipe_and_cancel (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_pipe_no_clear (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_pipe (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_pipe_and_cancel (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_goto_line (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_jump_backward (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_jump_forward (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_jump_to_backward (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_jump_to_forward (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_jump_to_mark (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_search_backward (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_search_backward_text (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_search_forward (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_search_forward_text (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_search_backward_incremental (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_search_forward_incremental (struct window_copy_cmd_state *cs)
 
static enum window_copy_cmd_action window_copy_cmd_refresh_from_pane (struct window_copy_cmd_state *cs)
 
static int window_copy_search_lr_regex (struct grid *gd, u_int *ppx, u_int *psx, u_int py, u_int first, u_int last, regex_t *reg)
 
static int window_copy_search_rl_regex (struct grid *gd, u_int *ppx, u_int *psx, u_int py, u_int first, u_int last, regex_t *reg)
 
static const char * window_copy_cellstring (const struct grid_line *gl, u_int px, size_t *size, int *allocated)
 
static void window_copy_move_left (struct screen *s, u_int *fx, u_int *fy, int wrapflag)
 
static void window_copy_move_right (struct screen *s, u_int *fx, u_int *fy, int wrapflag)
 
static void window_copy_move_after_search_mark (struct window_copy_mode_data *data, u_int *fx, u_int *fy, int wrapflag)
 
static void window_copy_visible_lines (struct window_copy_mode_data *data, u_int *start, u_int *end)
 
static void window_copy_match_start_end (struct window_copy_mode_data *data, u_int at, u_int *start, u_int *end)
 
static void window_copy_update_style (struct window_mode_entry *wme, u_int fx, u_int fy, struct grid_cell *gc, const struct grid_cell *mgc, const struct grid_cell *cgc, const struct grid_cell *mkgc)
 
static void window_copy_write_one (struct window_mode_entry *wme, struct screen_write_ctx *ctx, u_int py, u_int fy, u_int nx, const struct grid_cell *mgc, const struct grid_cell *cgc, const struct grid_cell *mkgc)
 
static void window_copy_synchronize_cursor_end (struct window_mode_entry *wme, int begin, int no_reset)
 
static void * window_copy_pipe_run (struct window_mode_entry *wme, struct session *s, const char *cmd, size_t *len)
 
void window_copy_start_drag (struct client *c, struct mouse_event *m)
 

Variables

const struct window_mode window_copy_mode
 
const struct window_mode window_view_mode
 
struct {
   const char *   command
 
   int   minargs
 
   int   maxargs
 
   enum window_copy_cmd_clear   clear
 
   enum window_copy_cmd_action(*   f )(struct window_copy_cmd_state *)
 
window_copy_cmd_table []
 

Macro Definition Documentation

◆ WINDOW_COPY_DRAG_REPEAT_TIME

#define WINDOW_COPY_DRAG_REPEAT_TIME   50000

Definition at line 299 of file window-copy.c.

◆ WINDOW_COPY_SEARCH_ALL_TIMEOUT

#define WINDOW_COPY_SEARCH_ALL_TIMEOUT   200

Definition at line 293 of file window-copy.c.

◆ WINDOW_COPY_SEARCH_TIMEOUT

#define WINDOW_COPY_SEARCH_TIMEOUT   10000

Definition at line 292 of file window-copy.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
WINDOW_COPY_OFF 
WINDOW_COPY_SEARCHUP 
WINDOW_COPY_SEARCHDOWN 
WINDOW_COPY_JUMPFORWARD 
WINDOW_COPY_JUMPBACKWARD 
WINDOW_COPY_JUMPTOFORWARD 
WINDOW_COPY_JUMPTOBACKWARD 

Definition at line 168 of file window-copy.c.

◆ anonymous enum

anonymous enum
Enumerator
WINDOW_COPY_REL_POS_ABOVE 
WINDOW_COPY_REL_POS_ON_SCREEN 
WINDOW_COPY_REL_POS_BELOW 

Definition at line 178 of file window-copy.c.

◆ window_copy_cmd_action

Enumerator
WINDOW_COPY_CMD_NOTHING 
WINDOW_COPY_CMD_REDRAW 
WINDOW_COPY_CMD_CANCEL 

Definition at line 184 of file window-copy.c.

◆ window_copy_cmd_clear

Enumerator
WINDOW_COPY_CMD_CLEAR_ALWAYS 
WINDOW_COPY_CMD_CLEAR_NEVER 
WINDOW_COPY_CMD_CLEAR_EMACS_ONLY 

Definition at line 190 of file window-copy.c.

Function Documentation

◆ window_copy_acquire_cursor_down()

static void window_copy_acquire_cursor_down ( struct window_mode_entry wme,
u_int  hsize,
u_int  sy,
u_int  oy,
u_int  oldy,
u_int  px,
u_int  py,
int  no_reset 
)
static

◆ window_copy_acquire_cursor_up()

◆ window_copy_add()

void window_copy_add ( struct window_pane wp,
const char *  fmt,
  ... 
)

Definition at line 503 of file window-copy.c.

References window_copy_vadd().

Referenced by cfg_show_causes(), cmd_run_shell_exec(), and cmdq_print().

◆ window_copy_adjust_selection()

◆ window_copy_append_selection()

◆ window_copy_cellstring()

static const char* window_copy_cellstring ( const struct grid_line gl,
u_int  px,
size_t *  size,
int *  allocated 
)
static

◆ window_copy_clear_marks()

static void window_copy_clear_marks ( struct window_mode_entry wme)
static

◆ window_copy_clear_selection()

◆ window_copy_clone_screen()

static struct screen* window_copy_clone_screen ( struct screen src,
struct screen hint,
u_int *  cx,
u_int *  cy,
int  trim 
)
static

◆ window_copy_cmd_append_selection()

◆ window_copy_cmd_append_selection_and_cancel()

static enum window_copy_cmd_action window_copy_cmd_append_selection_and_cancel ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_back_to_indentation()

static enum window_copy_cmd_action window_copy_cmd_back_to_indentation ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_begin_selection()

static enum window_copy_cmd_action window_copy_cmd_begin_selection ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_bottom_line()

static enum window_copy_cmd_action window_copy_cmd_bottom_line ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_cancel()

static enum window_copy_cmd_action window_copy_cmd_cancel ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_clear_selection()

static enum window_copy_cmd_action window_copy_cmd_clear_selection ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_copy_end_of_line()

static enum window_copy_cmd_action window_copy_cmd_copy_end_of_line ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_copy_line()

static enum window_copy_cmd_action window_copy_cmd_copy_line ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_copy_pipe()

static enum window_copy_cmd_action window_copy_cmd_copy_pipe ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_copy_pipe_and_cancel()

static enum window_copy_cmd_action window_copy_cmd_copy_pipe_and_cancel ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_copy_pipe_no_clear()

static enum window_copy_cmd_action window_copy_cmd_copy_pipe_no_clear ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_copy_selection()

static enum window_copy_cmd_action window_copy_cmd_copy_selection ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_copy_selection_and_cancel()

static enum window_copy_cmd_action window_copy_cmd_copy_selection_and_cancel ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_copy_selection_no_clear()

static enum window_copy_cmd_action window_copy_cmd_copy_selection_no_clear ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_cursor_down()

static enum window_copy_cmd_action window_copy_cmd_cursor_down ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_cursor_down_and_cancel()

static enum window_copy_cmd_action window_copy_cmd_cursor_down_and_cancel ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_cursor_left()

static enum window_copy_cmd_action window_copy_cmd_cursor_left ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_cursor_right()

static enum window_copy_cmd_action window_copy_cmd_cursor_right ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_cursor_up()

static enum window_copy_cmd_action window_copy_cmd_cursor_up ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_end_of_line()

static enum window_copy_cmd_action window_copy_cmd_end_of_line ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_goto_line()

static enum window_copy_cmd_action window_copy_cmd_goto_line ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_halfpage_down()

static enum window_copy_cmd_action window_copy_cmd_halfpage_down ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_halfpage_down_and_cancel()

static enum window_copy_cmd_action window_copy_cmd_halfpage_down_and_cancel ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_halfpage_up()

static enum window_copy_cmd_action window_copy_cmd_halfpage_up ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_history_bottom()

static enum window_copy_cmd_action window_copy_cmd_history_bottom ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_history_top()

static enum window_copy_cmd_action window_copy_cmd_history_top ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_jump_again()

static enum window_copy_cmd_action window_copy_cmd_jump_again ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_jump_backward()

static enum window_copy_cmd_action window_copy_cmd_jump_backward ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_jump_forward()

static enum window_copy_cmd_action window_copy_cmd_jump_forward ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_jump_reverse()

static enum window_copy_cmd_action window_copy_cmd_jump_reverse ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_jump_to_backward()

static enum window_copy_cmd_action window_copy_cmd_jump_to_backward ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_jump_to_forward()

static enum window_copy_cmd_action window_copy_cmd_jump_to_forward ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_jump_to_mark()

static enum window_copy_cmd_action window_copy_cmd_jump_to_mark ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_middle_line()

static enum window_copy_cmd_action window_copy_cmd_middle_line ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_next_matching_bracket()

static enum window_copy_cmd_action window_copy_cmd_next_matching_bracket ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_next_paragraph()

static enum window_copy_cmd_action window_copy_cmd_next_paragraph ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_next_space()

static enum window_copy_cmd_action window_copy_cmd_next_space ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_next_space_end()

static enum window_copy_cmd_action window_copy_cmd_next_space_end ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_next_word()

static enum window_copy_cmd_action window_copy_cmd_next_word ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_next_word_end()

static enum window_copy_cmd_action window_copy_cmd_next_word_end ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_other_end()

static enum window_copy_cmd_action window_copy_cmd_other_end ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_page_down()

static enum window_copy_cmd_action window_copy_cmd_page_down ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_page_down_and_cancel()

static enum window_copy_cmd_action window_copy_cmd_page_down_and_cancel ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_page_up()

static enum window_copy_cmd_action window_copy_cmd_page_up ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_pipe()

static enum window_copy_cmd_action window_copy_cmd_pipe ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_pipe_and_cancel()

static enum window_copy_cmd_action window_copy_cmd_pipe_and_cancel ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_pipe_no_clear()

static enum window_copy_cmd_action window_copy_cmd_pipe_no_clear ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_previous_matching_bracket()

static enum window_copy_cmd_action window_copy_cmd_previous_matching_bracket ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_previous_paragraph()

static enum window_copy_cmd_action window_copy_cmd_previous_paragraph ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_previous_space()

static enum window_copy_cmd_action window_copy_cmd_previous_space ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_previous_word()

static enum window_copy_cmd_action window_copy_cmd_previous_word ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_rectangle_off()

static enum window_copy_cmd_action window_copy_cmd_rectangle_off ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_rectangle_on()

static enum window_copy_cmd_action window_copy_cmd_rectangle_on ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_rectangle_toggle()

static enum window_copy_cmd_action window_copy_cmd_rectangle_toggle ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_refresh_from_pane()

static enum window_copy_cmd_action window_copy_cmd_refresh_from_pane ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_scroll_down()

static enum window_copy_cmd_action window_copy_cmd_scroll_down ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_scroll_down_and_cancel()

static enum window_copy_cmd_action window_copy_cmd_scroll_down_and_cancel ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_scroll_up()

static enum window_copy_cmd_action window_copy_cmd_scroll_up ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_search_again()

static enum window_copy_cmd_action window_copy_cmd_search_again ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_search_backward()

static enum window_copy_cmd_action window_copy_cmd_search_backward ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_search_backward_incremental()

static enum window_copy_cmd_action window_copy_cmd_search_backward_incremental ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_search_backward_text()

static enum window_copy_cmd_action window_copy_cmd_search_backward_text ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_search_forward()

static enum window_copy_cmd_action window_copy_cmd_search_forward ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_search_forward_incremental()

static enum window_copy_cmd_action window_copy_cmd_search_forward_incremental ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_search_forward_text()

static enum window_copy_cmd_action window_copy_cmd_search_forward_text ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_search_reverse()

static enum window_copy_cmd_action window_copy_cmd_search_reverse ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_select_line()

static enum window_copy_cmd_action window_copy_cmd_select_line ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_select_word()

static enum window_copy_cmd_action window_copy_cmd_select_word ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_set_mark()

static enum window_copy_cmd_action window_copy_cmd_set_mark ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_start_of_line()

static enum window_copy_cmd_action window_copy_cmd_start_of_line ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_stop_selection()

static enum window_copy_cmd_action window_copy_cmd_stop_selection ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_cmd_top_line()

static enum window_copy_cmd_action window_copy_cmd_top_line ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_command()

◆ window_copy_common_init()

◆ window_copy_copy_buffer()

static void window_copy_copy_buffer ( struct window_mode_entry wme,
const char *  prefix,
void *  buf,
size_t  len 
)
static

◆ window_copy_copy_line()

◆ window_copy_copy_pipe()

static void window_copy_copy_pipe ( struct window_mode_entry wme,
struct session s,
const char *  prefix,
const char *  cmd 
)
static

Definition at line 4120 of file window-copy.c.

References window_copy_copy_buffer(), and window_copy_pipe_run().

◆ window_copy_copy_selection()

static void window_copy_copy_selection ( struct window_mode_entry wme,
const char *  prefix 
)
static

Definition at line 4132 of file window-copy.c.

References window_copy_copy_buffer(), and window_copy_get_selection().

◆ window_copy_cstrtocellpos()

static void window_copy_cstrtocellpos ( struct grid gd,
u_int  ncells,
u_int *  ppx,
u_int *  ppy,
const char *  str 
)
static

◆ window_copy_cursor_back_to_indentation()

◆ window_copy_cursor_down()

◆ window_copy_cursor_end_of_line()

◆ window_copy_cursor_jump()

◆ window_copy_cursor_jump_back()

◆ window_copy_cursor_jump_to()

◆ window_copy_cursor_jump_to_back()

◆ window_copy_cursor_left()

◆ window_copy_cursor_line_cb()

static void* window_copy_cursor_line_cb ( struct format_tree ft)
static

◆ window_copy_cursor_next_word()

◆ window_copy_cursor_next_word_end()

◆ window_copy_cursor_next_word_end_pos()

◆ window_copy_cursor_previous_word()

◆ window_copy_cursor_previous_word_pos()

static void window_copy_cursor_previous_word_pos ( struct window_mode_entry wme,
const char *  separators,
int  already,
u_int *  ppx,
u_int *  ppy 
)
static

◆ window_copy_cursor_right()

◆ window_copy_cursor_start_of_line()

◆ window_copy_cursor_up()

◆ window_copy_cursor_word_cb()

static void* window_copy_cursor_word_cb ( struct format_tree ft)
static

◆ window_copy_drag_release()

static void window_copy_drag_release ( struct client c,
struct mouse_event m 
)
static

◆ window_copy_drag_update()

◆ window_copy_expand_search_string()

static int window_copy_expand_search_string ( struct window_copy_cmd_state cs)
static

Definition at line 841 of file window-copy.c.

◆ window_copy_find_length()

◆ window_copy_formats()

◆ window_copy_free()

◆ window_copy_get_line()

char* window_copy_get_line ( struct window_pane wp,
u_int  y 
)

◆ window_copy_get_selection()

◆ window_copy_get_word()

char* window_copy_get_word ( struct window_pane wp,
u_int  x,
u_int  y 
)

◆ window_copy_goto_line()

static void window_copy_goto_line ( struct window_mode_entry wme,
const char *  linestr 
)
static

◆ window_copy_in_set()

static int window_copy_in_set ( struct window_mode_entry wme,
u_int  px,
u_int  py,
const char *  set 
)
static

◆ window_copy_init()

◆ window_copy_is_lowercase()

static int window_copy_is_lowercase ( const char *  ptr)
static

Definition at line 2943 of file window-copy.c.

Referenced by window_copy_search(), and window_copy_search_marks().

◆ window_copy_jump_to_mark()

◆ window_copy_key_table()

static const char * window_copy_key_table ( struct window_mode_entry wme)
static

◆ window_copy_last_regex()

static int window_copy_last_regex ( struct grid gd,
u_int  py,
u_int  first,
u_int  last,
u_int  len,
u_int *  ppx,
u_int *  psx,
const char *  buf,
const regex_t *  preg,
int  eflags 
)
static

Definition at line 2731 of file window-copy.c.

References grid::sx, and window_copy_cstrtocellpos().

Referenced by window_copy_search_rl_regex().

◆ window_copy_match_at_cursor()

◆ window_copy_match_start_end()

static void window_copy_match_start_end ( struct window_copy_mode_data data,
u_int  at,
u_int *  start,
u_int *  end 
)
static

◆ window_copy_move_after_search_mark()

static void window_copy_move_after_search_mark ( struct window_copy_mode_data data,
u_int *  fx,
u_int *  fy,
int  wrapflag 
)
static

◆ window_copy_move_left()

static void window_copy_move_left ( struct screen s,
u_int *  fx,
u_int *  fy,
int  wrapflag 
)
static

Definition at line 2909 of file window-copy.c.

References screen_hsize, screen_size_x, and screen_size_y.

Referenced by window_copy_search().

◆ window_copy_move_mouse()

static void window_copy_move_mouse ( struct mouse_event m)
static

◆ window_copy_move_right()

static void window_copy_move_right ( struct screen s,
u_int *  fx,
u_int *  fy,
int  wrapflag 
)
static

Definition at line 2926 of file window-copy.c.

References screen_hsize, screen_size_x, and screen_size_y.

Referenced by window_copy_move_after_search_mark(), and window_copy_search().

◆ window_copy_next_paragraph()

◆ window_copy_other_end()

◆ window_copy_pagedown()

◆ window_copy_pageup()

void window_copy_pageup ( struct window_pane wp,
int  half_page 
)

Definition at line 557 of file window-copy.c.

References window_copy_pageup1().

◆ window_copy_pageup1()

◆ window_copy_pipe()

static void window_copy_pipe ( struct window_mode_entry wme,
struct session s,
const char *  cmd 
)
static

Definition at line 4111 of file window-copy.c.

References window_copy_pipe_run().

◆ window_copy_pipe_run()

static void* window_copy_pipe_run ( struct window_mode_entry wme,
struct session s,
const char *  cmd,
size_t *  len 
)
static

◆ window_copy_previous_paragraph()

◆ window_copy_rectangle_set()

◆ window_copy_redraw_lines()

◆ window_copy_redraw_screen()

◆ window_copy_redraw_selection()

static void window_copy_redraw_selection ( struct window_mode_entry wme,
u_int  old_y 
)
static

◆ window_copy_resize()

◆ window_copy_scroll_down()

◆ window_copy_scroll_timer()

◆ window_copy_scroll_to()

◆ window_copy_scroll_up()

◆ window_copy_search()

◆ window_copy_search_back_overlap()

static void window_copy_search_back_overlap ( struct grid gd,
regex_t *  preg,
u_int *  ppx,
u_int *  psx,
u_int *  ppy,
u_int  endline 
)
static

◆ window_copy_search_compare()

static int window_copy_search_compare ( struct grid gd,
u_int  px,
u_int  py,
struct grid sgd,
u_int  spx,
int  cis 
)
static

◆ window_copy_search_down()

static int window_copy_search_down ( struct window_mode_entry wme,
int  regex 
)
static

Definition at line 3420 of file window-copy.c.

References window_copy_search().

◆ window_copy_search_jump()

static int window_copy_search_jump ( struct window_mode_entry wme,
struct grid gd,
struct grid sgd,
u_int  fx,
u_int  fy,
u_int  endline,
int  cis,
int  wrap,
int  direction,
int  regex 
)
static

◆ window_copy_search_lr()

static int window_copy_search_lr ( struct grid gd,
struct grid sgd,
u_int *  ppx,
u_int  py,
u_int  first,
u_int  last,
int  cis 
)
static

◆ window_copy_search_lr_regex()

static int window_copy_search_lr_regex ( struct grid gd,
u_int *  ppx,
u_int *  psx,
u_int  py,
u_int  first,
u_int  last,
regex_t *  reg 
)
static

◆ window_copy_search_mark_at()

static int window_copy_search_mark_at ( struct window_copy_mode_data data,
u_int  px,
u_int  py,
u_int *  at 
)
static

◆ window_copy_search_marks()

◆ window_copy_search_match_cb()

static void* window_copy_search_match_cb ( struct format_tree ft)
static

◆ window_copy_search_rl()

static int window_copy_search_rl ( struct grid gd,
struct grid sgd,
u_int *  ppx,
u_int  py,
u_int  first,
u_int  last,
int  cis 
)
static

◆ window_copy_search_rl_regex()

static int window_copy_search_rl_regex ( struct grid gd,
u_int *  ppx,
u_int *  psx,
u_int  py,
u_int  first,
u_int  last,
regex_t *  reg 
)
static

◆ window_copy_search_up()

static int window_copy_search_up ( struct window_mode_entry wme,
int  regex 
)
static

Definition at line 3414 of file window-copy.c.

References window_copy_search().

◆ window_copy_set_selection()

◆ window_copy_size_changed()

◆ window_copy_start_drag()

◆ window_copy_start_selection()

◆ window_copy_stringify()

static char * window_copy_stringify ( struct grid gd,
u_int  py,
u_int  first,
u_int  last,
char *  buf,
u_int *  size 
)
static

◆ window_copy_synchronize_cursor()

◆ window_copy_synchronize_cursor_end()

◆ window_copy_update_cursor()

◆ window_copy_update_selection()

◆ window_copy_update_style()

◆ window_copy_vadd()

◆ window_copy_view_init()

◆ window_copy_visible_lines()

static void window_copy_visible_lines ( struct window_copy_mode_data data,
u_int *  start,
u_int *  end 
)
static

◆ window_copy_write_line()

◆ window_copy_write_lines()

static void window_copy_write_lines ( struct window_mode_entry wme,
struct screen_write_ctx ctx,
u_int  py,
u_int  ny 
)
static

◆ window_copy_write_one()

static void window_copy_write_one ( struct window_mode_entry wme,
struct screen_write_ctx ctx,
u_int  py,
u_int  fy,
u_int  nx,
const struct grid_cell mgc,
const struct grid_cell cgc,
const struct grid_cell mkgc 
)
static

Variable Documentation

◆ clear

Definition at line 2246 of file window-copy.c.

Referenced by input_reset(), and window_copy_command().

◆ command

const char* command

Definition at line 2244 of file window-copy.c.

Referenced by mode_tree_run_command(), window_copy_command(), and yyparse().

◆ f

◆ maxargs

int maxargs

Definition at line 2246 of file window-copy.c.

◆ minargs

int minargs

Definition at line 2245 of file window-copy.c.

◆ 

window_copy_cmd_table[] { ... } const struct

Referenced by window_copy_command().

◆ window_copy_mode

const struct window_mode window_copy_mode
Initial value:
= {
.name = "copy-mode",
.resize = window_copy_resize,
.key_table = window_copy_key_table,
.command = window_copy_command,
.formats = window_copy_formats,
}
static void window_copy_formats(struct window_mode_entry *, struct format_tree *)
Definition: window-copy.c:748
static const char * window_copy_key_table(struct window_mode_entry *)
Definition: window-copy.c:831
static void window_copy_resize(struct window_mode_entry *, u_int, u_int)
Definition: window-copy.c:799
static struct screen * window_copy_init(struct window_mode_entry *, struct cmd_find_state *, struct args *)
Definition: window-copy.c:423
static void window_copy_command(struct window_mode_entry *, struct client *, struct session *, struct winlink *, struct args *, struct mouse_event *)
Definition: window-copy.c:2399
static void window_copy_free(struct window_mode_entry *)
Definition: window-copy.c:485

Definition at line 143 of file window-copy.c.

Referenced by format_cb_mouse_line(), format_cb_mouse_word(), window_copy_drag_release(), window_copy_drag_update(), window_copy_move_mouse(), and window_copy_start_drag().

◆ window_view_mode

const struct window_mode window_view_mode
Initial value:
= {
.name = "view-mode",
.resize = window_copy_resize,
.key_table = window_copy_key_table,
.command = window_copy_command,
.formats = window_copy_formats,
}
static struct screen * window_copy_view_init(struct window_mode_entry *, struct cmd_find_state *, struct args *)
Definition: window-copy.c:464

Definition at line 143 of file window-copy.c.

Referenced by cfg_show_causes(), cmd_run_shell_exec(), cmdq_print(), format_cb_mouse_line(), format_cb_mouse_word(), window_copy_drag_release(), window_copy_drag_update(), window_copy_move_mouse(), and window_copy_start_drag().