diff options
-rw-r--r-- | lib/libncurses/Makefile | 5 | ||||
-rw-r--r-- | lib/libncurses/copyright.c | 19 | ||||
-rw-r--r-- | lib/libncurses/lib_initscr.c | 7 | ||||
-rw-r--r-- | lib/ncurses/ncurses/Makefile | 5 |
4 files changed, 32 insertions, 4 deletions
diff --git a/lib/libncurses/Makefile b/lib/libncurses/Makefile index a5c2911..edbac1a 100644 --- a/lib/libncurses/Makefile +++ b/lib/libncurses/Makefile @@ -1,3 +1,6 @@ +# Makefile for ncurses +# $Id$ + LIB= ncurses INCDIR= /usr/include CFLAGS+= -Wall -DMYTINFO -DTERMIOS -DGOOD_SELECT -DBSDTABS @@ -11,7 +14,7 @@ SRCS= lib_kernel.c lib_pad.c\ lib_box.c lib_clear.c lib_delch.c lib_deleteln.c lib_insch.c \ lib_insertln.c lib_getstr.c lib_mvwin.c lib_longname.c lib_tstp.c \ lib_newterm.c lib_set_term.c lib_overlay.c lib_scrreg.c lib_color.c \ - lib_insstr.c lib_insdel.c lib_twait.c + lib_insstr.c lib_insdel.c lib_twait.c copyright.c CLEANFILES+= lib_keyname.c ${.CURDIR}/keys.tries beforedepend: ${.CURDIR}/keys.tries diff --git a/lib/libncurses/copyright.c b/lib/libncurses/copyright.c new file mode 100644 index 0000000..ac95b49 --- /dev/null +++ b/lib/libncurses/copyright.c @@ -0,0 +1,19 @@ +char _ncurses_copyright[] = "\ +/***************************************************************************\n\ +* COPYRIGHT NOTICE *\n\ +****************************************************************************\n\ +* ncurses is copyright (C) 1992, 1993, 1994 *\n\ +* by Zeyd M. Ben-Halim *\n\ +* zmbenhal@netcom.com *\n\ +* *\n\ +* Permission is hereby granted to reproduce and distribute ncurses *\n\ +* by any means and for any fee, whether alone or as part of a *\n\ +* larger distribution, in source or in binary form, PROVIDED *\n\ +* this notice remains in the sources and is reproduced in any *\n\ +* documentation accompanying it or the applications linked with it. *\n\ +* Any other use of ncurses, including incorporating it in another *\n\ +* product is subject to written permission. *\n\ +* *\n\ +* ncurses comes AS IS with no warranty, implied or expressed. *\n\ +* *\n\ +***************************************************************************/\n"; diff --git a/lib/libncurses/lib_initscr.c b/lib/libncurses/lib_initscr.c index a81783f..930245b7 100644 --- a/lib/libncurses/lib_initscr.c +++ b/lib/libncurses/lib_initscr.c @@ -13,17 +13,20 @@ #include <stdlib.h> #include "curses.priv.h" +extern char _ncurses_copyright[]; + WINDOW *initscr() { + char *use_it; #ifdef TRACE _init_trace(); if (_tracing) _tracef("initscr() called"); #endif - + use_it = _ncurses_copyright; if (newterm(getenv("TERM"), stdout, stdin) == NULL) - return NULL; + return NULL; else { def_shell_mode(); def_prog_mode(); diff --git a/lib/ncurses/ncurses/Makefile b/lib/ncurses/ncurses/Makefile index a5c2911..edbac1a 100644 --- a/lib/ncurses/ncurses/Makefile +++ b/lib/ncurses/ncurses/Makefile @@ -1,3 +1,6 @@ +# Makefile for ncurses +# $Id$ + LIB= ncurses INCDIR= /usr/include CFLAGS+= -Wall -DMYTINFO -DTERMIOS -DGOOD_SELECT -DBSDTABS @@ -11,7 +14,7 @@ SRCS= lib_kernel.c lib_pad.c\ lib_box.c lib_clear.c lib_delch.c lib_deleteln.c lib_insch.c \ lib_insertln.c lib_getstr.c lib_mvwin.c lib_longname.c lib_tstp.c \ lib_newterm.c lib_set_term.c lib_overlay.c lib_scrreg.c lib_color.c \ - lib_insstr.c lib_insdel.c lib_twait.c + lib_insstr.c lib_insdel.c lib_twait.c copyright.c CLEANFILES+= lib_keyname.c ${.CURDIR}/keys.tries beforedepend: ${.CURDIR}/keys.tries |