glogg icon indicating copy to clipboard operation
glogg copied to clipboard

Support to handle linux terminal colors

Open novakmi opened this issue 10 years ago • 10 comments

Thank you for great log viewer. I use it for viewing large application log files. Many of the log files contain escape characters with terminal coloring, e.g.:

"\033[031m RED TEXT \033[0m"

It would be really nice, if one can see such text colorized in Glogg. At least optionally (checkbox).

More info: http://www.malloc.co/linux/how-to-print-with-color-in-linux-terminal/

novakmi avatar Jul 01 '14 08:07 novakmi

+! for this

djsharman avatar Sep 24 '18 06:09 djsharman

DO IT!!!!

simonreye avatar Jun 01 '20 07:06 simonreye

+1

henrylcs avatar Jun 22 '21 17:06 henrylcs

Same issue in klogg variar/klogg#338

variar avatar Jun 22 '21 18:06 variar

Oh it would be awesome but open since 2014...

fergarrui avatar May 01 '22 13:05 fergarrui

I vote for this!

LVRodrigues avatar Feb 07 '23 13:02 LVRodrigues

Klogg now has an option to understand the color escape sequences. It is slower, but works in many cases.

variar avatar Feb 08 '23 08:02 variar

hi, varlar. it's doesn't work for this condition: "\033[031m RED TEXT \033[0m". I notice this issue: https://github.com/variar/klogg/issues/338 but it's for ANSI: "1;31m [1;31m Test" it doesn't work for linux terminal colors.

the android log format is:"\033[38;5;196m Error Level \033[0m". this format log works well and shows red color in linux terminal. you can get it by adb logcat -v color

sysescool avatar Apr 18 '23 02:04 sysescool

Ouch. Sorry for that. Adding another regex to filter those out should be quick

variar avatar Apr 21 '23 21:04 variar

I'm willing to implement this feature, give me some time

nowhszh avatar Jul 05 '23 17:07 nowhszh