wiki

Copy and Paste

T-Strip keeps one clipboard per session (the clip buffer).

📸 Screenshot coming here: The bar flashing “copied N chars” after a selection. 🎬 Video coming here: Copying with the mouse and pasting into another pane.

Getting text out

Any copy path (mouse drag, copy mode y, Enter) ends in copyText:

  1. OSC 52 — the escape sequence ESC ] 52;c;<base64> BEL is written to your terminal, so the clipboard lands wherever you actually sit. This works great over SSH and out of the box with kitty, foot, wezterm, ghostty, alacritty, …
  2. Native tool fallback — in parallel: wl-copy, xclip -selection clipboard, xsel, termux-clipboard-set, pbcopy — the first one found in $PATH is used.
  3. The text is kept in the session for paste, and the bar flashes copied N chars.

📸 Screenshot coming here: The bar showing “copied 42 chars”. 🎬 Video coming here: Copying text with a mouse drag and seeing it land in your system clipboard.

Getting text in

alt+p (paste):

  1. If the session has a recorded clip, it is written to the focused pane.
  2. Otherwise a native tool is read back (wl-paste, xclip -out, xsel --output, termux-clipboard-get, pbpaste; empty output falls back with a nothing to paste nudge).

Line endings are converted to carriage returns (\r) so a multi-line paste runs naturally through shells and editors.

mouse: drag inside a pane — release copies
alt+y  → copy the selection in copy mode
alt+p  → paste into the focused pane

📸 Screenshot coming here: Pasting text into a pane with alt+p. 🎬 Video coming here: Copying in one pane and pasting in another.

Because the client terminal is involved

🎬 Video coming here: Copying over SSH and having it appear on your local clipboard via OSC 52.