mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +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);
|
move(HELP_START_Y, HELP_START_X);
|
||||||
clrtoeol();
|
clrtoeol();
|
||||||
attron(A_REVERSE | A_BOLD);
|
attron(A_REVERSE);
|
||||||
move(HELP_START_Y, HELP_START_X);
|
mvaddstr(HELP_START_Y, HELP_START_X, help);
|
||||||
addstr(msg);
|
|
||||||
attroff(A_BOLD);
|
|
||||||
pad = COLS - strlen(msg) - strlen(help);
|
pad = COLS - strlen(msg) - strlen(help);
|
||||||
for (i = 0; i < pad; ++i) {
|
for (i = 0; i < pad; ++i) {
|
||||||
addch(' ');
|
addch(' ');
|
||||||
}
|
}
|
||||||
addstr(help);
|
attron(A_BOLD);
|
||||||
attroff(A_REVERSE);
|
addstr(msg);
|
||||||
|
attroff(A_REVERSE | A_BOLD);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_heading(struct regedit *regedit)
|
static void print_heading(struct regedit *regedit)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user