From c222fdf0e92b5be5c0583ccc4a7f39aaae929429 Mon Sep 17 00:00:00 2001
From: Arnaud Blanchard <arnaud.blanchard@ensea.fr>
Date: Wed, 17 Jul 2019 10:48:55 +0200
Subject: [PATCH] Improve test interactive mode

---
 src/blc_command.cpp             | 1 +
 t_interactive/t_interactive.cpp | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/blc_command.cpp b/src/blc_command.cpp
index 9fd6e79..a96a5eb 100644
--- a/src/blc_command.cpp
+++ b/src/blc_command.cpp
@@ -13,6 +13,7 @@
   and, more generally, to use and operate it in the same conditions as regards security.
   The fact that you are presently reading this means that you have had knowledge of the CeCILL v2.1 license and that you accept its terms. */
 
+#include <stdio.h>
 #include "blc_command.h"
 #include "blc_realtime.h" //us_
 
diff --git a/t_interactive/t_interactive.cpp b/t_interactive/t_interactive.cpp
index 1ea4eec..6590456 100644
--- a/t_interactive/t_interactive.cpp
+++ b/t_interactive/t_interactive.cpp
@@ -15,7 +15,7 @@ void display_argument(char const* argument, void*user_data){
 int main( int argc, char **argv){
     char const*data_to_pass="Here the text to display";
 
-    fprintf(stderr, "Test BLC_COMMAND_LOOP\n");
+    fprintf(stderr, "Test BLC_COMMAND_LOOP for interactive actions with the terminal\n");
     
     blc_command_add("t", display_test_text, NULL, "Call a function which display the test text", (void*)data_to_pass);
     blc_command_add("a", display_argument, "argument to display", "Call a function which display the text passed as argument", NULL);
@@ -26,7 +26,7 @@ int main( int argc, char **argv){
     //>=0 loop without blocking at the period given in µs (0 as fast as possible)
     
     BLC_COMMAND_LOOP(-2){
-        blc_command_display_help();
+        blc_command_display_help(); //Display the help on the list of command
     }
     return EXIT_SUCCESS;
 }
-- 
GitLab