[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/05: install: Add colors in 'motd' and 'issue'.
From: |
Ludovic Courtès |
Subject: |
05/05: install: Add colors in 'motd' and 'issue'. |
Date: |
Sun, 3 Dec 2017 14:23:28 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 8638362f138101d36064e8fd5e9115c250cdfec4
Author: Ludovic Courtès <address@hidden>
Date: Sun Dec 3 17:44:38 2017 +0100
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.
---
gnu/system/install.scm | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 4f0beef..78f2bf3 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
- branch master updated (d112e5a -> 8638362), Ludovic Courtès, 2017/12/03
- 04/05: profiles: Avoid _IO* in profile builder., Ludovic Courtès, 2017/12/03
- 02/05: install: Add the prerequisites of 'profile-derivation' as GC roots., Ludovic Courtès, 2017/12/03
- 03/05: doc: Link to work on bootstrapping., Ludovic Courtès, 2017/12/03
- 01/05: profiles: Do not import the host's srfi-{19,26}.scm files., Ludovic Courtès, 2017/12/03
- 05/05: install: Add colors in 'motd' and 'issue'.,
Ludovic Courtès <=