From: ewt Date: Sun, 31 Mar 1996 02:47:20 +0000 (+0000) Subject: added version number, copyright message X-Git-Tag: 0-1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88d3e0a35051e45ad41fffc9b0bdab2a8f0f8023;p=thirdparty%2Fnewt.git added version number, copyright message --- diff --git a/newt.c b/newt.c index a19f665..a49cc16 100644 --- a/newt.c +++ b/newt.c @@ -43,7 +43,7 @@ struct newtColors newtDefaultColorPalette = { "lightgray", "red", /* active listbox fg, bg */ }; -struct keymap keymap[] = { +static struct keymap keymap[] = { { "\033OA", NEWT_KEY_UP, "kh" }, { "\033[A", NEWT_KEY_UP, "ku" }, { "\033OB", NEWT_KEY_DOWN, "kd" }, @@ -63,7 +63,13 @@ struct keymap keymap[] = { { NULL, 0, NULL }, /* LEAVE this one */ }; -char keyPrefix = '\033'; +static char keyPrefix = '\033'; + +static char * version = "Newt windowing library version " VERSION + " - (C) 1996 Red Hat Software. " + "Redistributable under the term of the Library " + "GNU Public Library. " + "written by Erik Troan\n"; void newtRefresh(void) { SLsmg_refresh(); @@ -78,6 +84,9 @@ void newtCls(void) { } int newtInit(void) { + /* use the version variable just to be sure it gets included */ + strlen(version); + SLtt_get_terminfo(); SLtt_Use_Ansi_Colors = 1;