mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
ui: allow switching to incognito mode through ncurses interface.
This commit is contained in:
parent
d78f372712
commit
5a8f84b49b
11
sgminer.c
11
sgminer.c
@ -4673,15 +4673,16 @@ static void display_options(void)
|
||||
clear_logwin();
|
||||
retry:
|
||||
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"
|
||||
"[R]PC debug:%s\n[W]orkTime details:%s\nco[M]pact: %s\n"
|
||||
"[L]og interval:%d\n[Z]ero statistics\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\n[I]ncognito: %s\n"
|
||||
"co[M]pact: %s\n[L]og interval: %d\n[Z]ero statistics\n",
|
||||
opt_debug ? "on" : "off",
|
||||
want_per_device_stats? "on" : "off",
|
||||
opt_quiet ? "on" : "off",
|
||||
opt_log_output ? "on" : "off",
|
||||
opt_protocol ? "on" : "off",
|
||||
opt_worktime ? "on" : "off",
|
||||
opt_incognito ? "on" : "off",
|
||||
opt_compact ? "on" : "off",
|
||||
opt_log_interval);
|
||||
wlogprint("Select an option or any other key to return\n");
|
||||
@ -4714,6 +4715,10 @@ retry:
|
||||
opt_quiet = false;
|
||||
wlogprint("Debug mode %s\n", opt_debug ? "enabled" : "disabled");
|
||||
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)) {
|
||||
opt_compact ^= true;
|
||||
wlogprint("Compact mode %s\n", opt_compact ? "enabled" : "disabled");
|
||||
|
Loading…
x
Reference in New Issue
Block a user