Hello, very often one needs to share terminal output with copy/paste. The issue is that color data is lost and text becomes hardly readable. Can we have one of the following: * when copying text, copy it like other programs - firefox, libre office, etc where color is preserved * if the above not feasible, can we at least copy ASCII color codes along with the text so one can later process that as needed P.S. from windows users I read copy/paste with color is working with some terminals there, so I'm trilled they managed to do at least one thing better than in linux
Newest vte copies the colors. (I don't know when it was implemented.)
How (where) can you paste colored text?
I pasted to LibreOffice Writer.
Pasting to gmail's composer also works (tried with Firefox, presumably works with all decent browsers).
Doesn't work for me... Neither it works when pasting from gnome-terminal. $ echo $TERM xterm-256color $ vte-2.91 --version Simple VTE Test Application 0.44.2
I'm using gnome-terminal and vte from git master. Maybe it's a new feature in master (future 0.46)?
Haha, seems this is an experimental feature only enabled in development releases. vte/src/vteinternal.hh: /* Until the selection can be generated on demand, let's not enable this on stable */ #include "vte/vteversion.h" #if (VTE_MINOR_VERSION % 2) == 0 #undef HTML_SELECTION #else #define HTML_SELECTION #endif
Ok, this makes sense. Anyway, this is not the terminal's responsibility, and I think the issue may be resolved, right?
Well, assuming users will use stable vte versions, OP's request is not fulfilled. However it's not missing from xfce-terminal per se, it should be implemented in vte. Until then, OP could just make a trivial one-liner change in vte and recompile for himself (sure it's not ideal). I don't know anything about the plans of making this the default vte behavior.
Correct. What I mean is that we are not going to implement this within xfce4-terminal as this should be part of vte, and they may have their own reasons for not including this functionality into stable versions. Resolution: You need to use developer's version of vte to get this functionality, as Egmont mentioned.