vtm icon indicating copy to clipboard operation
vtm copied to clipboard

Capturing area into internal clipboard (Ctrl+MiddleDrag) copies ASNI-escape sequences too.

Open neoh4x0r opened this issue 3 years ago • 2 comments

Selecting an area to copy via Ctrl+MiddleDrag does not seem to copy text in the same way as (LeftDrag + Rightclick)

The text: ./externals is copied/pasted as ;2;16;16;16m;2;248;242m./externals

2022-05-06_01-20 2022-05-06_01-21

neoh4x0r avatar May 06 '22 05:05 neoh4x0r

Capturing using Ctrl+MiddleDrag(or Ctrl+RightDrag) was originally designed as copying a fragment of an arbitrary area of the entire screen(viewport, desktop environment) with all SGR attributes. In order to capture plaintext inside the terminal, you need to use selection in Plaintext mode and LeftDrag + RightClick.

o-sdn-o avatar May 06 '22 07:05 o-sdn-o

I will make copy mode with Ctrl+MiddleDrag/RightDrag configurable. In the settings, you can specify whether to copy SGR-attributes along with the text or not.

o-sdn-o avatar May 06 '22 07:05 o-sdn-o

There is no need to configure the copy mode/format for the desktop environment. You can recursively connect to the environment through the built-in terminal and copy any desktop region in any supported format.

o-sdn-o avatar Apr 21 '23 20:04 o-sdn-o