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:
parent
2b6afa6aa4
commit
e279aaff8d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user