aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-12-03 17:44:38 +0100
committerLudovic Courtès <ludo@gnu.org>2017-12-03 19:12:16 +0100
commit8638362f138101d36064e8fd5e9115c250cdfec4 (patch)
tree62af017ed3e649587f3e98ab215b70269d19ed95
parent2f60084f77815f454d1521396c2a383390ea2865 (diff)
downloadguix-8638362f138101d36064e8fd5e9115c250cdfec4.tar.gz
guix-8638362f138101d36064e8fd5e9115c250cdfec4.zip
install: Add colors in 'motd' and 'issue'.
* gnu/system/install.scm (%installation-services)[motd]: Add colors. [services]: Use the "lat9u-16" font. (%issue): Add colors.
-rw-r--r--gnu/system/install.scm16
1 files changed, 9 insertions, 7 deletions
diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 4f0beef2bf..78f2bf3a13 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -188,13 +188,13 @@ the user's target storage device rather than on the RAM disk."
(define %installation-services
;; List of services of the installation system.
(let ((motd (plain-file "motd" "
-Welcome to the installation of the Guix System Distribution!
+\x1b[1;37mWelcome to the installation of the Guix System Distribution!\x1b[0m
-There is NO WARRANTY, to the extent permitted by law. In particular, you may
+\x1b[2mThere is NO WARRANTY, to the extent permitted by law. In particular, you may
LOSE ALL YOUR DATA as a side effect of the installation process. Furthermore,
it is 'beta' software, so it may contain bugs.
-You have been warned. Thanks for being so brave.
+You have been warned. Thanks for being so brave.\x1b[0m
")))
(define (normal-tty tty)
(mingetty-service (mingetty-configuration (tty tty)
@@ -245,10 +245,12 @@ You have been warned. Thanks for being so brave.
;; since it takes the installation directory as an argument.
(cow-store-service)
- ;; Install Unicode support and a suitable font.
+ ;; Install Unicode support and a suitable font. Use a font that
+ ;; doesn't have more than 256 glyphs so that we can use colors with
+ ;; varying brightness levels (see note in setfont(8)).
(service console-font-service-type
(map (lambda (tty)
- (cons tty %default-console-font))
+ (cons tty "lat9u-16"))
'("tty1" "tty2" "tty3" "tty4" "tty5" "tty6")))
;; To facilitate copy/paste.
@@ -288,9 +290,9 @@ You have been warned. Thanks for being so brave.
(define %issue
;; Greeting.
"
-This is an installation image of the GNU system. Welcome.
+\x1b[1;37mThis is an installation image of the GNU system. Welcome.\x1b[0m
-Use Alt-F2 for documentation.
+\x1b[1;33mUse Alt-F2 for documentation.\x1b[0m
")
(define installation-os
d>gnu: virtualpg: Update to 2.0.1....Felix Gruber 2021-02-27gnu: libspatialite: Update to 5.0.1....Felix Gruber 2021-02-09gnu: postgis: Update to 3.1.1....Guillaume Le Vaillant 2021-02-08gnu: qgis: Update to 3.16.3....Guillaume Le Vaillant 2021-02-08gnu: qgis: Disable SAGA....Guillaume Le Vaillant 2021-02-03gnu: qmapshack: Update to 1.15.2....Guillaume Le Vaillant 2021-01-27gnu: Add shapelib...Sharlatan Hellseher 2021-01-02gnu: routino: Update to 3.3.3....Tobias Geerinckx-Rice 2020-12-29gnu: readosm: Update source hash....Christopher Baines 2020-12-29gnu: gnome-maps: Patch DBUS service....Leo Prikler 2020-12-23gnu: grass: Update to 7.8.5....Tobias Geerinckx-Rice 2020-12-13gnu: josm: Update to 17329....Julien Lepiller 2020-12-01gnu: libspatialite: Update to 5.0.0....Felix Gruber 2020-12-01gnu: Add librttopo....Felix Gruber 2020-11-24gnu: postgis: Update to 3.0.3....Tobias Geerinckx-Rice 2020-11-19gnu: Don't append '.git' to GitHub uris....Efraim Flashner