rheaCRT

Manual

Paste preview

A paste can run commands the moment it arrives. On a device's command line every line break is an Enter, so a block copied by accident becomes a series of commands on whatever you are connected to. The paste preview shows such text before anything is sent, so you can read it, edit it, or cancel.

When it appears

The preview belongs to the connection that opened it. If that connection closes or reconnects while the preview is open, choose Paste again to review the text for the new connection.

The pasted textWhat happensSetting
One line, with no line breakIt goes straight innone
Has a line break, even only a trailing onePreviewPreview Multi-line Pastes
Has a control character other than tab (Escape, Ctrl+C and so on)PreviewPreview Multi-line Pastes
Longer than 5,000 characters, whatever it holdsPreviewPreview Large Pastes

Every way of pasting goes through the same check: Ctrl+Shift+V, Shift+Insert, Ctrl+V when Windows keys are on, the Edit menu, the toolbar, the right-click menu, and the browser's own paste event.

What it shows

Text over 256 KiB is not editable: a box holding megabytes would make the preview slow. The preview shows the first 40 and the last 10 lines instead, with long lines cut at 300 characters, and sends the text unchanged if you choose Send.

Keys

KeyWhat it does
Ctrl+EnterSend
EnterA new line in the text. It does not send.
EscCancel. Nothing is sent.

The cursor starts in the text, not on the Send button, so a stray Enter cannot send the paste. For text too large to edit, the cursor starts on Cancel.

Settings

Both settings are in Options in the menu bar, and in the right-click menu of the terminal.

SettingDefaultWhy
Preview Multi-line PastesOnA line break runs a command. This is the common accident.
Preview Large PastesOnA wall of text is almost never meant for a command line. 5,000 characters is the mark Windows Terminal uses.

The preview has a box, "Do not preview multi-line pastes again". Ticking it and sending switches off Preview Multi-line Pastes, and the status line says where to switch it back on. It never switches off Preview Large Pastes: that is changed in Options only, so the guard against a huge accidental paste stays until you remove it on purpose.

To restore the defaults, tick both settings in Options.

Limits

Where it lives in the code