Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Mon Apr 29 15:02:19 CEST 2013 on sn-devel-104
{
struct regedit *regedit;
struct tree_node *root;
+ bool colors;
int key;
initscr();
- start_color();
+
cbreak();
noecho();
+ colors = has_colors();
+ if (colors) {
+ start_color();
+ use_default_colors();
+ }
+
regedit = talloc_zero(mem_ctx, struct regedit);
SMB_ASSERT(regedit != NULL);
regedit_main = regedit;