LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles 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 09-22-2015, 08:02 AM   #1
basht
LQ Newbie
 
Registered: Sep 2015
Posts: 2

Rep: Reputation: Disabled
What X terminal emulators support copying of coloured text?


Hello,

Let me have a coloured text in x terminal emulator, say it is a colordiff output, or I have a coloured command line prompt.

When copying this text I expect the terminal emulator to save colours into HTML clipboard buffer to make it pasted in HTML-aware fields with colours (and boldness, and other decorations) preserved.

However, gnome-terminal copies bare text. What terminal emulators can copy text style?

Please do not mention pipeline converters such as aha. They are cute, but they solve slightly another problem.

Thanks in advance.
 
Old 09-22-2015, 04:19 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
There are no terminal emulators that can do that. Period.

Thanks for introducing me to aha, btw

Last edited by dugan; 09-22-2015 at 04:21 PM.
 
Old 09-30-2015, 04:31 AM   #3
basht
LQ Newbie
 
Registered: Sep 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
http://www.joachim-breitner.de/blog/...gnome-terminal
here is an example
but it is not in repositories
 
1 members found this post helpful.
Old 10-08-2015, 01:43 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
the answer is the same as to so many other questions:
if you want it bad enough, make it.
it seems like the guy linked in your previous post already went a fair bit along the way, and if you're really lucky it will still compile with recent versions of gnome-terminal.

another approach could be to look at rxvt, or rxvt-unicode or urxvt, because it has the ability to use perl plugins, so maybe you can script it in perl...
 
Old 04-28-2016, 01:09 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
https://github.com/tweekmonster/tmux2html
 
2 members found this post helpful.
Old 04-28-2016, 01:18 AM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Thanks dugan!

I spend most of my days inside tmux'd terminals, but was completely unaware of this.

Honestly, it is a use case that has never occurred to me, but now that I've seen it I'll probably find a use for it!

*** UPDATE

I tried to think of how I might actually use this, and come up empty!
I frequently redirect text to files, but do not want the color info in those cases...
I infrequently use a screenshot of a terminal, but HTML would not be a good substitute in those...

But it looks cool, and the rationale from the github site is sufficient!

Quote:
Rationale

This was a weekend project I made for fun and I have no particular use for it beyond annoying my friends about how bad they should feel for not using tmux.

Last edited by astrogeek; 04-28-2016 at 01:29 AM.
 
Old 05-03-2016, 11:49 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by dugan View Post
that's awesome.
look at the example "screenshots"!
i'm not using tmux, but now i'm having a look at the "Similar projects" (scroll down in the README).
 
  


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
copying text from terminal BASH window to a webpage. mdlinuxwolf Linux - Newbie 4 10-30-2009 07:13 PM
Printer wont print text unless its coloured! mpooley Linux - Hardware 5 03-13-2007 01:12 PM
copying text from terminal Linuxuser_81 Linux - Newbie 4 09-30-2005 01:12 AM
Coloured folders/files in terminal? neocookie Linux - Software 1 05-22-2004 11:31 PM
Terminal Text Copying Hitokiri_X Linux - General 4 06-18-2002 05:02 PM

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

All times are GMT -5. The time now is 09:42 AM.

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
Open Source Consulting | Domain Registration