deefeat(tui): tmux's mouse, ported — every event a mouse key as server_client_check_mouse makes one (MouseDown/Up/Drag/DragEnd 1–11, WheelUp/Down, SecondClick/DoubleClick/TripleClick, on a Pane, Border, Status, StatusLeft/Right/Default; a second click within 300ms, the double click 300ms after it, a drag's first key where the button went down, its modifiers), looked up as tmux looks it up (the prefix's table, a pane in copy mode's table, then root) with tmux's 16 root and 14 copy-mode mouse bindings as the defaults, its commands run with the pane under the mouse as their target (-t = and {mouse}, cmd_find_from_mouse, kept by the commands they queue), an unbound one to the pane's program as input_key_mouse encodes it (SGR, UTF-8, X10; motion only when asked for); send-keys -M, resize-pane -M (layout_search_by_border), copy-mode -M/-e/-H/-q/-u/-d, the copy cursor to the mouse before a copy-mode command (the selection kept), begin-selection's drag scrolling at the pane's edge, select-word as tmux selects a word; #{mouse_x} #{mouse_y} #{mouse_word} #{mouse_line} #{mouse_pane} #{mouse_status_line} #{mouse_status_range} #{mouse_hyperlink}; copy mode is a pane's (every pane in it shows its position, keys go to the active one's, the wheel over another leaves the keyboard where it was); display-menu as menu.c — placed by -x/-y (C R P M W S or a number, kept on the screen), tmux's width and box (menu-style, menu-selected-style, menu-border-style and -lines, the title drawn over the border), chosen by the mouse or its keys, -O, -C, nothing chosen until the mouse moves when the mouse opened it; display-menu, command-prompt and confirm-before from a shell wait until it closes (not with -b); key names as tmux reads them (any case, ^x, the keypad's, 396 mouse keys ordered by tmux's key codes); panes numbered from %0; mouse on by default (documented) — identical to tmux 3.5a with a client attached through 29 mouse steps, 9 menu screens with their colours, 6 waiting commands, list-keys of root, copy-mode and copy-mode-vi and 9 key-name casesc60b7bfc0