[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
57/197: installer: Add a console-keymap service.
From: |
Danny Milosavljevic |
Subject: |
57/197: installer: Add a console-keymap service. |
Date: |
Mon, 3 Jul 2017 20:37:00 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit 6bb4f318c813445d585f81f17a3ee75fee44d61f
Author: John Darrington <address@hidden>
Date: Sat Dec 31 14:37:54 2016 +0000
installer: Add a console-keymap service.
* gnu/system/installer/configure.scm (generate-guix-config): Add a
console-keymap-service if the key-map variable is not #f.
* gnu/system/installer/file-browser.scm (file-browser-page-key-handler):
Set key-map on enter.
* gnu/system/installer/misc.scm (key-map): New variable.
---
gnu/system/installer/configure.scm | 6 +++++-
gnu/system/installer/file-browser.scm | 14 +++++++-------
gnu/system/installer/misc.scm | 2 ++
3 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/gnu/system/installer/configure.scm
b/gnu/system/installer/configure.scm
index 1878956..b855923 100644
--- a/gnu/system/installer/configure.scm
+++ b/gnu/system/installer/configure.scm
@@ -178,7 +178,11 @@
(list '%base-file-systems)))
(users (cons* %base-user-accounts))
(packages (cons* nss-certs %base-packages))
- (services (cons* %desktop-services))
+ (services (cons*
+ ,@(if key-map
+ `((console-keymap-service ,key-map))
+ `())
+ %desktop-services))
(name-service-switch %mdns-host-lookup-nss)) p)))
diff --git a/gnu/system/installer/file-browser.scm
b/gnu/system/installer/file-browser.scm
index 87d8ef9..35c54cb 100644
--- a/gnu/system/installer/file-browser.scm
+++ b/gnu/system/installer/file-browser.scm
@@ -63,19 +63,19 @@
((and (eqv? ch #\newline)
(menu-active menu))
(let* ((i (menu-get-current-item menu))
- (new-dir (string-append directory "/" i)))
+ (new-dir (string-append directory "/" i)))
(if (eq? 'directory (stat:type (stat new-dir)))
(let ((p (make-file-browser
page new-dir)))
(set! page-stack (cons p page-stack))
((page-refresh p) p))
(begin
- (system* "loadkeys" i)
- (set! page-stack (page-datum page 'exit-point))
- #f)))
- ))
- (std-menu-key-handler menu ch)
- #f))
+ (system* "loadkeys" i)
+ (set! key-map i)
+ (set! page-stack (page-datum page 'exit-point))
+ #f)))))
+ (std-menu-key-handler menu ch)
+ #f))
(define (file-browser-page-refresh page)
diff --git a/gnu/system/installer/misc.scm b/gnu/system/installer/misc.scm
index e9e9083..e0af33d 100644
--- a/gnu/system/installer/misc.scm
+++ b/gnu/system/installer/misc.scm
@@ -23,6 +23,7 @@
#:export (time-zone)
#:export (host-name)
#:export (config-file)
+ #:export (key-map)
#:export (mount-points))
(define livery-title 1)
@@ -32,6 +33,7 @@
(define time-zone "")
(define host-name "")
+(define key-map #f)
(define config-file #f)
- 64/197: installer: Make setting up of the network a prerequisite., (continued)
- 64/197: installer: Make setting up of the network a prerequisite., Danny Milosavljevic, 2017/07/03
- 80/197: installer: Ignore case in button accelerators., Danny Milosavljevic, 2017/07/03
- 86/197: installer: slurp: Ignore blank lines in output., Danny Milosavljevic, 2017/07/03
- 76/197: installer: New procedure "page-leave"., Danny Milosavljevic, 2017/07/03
- 84/197: installer: Use guix build syscalls module for network interrogation., Danny Milosavljevic, 2017/07/03
- 94/197: installer: Add the notion of uuids to prospective filesystems., Danny Milosavljevic, 2017/07/03
- 89/197: installer: Make the network menu more reliable., Danny Milosavljevic, 2017/07/03
- 90/197: installer: Enable direct scrolling to top or bottom of menus., Danny Milosavljevic, 2017/07/03
- 78/197: installer: Ensure that the cursor visibility is updated on each page., Danny Milosavljevic, 2017/07/03
- 107/197: installer: Do not allow the creation of invalid file-system specificaitons., Danny Milosavljevic, 2017/07/03
- 57/197: installer: Add a console-keymap service.,
Danny Milosavljevic <=
- 69/197: installer: Remove "continue" button from host name page., Danny Milosavljevic, 2017/07/03
- 58/197: installer: Add flags to indicate network interface status., Danny Milosavljevic, 2017/07/03
- 72/197: installer: Use --fallback when installing., Danny Milosavljevic, 2017/07/03
- 73/197: installer: Correct behaviour of push-cursor and pop-cursor procedures., Danny Milosavljevic, 2017/07/03
- 77/197: installer: New procedure: page-enter., Danny Milosavljevic, 2017/07/03
- 82/197: installer: Rename 'file-browser.scm' to 'key-map.scm'., Danny Milosavljevic, 2017/07/03
- 63/197: installer: Change essid --> wireless., Danny Milosavljevic, 2017/07/03
- 70/197: installer: Rename "file-browser" -> "time-zone"., Danny Milosavljevic, 2017/07/03
- 81/197: installer: Make all windows with ports scrollable., Danny Milosavljevic, 2017/07/03
- 62/197: installer: Add page with which the wifi password can be entered., Danny Milosavljevic, 2017/07/03