Re: Copy/paste between clipboard and command line terminal?



In article <jkqapk$8ek$1@xxxxxxxxxxxxxxxxx>,
Janis Papanagnou <janis_papanagnou@xxxxxxxxxxx> wrote:
On 24.03.2012 12:52, Rui Maciel wrote:
Is there a standard way to copy/paste between a command line terminal and
the clipboard?

For a raw console terminal I had used gpm in the past (but don't have it
available any more in my actual system). For a command line terminal in
an xterm I use xcb.

Janis

(Weighing in late on the "GPM is a security risk" sub-thread)

1) I think the word "security" has transmogrified into "anything bad that
you can do on a system" - including, to be slightly facetious about it,
removing a file. In some contexts, the ability to remove a file could be
considered a security risk (so, we should probably make it impossible to do
that...).

2) I have always thought that the ability to paste into a command prompt
(this category includes a Linux virtual terminal, an xterm shell, or a
Windows Command Prompt, and anything else like that) is dangerous. I don't
know what the solution is (short of an "Are you sure?" prompt whenever you
try to do it), but who here hasn't pasted a large block of text into some
shell/command prompt window and let loose a series of swear words as a
result?

And the point is that GPM makes it way too easy to do this stupid thing...

--
(This discussion group is about C, ...)

Wrong. It is only OCCASIONALLY a discussion group
about C; mostly, like most "discussion" groups, it is
off-topic Rorsharch [sic] revelations of the childhood
traumas of the participants...

.