|
|
|
|
@ -570,20 +570,20 @@ void yon_launch_with_output(char *command){
|
|
|
|
|
input.command=command;
|
|
|
|
|
input.data=output_file;
|
|
|
|
|
pthread_create(&tid,NULL,(void*)yon_popen,&input);
|
|
|
|
|
char **output_strings = NULL;
|
|
|
|
|
output_strings = malloc(sizeof(char));
|
|
|
|
|
int i = 0;
|
|
|
|
|
char str[1000];
|
|
|
|
|
memset(str, 0, 1000);
|
|
|
|
|
while (1){
|
|
|
|
|
if (output){
|
|
|
|
|
if (fgets(str, 1000, output)){
|
|
|
|
|
videoconfig.status_render.text_to_render=str;
|
|
|
|
|
videoconfig.status_render.type=BACKGROUND_IMAGE_SUCCESS_TYPE;
|
|
|
|
|
_yon_ubl_status_box_render(&videoconfig.status_render);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// char **output_strings = NULL;
|
|
|
|
|
// output_strings = malloc(sizeof(char));
|
|
|
|
|
// int i = 0;
|
|
|
|
|
// char str[1000];
|
|
|
|
|
// memset(str, 0, 1000);
|
|
|
|
|
// while (1){
|
|
|
|
|
// if (output){
|
|
|
|
|
// if (fgets(str, 1000, output)){
|
|
|
|
|
// videoconfig.status_render.text_to_render=str;
|
|
|
|
|
// videoconfig.status_render.type=BACKGROUND_IMAGE_SUCCESS_TYPE;
|
|
|
|
|
// _yon_ubl_status_box_render(&videoconfig.status_render);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**void yon_monitor_view_draw_all(GtkWidget *cnt)
|
|
|
|
|
|