MCPcopy Create free account
hub / github.com/Entware/Entware / print_page

Function print_page

scripts/config/lxdialog/textbox.c:101–114  ·  view source on GitHub ↗

* Print a new page of text. */

Source from the content-addressed store, hash-verified

99 * Print a new page of text.
100 */
101static void print_page(WINDOW *win, int height, int width)
102{
103 int i, passed_end = 0;
104
105 page_length = 0;
106 for (i = 0; i < height; i++) {
107 print_line(win, i, width);
108 if (!passed_end)
109 page_length++;
110 if (end_reached && !passed_end)
111 passed_end = 1;
112 }
113 wnoutrefresh(win);
114}
115
116/*
117 * Print current position

Callers 1

refresh_text_boxFunction · 0.85

Calls 1

print_lineFunction · 0.85

Tested by

no test coverage detected