summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorC. Davis <cd.rattan@gmail.com>2012-08-15 20:50:00 -0700
committerMichael Adam <obnox@samba.org>2013-04-29 13:06:30 +0200
commite279aaff8df4fa1183e0427400eed79f9d9baf4a (patch)
tree24b6ff304a6536511a4f7e2c14f9be52d7fa8acd /source3/utils
parent2b6afa6aa426238d6a6d2d04cb7829e82b2b8bd0 (diff)
downloadsamba-e279aaff8df4fa1183e0427400eed79f9d9baf4a.tar.gz
samba-e279aaff8df4fa1183e0427400eed79f9d9baf4a.tar.bz2
samba-e279aaff8df4fa1183e0427400eed79f9d9baf4a.zip
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>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/regedit.c11
1 files 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)