From: hackbard Date: Tue, 16 Nov 2004 11:34:46 +0000 (+0000) Subject: improved gui functionality (help + client info) X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b51118179eecd57b59a6de583743c14ce476d0ad;p=physik%2Fnlsop.git improved gui functionality (help + client info) --- diff --git a/nlsop_general.h b/nlsop_general.h index 5078ab5..d466775 100644 --- a/nlsop_general.h +++ b/nlsop_general.h @@ -12,6 +12,7 @@ #define GUI_INFO 'i' #define GUI_ADDJOB 'a' #define GUI_QUIT 'q' +#define GUI_HELP 'h' #define DATA_OK (1<<0) diff --git a/nlsop_gui.c b/nlsop_gui.c index 3129fe2..e467791 100644 --- a/nlsop_gui.c +++ b/nlsop_gui.c @@ -109,6 +109,7 @@ int send_and_wait_for_answer(t_net *net,t_display *display,t_input *input) { int i,count; t_job job; + t_client client; char data; char string[MAX_CONTENT]; @@ -124,6 +125,7 @@ int send_and_wait_for_answer(t_net *net,t_display *display,t_input *input) { return -1; } + display_new_line(display,input,"jobs:"); network_receive_chan(net,0,(unsigned char *)&count,sizeof(int)); for(i=0;ic_count==0) { switch(input->content[0]) { + case GUI_HELP: + display_help(display,input); + break; case GUI_INFO: send_and_wait_for_answer(net,display,input); break;