mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Add a Features checkbox to disable bracketed paste mode.
I've had more than one conversation recently in which users have mentioned finding this mode inconvenient. I don't know whether any of them would want to turn it off completely, but it seems likely that _somebody_ will, sooner or later. So here's an option to do that.
This commit is contained in:
@ -984,6 +984,34 @@ right in all situations.
|
||||
You may also find you need to disable Arabic text shaping;
|
||||
see \k{config-features-shaping}.
|
||||
|
||||
\S{config-features-bracketed paste} Disabling \i{bracketed paste} mode
|
||||
|
||||
By default, when you paste text into the terminal window, it's sent to
|
||||
the server as terminal input, exactly as if you'd typed the same text
|
||||
into the terminal window using the keyboard (except that it's all sent
|
||||
at once, much faster than you could type it).
|
||||
|
||||
However, a terminal application can change that, by asking the
|
||||
terminal to enable \q{bracketed paste mode}. In this mode, pasted data
|
||||
is marked in the input stream, by sending a special control sequence
|
||||
before the paste, and another one at the end.
|
||||
|
||||
A terminal application can use this information to treat pasted data
|
||||
differently from keyboard input. For example, a terminal-based text
|
||||
editor can treat the input as literal data, even if some of its
|
||||
characters would normally trigger special editor functions. A shell
|
||||
can treat pasted input as less trusted, in case another application
|
||||
somehow sneaked a malicious shell command into your clipboard: modern
|
||||
versions of \cw{bash} will highlight pasted data on the command line,
|
||||
and not run it until you've confirmed it by pressing Return, even if
|
||||
the pasted data contained a newline character.
|
||||
|
||||
In edge cases, it's possible that bracketed paste mode introduces
|
||||
bigger problems than the ones it solves. So you can use this checkbox
|
||||
to turn it off completely. If you do that, then PuTTY will always send
|
||||
your paste data exactly as if it had been typed at the keyboard,
|
||||
whether or not the server asked for bracketed paste mode.
|
||||
|
||||
\H{config-window} The Window panel
|
||||
|
||||
The Window configuration panel allows you to control aspects of the
|
||||
|
@ -77,6 +77,8 @@ from other protocols
|
||||
\IM{copy and paste} cut and paste
|
||||
\IM{copy and paste} paste, copy and
|
||||
|
||||
\IM{bracketed paste} paste, bracketed
|
||||
|
||||
\IM{three-button mouse} three-button mouse
|
||||
\IM{three-button mouse} mouse, three-button
|
||||
|
||||
|
Reference in New Issue
Block a user