diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2017-12-03 17:44:38 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2017-12-03 19:12:16 +0100 |
| commit | 8638362f138101d36064e8fd5e9115c250cdfec4 (patch) | |
| tree | 62af017ed3e649587f3e98ab215b70269d19ed95 | |
| parent | 2f60084f77815f454d1521396c2a383390ea2865 (diff) | |
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.scm | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gnu/system/install.scm b/gnu/system/install.scm index 4f0beef2bf7..78f2bf3a139 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." | |||
| 188 | (define %installation-services | 188 | (define %installation-services |
| 189 | ;; List of services of the installation system. | 189 | ;; List of services of the installation system. |
| 190 | (let ((motd (plain-file "motd" " | 190 | (let ((motd (plain-file "motd" " |
| 191 | Welcome to the installation of the Guix System Distribution! | 191 | \x1b[1;37mWelcome to the installation of the Guix System Distribution!\x1b[0m |
| 192 | 192 | ||
| 193 | There is NO WARRANTY, to the extent permitted by law. In particular, you may | 193 | \x1b[2mThere is NO WARRANTY, to the extent permitted by law. In particular, you may |
| 194 | LOSE ALL YOUR DATA as a side effect of the installation process. Furthermore, | 194 | LOSE ALL YOUR DATA as a side effect of the installation process. Furthermore, |
| 195 | it is 'beta' software, so it may contain bugs. | 195 | it is 'beta' software, so it may contain bugs. |
| 196 | 196 | ||
| 197 | You have been warned. Thanks for being so brave. | 197 | You have been warned. Thanks for being so brave.\x1b[0m |
| 198 | "))) | 198 | "))) |
| 199 | (define (normal-tty tty) | 199 | (define (normal-tty tty) |
| 200 | (mingetty-service (mingetty-configuration (tty tty) | 200 | (mingetty-service (mingetty-configuration (tty tty) |
| @@ -245,10 +245,12 @@ You have been warned. Thanks for being so brave. | |||
| 245 | ;; since it takes the installation directory as an argument. | 245 | ;; since it takes the installation directory as an argument. |
| 246 | (cow-store-service) | 246 | (cow-store-service) |
| 247 | 247 | ||
| 248 | ;; Install Unicode support and a suitable font. | 248 | ;; Install Unicode support and a suitable font. Use a font that |
| 249 | ;; doesn't have more than 256 glyphs so that we can use colors with | ||
| 250 | ;; varying brightness levels (see note in setfont(8)). | ||
| 249 | (service console-font-service-type | 251 | (service console-font-service-type |
| 250 | (map (lambda (tty) | 252 | (map (lambda (tty) |
| 251 | (cons tty %default-console-font)) | 253 | (cons tty "lat9u-16")) |
| 252 | '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6"))) | 254 | '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6"))) |
| 253 | 255 | ||
| 254 | ;; To facilitate copy/paste. | 256 | ;; To facilitate copy/paste. |
| @@ -288,9 +290,9 @@ You have been warned. Thanks for being so brave. | |||
| 288 | (define %issue | 290 | (define %issue |
| 289 | ;; Greeting. | 291 | ;; Greeting. |
| 290 | " | 292 | " |
| 291 | This is an installation image of the GNU system. Welcome. | 293 | \x1b[1;37mThis is an installation image of the GNU system. Welcome.\x1b[0m |
| 292 | 294 | ||
| 293 | Use Alt-F2 for documentation. | 295 | \x1b[1;33mUse Alt-F2 for documentation.\x1b[0m |
| 294 | ") | 296 | ") |
| 295 | 297 | ||
| 296 | (define installation-os | 298 | (define installation-os |
