Lines Matching +defs:command +defs:line

88 	u_int				 line;
118 u_int line;
174 * If the current line would now be off screen reset the offset to the
175 * last visible line.
194 struct mode_tree_line *line;
203 line = &mtd->line_list[mtd->line_size++];
204 line->item = mti;
205 line->depth = depth;
206 line->last = (mti == TAILQ_LAST(mtl, mode_tree_list));
208 mti->line = (mtd->line_size - 1);
216 mti->line);
219 } else if (mti->line < 10)
220 mti->key = '0' + mti->line;
221 else if (mti->line < 36)
222 mti->key = KEYC_META|('a' + mti->line - 10);
236 line = &mtd->line_list[i];
237 if (line->item == mti)
238 line->flat = flat;
652 struct mode_tree_line *line;
690 line = &mtd->line_list[i];
691 mti = line->item;
701 if (line->flat)
710 if (line->depth == 0)
713 size = (4 * line->depth) + 32;
716 for (j = 1; j < line->depth; j++) {
718 mtd->line_list[mti->parent->line].last)
723 if (line->last)
777 line = &mtd->line_list[mtd->current];
778 mti = line->item;
998 if (mtm->line >= mtd->line_size)
1000 mtd->current = mtm->line;
1017 u_int line;
1020 line = mtd->current;
1022 line = mtd->offset + y;
1023 mti = mtd->line_list[line].item;
1039 mtm->line = line;
1058 struct mode_tree_line *line;
1099 line = &mtd->line_list[mtd->current];
1100 current = line->item;
1213 if (line->flat || !current->expanded)
1219 mtd->current = current->line;
1226 if (line->flat || current->expanded)
1228 else if (!line->flat) {
1290 char *command, *error;
1293 command = cmd_template_replace(template, name, 1);
1294 if (command != NULL && *command != '\0') {
1296 status = cmd_parse_and_append(command, NULL, c, state, &error);
1306 free(command);