Commit c6c4f41a authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Reintroduce blc_command_interpret_thread which automatically launch a thread managing the text IHM

parent 3b01d657
......@@ -231,7 +231,16 @@ int blc_command_try_to_interpret(){
return 1;
/// if the parameter is not null we should display the help at each command.
static void *command_thread_interpret_loop(void *){
return NULL;
void blc_command_interpret_thread(char const *option, void (*ask_quit_funcion)()){
pthread_t thread;
......@@ -240,7 +249,7 @@ void blc_command_interpret_thread(char const *option, void (*ask_quit_funcion)()
if (strchr(option, 'h')) blc_command_add("h", (type_blc_command_cb)blc_command_display_help, NULL, "display this help", NULL);
if (strchr(option, 'q')) blc_command_add("q", (type_blc_command_cb)ask_quit_funcion, NULL, "quit the application", NULL);
SYSTEM_ERROR_CHECK(pthread_create(&thread, NULL, command_thread_interpret_loop, NULL), -1, NULL);
void blc_command_update_int_cb(char const *argument, void *int_pt){
char *endptr;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment