From e279aaff8df4fa1183e0427400eed79f9d9baf4a Mon Sep 17 00:00:00 2001 From: "C. Davis" Date: Wed, 15 Aug 2012 20:50:00 -0700 Subject: regedit: Print help on left side of screen instead of the right. This is little bit easier to read to my eye. Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam --- source3/utils/regedit.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c index 5ca1edffe7..c41c8edb30 100644 --- a/source3/utils/regedit.c +++ b/source3/utils/regedit.c @@ -141,16 +141,15 @@ static void print_help(struct regedit *regedit) move(HELP_START_Y, HELP_START_X); clrtoeol(); - attron(A_REVERSE | A_BOLD); - move(HELP_START_Y, HELP_START_X); - addstr(msg); - attroff(A_BOLD); + attron(A_REVERSE); + mvaddstr(HELP_START_Y, HELP_START_X, help); pad = COLS - strlen(msg) - strlen(help); for (i = 0; i < pad; ++i) { addch(' '); } - addstr(help); - attroff(A_REVERSE); + attron(A_BOLD); + addstr(msg); + attroff(A_REVERSE | A_BOLD); } static void print_heading(struct regedit *regedit) -- cgit