LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2025, 11:44 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,412

Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
gpm now reverse-videos transferred text, beginning with kernel 6.16


This is not a problem, just a report. gpm now reverse-videos transferred text. Am I the only one?

Last edited by RandomTroll; 07-29-2025 at 12:30 PM.
 
Old 07-31-2025, 12:19 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,998
Blog Entries: 21

Rep: Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288
If you transfer into an Xterm, it's in reverse video until you press Return. Then it reverts to normal. I tried transferring into a gvim window and there was no reversal. So it may be a new terminal tweek.

Last edited by hazel; 07-31-2025 at 11:35 AM. Reason: Added sentence
 
Old 07-31-2025, 11:27 AM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,818
Blog Entries: 7

Rep: Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189
Are you talking about this?
https://github.com/telmich/gpm
https://lists.linux.it/pipermail/gpm/
https://www.nico.schottelius.org/docs/
 
Old 07-31-2025, 11:33 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,998
Blog Entries: 21

Rep: Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288
Yes. It's a very old copy-and-paste program that works in VTs as well as in X. You paste with the middle button.
 
Old 07-31-2025, 11:40 AM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,412

Original Poster
Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
Quote:
Originally Posted by hazel View Post
If you transfer into an Xterm,
It doesn't work in xterm, does it? I never use it in X. Look at the 'bugs' section of the man page. It doesn't work for me in X.

Quote:
Originally Posted by teckk View Post
Are you talking about this?
Yes. I didn't know it was exotic. I can't imagine anyone using the console much without it.

Quote:
Originally Posted by hazel View Post
You paste with the middle button.
If you have a middle button.
 
Old 07-31-2025, 11:48 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,998
Blog Entries: 21

Rep: Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288
Quote:
Originally Posted by RandomTroll View Post
It doesn't work in xterm, does it? I never use it in X. Look at the 'bugs' section of the man page. It doesn't work for me in X.
Code:
  The gpm server may have problems interacting with X: if your mouse is a single-open device (i.e. a bus mouse), 
you should kill gpm before starting X, or use the -R option (see above).  To kill gpm just invoke gpm -k. This problem 
doesn't apply to serial mice.
What's a bus mouse anyway? I've used gpm in X with ps/2 and usb mice without any problems.
Quote:
If you have a middle button.
Or a wheel. Or with some mice you can use L+R simultaneously.

Last edited by hazel; 07-31-2025 at 11:50 AM.
 
Old 07-31-2025, 04:33 PM   #7
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,412

Original Poster
Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
Quote:
Originally Posted by hazel View Post
What's a bus mouse anyway?
Apparently a Microsoft Inport mouse.

Quote:
Originally Posted by hazel View Post
I've used gpm in X with ps/2 and usb mice without any problems.
Quote:
The selection mechanism is disabled if the controlling virtual console is placed in graphics mode, for example when running X11, and is re-enabled when text mode is resumed.
X has its own facility for marking and transferring text; gpm is text-only.

Quote:
Originally Posted by hazel View Post
Or a wheel. Or with some mice you can use L+R simultaneously.
On 2-button mice the right button transfers.
 
Old 08-01-2025, 12:27 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,998
Blog Entries: 21

Rep: Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288
Quote:
Originally Posted by RandomTroll View Post
X has its own facility for marking and transferring text; gpm is text-only.
gpm works in text programs within X, quite separately from the X clipboard. It has its own clipboard which is activated as soon as you highlight some text. Then you can paste it elsewhere with the middle button. Anything you have stored on the X clipboard remains intact when you select something different with gpm; the clipboard only gets overwritten if you press ctrl-C or ctrl-X or use the right button menu to save. That's something I occasionally find useful. On the other hand, X lets you cut text as well as copy it and gpm doesn't.

Last edited by hazel; 08-01-2025 at 12:30 AM.
 
Old 08-01-2025, 06:46 AM   #9
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,412

Original Poster
Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
Quote:
Originally Posted by hazel View Post
gpm works in text programs within X, quite separately from the X clipboard...
Perhaps I use a different display driver, but it doesn't work for me. I just tried it. It never has.
 
Old 08-01-2025, 08:00 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,998
Blog Entries: 21

Rep: Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288
You're right. I guess I was confused. When gpm is used inside X, it does use the X clipboard for its selections, overwriting whatever is there. But when you use it in a VT, it has its own clipboard. If you open up a VT outside of your X session, you can switch back and forth between them but you can't copy in an X session and paste in a VT or vice versa. Whatever you paste will be whatever you last copied in that session.

Last edited by hazel; 08-02-2025 at 12:12 AM. Reason: Clarification. See following post.
 
Old 08-01-2025, 08:34 PM   #11
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,412

Original Poster
Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
Quote:
Originally Posted by hazel View Post
You're right.
Thanks for letting me know. I dislike having problems no one else has: I worry about myself.

Quote:
Originally Posted by hazel View Post
When gpm is used inside X...
I just unloaded gpm: I can mark and transfer text in X. I think it doesn't work at all in X.

Quote:
Originally Posted by hazel View Post
If you open up a VT outside of your X session, you can switch back and forth between them but you can't copy in one session and paste in the other. Whatever you paste will be whatever you last copied in that session.
I can't transfer between X and non-X; I use a file to do that. I can copy between non-X VTs.
 
Old 08-02-2025, 12:11 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,998
Blog Entries: 21

Rep: Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288
Quote:
Originally Posted by RandomTroll View Post
I can't transfer between X and non-X; I use a file to do that. I can copy between non-X VTs.
Sorry, that's what I meant; I'll back-edit to make it clearer. You can switch your keyboard back and forth between X and a VT and make independent selections in each one but you can't transfer a selection across. The paste instruction always refers to the local clipboard. But two VTs will share the gpm clipboard so you can copy between them.
 
Old 08-02-2025, 07:07 AM   #13
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,818
Blog Entries: 7

Rep: Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189
Have you seen:
Code:
cat /dev/vcs<n>
Code:
sudo fold -w 60 /dev/vcs1 | less
Or look at:
Code:
echo "#!/bin/bash" >> paste
echo 'DISPLAY=:0 xsel -ob' >> paste
Then paste in tty.

Or use a temp file.
X
Code:
echo "Something" > file
tty
Code:
$(cat file)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] gpm working erratically since upgrade to gpm-1.20.7-i486-3 RandomTroll Linux - Software 2 08-15-2014 11:53 PM
gpm no ./configure gpm-1.20.7 EDDY1 Linux From Scratch 4 11-19-2012 05:34 PM
gpm don't have rc.gpm script rudsonalves Slackware 3 08-26-2012 08:45 AM
[SOLVED] gpm-1.20.6-make install-gpm error janakiramulu Linux From Scratch 12 05-12-2011 02:00 AM
How to get texts and image of texts on ubuntu terminal like linux mint? cola Ubuntu 1 06-02-2010 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions