Tag Info

New answers tagged

2

I wrote a tool which returns the plain application name (e.g. 'Terminal', 'gedit' or 'SmartGit' which are the ones I tested). Most code is shamelessly stolen from @Harvey here. // gcc clipboard-owner.c -lX11 -o clipboard-owner #include <stdlib.h> #include <stdio.h> #include <string.h> #include <X11/Xlib.h> #include ...


0

Unfortunately, the X window system has several different copy-paste mechanisms. Rxvt, like most old-school X applications, uses the primary selection. Generally, when you select something with the mouse, it's automatically copied to the primary selection, and when you middle-click to paste, that pastes the primary selection. Ctrl+C and Ctrl+V (or other key ...


2

It depends on your terminal. If this is something important to you, you could consider Emacs term-mode which gives you the full text-manipulation capability of the editing environment. It's possible that you consider that to be overkill, of course!


4

If you use Urxvt, you can extend the keyboard functionality of the terminal using urxvt-perls, a collection of scripts that enables: selecting text passing URLs to your $browser searching your scrollback and yanking and pasting to and from your clipboard Essentially, with urxvt-perls installed, you can dispense with your mouse entirely.


4

Of course you have to read the file, but you could ssh USER@REMOTE "cat file" | xclip -i of that still means to open a ssh connection and copy the contents of the file. But finally you don't see anything of it anymore ;) And if you are connecting from an OS X computer you use pbcopy instead: ssh USER@REMOTE "cat file" | pbcopy


0

Can I assume you are running the X Window System and some window manager (KDE/gnome/etc.)? There are a number of terminal applications (Konsole for example) that have a built in menu that allows copy/paste functions. So you could: user@machine:~$ ssh root@172.x.x.x open the file on the remote machine highlight the contents of the file with mouse and ...


1

Hey if you use the chrome browser you can install the Secure Shell add on/app its quite simple to SSH over LAN or WAN. And it provides the functionality you are looking for. Simply copy from a different source and doubletap in the console to paste or if you want to copy from the console highlight the text and it automatically copies the selected text. If ...


1

Due to how the browser DOM security model works, this kind of web interface cannot easily access the system clipoboard (or else random web pages could steal the clipboard content). Your problem is not related to SSH or vi and the intelligent choice would be to use a native SSH client (e.g. Putty).


0

Disable autocomplete/autosuggestion.  (We had to destroy the village in order to save it.) Access "translate.google" via a bookmark, so you don't have to type into the location bar.


2

When you type into a shell, the shell recognizes some characters as commands. For example, the carriage return character (the character sent by the Enter key) causes the shell to execute the command. The tab character causes the shell to perform completion. When you paste something into the PuTTY terminal window, from the shell's point of view, that's the ...


1

If you would like a more simple solution than perl script, you can use sed, anyway that perl script is simple too. echo "hello world" | sed 's/\(\t\+\)/\t/g' Anyway, using redhat 5 I don't see any problem using cat command rpm -qf $(which cat) coreutils-5.97-34.el5


1

I'm not entirely sure what problem you're having - on my RHEL install, cat works if I give it tab stops. However as a more general solution perhaps: #!/usr/bin/perl use strict; use warnings; while ( <> ) { s/\s+/\t/g; print; } Will take 'input' on either STDIN (catted into) or as filenames (e.g. myscript.pl <filename>) ...


0

[Putting some of the stuff from comments here as an answers so that this question may perhaps be marked answered.] First, select text via the mouse, then press either the middle button or Shift-Insert to paste. Note that you will need the VirtualBox or VMWare guest additions to copy/paste between the host and the guest. And you'll need to enable clipboard ...



Top 50 recent answers are included