1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

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 <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
C. Davis 2012-08-15 20:50:00 -07:00 committed by Michael Adam
parent 2b6afa6aa4
commit e279aaff8d

View File

@ -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)