summaryrefslogtreecommitdiffstats
path: root/include/colors.h
Commit message (Collapse)AuthorAgeFilesLines
* lib/colors: force to "never" mode on non-terminal outputKarel Zak2019-02-041-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: Fix bug where help text was not being translated.Sebastian Rasmussen2017-05-281-2/+2
| | | | This affected cfdisk, fdisk, sfdisk, cal, dmesg and hexdump.
* textual: adjust grammar and punctuation of some messagesBenno Schulenberg2015-08-031-3/+3
| | | | | | | Also equalize three messages to one other one, and fix a typo in USE_COLORS_BY_DEFAULT. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* libsmartcols: don't link with tinfoKarel Zak2015-07-241-32/+1Star
| | | | | | | Let's move color names to sequence translation to separate file to make it usable without all the stuff in lib/colors.c. Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: add USAGE_COLORS_DEFAULTKarel Zak2015-02-251-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: add function to return color from schemeKarel Zak2014-08-131-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: support schemes customizationKarel Zak2014-05-131-6/+13
| | | | | | | | | | | | | | | | * parse terminal-colors.d/*.scheme files, expected format is <name> <color-sequence> * supported color sequences: - color name (e.g. "red") - dir_colors compatible xx;yy (e.g. 01;31) where the sequence may contains control chars like \e \a ..etc. * scheme is parsed on demand Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: allow to temporary disable colorsKarel Zak2014-05-131-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: check for /etc/terminal-colors.d/[util].disableOndrej Oprala2014-03-111-2/+3
| | | | | | | | [kzak@redhat.com: - move paths to pathnames.h, - use static path buffer] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/color: add colorscheme parserKarel Zak2014-02-101-0/+1
|
* fdisk: add -L to colorize outputKarel Zak2013-09-161-2/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: add colormode_or_err()Karel Zak2013-05-071-0/+1
| | | | | | ... to make the code easy to use in utils. Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: add support for auto, always and never modesKarel Zak2013-05-061-1/+12
| | | | | | ... to implement --color[=<when>] Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: more colors, more funKarel Zak2013-03-181-1/+1
| | | | | | | | * colorize subsystem prefix * colorize time * colorize by keywords (now "segfault" only) Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/color: add module for work with terminal colorsOndrej Oprala2012-10-161-0/+50
[kzak@redhat.com: - split from dmesg patch - add more colors] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>