}
}
+void about (void)
+{
+ int xmax, ymax;
+ WINDOW *wbody = bodywin ();
+ getmaxyx (stdscr, ymax, xmax);
+
+ wmove (stdscr, ymax / 4, xmax / 4);
+ WINDOW *whelp = winputbox (stdscr, ymax / 2, xmax / 2);
+
+ wmove (whelp, 1, 1);
+ waddstr (whelp, "CMore: a curses more\nThis program is a pager with a text user interface.\nTo move displayed text or in menu, use arrow keys or vim keys (i, j, k, l).\nTo access menus, use Alt-f of Alt-h.\nTo quit displayed text, press Escape or 'q'.");
+ wrefresh (whelp);
+
+ waitforkey ();
+
+ delwin (whelp);
+ wrefresh (wbody);
+}
+
menu SubMenu0[] =
{
{ "Refresh", process, "Refresh action"},
menu SubMenu1[] =
{
- { "About", DoExit, "About..." },
+ { "About", about, "About..." },
{ "", (FUNC)0, "" }
};