From 0c94e4ae7b413a8ae4e37882f0d483d2e259bd44 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sat, 22 Jul 2023 18:31:35 +0000 Subject: Add `terminal` config section to control OSCs Some environments demand certain OSC sequences to be disabled or some escape sequence could require handling which is out of scope of alacritty, but could be done by external script (OSC 777). Added section for now just handles the `OSC 52` sequence and changes its default to be `OnlyCopy`, which is handy for remote copy, but `Paste` is redundant because normal `Paste` hotkey could be used as well. Fixes #3386. Co-authored-by: Christian Duerr --- extra/man/alacritty.5.scd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'extra/man') diff --git a/extra/man/alacritty.5.scd b/extra/man/alacritty.5.scd index ec670e75..f9e82ba3 100644 --- a/extra/man/alacritty.5.scd +++ b/extra/man/alacritty.5.scd @@ -534,6 +534,20 @@ This section documents the *[cursor]* table of the configuration file. Default: _0.15_ +# Terminal + +This section documents the *[terminal]* table of the configuration file. + +*osc52* "Disabled" | "OnlyCopy" | "OnlyPaste" | "CopyPaste" + + Controls the ability to write to the system clipboard with the _OSC 52_ + escape sequence. While this escape sequence is useful to copy contents + from the remote server, allowing any application to read from the clipboard + can be easily abused while not providing significant benefits over + explicitly pasting text. + + Default: _"OnlyCopy"_ + # Mouse This section documents the *[mouse]* table of the configuration file. -- cgit v1.2.3-54-g00ecf