Tag Info

New answers tagged

3

Those colors are determined by terminal control codes. For a near-complete reference have a look at the XTerm Control Sequences, most terminal emulators nowadays are mostly compatible to XTerm.


2

This is a color definition: Foreground \[\033[1;30m\] Background \[\033[44;1;31m\] Cheers,


0

As alternative to script, which expectes command line as a string instead of normal array, there is a special mode of reptyr: reptyr -L ffmpeg -v debug ... < /dev/null |& less -R Note that not all versions of reptyr have working -L option and accept < /dev/null gracefully. See my pull request for this.


8

For commands that do not have an option similar to --color=always, you can do, e.g. with your example: script -c "ffmpeg -v debug ..." /dev/null < /dev/null |& less -R What script does is that it runs the command in a terminal session. EDIT: Instead of a command string, if you want to be able to provide an array, then the following zsh wrapper ...


0

I don't know about Raspberry, but in SUSE you need to change (if your root and want to do it system wide) /etc/DIR_COLORS or make your own user's in your startup script. Most probably you will need to change the colors in your Raspberry to display them correctly with putty. Debian systems have LS_COLORS variable which contains the values, so you will need ...


4

Someting like this worked for me: (tail -f /var/log/syslog | awk -W interactive '{printf "\033[1;31m%s\033[0m\n", $0}' & \ tail -f /var/log/auth.log | awk -W interactive '{printf "\033[1;32m%s\033[0m\n", $0}' & \ tail -f /var/log/Xorg.0.log | awk -W interactive '{printf "\033[1;34m%s\033[0m\n", $0}') Explanation: tail -f file: append data as ...


17

Using GNU grep for the colouring: color() { GREP_COLOR=$1 grep --color '.*'; } (tail -qf /var/log/syslog | color 31 & tail -qf /var/log/fail2ban.log | color 32 & tail -qf /var/log/nginx/error.log | color 33) Note that the first 2 are started in background. That means they won't be killed if you press Ctrl-C (shell explicitly ignore SIGINT for ...


0

That looks like one of the problems you can work around with options in /etc/adobe/mms.cfg to disable the broken features. See Flash video appears blue and maybe Disable hardware acceleration for Flash player in Linux.


0

man grep 2>/dev/null | GREP_COLORS=$(man grep 2>/dev/null | grep '^ *ms=01;31' -m1):ne \ grep '^ *GREP_COLORS *$\|^ *ne ' -A9 --color=always | most Works for me. By the way, I just installed most to figure this out and I like it. Thank you. GREP_COLORS Specifies the colors and other attributes used to highlight ...


1

LESS uses several environment variables to control colors based on termcap library. The list of variable is the following: export LESS_TERMCAP_mb=$'\E[6m' # begin blinking export LESS_TERMCAP_md=$'\E[34m' # begin bold export LESS_TERMCAP_us=$'\E[4;32m' # begin underline export LESS_TERMCAP_so=$'\E[1;33;41m' # begin standout-mode - ...


1

The problem is not that the color is not visible, it is just the same as the terminal background, dark gray for example. The there is a color that is essentially transparent, showing the terminal default color underneath. But it is not shure this color is in use - it may be just that the "black" color used for background is actually the same dark gray as ...


0

This definitely sounds similar to the problem I had with XClock some time ago: Facelifting XClock while using Xrender: A long and winding road Reading the very good answer by Drav Sloan will most probably give you some more insights into the inner workings of .Xresources. By understanding these, one will be surprised to learn about their actual ...


0

This worked: (set-face-attribute 'fringe nil :background "#2E2920" :foreground "#2E2920") #2E2920 being my background color.


3

Probably not, though this may have surprised the devs as well. Here's a comment from an excerpted GNU's ls.c: # /* Extensions only apply to regular files, apparently. */ Here is a link to the full ls.c source in which you will find the same, though it is not as pretty to read, maybe. It is worth noting though you can get some alternation in color for ...



Top 50 recent answers are included