summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-28 15:14:53 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-28 15:14:53 +0000
commita2f60de4951b3995e9b1fc2b882b5caef3091195 (patch)
tree376ef9de9a165fabd92bb8e584428bb15de56993 /mdk-stage1
parente06fef1b9526ac733db2fdfc34b06388faffa36a (diff)
downloaddrakx-a2f60de4951b3995e9b1fc2b882b5caef3091195.tar
drakx-a2f60de4951b3995e9b1fc2b882b5caef3091195.tar.gz
drakx-a2f60de4951b3995e9b1fc2b882b5caef3091195.tar.bz2
drakx-a2f60de4951b3995e9b1fc2b882b5caef3091195.tar.xz
drakx-a2f60de4951b3995e9b1fc2b882b5caef3091195.zip
add a space in front of top line (like help message)
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/newt-frontend.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mdk-stage1/newt-frontend.c b/mdk-stage1/newt-frontend.c
index 2a44e01e3..9c4fc1526 100644
--- a/mdk-stage1/newt-frontend.c
+++ b/mdk-stage1/newt-frontend.c
@@ -43,12 +43,14 @@ void init_frontend(char * welcome_msg)
for (i=0; i<38; i++) printf("\n");
newtInit();
newtCls();
-
- newtDrawRootText(0, 0, welcome_msg);
- if (welcome_msg[0])
+ if (welcome_msg[0]) {
+ char *msg;
+ asprintf(&msg, " %s", welcome_msg);
+ newtDrawRootText(0, 0, msg);
+ free(msg);
newtPushHelpLine(" <Alt-F1> for here, <Alt-F3> to see the logs, <Alt-F4> for kernel msg");
-
+ }
newtRefresh();
}