Ludovic Courtès 2569ef9dab
colors: Introduce a disjoint type and pre-compute ANSI escapes.
* guix/colors.scm (color-table, color): Remove.
(<color>): New record type.
(print-color): New procedure.
(define-color-table, color): New macros.
(color-codes->ansi): New procedure.
(%reset): New variable.
(colorize-string): Rewrite accordingly.
(color-rules): Adjust accordingly.
* guix/status.scm (print-build-event): Adjust to new 'colorize-string'
interface.
* guix/ui.scm (%highlight-argument): Likewise.
(%warning-colors, %info-colors, %error-colors, %hint-colors)
(%highlight-colors): Remove.
(%warning-color, %info-color, %error-color, %hint-color)
(%highlight-color): New variables.
2019-04-11 18:18:13 +02:00
..
2019-04-10 17:09:47 +02:00
2017-07-21 17:03:24 +02:00
2017-01-28 18:55:20 +01:00
2018-08-26 01:47:40 +02:00
2019-03-15 13:05:08 -04:00
2018-09-25 18:45:50 +02:00
2017-11-08 22:31:58 +01:00
2019-04-08 10:42:51 +02:00
2018-06-01 15:21:28 +02:00
2019-03-13 23:12:43 +01:00
2018-09-04 17:25:11 +02:00
2015-01-11 23:50:01 +01:00
2018-12-19 23:52:25 +01:00