Lines Matching defs:text
127 int get_line_no(const char *text)
132 if (!text)
135 for (i = 0; text[i] != '\0'; i++)
136 if (text[i] == '\n')
141 const char *get_line(const char *text, int line_no)
146 if (!text)
149 for (i = 0; text[i] != '\0' && lines < line_no; i++)
150 if (text[i] == '\n')
152 return text+i;
166 void fill_window(WINDOW *win, const char *text)
169 int total_lines = get_line_no(text);
176 const char *line = get_line(text, i);
188 * 1) show a text box, no buttons.
511 const char *text)
513 (void)show_scroll_win_ext(main_window, title, (char *)text, NULL, NULL, NULL, NULL);
517 int show_scroll_win_ext(WINDOW *main_window, const char *title, char *text,
522 int total_lines = get_line_no(text);
543 total_lines = get_line_no(text);
545 const char *line = get_line(text, i);
553 fill_window(pad, text);
619 size_t start = (get_line(text, start_y) - text);
620 size_t end = (get_line(text, start_y + text_lines) - text);