Lines Matching refs:text
126 int get_line_no(const char *text)
131 if (!text)
134 for (i = 0; text[i] != '\0'; i++)
135 if (text[i] == '\n')
140 const char *get_line(const char *text, int line_no)
145 if (!text)
148 for (i = 0; text[i] != '\0' && lines < line_no; i++)
149 if (text[i] == '\n')
151 return text+i;
165 void fill_window(WINDOW *win, const char *text)
168 int total_lines = get_line_no(text);
176 const char *line = get_line(text, i);
189 * 1) show a text box, no buttons.
502 const char *text)
504 (void)show_scroll_win_ext(main_window, title, (char *)text, NULL, NULL, NULL, NULL);
508 int show_scroll_win_ext(WINDOW *main_window, const char *title, char *text,
513 int total_lines = get_line_no(text);
534 total_lines = get_line_no(text);
536 const char *line = get_line(text, i);
544 fill_window(pad, text);
610 size_t start = (get_line(text, start_y) - text);
611 size_t end = (get_line(text, start_y + text_lines) - text);