summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-28 15:15:31 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-28 15:15:31 +0000
commitfc359284bf5ac5b1992810911ea1c1721c832119 (patch)
tree840fc8128eb08078e70dd910c499bf642a1af56b /mdk-stage1
parenta2f60de4951b3995e9b1fc2b882b5caef3091195 (diff)
downloaddrakx-backup-do-not-use-fc359284bf5ac5b1992810911ea1c1721c832119.tar
drakx-backup-do-not-use-fc359284bf5ac5b1992810911ea1c1721c832119.tar.gz
drakx-backup-do-not-use-fc359284bf5ac5b1992810911ea1c1721c832119.tar.bz2
drakx-backup-do-not-use-fc359284bf5ac5b1992810911ea1c1721c832119.tar.xz
drakx-backup-do-not-use-fc359284bf5ac5b1992810911ea1c1721c832119.zip
space-pad top line with spaces to the right (like help message)
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/newt-frontend.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdk-stage1/newt-frontend.c b/mdk-stage1/newt-frontend.c
index 9c4fc1526..4520c9a7e 100644
--- a/mdk-stage1/newt-frontend.c
+++ b/mdk-stage1/newt-frontend.c
@@ -46,7 +46,9 @@ void init_frontend(char * welcome_msg)
if (welcome_msg[0]) {
char *msg;
- asprintf(&msg, " %s", welcome_msg);
+ int cols, rows;
+ newtGetScreenSize(&cols, &rows);
+ asprintf(&msg, " %-*s", cols - 1, welcome_msg);
newtDrawRootText(0, 0, msg);
free(msg);
newtPushHelpLine(" <Alt-F1> for here, <Alt-F3> to see the logs, <Alt-F4> for kernel msg");