Skip to content

Commit

Permalink
toggle logging from TUI
Browse files Browse the repository at this point in the history
  • Loading branch information
oguyon committed Feb 16, 2024
1 parent 6367742 commit ecc250f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CommandLineInterface/fpsCTRL/fpsCTRL_TUI.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ inline static void fpsCTRLscreen_print_help()
print_help_entry("R / CTRL+r", "start/stop (R)UN process");
print_help_entry("l", "list all entries");
print_help_entry("f", "export fps content to datadir file");
print_help_entry("g", "FPS log OFF");
print_help_entry("G", "FPS log ON");
print_help_entry(">", "export fpsdatadir values to fpsconfdir");
print_help_entry("<", "import/load values from fpsconfdir to fps");
print_help_entry("P", "(P)rocess input file \"confscript\"");
Expand Down Expand Up @@ -626,7 +628,7 @@ errno_t functionparameter_CTRLscreen(
int flagFPSoutlog = get_FLAG_FPSOUTLOG();
if ( flagFPSoutlog == 0 )
{
TUI_printfw(" OUTPUT LOG [%2d] : DISABLED", flagFPSoutlog);
TUI_printfw(" OUTPUT LOG [%2d] : DISABLED (G/g to toggle ON/OFF)", flagFPSoutlog);
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ int fpsCTRL_TUI_process_user_key(
break;


case 'g':
set_FLAG_FPSOUTLOG(0);
break;
case 'G':
set_FLAG_FPSOUTLOG(1);
break;


case 'v':
fpsCTRLvar->fpsCTRL_DisplayVerbose = 0;
Expand Down

0 comments on commit ecc250f

Please sign in to comment.