Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Screen: How to copy paste between ttys?

34 views
Skip to first unread message

Deboo Geek

unread,
May 8, 2005, 7:50:08 AM5/8/05
to
How do I copy/paste between different screens running on different
ttys? And is there some console program that is something like the
console "note" program and also runs under X (as a native X app, not
in an xterm window)


Deboo
--
Please don't Cc: me, I'm subscribed to the list.

Deboo Geek

unread,
May 8, 2005, 8:50:08 AM5/8/05
to
On 5/8/05, Maurits van Rees <mau...@vanrees.org> wrote:

> On Sun, May 08, 2005 at 05:12:28PM +0530, Deboo Geek wrote:
> > How do I copy/paste between different screens running on different
> > ttys?
>
> I suggest using the mouse and install the gpm package. Then it is:
> leftclick-and-drag to select, go to another console and rightclick to
> paste.

A bit more tedious (atleast for me) to use the mouse. But gpm
sometimes does not copy anything at all and will paste blank lines.
Secondly is there any option to paste between console and X? Or any
program/daemon which helps in this? I have to switch between console
and X and even if I use an Xterm like konsole, I am not able to
copy/paste between other X apps and konsole. How do other people
copy/paste between console and X sessions?

Maurits van Rees

unread,
May 8, 2005, 8:50:08 AM5/8/05
to
On Sun, May 08, 2005 at 05:12:28PM +0530, Deboo Geek wrote:
> How do I copy/paste between different screens running on different
> ttys?

I suggest using the mouse and install the gpm package. Then it is:


leftclick-and-drag to select, go to another console and rightclick to
paste.

--
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands]
Public GnuPG key: keyserver.net ID 0x1735C5C2
"Let your advance worrying become advance thinking and planning."
- Winston Churchill

signature.asc

Maurits van Rees

unread,
May 8, 2005, 9:10:09 AM5/8/05
to
On Sun, May 08, 2005 at 06:18:37PM +0530, Deboo Geek wrote:
> Secondly is there any option to paste between console and X? Or any
> program/daemon which helps in this?

Not that I know. You could paste the text you want to select into a
text file. Then switch to X and copy-paste it from there.

> I have to switch between console and X and even if I use an Xterm
> like konsole, I am not able to copy/paste between other X apps and
> konsole. How do other people copy/paste between console and X
> sessions?

I don't use Xterm but Konsole from KDE. But copy-pasting should be the
same. Leftclick-and-drag in a window to copy and middle-click in your
window of choice to paste. As I don't have a middle mouse button I
need to press both buttons to achieve the same effect. As I learned
from a previous discussion it could be pretty much any button, so you
may need to experiment a bit.

signature.asc

Robt. Miller

unread,
May 8, 2005, 9:50:11 AM5/8/05
to
On Sun, May 08, 2005 at 06:18:37PM +0530, Deboo Geek wrote:
>
> A bit more tedious (atleast for me) to use the mouse. But gpm
> sometimes does not copy anything at all and will paste blank lines.
> Secondly is there any option to paste between console and X? Or any
> program/daemon which helps in this? I have to switch between console
> and X and even if I use an Xterm like konsole, I am not able to
> copy/paste between other X apps and konsole. How do other people
> copy/paste between console and X sessions?

If you're using screen open a the console screen session in X and paste
into it with simultaneous left-right click.


--

(o< |)
//\ ..may the beacon /\obt.
V_/_ pass you by.. /\/\iller
9:46am up 23 days, 2:56, 18 users, load average: 1.00, 1.00, 1.00
processes 500361


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Allan Wind

unread,
May 28, 2005, 4:03:35 AM5/28/05
to
On 2005-05-08T11:31:08-0400, Allan Wind wrote:

> On 2005-05-08T17:12:28+0530, Deboo Geek wrote:
> > How do I copy/paste between different screens running on different
> > ttys? And is there some console program that is something like the
> > console "note" program and also runs under X (as a native X app, not
> > in an xterm window)
>
> If you use "screen" (which was probably not what you meant in the
> above):
>
> ctrl-a [ # enter copy mode
> navigate to where you want to go # arrow keys, /? for searching
> space # start copy
> space # end copy
> go to the xterm you want to paste into

If xterms are running under the same screen. Otherwise you need to use
ctrl-a > to write to file, and ctrl-a < to read it (if two different
screens, or just use the file written by the first screen).

> ctrl-a ] # exit copy mode
>
> This sounds complicated but actually works remarkably well after doing
> it a few times.


/Allan

signature.asc

Allan Wind

unread,
May 28, 2005, 12:56:28 AM5/28/05
to
On 2005-05-08T17:12:28+0530, Deboo Geek wrote:
> How do I copy/paste between different screens running on different
> ttys? And is there some console program that is something like the
> console "note" program and also runs under X (as a native X app, not
> in an xterm window)

If you use "screen" (which was probably not what you meant in the
above):

ctrl-a [ # enter copy mode
navigate to where you want to go # arrow keys, /? for searching
space # start copy
space # end copy
go to the xterm you want to paste into

signature.asc

Deboo Geek

unread,
May 8, 2005, 11:50:08 AM5/8/05
to

Thanks Alan, that was what I needed to know, two different "screen"
running under different ttys or one on console and one under an xterm.
Screen is coool!

Regards,

Bill Marcum

unread,
May 10, 2005, 2:40:10 PM5/10/05
to
On Sun, May 08, 2005 at 06:18:37PM +0530, Deboo Geek wrote:
Since you use screen, you could detach the screen session in the console
and reattach it in an xterm.


--
Test-tube babies shouldn't throw stones.

0 new messages