+void draw_vertical_scroll_hint (struct WinMeta * win_meta, uint16_t x, uint32_t more_cols, char dir) {
+// Draw scroll hint line in win at col x of pad display, announce more_cols more columns in direction dir.
+ uint16_t y, offset;
+ offset = 0;
+ char phrase[] = "more columns";
+ char * scrolldesc = malloc((3 * sizeof(char)) + strlen(phrase) + 10); // 10 = max chars for uint32_t string
+ sprintf(scrolldesc, " %d %s ", more_cols, phrase);
+ offset = 1;
+ if (win_meta->height > (strlen(scrolldesc) + 1))
+ offset = (win_meta->height - strlen(scrolldesc)) / 2;
+ for (y = 0; y < win_meta->height; y++)
+ if (y >= offset && y < strlen(scrolldesc) + offset)
+ mvwaddch(win_meta->pad, y, x, scrolldesc[y - offset] | A_REVERSE);
+ else
+ mvwaddch(win_meta->pad, y, x, dir | A_REVERSE);
+ free(scrolldesc); }
+