Event History Setup: #287

Allow Event History to be cycled from short string on, long string on, or of with the 'h' shortcut keyf;
This commit is contained in:
lwvmobile
2025-05-12 17:12:10 -04:00
parent f85304471f
commit 59fcfdae81
4 changed files with 18 additions and 15 deletions

View File

@@ -201,10 +201,10 @@ uint8_t ncurses_input_handler(dsd_opts * opts, dsd_state * state, int c)
else opts->call_alert = 1;
}
if (c == 104) //'h' key, toggle history
if (c == 104) //'h' key, cycle history off, short, long
{
if (opts->ncurses_history == 1) opts->ncurses_history = 0;
else opts->ncurses_history = 1;
opts->ncurses_history++;
opts->ncurses_history %= 3;
}
if (c == 113) //'q' key, quit