|
|
@ -4674,14 +4674,15 @@ static void display_options(void) |
|
|
|
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"); |
|
|
|