:: Re: [DNG] Linux's sucky cut and pas…
Góra strony
Delete this message
Reply to this message
Autor: Ludovic Bellière
Data:  
Dla: dng
Temat: Re: [DNG] Linux's sucky cut and paste: was: problematic mouse driver?


On Wed, 18 Nov 2020 20:46:31 -0500
Steve Litt <slitt@???> wrote:

> Yes. However, Ctrl+C doesn't work everywhere. It doesn't work in gVim
> or xterm. Ctrl+c seems to be a feature that must be built into the
> source application.


Using the X window system, highlighting text puts it in the PRIMARY
selection. On windows, highlighting text does nothing.

Using the X window system, highlighting text then pressing CTRL-C puts
the content into the CLIPBOARD selection. On windows, though, that
action puts the text into the PRIMARY selection.

vim, just like emacs, is an old software using old paradigms. They use
their own buffers to copy and paste content, unrelated to the X window
system. They can be made to store the text to an external buffer though.

xterm doesn't have CTRL-C because that shortcut can potentially be used
by the terminal itself. (i.e. will kill the running process.)

See:
- https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_12_01.html
- https://tiswww.case.edu/php/chet/readline/rluserman.html