Browse Source

ui: allow switching to incognito mode through ncurses interface.

build-mingw
Noel Maersk 11 years ago
parent
commit
5a8f84b49b
  1. 11
      sgminer.c

11
sgminer.c

@ -4673,15 +4673,16 @@ static void display_options(void)
clear_logwin(); clear_logwin();
retry: retry:
wlogprint("[N]ormal [C]lear [S]ilent mode (disable all output)\n"); wlogprint("[N]ormal [C]lear [S]ilent mode (disable all output)\n");
wlogprint("[D]ebug:%s\n[P]er-device:%s\n[Q]uiet:%s\n[V]erbose:%s\n" wlogprint("[D]ebug: %s\n[P]er-device: %s\n[Q]uiet: %s\n[V]erbose: %s\n"
"[R]PC debug:%s\n[W]orkTime details:%s\nco[M]pact: %s\n" "[R]PC debug: %s\n[W]orkTime details: %s\n[I]ncognito: %s\n"
"[L]og interval:%d\n[Z]ero statistics\n", "co[M]pact: %s\n[L]og interval: %d\n[Z]ero statistics\n",
opt_debug ? "on" : "off", opt_debug ? "on" : "off",
want_per_device_stats? "on" : "off", want_per_device_stats? "on" : "off",
opt_quiet ? "on" : "off", opt_quiet ? "on" : "off",
opt_log_output ? "on" : "off", opt_log_output ? "on" : "off",
opt_protocol ? "on" : "off", opt_protocol ? "on" : "off",
opt_worktime ? "on" : "off", opt_worktime ? "on" : "off",
opt_incognito ? "on" : "off",
opt_compact ? "on" : "off", opt_compact ? "on" : "off",
opt_log_interval); opt_log_interval);
wlogprint("Select an option or any other key to return\n"); wlogprint("Select an option or any other key to return\n");
@ -4714,6 +4715,10 @@ retry:
opt_quiet = false; opt_quiet = false;
wlogprint("Debug mode %s\n", opt_debug ? "enabled" : "disabled"); wlogprint("Debug mode %s\n", opt_debug ? "enabled" : "disabled");
goto retry; goto retry;
} else if (!strncasecmp(&input, "i", 1)) {
opt_incognito ^= true;
wlogprint("Incognito mode %s\n", opt_compact ? "enabled" : "disabled");
goto retry;
} else if (!strncasecmp(&input, "m", 1)) { } else if (!strncasecmp(&input, "m", 1)) {
opt_compact ^= true; opt_compact ^= true;
wlogprint("Compact mode %s\n", opt_compact ? "enabled" : "disabled"); wlogprint("Compact mode %s\n", opt_compact ? "enabled" : "disabled");

Loading…
Cancel
Save