[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/18: installer: Add optional arguments to addstr*.
From: |
John Darrington |
Subject: |
04/18: installer: Add optional arguments to addstr*. |
Date: |
Thu, 2 Feb 2017 18:13:04 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit dab1055350319d94eca9e147986efbd22dd2dc62
Author: John Darrington <address@hidden>
Date: Mon Jan 30 13:34:23 2017 +0100
installer: Add optional arguments to addstr*.
* gnu/system/installer/utils.scm (addstr*) Add keyword arguments
enter the commit message for your changes. Lines starting
---
gnu/system/installer/utils.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/system/installer/utils.scm b/gnu/system/installer/utils.scm
index 96f49ac..e88524f 100644
--- a/gnu/system/installer/utils.scm
+++ b/gnu/system/installer/utils.scm
@@ -134,9 +134,9 @@ This version assumes some external entity puts in the
carriage returns."
(justify' (string-split text char-set:blank) 0 ""))
-(define (addstr* win str)
+(define* (addstr* win str #:key (y 0) (x 0))
"Call the curses addstr procedure passing STR to justify to the width of WIN"
- (addstr win (justify* str (getmaxx win))))
+ (addstr win (justify* str (getmaxx win)) #:y y #:x x))
(define (open-input-pipe-with-fallback cmd)
"Kludge for testing"
- branch wip-installer updated (9ff399e -> 688f4f7), John Darrington, 2017/02/02
- 04/18: installer: Add optional arguments to addstr*.,
John Darrington <=
- 02/18: installer: New gettext keyword M_., John Darrington, 2017/02/02
- 01/18: installer: Avoid wpa_supplicant's output causing screen damage., John Darrington, 2017/02/02
- 05/18: installer: Main page: Redisplay translatable strings upon refresh., John Darrington, 2017/02/02
- 09/18: installer: Correct placement of gettext call., John Darrington, 2017/02/02
- 08/18: installer: Replace 'file-browser' with 'key-map'., John Darrington, 2017/02/02
- 06/18: installer: Use _ instead of M_ for host-name-refresh., John Darrington, 2017/02/02
- 14/18: gurses: Cache the windows of buttons., John Darrington, 2017/02/02
- 16/18: installer: New procedure key-value-slurp., John Darrington, 2017/02/02
- 18/18: installer: Fix bug when changing languages., John Darrington, 2017/02/02
- 07/18: installer: New page to select language., John Darrington, 2017/02/02