Commits

Ilya Arkhipov  committed e59a45c

d4p 0.1.5 ready

  • Participants
  • Parent commits 6718978

Comments (0)

Files changed (3)

 SRCS=	dialog4ports.c mixedlist.c
 
 WARNS=	6
+CFLAGS=-g
 
 .if defined(DIALOGSOURCES)
 CFLAGS+=	-I${DIALOGSOURCES} -D_XOPEN_SOURCE_EXTENDED

File dialog4ports.c

 
 #include "mixedlist.h"
 
-#define	D4PVERSION	"0.1.4"
+#define	D4PVERSION	"0.1.5"
 
 static int list_no = 0;
 static int group = 0;
 		if (button < 0)		/* --visit-items */
 			wmove(dialog, box_y + choice + 1, box_x + check_x + 2);
 
+		FILE *file;
+		file = fopen("file.txt","a+");
 		key = dlg_mouse_wgetch(dialog, &fkey);
+		fprintf(file,"=== %d, %d === \n", key, fkey );
 		if (dlg_result_key(key, fkey, &result))
 			break;
 
+		fprintf(file,"=== %d, %d, %d === \n", key, fkey, result);
 		was_mouse = (fkey && is_DLGK_MOUSE(key));
 		if (was_mouse)
 			key -= M_EVENT;
-
+		fprintf(file,"=== %d, %d, %d === \n", key, fkey, was_mouse);
+		fclose(file);
 		if (was_mouse && (key >= KEY_MAX)) {
 			getyx(dialog, cur_y, cur_x);
 			i = (key - KEY_MAX);