Changeset 743414b for menu/lxdialog
- Timestamp:
- 02/10/2012 09:39:11 AM (13 years ago)
- Branches:
- 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- b339c94
- Parents:
- d7390a5
- Location:
- menu/lxdialog
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
menu/lxdialog/dialog.h
rd7390a5 r743414b 175 175 int width, int list_height, int item_no, 176 176 struct dialog_list_item ** items, int flag); 177 extern unsignedchar dialog_input_result[];177 extern char dialog_input_result[]; 178 178 int dialog_inputbox (const char *title, const char *prompt, int height, 179 179 int width, const char *init); -
menu/lxdialog/inputbox.c
rd7390a5 r743414b 22 22 #include "dialog.h" 23 23 24 unsignedchar dialog_input_result[MAX_LEN + 1];24 char dialog_input_result[MAX_LEN + 1]; 25 25 26 26 /* … … 49 49 int i, x, y, box_y, box_x, box_width; 50 50 int input_x = 0, scroll = 0, key = 0, button = -1; 51 unsignedchar *instr = dialog_input_result;51 char *instr = dialog_input_result; 52 52 WINDOW *dialog; 53 53 -
menu/lxdialog/textbox.c
rd7390a5 r743414b 40 40 int i, x, y, cur_x, cur_y, fpos, key = 0; 41 41 int passed_end; 42 char search_term[MAX_LEN + 1];43 42 WINDOW *dialog, *text; 44 45 search_term[0] = '\0'; /* no search term entered yet */46 43 47 44 /* Open input file for reading */ … … 460 457 print_line (WINDOW * win, int row, int width) 461 458 { 462 int y, x;463 459 char *line; 464 460 … … 469 465 waddnstr (win, line, MIN (strlen (line), width - 2)); 470 466 471 getyx (win, y, x);472 467 /* Clear 'residue' of previous line */ 473 468 #if OLD_NCURSES 474 469 { 470 int y, x; 475 471 int i; 472 getyx (win, y, x); 476 473 for (i = 0; i < width - x; i++) 477 474 waddch (win, ' ');
Note:
See TracChangeset
for help on using the changeset viewer.