summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/regedit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c
index 824bc3f86f..bd9765e5db 100644
--- a/source3/utils/regedit.c
+++ b/source3/utils/regedit.c
@@ -438,13 +438,20 @@ static void display_window(TALLOC_CTX *mem_ctx, struct registry_context *ctx)
{
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;