diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-02-28 15:15:31 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-02-28 15:15:31 +0000 |
commit | fc359284bf5ac5b1992810911ea1c1721c832119 (patch) | |
tree | 840fc8128eb08078e70dd910c499bf642a1af56b /mdk-stage1 | |
parent | a2f60de4951b3995e9b1fc2b882b5caef3091195 (diff) | |
download | drakx-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.c | 4 |
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"); |