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

Function print_position

scripts/config/lxdialog/textbox.c:119–128  ·  view source on GitHub ↗

* Print current position */

Source from the content-addressed store, hash-verified

117 * Print current position
118 */
119static void print_position(WINDOW *win)
120{
121 int percent;
122
123 wattrset(win, dlg.position_indicator.atr);
124 wbkgdset(win, dlg.position_indicator.atr & A_COLOR);
125 percent = (page - buf) * 100 / strlen(buf);
126 wmove(win, getmaxy(win) - 3, getmaxx(win) - 9);
127 wprintw(win, "(%3d%%)", percent);
128}
129
130/*
131 * refresh window content

Callers 1

refresh_text_boxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected