Lines Matching refs:instr

27 static void redraw_field(WINDOW *dialog, int box_y, int box_x, int flen, int box_width, unsigned char instr[], int input_x, int scroll, chtype attr, chtype old_attr, int fexit, int attr_mask);
37 static unsigned char instr[MAX_LEN+1];
48 memset(instr, 0, sizeof(instr));
49 strcpy(instr, result);
50 i = strlen(instr);
56 redraw_field(dialog, box_y, box_x, flen, box_width, instr, input_x, scroll, attr, old_attr, FALSE, attr_mask);
76 for (i = strlen(instr) - 1; i >= scroll + input_x && instr[i] == ' '; i--)
77 instr[i] = '\0';
88 memset(instr + scroll + input_x, '\0', sizeof(instr) - scroll - input_x);
89 redraw_field(dialog, box_y, box_x, flen, box_width, instr, input_x, scroll, attr, old_attr, FALSE, attr_mask);
94 redraw_field(dialog, box_y, box_x, flen, box_width, instr, input_x, scroll, attr, old_attr, FALSE, attr_mask);
98 for (i = strlen(instr) - 1; i >= scroll + input_x && instr[i] == ' '; i--)
99 instr[i] = '\0';
103 redraw_field(dialog, box_y, box_x, flen, box_width, instr, input_x, scroll, attr, old_attr, FALSE, attr_mask);
112 redraw_field(dialog, box_y, box_x, flen, box_width, instr, input_x, scroll, attr, old_attr, FALSE, attr_mask);
125 if (!instr[scroll+input_x])
126 instr[scroll+input_x] = ' ';
129 redraw_field(dialog, box_y, box_x, flen, box_width, instr, input_x, scroll, attr, old_attr, FALSE, attr_mask);
133 waddch(dialog, instr[scroll+input_x]);
144 i = strlen(instr);
145 memmove(instr+scroll+input_x-1, instr+scroll+input_x, i-(scroll+input_x)+1);
152 redraw_field(dialog, box_y, box_x, flen, box_width, instr, input_x, scroll, attr, old_attr, FALSE, attr_mask);
158 for (i = strlen(instr) - 1; i >= scroll + input_x && instr[i] == ' '; i--)
159 instr[i] = '\0';
165 memmove(instr+scroll+input_x, instr+scroll+input_x+1, i-(scroll+input_x));
166 redraw_field(dialog, box_y, box_x, flen, box_width, instr, input_x, scroll, attr, old_attr, FALSE, attr_mask);
174 for (i = strlen(instr) - 1; i >= scroll + input_x && instr[i] == ' '; i--)
175 instr[i] = '\0';
179 memmove(instr+scroll+input_x+1, instr+scroll+input_x, i-(scroll+input_x));
180 instr[scroll+input_x] = key;
185 redraw_field(dialog, box_y, box_x, flen, box_width, instr, input_x, scroll, attr, old_attr, FALSE, attr_mask);
193 redraw_field(dialog, box_y, box_x, flen, box_width, instr, input_x, scroll, attr, old_attr, TRUE, attr_mask);
195 strcpy(result, instr);
200 redraw_field(WINDOW *dialog, int box_y, int box_x, int flen, int box_width, unsigned char instr[], int input_x, int scroll, chtype attr, chtype old_attr, int fexit, int attr_mask)
208 waddch(dialog, instr[scroll+i] ? ((attr_mask & DITEM_NO_ECHO) ? '*' : instr[scroll+i]) : ' ');
211 waddch(dialog, instr[scroll+i] ? ((attr_mask & DITEM_NO_ECHO) ? '*' : instr[scroll+i]) : ' ');