Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21678 - [yaourt] don't use bold light background colors

Attached to Project: Arch Linux
Opened by Bernd Pol (bernarcher) - Friday, 12 November 2010, 08:35 GMT
Last edited by Allan McRae (Allan) - Friday, 12 November 2010, 09:20 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Bold colors, especially the lighter ones (yellow and green), are barely readable on a light background display. Thus don't use bold there, except for the main black forground color.

This can easily be accomplished in /usr/lib/yaourt/color.sh by selecting the yaourt_colors set depending on the value of USECOLOR or COLORMODE, e.g.

if ((USECOLOR==2)) || [[ $COLORMODE = "lightbg" ]]
then
local yaourt_colors="BOLD=1:BLINK=5:RED=31:GREEN=32:YELLOW=33:BLUE=34:PURPLE=35:CYAN=36"
else
local yaourt_colors="BOLD=1:BLINK=5:RED=1;31:GREEN=1;32:YELLOW=1;33:BLUE=1;34:PURPLE=1;35:CYAN=1;36"
fi

Likewise the pq_colors in the light background case should be adapted to

local pq_colors="no=0:other=0;35:testing=0;31:core=0;31:extra=0;32:local=0;33:nb=7;35:pkg=1:installed=0;35;7:votes=0;33;7:od=0;31;4:ver=0;34:lver=0;35;7:grp=0;34:dsc=0;34"

(Currently I do so by exporting YAOURT_COLORS in my ~/.bashrc.)
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 12 November 2010, 09:20 GMT
Reason for closing:  Not a bug
Additional comments about closing:  yaourt is not supported

Loading...