[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Entering blind passwords at the CLI



On 25/08/2025 04:22, Greg Wooledge wrote:
As far as Ctrl-V in terminals goes, I've never seen any terminal where
that would initiate a paste operation.  Ctrl-V is usually bound to the
"lnext" (literal next) character via stty(1).

Enough terminal application use [Ctrl+Shift+C] and [Ctrl+Shift+V] shortcuts by default to copy and paste to/from clipboard (not PRIMARY selection). xterm(1) has an example how to achieve similar behavior (SELECT is not exactly the same as CLIPBOARD though)

           *VT100*translations:      #override \n\
               Shift <Key>Home:    copy-selection(SELECT) \n\
               Shift <Key>Insert:  copy-selection(SELECT) \n\
               Ctrl Shift <Key>C:  copy-selection(SELECT) \n\
               Ctrl Shift <Key>V:  insert-selection(SELECT)

As to vim and "set mouse=", an alternative is to press and hold [Shift] before text selection by mouse drag. This trick is widely supported by terminal applications so it is not limited to vim. See ":help mouse" for more details.


Reply to: