Questions tagged [clipboard]

A clipboard is a temporary storage, mostly related to text, from where contents can be pasted to a new/other location. Use this tag for questions that specifically involve problems with putting material in, or getting material out of the clipboard

Filter by
Sorted by
Tagged with
1 vote
1 answer
55 views

How to copy and paste in alpine linux VM?

I recently installed an alpine-3.17 VM using virtualbox 7. I also installed the guest additions and are able to map shared folders. But it seems that I cannot copy-and-paste from the host OS. I copied ...
  • 468
0 votes
0 answers
7 views

Why is tmux copy is only setting PRIMARY and not CLIPBOARD at the same time

My laptop runs i3 and I'm ssh-ing to a remote machine using xterm. I've set up tmux according to https://github.com/tmux/tmux/wiki/Clipboard#quick-summary When I copy using tmux (C-w), I can paste the ...
0 votes
0 answers
21 views

Programmatically check if current terminal supports OSC52 write?

I would like to know if there is any good way to programmatically check if the terminal the current shell is running in supports OSC52 "write to clipboard" operation, without changing the ...
  • 575
0 votes
2 answers
38 views

linux clipboard update appears to persist reboot

I was horrified to reboot Debian Buster after a recent update to find that there is a log of previous copy-and-pastes, including passwords. Isn't that kind of thing supposed to live only in the RAM? A ...
  • 464
0 votes
2 answers
20 views

Simple filter to unhardwrap multiple paragraphs

I have many markdown files which are hardwrapped to 80 characters. I would like to copy these to paste into textareas (xclip -sel clipboard < file), but want them to wordwrap normally. This is ...
  • 300
0 votes
1 answer
18 views

geeqie: copy path to clipboard does nothing

geeqie 2.0.1-4 mate-desktop 1.26.0-1 Linux 6.1.5-arch2-1 The geeqie image viewer has a menu item 'copy path to clipboard'. Is this 'clipboard' the global clipboard, so that I can, say, paste the path ...
0 votes
0 answers
14 views

Is there a hook in the copy/paste mechanism where one could insert arbitrary editing?

Is there any mechanism for inserting code between the copy/cut and the paste mechanism? For instance, if I cut or copy text that contains: … We run unix on our laptops. … I'd like it to be pasted as:...
2 votes
1 answer
63 views

Ctrl-y not restoring line in zsh

I've got zsh 5.8.1 running on Ubuntu 22.04. When I've got some text on the prompt and I type Ctrl+u, it clears the line as expected. However, when I then type Ctrl+y, it only displays $ ^Y What ...
0 votes
1 answer
61 views

Disable automatically copying selection to clipboard in urxvt

There are 2 kind of clipboards on my os (manjaro i3). Xclip, which keeps the last selected text, and the regular clipboard which must be explicitly copied. I have noticed urxvt copies selected text in ...
3 votes
1 answer
127 views

How do I configure the copy/paste buffer so that only plain text is stored?

Unfortunately I need to revisit my question from five years ago: How do I sanitize the copy/paste buffer? There is still no answer to this. I'm using CopyQ as a clipboard manager now, and it works ...
  • 673
-1 votes
1 answer
29 views

Linux pastes clipboard at "random" times

I'll be editing files, actively using a keyboard and sometimes a mouse, especially to switch windows and such. My programs open under edit suddenly have syntax errors which, ultimately come from ...
  • 139
0 votes
1 answer
92 views

how to copy text of file to ram (to do paste later)

I would like to copy the content of a file (string) to my ram memory. As in copy of a text so I can do paste later. Example: I have a file name: my_pub_key.pub and inside there's big amount of chars. ...
1 vote
0 answers
150 views

How to make Windows right-click - Paste work in Linux vim?

When using MobaXTerm on Windows, I ssh into a Linux server, start vim and I can right-click into the terminal window and can choose Paste and it pastes text from the Windows clipboard. When I use git ...
  • 794
1 vote
1 answer
151 views

Does ssh give access to the virtual console, to a terminal emulator, or what? [duplicate]

As far as I've understood, a terminal emulator is a GUI-based program which gives me a terminal-like viewport and allows me to interact with it just like I'd do with a terminal, except that it has all ...
  • 1,175
1 vote
0 answers
26 views

Tmux external clipboard interaction with loadb over SSH

I have the external clipboard option enabled: $ tmux show-options -g -s set-clipboard set-clipboard external And I'm using Kitty terminal with tmux in SSH. When I highlight text with the mouse or ...
  • 143
0 votes
1 answer
219 views

Why does nano indent pasted text or code improperly?

When I copy and paste text from the clipboard, the code looks like [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ...
1 vote
2 answers
144 views

Why does nano have two different copy/pastes?

Without mouse support enabled (my default), you can drag your mouse over text and do standard "copy/paste" with right click, which enables you to paste the test anywhere on your operating ...
0 votes
0 answers
221 views

Shared clipboard between linux and windows througt ssh

Here is my situation. I'm working with a windows client on a linux (arch) server, with ssh connection. I often need to copy and past data, BOTH from the server to the client, and from the client to ...
  • 101
0 votes
0 answers
554 views

tmux in WSL with Windows Terminal: Select with mouse without holding down shift

In WSL running in windows terminal, selection with mouse works normally. However, within a tmux session, in WSL running in windows terminal, to select with mouse, Shift key must be held down. How can ...
  • 101
1 vote
0 answers
102 views

So. I need to copy a line of text from Windows NotePad and paste into an Xfce /Terminator Window

I have a long and complex line of text in Windows 10/Notepad. I want to copy/paste or use key combos to insert it in a Ubuntu/Terminator window. (Terminator is running in Xfce, accessed via Remote ...
  • 11
0 votes
0 answers
101 views

Detect copy events properly

There's this program called clipnotify which basically all it does is exit on a copy event, so you can use it in while loops. So I have this loop: while True: # clipnotify exits on a copy event ...
  • 188
1 vote
0 answers
200 views

how to pipe Wayland clipboard into an X vnc session clipboard over ssh

I am using Wayland on Arch, and am sshed into a debian server which uses X11. I have a vnc session running over that ssh connection. I would like to take a string that I have stored in my Wayland ...
0 votes
0 answers
181 views

libvirt copy and paste breaks regularly

I haven't been able to identify the cause (besides it seeming to happen with cloned VMs - though I've tried changing the Spice ports to be different, and also tried using VNC on one and Spice on ...
  • 487
0 votes
0 answers
42 views

BASH technique to use clipboard in script? [duplicate]

My proficiency in BASH is minimal, but I did a fair bit of C back in the day. I am trying to think of a way where I can write a script which I can run, which will pass the clipboard into the script. I ...
1 vote
4 answers
218 views

How to know the font name of displayed characters? (X11/Xft)

I want to know the font name of displayed characters on any X application. Of course, I can know the font name by comparing the displayed characters with each font characters, but it takes a very long ...
0 votes
1 answer
54 views

How to trigger two commands when pressing a key bind

So I wanted to pass the text stored in my buffer through a socket to other machine, for that I manage to get a socket done, I just need to fire up the following command when in copy-mode-vi bind -T ...
13 votes
4 answers
2k views

How to copy/paste between a console and an X session?

What's the fastest way to copy/paste between a non-graphical console (<Ctrl><Alt><F...>) and an X session ? Right now : I select the text with the mouse on the console (I've ...
  • 1,279
2 votes
0 answers
206 views

How to paste selection from vi-mode to clipboard

I want to access the content of what I copied in the buffer with the vi-mode of the clipboard via the command ctrl + v or ctrl + shift + v in the terminal. I copied in my .zshrc the following: (from ...
  • 369
2 votes
3 answers
233 views

Pasting multiple commands from clipboard breaks after a sudo command

I have 2 CentOS systems which I connect to via ssh. On one of them if I paste multiple commands from the clipboard, it executes them all, unless there's a sudo command in there. If there is, it just ...
0 votes
1 answer
279 views

Is there a way to interact with my Windows clipboard when SSH'd from an Exceed xterm?

I'm not sure which parts of my setup are relevant to my question, so I'll try to be as explanatory as possible... I'm using a Windows 10 laptop, and using Exceed on Demand to open an Xterm. I then ...
1 vote
0 answers
134 views

Kitty terminal automatically deselects text?

Every time I highlight text to copy from the Kitty terminal, it automatically deselects it. This is creating a situation where I cannot copy from the terminal. What might be causing this behaviour?
0 votes
1 answer
68 views

How to use one table (ods) file as a base for another table file?

I have an accounting ledger table (.ods) file which should be the base for other table files. This table file should be the base for other table files such as: 2023.ods 2024.ods 2025.ods These are ...
-1 votes
2 answers
792 views

copy command in terminal into clipboard with just one step

My DE is lxde in debian11.If you want to copy command in current terminal,you have to highlight text in the terminal window with mouse first ,then hit Ctrl+Shift+C, the command now can be copied into ...
  • 285
-3 votes
1 answer
333 views

How to copy text from text editor to tty command line

Using debian 11 GNU/linux bullseye without mouse, only keyboard. The problem: I have a file with a password, very long and complicated. I need to copy it and paste when I login via ssh. I tried to ...
2 votes
0 answers
1k views

KVM clipboard sharing with client running Wayland

I have Fedora 35 installed as a VM, with Qemu/KVM as the hypervisor and virt-manager as the graphical front-end, running under Manjaro KDE. Following numerous guides & answers I have managed to ...
  • 575
0 votes
1 answer
143 views

Left mouse select in MATE-terminal stopped working!

I left town for a few weeks, but kept the desktop running, including many open terminals -- MATE-terminal v 1.24.1. Upon return, I found that left-mouse-button select (highlight-select, for cut-n-...
  • 133
0 votes
1 answer
30 views

How to use Vim-like registers across programs

I'd like to be able to dd j dd in Vim, then p "2p in a text box on another program. The ideal solution would allow Vim yank and put bindings across the OS. I'm using Arch Linux with DWM as my ...
0 votes
1 answer
234 views

In WSL console, how do you read and write to the clipboard?

How do you access the (windows) clipboard in WSL so that you can pipe it into commands, use it as stdin, etc.? There's more than enough answers about how to write to the clipboard. But I couldn't find ...
14 votes
7 answers
2k views

Copy & paste cleanly into a command like grep, without terminal echo cluttering the output?

I have some test output, looking like PASS: tests/test_mutex_rmw PASS: tests/test_mutex_trylock PASS: tests/test_malloc_irreg FAIL: tests/ARMCI_PutS_latency FAIL: tests/ARMCI_AccS_latency PASS: tests/...
  • 488
0 votes
1 answer
49 views

Damage Source File due to Cancelling Copy Paste

I was copying some 20gb of important documents to my usb drive from my mac. The process got stuck midway and I had to cancel the copy paste operation. Second time doing so the usb drive got ejected by ...
2 votes
1 answer
367 views

Copy text in tmux using putty

I am using putty0.76 to connect to server and I run tmux2.7. I need to copy bigger amount of text to my local clipboard with scrolling during selection. I do not have xclip or pbcopy installed and I ...
1 vote
1 answer
879 views

How to disable libreadline's bracketed paste mode programmatically

Starting with libreadline version 8.1, the default is to give special treatment to "bracketed paste" operations. This breaks parsing for my program, so I want to disable it. I know that it ...
  • 174
1 vote
1 answer
883 views

tmux, wayland and clipboard

I have this tmux config: bind | split-window -h bind - split-window -v unbind '"' unbind % bind-key s set-window-option synchronize-panes\; display-message "Paneles sincronizados: #{?...
1 vote
1 answer
66 views

"copy as html" in Tmux

I remember I used to had a "Copy as HTML" option in Tmux, but I can't seem to find information about it either in the settings or looking online. Does anyone know if it still exists for some ...
1 vote
1 answer
643 views

How to Use Control+V Keys to Paste in urxvt Terminal?

I see many questions about keybinds in urxvt, but I don't see this exact one. I'd like to use control+v in order to paste into the terminal. (without the shift. or alt/meta key. etc.) My goal is to be ...
1 vote
0 answers
379 views

Why is clipboard cleared when closing xfce4-terminal?

I'm using xfce4-terminal with the setting enabled: "Automatically copy selection to clipboard" It works fine when select something, the selection is copied to clipboard. But if I close the ...
  • 195
0 votes
2 answers
386 views

Why tldr | xclip outputs escape codes looking like timestamp, and how to remove it?

Problem I want to copy the output of tldr to clipboard, and then paste that to text editor. I execute: tldr pwd | xclip -sel clip When I paste from clipboard, I get: pwd [0mPrint name of current/...
  • 411
1 vote
1 answer
346 views

How to persist the contents of the X11 (copy) clipboard on closing e.g. Vim to paste its contents later?

If I copy to X11 (copy) clipboard in Vim using "+y, I can only paste contents as long as Vim is open. The reason is as follows: From Ubuntu Wiki: ClipboardPersistence: The problem happens ...
  • 3,789
1 vote
2 answers
2k views

Save all terminal output to a file, after the fact

This: Save all the terminal output to a file Except after the fact. Meaning that instead of preparing to record or pipe all output to a file, I am dealing with output that has already taken place, and ...
1 vote
0 answers
125 views

Is it possibly to clear the clipboard when LibreOffice is being closed?

I'm running XFCE on Linux Mint. Sometimes I copy & paste potentially sensitive data inside LibreOffice Calc or Writer, which shouldn't exist anymore inside the clipboard once I exit those programs....
  • 397

1
2 3 4 5
9