1 diff -urNd -urNd ncurses-5.3/ANNOUNCE ncurses-5.3.20030906.orig/ANNOUNCE
2 --- ncurses-5.3/ANNOUNCE Sat Oct 12 18:36:19 2002
3 +++ ncurses-5.3.20030906.orig/ANNOUNCE Tue May 13 20:08:22 2003
5 manual pages are provided for the library and tools.
7 The ncurses distribution is available via anonymous FTP at the GNU
8 - distribution site [1]ftp://ftp.gnu.org/pub/gnu/ncurses.
9 - It is also available at [2]ftp://invisible-island.net/ncurses.
10 + distribution site [1]ftp://ftp.gnu.org/gnu/ncurses/ .
11 + It is also available at [2]ftp://invisible-island.net/ncurses/ .
18 Curses Development Kit
19 - [3]http://invisible-island.net/cdk.
20 - [4]http://www.vexus.ca/CDK.html
21 + [3]http://invisible-island.net/cdk/
22 + [4]http://www.vexus.ca/products/CDK/
26 - [5]http://invisible-island.net/ded.
27 + [5]http://invisible-island.net/ded/
30 the underlying application used in Slackware's setup, and the
31 basis for similar applications on GNU/Linux.
32 - [6]http://invisible-island.net/dialog.
33 + [6]http://invisible-island.net/dialog/
36 the character-screen WWW browser
37 - [7]http://lynx.isc.org/release.
38 + [7]http://lynx.isc.org/release/
42 - [8]www.gnome.org/mc/.
43 + [8]http://www.ibiblio.org/mc/
47 - [9]http://www.mutt.org.
48 + [9]http://www.mutt.org/
52 - [10]http://www.ncftp.com.
53 + [10]http://www.ncftp.com/
56 New vi versions 1.50 are able to use ncurses versions 1.9.7 and
58 - [11]http://www.bostic.com/vi/.
59 + [11]http://www.bostic.com/vi/
62 newsreader, supporting color, MIME
63 - [12]http://www.tin.org.
64 + [12]http://www.tin.org/
68 - [13]http://members.iinet.net.au/~yusuf/taper/.
69 + [13]http://taper.e-survey.net.au/
72 Volks-Hypertext browser for the Jargon File
73 - [14]http://www.bg.debian.org/Packages/unstable/text/vh.html.
74 + [14]http://www.debian.org/Packages/unstable/text/vh.html
76 as well as some that use ncurses for the terminfo support alone:
80 - [15]http://www.pp.clinet.fi/~walker/minicom.html.
81 + [15]http://www.netsonic.fi/~walker/minicom.html
85 - [16]http://invisible-island.net/vile.
86 + [16]http://invisible-island.net/vile/
88 The ncurses distribution includes a selection of test programs
89 (including a few games).
91 and testing of this package.
93 Beta versions of ncurses and patches to the current release are made
94 - available at [23]ftp://invisible-island.net/ncurses.
95 + available at [23]ftp://invisible-island.net/ncurses/ .
101 The distribution includes and uses a version of the terminfo-format
102 terminal description file maintained by Eric Raymond.
103 - [24]http://earthspace.net/~esr/terminfo.
104 + [24]http://www.tuxedo.org/~esr/terminfo/ .
106 You can find lots of information on terminal-related topics not
107 - covered in the terminfo file at [25]Richard Shuford's archive.
108 + covered in the terminfo file at [25]Richard Shuford's archive .
112 - 1. ftp://ftp.gnu.org/pub/gnu/ncurses
113 - 2. ftp://invisible-island.net/ncurses
114 - 3. http://invisible-island.net/cdk/cdk.html
115 - 4. http://www.vexus.ca/CDK.html
116 - 5. http://invisible-island.net/ded/ded.html
117 - 6. http://invisible-island.net/dialog/dialog.html
118 + 1. ftp://ftp.gnu.org/gnu/ncurses/
119 + 2. ftp://invisible-island.net/ncurses/
120 + 3. http://invisible-island.net/cdk/
121 + 4. http://www.vexus.ca/products/CDK/
122 + 5. http://invisible-island.net/ded/
123 + 6. http://invisible-island.net/dialog/
124 7. http://lynx.isc.org/release/
125 - 8. file://localhost/usr/build/ncurses/ncurses-5.2-20021012/doc/html/www.gnome.org/mc/
126 + 8. http://www.ibiblio.org/mc/
127 9. http://www.mutt.org/
128 10. http://www.ncftp.com/
129 11. http://www.bostic.com/vi/
130 12. http://www.tin.org/
131 - 13. http://members.iinet.net.au/~yusuf/taper/
132 - 14. http://www.bg.debian.org/Packages/unstable/text/vh.html
133 - 15. http://www.pp.clinet.fi/~walker/minicom.html
134 - 16. http://invisible-island.net/vile/vile.html
135 + 13. http://taper.e-survey.net.au/
136 + 14. http://www.debian.org/Packages/unstable/text/vh.html
137 + 15. http://www.netsonic.fi/~walker/minicom.html
138 + 16. http://invisible-island.net/vile/
139 17. mailto:zmbenhal@netcom.com
140 - 18. http://www.ccil.org/~esr/home.html
141 + 18. http://www.tuxedo.org/~esr/
142 19. mailto:dickey@herndon4.his.com
143 20. http://www.familiepfeifer.de/Contact.aspx?Lang=en
144 21. mailto:dickey@herndon4.his.com
145 22. mailto:bug-ncurses@gnu.org
146 - 23. ftp://invisible-island.net/ncurses
147 - 24. http://earthspace.net/~esr/terminfo
148 + 23. ftp://invisible-island.net/ncurses/
149 + 24. http://www.tuxedo.org/~esr/terminfo/
150 25. http://www.cs.utk.edu/~shuford/terminal_index.html
151 diff -urNd -urNd ncurses-5.3/Ada95/gen/Makefile.in ncurses-5.3.20030906.orig/Ada95/gen/Makefile.in
152 --- ncurses-5.3/Ada95/gen/Makefile.in Sat Jul 13 07:02:28 2002
153 +++ ncurses-5.3.20030906.orig/Ada95/gen/Makefile.in Tue May 13 20:08:22 2003
155 ##############################################################################
156 -# Copyright (c) 1998 Free Software Foundation, Inc. #
157 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
159 # Permission is hereby granted, free of charge, to any person obtaining a #
160 # copy of this software and associated documentation files (the "Software"), #
162 # Contact: http://www.familiepfeifer.de/Contact.aspx?Lang=en
180 install.libs :: $(ADA_OBJECTS)
181 @echo installing package $(ALIB) in $(ADA_OBJECTS)
182 - @chmod a-wx $(ADA_SRCDIR)/*.ali
183 + @-chmod a-wx $(ADA_SRCDIR)/*.ali
184 @$(top_srcdir)/tar-copy.sh '$(ALIB)[-.]*.ali' $(ADA_SRCDIR) $(ADA_OBJECTS)
185 - @chmod u+x $(ADA_SRCDIR)/*.ali
186 + @-chmod u+x $(ADA_SRCDIR)/*.ali
190 diff -urNd -urNd ncurses-5.3/Ada95/src/Makefile.in ncurses-5.3.20030906.orig/Ada95/src/Makefile.in
191 --- ncurses-5.3/Ada95/src/Makefile.in Sat Jul 13 07:02:23 2002
192 +++ ncurses-5.3.20030906.orig/Ada95/src/Makefile.in Tue May 13 20:08:22 2003
194 # Contact: http://www.familiepfeifer.de/Contact.aspx?Lang=en
202 @@ -214,19 +214,19 @@
205 $(ABASE)-terminfo.o: \
206 - $(ABASE)-terminfo.ads \
207 + $(srcdir)/$(ABASE)-terminfo.ads \
208 $(srcdir)/$(ABASE)-terminfo.adb $(BASEDEPS)
209 $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-terminfo.adb
212 $(ABASE)-termcap.o: \
213 - $(ABASE)-termcap.ads \
214 + $(srcdir)/$(ABASE)-termcap.ads \
215 $(srcdir)/$(ABASE)-termcap.adb $(BASEDEPS)
216 $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-termcap.adb
220 - $(ABASE)-putwin.ads \
221 + $(srcdir)/$(ABASE)-putwin.ads \
222 $(srcdir)/$(ABASE)-putwin.adb $(BASEDEPS)
223 $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-putwin.adb
225 diff -urNd -urNd ncurses-5.3/INSTALL ncurses-5.3.20030906.orig/INSTALL
226 --- ncurses-5.3/INSTALL Sun Sep 1 17:42:11 2002
227 +++ ncurses-5.3.20030906.orig/INSTALL Fri Sep 12 16:42:40 2003
229 --- $Id: INSTALL,v 1.56 2002/09/01 22:42:11 tom Exp $
230 +-- $Id: INSTALL,v 1.65 2003/08/30 22:44:10 tom Exp $
231 ---------------------------------------------------------------------
232 How to install Ncurses/Terminfo on your system
233 ---------------------------------------------------------------------
235 databases are SVr4-compatible, but most seem to be. Exceptions include
236 DEC's Digital Unix (formerly known as OSF/1).
238 + If you run the test programs WITHOUT installing terminfo, ncurses may
239 + read the termcap file and cache that in $HOME/.terminfo, which will
240 + thereafter be used instead of the terminfo database. See the comments
241 + on "--enable-getcap-cache", to see why this is a Bad Thing.
243 It is possible to configure ncurses to use other terminfo database formats.
244 A few are provided as examples in the include-directory (see --with-caps).
247 Compile without scroll-hints code. This option is ignored when
248 hashmap scrolling is configured, which is the default.
250 - --enable-add-ons=DIR...
251 - This is used to check if this package is a glibc add-on. This is used
252 - only by the glibc makefiles.
255 For testing, compile-in assertion code. This is used only for a few
256 places where ncurses cannot easily recover by returning an error code.
259 Compile-in support experimental xmc (magic cookie) code.
261 + --with-abi-version=NUM
262 + Override the ABI version, which is used in shared library filenames.
263 + Normally this is the same as the release version; some ports have
264 + special requirements for compatibility.
266 --with-ada-compiler=CMD
267 Specify the Ada95 compiler command (default "gnatmake")
272 If cross-compiling, specify a host C compiler, which is needed to
273 - compile a few utilties which generate source modules for ncurses.
274 + compile a few utilities which generate source modules for ncurses.
275 If you do not give this option, the configure script checks if the
276 $BUILD_CC variable is set, and otherwise defaults to gcc or cc.
281 --with-build-cppflags=XXX
282 - If cross-compiling, specify the host C preprocesor-flags. You might
283 + If cross-compiling, specify the host C preprocessor-flags. You might
284 need to do this if the target compiler has unusual flags which confuse
288 NOTE: a few systems build shared libraries with fixed pathnames; this
289 option probably will not work for those configurations.
292 - Generate libraries with libtool. If this option is selected, then
293 - it overrides all other library model specifications.
294 + --with-libtool[=XXX]
295 + Generate libraries with libtool. If this option is selected, then it
296 + overrides all other library model specifications. Note that libtool
297 + must already be installed, uses makefile rules dependent on GNU make,
298 + and does not promise to follow the version numbering convention of
299 + other shared libraries on your system. However, if the --with-shared
300 + option does not succeed, you may get better results with this option.
302 + If a parameter value is given, it must be the full pathname of the
303 + particular version of libtool, e.g.,
304 + /usr/bin/libtool-1.2.3
306 --with-manpage-format=XXX
307 Tell the configure script how you would like to install man-pages. The
309 This is normally chosen automatically based on the type of system
310 which you are building on. We use it for testing the configure script.
313 + use FreeBSD sysmouse interface provide mouse support on the console.
315 --with-system-type=XXX
316 For testing, override the derived host system-type which is used to
317 decide things such as the linker commands used to build shared
319 you may encounter when building a system with different versions of
323 + 5.3 (October 12, 2002)
326 + change type for bool used in headers to NCURSES_BOOL, which usually
327 @@ -895,31 +912,34 @@
328 IF YOU ARE A SYSTEM INTEGRATOR:
329 ------------------------------
331 - Beginning with 1.9.9, the ncurses distribution includes both a tset
332 - utility and /usr/share/tabset directory. If you are installing ncurses,
333 - it is no longer either necessary or desirable to install tset-jv.
335 Configuration and Installation:
337 - Configure with --prefix=/usr to make the install productions put
338 - libraries and headers in the correct locations (overwriting any
339 - previous curses libraries and headers). This will put the terminfo
340 - hierarchy under /usr/share/terminfo; you may want to override this with
341 - --datadir=/usr/share/misc; terminfo and tabset are installed under the
343 + On platforms where ncurses is assumed to be installed in /usr/lib,
344 + the configure script uses "/usr" as a default:
346 - Please configure the ncurses library in a pure-terminfo mode; that
347 - is, with the --disable-termcap option. This will make the ncurses
348 - library smaller and faster. The ncurses library includes a termcap
349 - emulation that queries the terminfo database, so even applications
350 - that use raw termcap to query terminal characteristics will win
351 - (providing you recompile and relink them!).
352 + Linux, FreeBSD, NetBSD, OpenBSD, Cygwin
354 - If you must configure with termcap fallback enabled, you may also
355 - wish to use the --enable-getcap option. This option speeds up
356 - termcap-based startups, at the expense of not allowing personal
357 - termcap entries to reference the terminfo tree. See the code in
358 - ncurses/tinfo/read_termcap.c for details.
359 + For other platforms, the default is "/usr/local". See the discussion
360 + of the "--disable-overwrite" option.
362 + The location of the terminfo is set indirectly by the "--datadir"
363 + configure option, e.g., /usr/share/terminfo, given a datadir of
364 + /usr/share. You may want to override this if you are installing
365 + ncurses libraries in nonstandard locations, but wish to share the
368 + Normally the ncurses library is configured in a pure-terminfo mode;
369 + that is, with the --disable-termcap option. This makes the ncurses
370 + library smaller and faster. The ncurses library includes a termcap
371 + emulation that queries the terminfo database, so even applications that
372 + use raw termcap to query terminal characteristics will win (providing
373 + you recompile and relink them!).
375 + If you must configure with termcap fallback enabled, you may also wish
376 + to use the --enable-getcap option. This speeds up termcap-based
377 + startups, at the expense of not allowing personal termcap entries to
378 + reference the terminfo tree. See comments in
379 + ncurses/tinfo/read_termcap.c for further details.
381 Note that if you have $TERMCAP set, ncurses will use that value
382 to locate termcap data. In particular, running from xterm will
383 @@ -939,11 +959,11 @@
385 Naming the Console Terminal
387 - In various Linuxes (and possibly elsewhere) there has been a practice
388 - of designating the system console driver type as `console'. Please
389 - do not do this any more! It complicates peoples' lives, because it
390 - can mean that several different terminfo entries from different
391 - operating systems all logically want to be called `console'.
392 + In various systems there has been a practice of designating the system
393 + console driver type as `console'. Please do not do this! It
394 + complicates peoples' lives, because it can mean that several different
395 + terminfo entries from different operating systems all logically want to
396 + be called `console'.
398 Please pick a name unique to your console driver and set that up
399 in the /etc/inittab table or local equivalent. Send the entry to the
400 diff -urNd -urNd ncurses-5.3/MANIFEST ncurses-5.3.20030906.orig/MANIFEST
401 --- ncurses-5.3/MANIFEST Sun Sep 1 17:08:22 2002
402 +++ ncurses-5.3.20030906.orig/MANIFEST Sun Jul 20 14:02:09 2003
403 @@ -166,13 +166,11 @@
404 ./Ada95/src/terminal_interface.ads
418 ./doc/html/man/form_win.3x.html
419 ./doc/html/man/infocmp.1m.html
420 ./doc/html/man/infotocap.1m.html
421 +./doc/html/man/key_defined.3x.html
422 ./doc/html/man/keybound.3x.html
423 ./doc/html/man/keyok.3x.html
424 ./doc/html/man/menu.3x.html
429 +./man/key_defined.3x
442 ./ncurses/base/MKunctrl.awk
443 ./ncurses/base/README
444 ./ncurses/base/define_key.c
445 +./ncurses/base/key_defined.c
446 ./ncurses/base/keybound.c
447 ./ncurses/base/keyok.c
448 ./ncurses/base/lib_addch.c
450 ./ncurses/base/lib_initscr.c
451 ./ncurses/base/lib_insch.c
452 ./ncurses/base/lib_insdel.c
453 -./ncurses/base/lib_insstr.c
454 ./ncurses/base/lib_instr.c
455 ./ncurses/base/lib_isendwin.c
456 ./ncurses/base/lib_leaveok.c
458 ./ncurses/tty/tty_display.h
459 ./ncurses/tty/tty_input.h
460 ./ncurses/tty/tty_update.c
461 +./ncurses/widechar/charable.c
462 ./ncurses/widechar/lib_box_set.c
463 ./ncurses/widechar/lib_cchar.c
464 ./ncurses/widechar/lib_erasewchar.c
466 ./ncurses/widechar/lib_hline_set.c
467 ./ncurses/widechar/lib_in_wch.c
468 ./ncurses/widechar/lib_in_wchnstr.c
469 -./ncurses/widechar/lib_ins_nwstr.c
470 ./ncurses/widechar/lib_ins_wch.c
471 ./ncurses/widechar/lib_inwstr.c
472 +./ncurses/widechar/lib_slk_wset.c
473 ./ncurses/widechar/lib_unget_wch.c
474 ./ncurses/widechar/lib_vid_attr.c
475 ./ncurses/widechar/lib_vline_set.c
480 -./sysdeps/unix/sysv/linux/Makefile
481 -./sysdeps/unix/sysv/linux/alpha/configure
482 -./sysdeps/unix/sysv/linux/configure
483 -./sysdeps/unix/sysv/linux/edit_man.sed
484 -./sysdeps/unix/sysv/linux/edit_man.sh
485 -./sysdeps/unix/sysv/linux/run_tic.sh
501 +./test/demo_defkey.c
505 +./test/demo_panels.c
525 diff -urNd -urNd ncurses-5.3/NEWS ncurses-5.3.20030906.orig/NEWS
526 --- ncurses-5.3/NEWS Sat Oct 12 17:35:42 2002
527 +++ ncurses-5.3.20030906.orig/NEWS Fri Sep 12 16:42:59 2003
529 --- $Id: NEWS,v 1.714 2002/10/12 22:35:42 tom Exp $
530 +-- $Id: NEWS,v 1.766 2003/09/06 22:40:56 tom Exp $
532 This is a log of changes that ncurses has gone through since Zeyd started
533 working with Pavel Curtis' original work, pcurses, in 1992.
535 Changes through 1.9.9e are recorded by Zeyd M. Ben-Halim.
536 Changes since 1.9.9e are recorded by Thomas Dickey.
539 + + modify configure script to avoid using "head -1", which does not
540 + work if POSIXLY_CORRECT (sic) is set.
541 + + modify run_tic.in to avoid using wrong shared libraries when
542 + cross-compiling (Dan Kegel).
545 + + alter configure script help message to make it clearer that
546 + --with-build-cc does not specify a cross-compiler (suggested by Dan
547 + Kegel <dank@kegel.com>).
548 + + modify configure script to accommodate libtool 1.5, as well as add an
549 + parameter to the "--with-libtool" option which can specify the
550 + pathname of libtool (report by Chris Zubrzycki). We note that
551 + libtool 1.5 has more than one bug in its C++ support, so it is not
552 + able to install libncurses++, for instance, if $DESTDIR or the option
553 + --with-install-prefix is used.
557 + + move assignments to SP->_cursrow, SP->_curscol into online_mvcur().
558 + + make baudrate computation in delay_output() consistent with the
559 + assumption in _nc_mvcur_init(), i.e., a byte is 9 bits.
562 + + modify logic in waddch_literal() to take into account zh_TW.Big5
563 + whose multibyte sequences may contain "printable" characters, e.g.,
564 + a "g" in the sequence "\247g" (Debian #204889, cf: 20030621).
565 + + improve storage used by _nc_safe_strcpy() by ensuring that the size
566 + is reset based on the initialization call, in case it were called
567 + after other strcpy/strcat calls (report by Philippe Blain).
569 + + remove an unused ifdef for REAL_ATTR & WANT_CHAR
570 + + correct a place where _cup_cost was used rather than _cuu_cost
573 + + fix a small memory leak in _nc_free_termtype().
574 + + close trace-file if trace() is called with a zero parameter.
575 + + free memory allocated for soft-key strings, in delscreen().
576 + + fix an allocation size in safe_sprintf.c for the "*" format code.
577 + + correct safe_sprintf.c to not return a null pointer if the format
578 + happens to be an empty string. This applies to the "configure
579 + --enable-safe-sprintf" option (Redhat #101486).
582 + + modify casts used for ABSENT_BOOLEAN and CANCELLED_BOOLEAN (report by
583 + Daniel Jacobowitz).
585 + + change padding for change_scroll_region to not be proportional to
586 + the size of the scroll-region.
587 + + correct error-return in _nc_safe_strcat().
590 + + correct limit-checks in _nc_scroll_window() (report and test-case by
591 + Thomas Graf <graf@dms.at> cf: 20011020).
592 + + re-order configure checks for _XOPEN_SOURCE to avoid conflict with
596 + + use clr_eol in preference to blanks for bce terminals, so select and
597 + paste will have fewer trailing blanks, e.g., when using xterm
598 + (request by Vincent Lefevre).
599 + + correct prototype for wunctrl() in manpage.
600 + + add configure --with-abi-version option (discussion with Charles
602 + > cygwin changes from Charles Wilson:
603 + + aclocal.m4: on cygwin, use autodetected prefix for import
604 + and static lib, but use "cyg" for DLL.
605 + + include/ncurses_dll.h: correct the comments to reflect current
606 + status of cygwin/mingw port. Fix compiler warning.
607 + + misc/run_tic.in: ensure that tic.exe can find the uninstalled
608 + DLL, by adding the lib-directory to the PATH variable.
609 + + misc/terminfo.src (nxterm|xterm-color): make xterm-color
610 + primary instead of nxterm, to match XFree86's xterm.terminfo
611 + usage and to prevent circular links.
612 + (rxvt): add additional codes from rxvt.org.
613 + (rxvt-color): new alias
614 + (rxvt-xpm): new alias
615 + (rxvt-cygwin): like rxvt, but with special acsc codes.
616 + (rxvt-cygwin-native): ditto. rxvt may be run under XWindows, or
617 + with a "native" MSWin GUI. Each takes different acsc codes,
618 + which are both different from the "normal" rxvt's acsc.
619 + (cygwin): cygwin-in-cmd.exe window. Lots of fixes.
620 + (cygwinDBG): ditto.
621 + + mk-1st.awk: use "cyg" for the DLL prefix, but "lib" for import
625 + + update config.guess, config.sub
626 + + add triples for configuring shared libraries with the Debian
627 + GNU/FreeBSD packages (patch by Robert Millan <zeratul2@wanadoo.es>).
630 + + modify CF_GCC_WARNINGS so it only applies to gcc, not g++. Some
631 + platforms have installed g++ along with the native C compiler, which
632 + would not accept gcc warning options.
633 + + add -D_XOPEN_SOURCE=500 when configuring with --enable-widec, to
634 + get mbstate_t declaration on HPUX 11.11 (report by David Ellement).
635 + + add _nc_pathlast() to get rid of casts in _nc_basename() calls.
636 + + correct a sign-extension in wadd_wch() and wecho_wchar() from
637 + 20030628 (report by Tomohiro KUBOTA).
638 + + work around omission of btowc() and wctob() from wide-character
639 + support (sic) in NetBSD 1.6 using mbtowc() and wctomb() (report by
641 + + add portability note to curs_get_wstr.3x (Debian #199957).
644 + + rewrite wadd_wch() and wecho_wchar() to call waddch() and wechochar()
645 + respectively, to avoid calling waddch_noecho() with wide-character
646 + data, since that function assumes its input is 8-bit data.
647 + Similarly, modify waddnwstr() to call wadd_wch().
648 + + remove logic from waddnstr() which transformed multibyte character
649 + strings into wide-characters. Rewrite of waddch_literal() from
650 + 20030621 assumes its input is raw multibyte data rather than wide
651 + characters (report by Tomohiro KUBOTA).
654 + + write getyx() and related 2-return macros in terms of getcury(),
656 + + modify waddch_literal() in case an application passes bytes of a
657 + multibyte character directly to waddch(). In this case, waddch()
658 + must reassemble the bytes into a wide-character (report by Tomohiro
659 + KUBOTA <kubota@debian.org>).
662 + + modify waddch_literal() in case a multibyte value occupies more than
664 + + modify PutAttrChar() to compute the number of character cells that
665 + are used in multibyte values. This fixes a problem displaying
666 + double-width characters (report/test by Mitsuru Chinen
667 + <mchinen@yamato.ibm.com>).
668 + + add a null-pointer check for result of keyname() in _tracechar()
669 + + modify _tracechar() to work around glibc sprintf bug.
672 + + add a call to setlocale() in cursesmain.cc, making demo display
673 + properly in a UTF-8 locale.
674 + + add a fallback definition in curses.priv.h for MB_LEN_MAX (prompted
675 + by discussion with Gabor Z Papp).
676 + + use macros NCURSES_ACS() and NCURSES_WACS() to hide cast needed to
677 + appease -Wchar-subscript with g++ 3.3 (Debian #195732).
678 + + fix a redefinition of $RANLIB in the configure script when libtool
679 + is used, which broke configure on Mac OS X (report by Chris Zubrzycki
681 + + simplify ifdef for bool declaration in curses.h.in (suggested by
682 + Albert Chin-A-Young).
683 + + remove configure script check to allow -Wconversion for older
684 + versions of gcc (suggested by Albert Chin-A-Young).
687 + + regenerated html manpages.
688 + + modify ifdef's in curses.h.in that disabled use of __attribute__()
689 + for g++, since recent versions implement the cases which ncurses uses
691 + + modify _nc_get_token() to handle a case where an entry has no
692 + description, and capabilities begin on the same line as the entry
694 + + fix a typo in ncurses_dll.h reported by gcc 3.3.
695 + + add an entry for key_defined.3x to man_db.renames.
698 + + modify setcchar() to allow converting control characters to complex
699 + characters (report/test by Mitsuru Chinen <mchinen@yamato.ibm.com>).
700 + + add tkterm entry -TD
701 + + modify parse_entry.c to allow a terminfo entry with a leading
702 + 2-character name (report by Don Libes).
703 + + corrected acsc in screen.teraterm, which requires a PC-style mapping.
704 + + fix trace statements in read_entry.c to use lseek() rather than
706 + + fix signed/unsigned warnings from Sun's compiler (gcc should give
707 + these warnings, but it is unpredictable).
708 + + modify configure script to omit -Winline for gcc 3.3, since that
710 + + modify manlinks.sed to add a few functions that were overlooked since
711 + they return function pointers: field_init, field_term, form_init,
712 + form_term, item_init, item_term, menu_init and menu_term.
715 + + prevent recursion in wgetch() via wgetnstr() if the connection cannot
716 + be switched between cooked/raw modes because it is not a TTY (report
717 + by Wolfgang Gutjahr <gutw@knapp.com>).
718 + + change parameter of define_key() and key_defined() to const (prompted
719 + by Debian #192860).
720 + + add a check in test/configure for ncurses extensions, since there
721 + are some older versions, etc., which would not compile with the
722 + current test programs.
723 + + corrected demo in test/ncurses.c of wgetn_wstr(), which did not
724 + convert wchar_t string to multibyte form before printing it.
725 + + corrections to lib_get_wstr.c:
726 + + null-terminate buffer passed to setcchar(), which occasionally
728 + + map special characters such as erase- and kill-characters into
729 + key-codes so those will work as expected even if they are not
730 + mentioned in the terminfo.
731 + + modify PUTC() and Charable() macros to make wide-character line
732 + drawing work for POSIX locale on Linux console (cf: 20021221).
735 + + make typography for program options in manpages consistent (report
736 + by Miloslav Trmac <mitr@volny.cz>).
737 + + correct dependencies in Ada95/src/Makefile.in, so the builds with
738 + "--srcdir" work (report by Warren L Dodge).
739 + + correct missing definition of $(CC) in Ada95/gen/Makefile.in
740 + (reported by Warren L Dodge <warrend@mdhost.cse.tek.com>).
741 + + fix typos and whitespace in manpages (patch by jmc
742 + <jmc@prioris.mini.pw.edu.pl>).
745 + + fix form_driver() cases for REQ_CLR_EOF, REQ_CLR_EOL, REQ_DEL_CHAR,
746 + REQ_DEL_PREV and REQ_NEW_LINE, which did not ensure the cursor was at
747 + the editing position before making modifications.
748 + + add test/demo_forms and associated test/edit_field.c demos.
749 + + modify test/configure.in to use test/modules for the list of objects
750 + to compile rather than using the list of programs.
753 + + modify logic of acsc to use the original character if no mapping is
754 + defined, noting that Solaris does this.
755 + + modify ncurses 'b' test to avoid using the acs_map[] array since
756 + 20021231 changes it to no longer contain information from the acsc
758 + + modify makefile rules in c++, progs, tack and test to ensure that
759 + the compiler flags (e.g., $CFLAGS or $CCFLAGS) are used in the link
760 + command (report by Jose Luis Rico Botella <informatica@serpis.com>).
761 + + modify soft-key initialization to use A_REVERSE if A_STANDOUT would
762 + not be shown when colors are used, i.e., if ncv#1 is set in the
763 + terminfo as is done in "screen".
766 + + add a test for slk_color(), in ncurses.c
767 + + fix some issues reported by valgrind in the slk_set() and slk_wset()
768 + code, from recent rewrite.
769 + + modify ncurses 'E' test to use show previous label via slk_label(),
771 + + modify wide-character versions of NewChar(), NewChar2() macros to
772 + ensure that the whole struct is initialized.
775 + + modify setupterm() to check if the terminfo and terminal-modes have
776 + already been read. This ensures that it does not reinvoke
777 + def_prog_mode() when an application calls more than one function,
778 + such as tgetent() and initscr() (report by Olaf Buddenhagen).
781 + + add 'E' test to ncurses.c, to exercise slk_wset().
782 + + correct handling of carriage-return in wgetn_wstr(), used in demo of
784 + + first draft of slk_wset() function.
787 + + improved warnings in tic when suppressing items to fit in termcap's
789 + + built a list in test/README showing which externals are being used
790 + by either programs in the test-directory or via internal library
792 + + adjust include-options in CF_ETIP_DEFINES to avoid missing
793 + ncurses_dll.h, fixing special definitions that may be needed for
794 + etip.h (reported by Greg Schafer <gschafer@zip.com.au>).
797 + + minor fixes for cardfile.c, to make it write the updated fields to
798 + a file when ^W is given.
799 + + add/use _nc_trace_bufcat() to eliminate some fixed buffer limits in
803 + + correct a case in _nc_remove_string(), used by define_key(), to avoid
804 + infinite loop if the given string happens to be a substring of other
805 + strings which are assigned to keys (report by John McCutchan).
806 + + add key_defined() function, to tell which keycode a string is bound
807 + to (discussion with John McCutchan <ttb@tentacle.dhs.org>).
808 + + correct keybound(), which reported definitions in the wrong table,
809 + i.e., the list of definitions which are disabled by keyok().
810 + + modify demo_keydef.c to show the details it changes, and to check
814 + + restructured test/configure script, make it work for libncursesw.
815 + + add description of link_fieldtype() to manpage (report by
816 + L Dee Holtsclaw <dee@sunbeltsoft.com>).
819 + + corrected ifdef's relating to configure check for wchar_t, etc.
820 + + if the output is a socket or other non-tty device, use 1 millisecond
821 + for the cost in mvcur; previously it was 9 milliseconds because the
822 + baudrate was not known.
823 + + in _nc_get_tty_mode(), initialize the TTY buffer on error, since
824 + glibc copies uninitialized data in that case, as noted by valgrind.
825 + + modify tput to use the same parameter analysis as tparm() does, to
826 + provide for user-defined strings, e.g., for xterm title, a
827 + corresponding capability might be
828 + title=\E]2;%p1%s^G,
829 + + modify MKlib_gen.sh to avoid passing "#" tokens through the C
830 + preprocessor. This works around Mac OS X's preprocessor, which
831 + insists on adding a blank on each side of the token (report/analysis
832 + by Kevin Murphy <murphy@genome.chop.edu>).
835 + + add configure check for wchar_t and wint_t types, rather than rely
836 + on preprocessor definitions. Also work around for gcc fixinclude
837 + bug which creates a shadow copy of curses.h if it sees these symbols
838 + apparently typedef'd.
839 + + if database is disabled, do not generate run_tic.sh
840 + + minor fixes for memory-leak checking when termcap is read.
843 + + add checking in tic for incomplete line-drawing character mapping.
844 + + update configure script to reflect fix for AC_PROG_GCC_TRADITIONAL,
845 + which is broken in autoconf 2.5x for Mac OS X 10.2.3 (report by
846 + Gerben Wierda <Sherlock@rna.nl>).
847 + + make return value from _nc_printf_string() consistent. Before,
848 + depending on whether --enable-safe-sprintf was used, it might not be
849 + cached for reallocating.
852 + + minor fixes for memory-leak checking in lib_tparm.c, hardscroll.c
853 + + correct a potentially-uninitialized value if _read_termtype() does
854 + not read as much data as expected (report by Wolfgang Rohdewald
856 + + correct several places where the aclocal.m4 macros relied on cache
857 + variable names which were incompatible (as usual) between autoconf
858 + 2.13 and 2.5x, causing the test for broken-linker to give incorrect
859 + results (reports by Gerben Wierda <Sherlock@rna.nl> and Thomas Esser
860 + <te@dbs.uni-hannover.de>).
861 + + do not try to open gpm mouse driver if standard output is not a tty;
862 + the gpm library does not make this check (from bug report for dialog
863 + by David Oliveira <davidoliveira@develop.prozone.ws>).
866 + + modified emx.src to correspond more closely to terminfo.src, added
867 + emx-base to the latter -TD
868 + + add configure option for FreeBSD sysmouse, --with-sysmouse, and
869 + implement support for that in lib_mouse.c, lib_getch.c
872 + + revert 20030105 change to can_clear_with(), does not work for the
873 + case where the update is made on cells which are blanks with
874 + attributes, e.g., reverse.
875 + + improve ifdef's to guard against redefinition of wchar_t and wint_t
876 + in curses.h (report by Urs Jansen).
879 + + improve mvcur() by checking if it is safe to move when video
880 + attributes are set (msgr), and if not, reset/restore attributes
881 + within that function rather than doing it separately in the GoTo()
882 + function in tty_update.c (suggested by Philippe Blain).
883 + + add a message in run_tic.in to explain more clearly what does not
884 + work when attempting to create a symbolic link for /usr/lib/terminfo
885 + on OS/2 and other platforms with no symbolic links (report by John
887 + + change several sed scripts to avoid using "\+" since it is not a BRE
888 + (basic regular expression). One instance caused terminfo.5 to be
889 + misformatted on FreeBSD (from a FreeBSD bug report by Kazuo Horikawa
890 + <horikawa@FreeBSD.org>).
891 + + correct misspelled 'wint_t' in curs_get_wch.3x (Michael Elkins).
894 + + improve description of terminfo operators, especially static/dynamic
895 + variables (comments by Mark I Manning IV <mark4th@earthlink.net>).
896 + + demonstrate use of FIELDTYPE by modifying test/ncurses 'r' test to
897 + use the predefined TYPE_ALPHA field-type, and by defining a
898 + specialized type for the middle initial/name.
899 + + fix MKterminfo.sh, another workaround for POSIXLY_CORRECT misfeature
902 + + optimize can_clear_with() a little by testing first if the parameter
903 + is indeed a "blank".
904 + + simplify ClrBottom() a little by allowing it to use clr_eos to clear
905 + sections as small as one line.
906 + + improve ClrToEOL() by checking if clr_eos is available before trying
908 + + use tputs() rather than putp() in a few cases in tty_update.c since
909 + the corresponding delays are proportional to the number of lines
910 + affected: repeat_char, clr_eos, change_scroll_region.
913 + + rewrite of lib_acs.c conflicts with copying of SCREEN acs_map to/from
914 + global acs_map[] array; removed the lines that did the copying.
917 + + change some overlooked tputs() calls in scrolling code to use putp()
918 + (report by Philippe Blain).
919 + + modify lib_getch.c to avoid recursion via wgetnstr() when the input
920 + is not a tty and consequently mode-changes do not work (report by
921 + <R.Chamberlin@querix.com>).
922 + + rewrote lib_acs.c to allow PutAttrChar() to decide how to render
923 + alternate-characters, i.e., to work with Linux console and UTF-8
925 + + correct line/column reference in adjust_window(), needed to make
926 + special windows such as curscr track properly when resizing (report
927 + by Lucas Gonze <lgonze@panix.com>).
929 + + correct the value used for blank in ClrBottom() (broken in 20000708).
930 + + correct an off-by-one in GoTo() parameter in _nc_scrolln().
933 + + change several tputs() calls in scrolling code to use putp(), to
934 + enable padding which may be needed for some terminals (patch by
935 + by Philippe Blain).
936 + + use '%' as sed substitute delimiter in run_tic script to avoid
937 + problems with pathname delimiters such as ':' and '@' (report by John
939 + + implement a workaround so that line-drawing works with screen's
940 + crippled UTF-8 support (tested with 3.9.13). This only works with
941 + the wide-character support (--enable-widec); the normal library will
942 + simply suppress line-drawing when running in a UTF-8 locale in screen.
945 + + allow BUILD_CC and related configure script variables to be
946 + overridden from the environment.
947 + + make build-tools variables in ncurses/Makefile.in consistent with
948 + the configure script variables (report by Maciej W Rozycki).
949 + + modify ncurses/modules to allow
950 + configure --disable-leaks --disable-ext-funcs
951 + to build (report by Gary Samuelson).
952 + + fix a few places in configure.in which lacked quotes (report by
953 + Gary Samuelson <gary.samuelson@verizon.com>).
954 + + correct handling of multibyte characters in waddch_literal() which
955 + force wrapping because they are started too late on the line (report
956 + by Sam Varshavchik).
957 + + small fix for CF_GNAT_VERSION to ignore the help-message which
958 + gnatmake adds to its version-message.
959 + > Maciej W Rozycki <macro@ds2.pg.gda.pl>:
960 + + use AC_CHECK_TOOL to get proper values for AR and LD for cross
962 + + use $cross_compiling variable in configure script rather than
963 + comparing $host_alias and $target alias, since "host" is
964 + traditionally misused in autoconf to refer to the target platform.
965 + + change configure --help message to use "build" rather than "host"
966 + when referring to the --with-build-XXX options.
969 + + modify CF_GNAT_VERSION to print gnatmake's version, and to allow for
970 + possible gnat versions such as 3.2 (report by Chris Lingard
971 + <chris@stockwith.co.uk>).
972 + + modify #define's for CKILL and other default control characters in
973 + tset to use the system's default values if they are defined.
974 + + correct interchanged defaults for kill and interrupt characters
975 + in tset, which caused it to report unnecessarily (Debian #171583).
976 + + repair check for missing C++ compiler, which is broken in autoconf
977 + 2.5x by hardcoding it to g++ (report by Martin Mokrejs).
978 + + update config.guess, config.sub (2002-11-30)
979 + + modify configure script to skip --with-shared, etc., when the
980 + --with-libtool option is given, since they would be ignored anyway.
981 + + fix to allow "configure --with-libtool --with-termlib" to build.
982 + + modify configure script to show version number of libtool, to help
983 + with bug reports. libtool still gets confused if the installed
984 + ncurses libraries are old, since it ignores the -L options at some
985 + point (tested with libtool 1.3.3 and 1.4.3).
986 + + reorder configure script's updating of $CPPFLAGS and $CFLAGS to
987 + prevent -I options in the user's environment from introducing
988 + conflicts with the build -I options (may be related to reports by
989 + Patrick Ash and George Goffe).
990 + + rename test/define_key.c to test/demo_defkey.c, test/keyok.c to
991 + test/demo_keyok.c to allow building these with libtool.
994 + + add example program test/define_key.c for define_key().
995 + + add example program test/keyok.c for keyok().
996 + + add example program test/ins_wide.c for wins_wch() and wins_wstr().
997 + + modify wins_wch() and wins_wstr() to interpret tabs by using the
998 + winsch() internal function.
999 + + modify setcchar() to allow for wchar_t input strings that have
1000 + more than one spacing character.
1003 + + fix a boundary check in lib_insch.c (patch by Philippe Blain).
1004 + + change type for *printw functions from NCURSES_CONST to const
1005 + (prompted by comment by Pedro Palhoto Matos <plpm@mega.ist.utl.pt>,
1006 + but really from a note on X/Open's website stating that either is
1007 + acceptable, and the latter will be used in a future revision).
1008 + + add xterm-1002, xterm-1003 terminfo entries to demonstrate changes in
1009 + lib_mouse.c (20021026) -TD
1010 + + add screen-bce, screen-s entries from screen 3.9.13 (report by
1011 + Adam Lazur <zal@debian.org>) -TD
1012 + + add mterm terminfo entries -TD
1015 + + split-out useful fragments in terminfo for vt100 and vt220 numeric
1016 + keypad, i.e., vt100+keypad, vt100+pfkeys, vt100+fnkeys and
1017 + vt220+keypad. The last as embedded in various entries had ka3 and
1018 + kb2 interchanged (report/discussion with Leonard den Ottolander
1019 + <leonardjo@hetnet.nl>).
1020 + + add check in tic for keypads consistent with vt100 layout.
1021 + + improve checks in tic for color capabilities
1024 + + check for missing/empty/illegal terminfo name in _nc_read_entry()
1025 + (report by Martin Mokrejs, where $TERM was set to an empty string).
1026 + + rewrote lib_insch.c, combining it with lib_insstr.c so both handle
1027 + tab and other control characters consistently (report by Philippe
1029 + + remove an #undef for KEY_EVENT from curses.tail used in the
1030 + experimental NCURSES_WGETCH_EVENTS feature. The #undef confuses
1031 + dpkg's build script (Debian #165897).
1032 + + fix MKlib_gen.sh, working around the ironically named POSIXLY_CORRECT
1033 + feature of GNU sed 4.0 (reported by Ervin Nemeth <airwin@inf.bme.hu>).
1036 + + implement logic in lib_mouse.c to handle position reports which are
1037 + generated when XFree86 xterm is initialized with private modes 1002
1038 + or 1003. These are returned to the application as the
1039 + REPORT_MOUSE_POSITION mask, which was not implemented. Tested both
1040 + with ncurses 'a' menu (prompted by discussion with Larry Riedel
1041 + <Larry@Riedel.org>).
1042 + + modify lib_mouse.c to look for "XM" terminfo string, which allows
1043 + one to override the escape sequence used to enable/disable mouse
1044 + mode. In particular this works for XFree86 xterm private modes
1045 + 1002 and 1003. If "XM" is missing (note that this is an extended
1046 + name), lib_mouse uses the conventional private mode 1000.
1047 + + correct NOT_LOCAL() macro in lib_mvcur.c to refer to screen_columns
1048 + where it used screen_lines (report by Philippe Blain).
1049 + + correct makefile rules for the case when both --with-libtool and
1050 + --with-gpm are given (report by Mr E_T <troll@logi.net.au>).
1051 + + add note to terminfo manpage regarding the differences between
1052 + setaf/setab and setf/setb capabilities (report by Pavel Roskin).
1055 + + remove redundant initialization of TABSIZE in newterm(), since it is
1056 + already done in setupterm() (report by Philippe Blain).
1057 + + add test/inserts.c, to test winnstr() and winsch().
1058 + + replace 'sort' in dist.mk with script that sets locale to POSIX.
1059 + + update URLs in announce.html.in (patch by Frederic L W Meunier).
1060 + + remove glibc add-on files, which are no longer needed (report by
1061 + Frederic L W Meunier).
1063 20021012 5.3 release for upload to ftp.gnu.org
1064 + modify ifdef's in etip.h.in to allow the etip.h header to compile
1065 with gcc 3.2 (patch by Dimitar Zhekov <jimmy@is-vn.bg>).
1066 diff -urNd -urNd ncurses-5.3/README ncurses-5.3.20030906.orig/README
1067 --- ncurses-5.3/README Sat Aug 12 18:31:21 2000
1068 +++ ncurses-5.3.20030906.orig/README Tue May 13 20:08:22 2003
1070 --- $Id: README,v 1.20 2000/08/12 23:31:21 tom Exp $
1071 +-- $Id: README,v 1.21 2003/02/08 19:36:39 tom Exp $
1072 -------------------------------------------------------------------------------
1073 README file for the ncurses package
1077 libform_g.a (debug enabled)
1079 +If you configure using the --enable-widec option, a "w" is appended to the
1080 +library names (e.g., libncursesw.a), and the resulting libraries support
1081 +wide-characters, e.g., via a UTF-8 locale. The corresponding header files
1082 +are compatible with the non-wide-character configuration; wide-character
1083 +features are provided by ifdef's in the header files. The wide-character
1084 +library interfaces are not binary-compatible with the non-wide-character
1087 The ncurses libraries implement the curses API. The panel, menu and forms
1088 libraries implement clones of the SVr4 panel, menu and forms APIs. The source
1089 code for these lives in the `ncurses', `panel', `menu', and `form' directories
1090 diff -urNd -urNd ncurses-5.3/aclocal.m4 ncurses-5.3.20030906.orig/aclocal.m4
1091 --- ncurses-5.3/aclocal.m4 Sat Sep 21 18:59:01 2002
1092 +++ ncurses-5.3.20030906.orig/aclocal.m4 Fri Sep 12 16:42:59 2003
1094 dnl***************************************************************************
1095 -dnl Copyright (c) 1998-2000,2001,2002 Free Software Foundation, Inc. *
1096 +dnl Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
1098 dnl Permission is hereby granted, free of charge, to any person obtaining a *
1099 dnl copy of this software and associated documentation files (the *
1101 dnl authorization. *
1102 dnl***************************************************************************
1104 -dnl Author: Thomas E. Dickey 1996,1997,1998,1999,2000,2001
1105 +dnl Author: Thomas E. Dickey 1995-2003
1107 -dnl $Id: aclocal.m4,v 1.285 2002/09/21 23:59:01 tom Exp $
1108 +dnl $Id: aclocal.m4,v 1.313 2003/09/06 23:46:28 tom Exp $
1109 dnl Macros used in NCURSES auto-configuration script.
1111 dnl See http://invisible-island.net/autoconf/ for additional information.
1113 dnl ---------------------------------------------------------------------------
1114 dnl ---------------------------------------------------------------------------
1115 +dnl CF_ADA_INCLUDE_DIRS version: 4 updated: 2002/12/01 00:12:15
1116 +dnl -------------------
1117 dnl Construct the list of include-options for the C programs in the Ada95
1119 AC_DEFUN([CF_ADA_INCLUDE_DIRS],
1121 -ACPPFLAGS="$ACPPFLAGS -I. -I../../include"
1122 +ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
1123 if test "$srcdir" != "."; then
1124 - ACPPFLAGS="$ACPPFLAGS -I\$(srcdir)/../../include"
1125 + ACPPFLAGS="-I\$(srcdir)/../../include $ACPPFLAGS"
1127 if test "$GCC" != yes; then
1128 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
1132 dnl ---------------------------------------------------------------------------
1133 +dnl CF_ADD_CFLAGS version: 5 updated: 2002/12/01 00:12:15
1135 dnl Copy non-preprocessor flags to $CFLAGS, preprocessor flags to $CPPFLAGS
1136 dnl The second parameter if given makes this macro verbose.
1137 AC_DEFUN([CF_ADD_CFLAGS],
1140 if test -n "$cf_new_cppflags" ; then
1141 ifelse($2,,,[CF_VERBOSE(add to \$CPPFLAGS $cf_new_cppflags)])
1142 - CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1143 + CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
1147 dnl ---------------------------------------------------------------------------
1148 +dnl CF_ANSI_CC_CHECK version: 9 updated: 2001/12/30 17:53:34
1149 +dnl ----------------
1150 dnl This is adapted from the macros 'fp_PROG_CC_STDC' and 'fp_C_PROTOTYPES'
1151 dnl in the sharutils 4.2 distribution.
1152 AC_DEFUN([CF_ANSI_CC_CHECK],
1156 dnl ---------------------------------------------------------------------------
1157 +dnl CF_ANSI_CC_REQD version: 3 updated: 1997/09/06 13:40:44
1158 +dnl ---------------
1159 dnl For programs that must use an ANSI compiler, obtain compiler options that
1160 dnl will make it recognize prototypes. We'll do preprocessor checks in other
1161 dnl macros, since tools such as unproto can fake prototypes, but only part of
1165 dnl ---------------------------------------------------------------------------
1166 +dnl CF_BOOL_DECL version: 6 updated: 2001/12/02 01:39:28
1168 dnl Test if 'bool' is a builtin type in the configured C++ compiler. Some
1169 dnl older compilers (e.g., gcc 2.5.8) don't support 'bool' directly; gcc
1170 dnl 2.6.3 does, in anticipation of the ANSI C++ standard.
1174 dnl ---------------------------------------------------------------------------
1175 +dnl CF_BOOL_SIZE version: 10 updated: 2002/02/23 20:38:31
1177 dnl Test for the size of 'bool' in the configured C++ compiler (e.g., a type).
1178 dnl Don't bother looking for bool.h, since it's been deprecated.
1183 dnl ---------------------------------------------------------------------------
1184 +dnl CF_CFG_DEFAULTS version: 6 updated: 2003/07/12 15:15:19
1185 +dnl ---------------
1186 dnl Determine the default configuration into which we'll install ncurses. This
1187 dnl can be overridden by the user's command-line options. There's two items to
1190 if test "x$prefix" = "xNONE" ; then
1191 case "$cf_cv_system_name" in
1192 # non-vendor systems don't have a conflict
1193 - openbsd*|netbsd*|freebsd*|linux*|cygwin*)
1194 + openbsd*|netbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1197 *) prefix=$ac_default_prefix
1201 dnl ---------------------------------------------------------------------------
1202 +dnl CF_CGETENT version: 3 updated: 2000/08/12 23:18:52
1204 dnl Check if the terminal-capability database functions are available. If not,
1205 dnl ncurses has a much-reduced version.
1206 AC_DEFUN([CF_CGETENT],[
1208 test "$cf_cv_cgetent" = yes && AC_DEFINE(HAVE_BSD_CGETENT)
1210 dnl ---------------------------------------------------------------------------
1211 +dnl CF_CHECK_CACHE version: 7 updated: 2001/12/19 00:50:10
1213 dnl Check if we're accidentally using a cache from a different machine.
1214 dnl Derive the system name, as a check for reusing the autoconf cache.
1219 dnl ---------------------------------------------------------------------------
1220 +dnl CF_CHECK_ERRNO version: 9 updated: 2001/12/30 18:03:23
1222 dnl Check for data that is usually declared in <stdio.h> or <errno.h>, e.g.,
1223 dnl the 'errno' variable. Define a DECL_xxx symbol if we must declare it
1226 CF_CHECK_EXTERN_DATA($1,int)
1228 dnl ---------------------------------------------------------------------------
1229 +dnl CF_CHECK_EXTERN_DATA version: 3 updated: 2001/12/30 18:03:23
1230 +dnl --------------------
1231 dnl Check for existence of external data in the current set of libraries. If
1232 dnl we can modify it, it's real enough.
1233 dnl $1 = the name to check
1237 dnl ---------------------------------------------------------------------------
1238 +dnl CF_CPP_PARAM_INIT version: 4 updated: 2001/04/07 22:31:18
1239 +dnl -----------------
1240 dnl Check if the C++ compiler accepts duplicate parameter initialization. This
1241 dnl is a late feature for the standard and is not in some recent compilers
1244 test "$cf_cv_cpp_param_init" = yes && AC_DEFINE(CPP_HAS_PARAM_INIT)
1246 dnl ---------------------------------------------------------------------------
1247 +dnl CF_CPP_VSCAN_FUNC version: 5 updated: 2001/12/02 01:39:28
1248 +dnl -----------------
1249 dnl Check if the g++ compiler supports vscan function (not a standard feature).
1250 AC_DEFUN([CF_CPP_VSCAN_FUNC],
1252 @@ -515,9 +541,13 @@
1255 dnl ---------------------------------------------------------------------------
1256 +dnl CF_DIRNAME version: 4 updated: 2002/12/21 19:25:52
1258 dnl "dirname" is not portable, so we fake it with a shell script.
1259 -AC_DEFUN([CF_DIRNAME],[$1=`echo $2 | sed -e 's:/[[^/]]*$::'`])dnl
1260 +AC_DEFUN([CF_DIRNAME],[$1=`echo $2 | sed -e 's%/[[^/]]*$%%'`])dnl
1261 dnl ---------------------------------------------------------------------------
1262 +dnl CF_DIRS_TO_MAKE version: 3 updated: 2002/02/23 20:38:31
1263 +dnl ---------------
1264 AC_DEFUN([CF_DIRS_TO_MAKE],
1267 @@ -537,12 +567,16 @@
1268 AC_SUBST(DIRS_TO_MAKE)
1270 dnl ---------------------------------------------------------------------------
1271 +dnl CF_ERRNO version: 5 updated: 1997/11/30 12:44:39
1273 dnl Check if 'errno' is declared in <errno.h>
1274 AC_DEFUN([CF_ERRNO],
1276 CF_CHECK_ERRNO(errno)
1278 dnl ---------------------------------------------------------------------------
1279 +dnl CF_ETIP_DEFINES version: 3 updated: 2003/03/22 19:13:43
1280 +dnl ---------------
1281 dnl Test for conflicting definitions of exception in gcc 2.8.0, etc., between
1282 dnl math.h and builtin.h, only for ncurses
1283 AC_DEFUN([CF_ETIP_DEFINES],
1286 for cf_excp in "" MATH_EXCEPTION
1288 - CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu"
1289 + CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
1290 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
1291 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
1294 CXXFLAGS="$cf_save_CXXFLAGS"
1296 dnl ---------------------------------------------------------------------------
1297 +dnl CF_FUNC_MEMMOVE version: 5 updated: 2000/08/12 23:18:52
1298 +dnl ---------------
1299 dnl Check for memmove, or a bcopy that can handle overlapping copy. If neither
1300 dnl is found, add our own version of memmove to the list of objects.
1301 AC_DEFUN([CF_FUNC_MEMMOVE],
1305 dnl ---------------------------------------------------------------------------
1306 +dnl CF_FUNC_POLL version: 2 updated: 2000/02/06 01:38:04
1308 dnl See if the poll function really works. Some platforms have poll(), but
1309 dnl it does not work for terminals or files.
1310 AC_DEFUN([CF_FUNC_POLL],[
1312 test "$cf_cv_working_poll" = "yes" && AC_DEFINE(HAVE_WORKING_POLL)
1314 dnl ---------------------------------------------------------------------------
1315 +dnl CF_FUNC_TERMIOS version: 2 updated: 2000/07/22 23:37:24
1316 +dnl ---------------
1317 dnl Some old/broken variations define tcgetattr() only as a macro in
1319 AC_DEFUN([CF_FUNC_TERMIOS],[
1321 test "$cf_cv_have_tcgetattr" = yes && AC_DEFINE(HAVE_TCGETATTR)
1323 dnl ---------------------------------------------------------------------------
1324 +dnl CF_FUNC_VSSCANF version: 3 updated: 2001/12/19 00:50:10
1325 +dnl ---------------
1326 dnl Check for vsscanf() function, which is in c9x but generally not in earlier
1327 dnl versions of C. It is in the GNU C library, and can often be simulated by
1328 dnl other functions.
1332 dnl ---------------------------------------------------------------------------
1333 +dnl CF_GCC_ATTRIBUTES version: 9 updated: 2002/12/21 19:25:52
1334 +dnl -----------------
1335 dnl Test for availability of useful gcc __attribute__ directives to quiet
1336 dnl compiler warnings. Though useful, not all are supported -- and contrary
1337 dnl to documentation, unrecognized directives cause older compilers to barf.
1339 if AC_TRY_EVAL(ac_compile); then
1340 test -n "$verbose" && AC_MSG_RESULT(... $cf_attribute)
1341 cat conftest.h >>confdefs.h
1343 -# sed -e 's/__attr.*/\/*nothing*\//' conftest.h >>confdefs.h
1347 @@ -772,17 +814,35 @@
1350 dnl ---------------------------------------------------------------------------
1351 +dnl CF_GCC_VERSION version: 3 updated: 2003/09/06 19:16:57
1353 +dnl Find version of gcc
1354 +AC_DEFUN([CF_GCC_VERSION],[
1355 +AC_REQUIRE([AC_PROG_CC])
1357 +if test "$GCC" = yes ; then
1358 + AC_MSG_CHECKING(version of $CC)
1359 + GCC_VERSION="`${CC} --version|sed -e '2,$d' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*//'`"
1360 + test -z "$GCC_VERSION" && GCC_VERSION=unknown
1361 + AC_MSG_RESULT($GCC_VERSION)
1364 +dnl ---------------------------------------------------------------------------
1365 +dnl CF_GCC_WARNINGS version: 15 updated: 2003/07/05 18:42:30
1366 +dnl ---------------
1367 dnl Check if the compiler supports useful warning options. There's a few that
1368 dnl we don't use, simply because they're too noisy:
1370 dnl -Wconversion (useful in older versions of gcc, but not in gcc 2.7.x)
1371 dnl -Wredundant-decls (system headers make this too noisy)
1372 dnl -Wtraditional (combines too many unrelated messages, only a few useful)
1373 -dnl -Wwrite-strings (too noisy, but should review occasionally)
1374 +dnl -Wwrite-strings (too noisy, but should review occasionally). This
1375 +dnl is enabled for ncurses using "--enable-const".
1378 AC_DEFUN([CF_GCC_WARNINGS],
1380 +AC_REQUIRE([CF_GCC_VERSION])
1381 if test "$GCC" = yes
1383 cat > conftest.$ac_ext <<EOF
1384 @@ -810,8 +870,19 @@
1385 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
1386 if AC_TRY_EVAL(ac_compile); then
1387 test -n "$verbose" && AC_MSG_RESULT(... -$cf_opt)
1388 + case $cf_opt in #(vi
1390 + CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
1393 + case $GCC_VERSION in
1395 + CF_VERBOSE(feature is broken in gcc $GCC_VERSION)
1400 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
1401 - test "$cf_opt" = Wcast-qual && EXTRA_CFLAGS="$EXTRA_CFLAGS -DXTSTRINGDEFINES"
1406 AC_SUBST(EXTRA_CFLAGS)
1408 dnl ---------------------------------------------------------------------------
1409 +dnl CF_GNAT_TRY_RUN version: 2 updated: 1998/07/19 00:25:18
1410 +dnl ---------------
1411 dnl Verify that a test program compiles and runs with GNAT
1412 dnl $cf_ada_make is set to the program that compiles/links
1413 AC_DEFUN([CF_GNAT_TRY_RUN],
1414 @@ -843,21 +916,26 @@
1417 dnl ---------------------------------------------------------------------------
1418 -dnl Verify Version of GNAT.
1419 +dnl CF_GNAT_VERSION version: 11 updated: 2003/09/06 19:42:09
1420 +dnl ---------------
1421 +dnl Verify version of GNAT.
1422 AC_DEFUN([CF_GNAT_VERSION],
1424 -cf_cv_gnat_version=`$cf_ada_make -v 2>&1 | grep '[[0-9]].[[0-9]][[0-9]]*' |\
1425 - sed -e 's/[[^0-9 \.]]//g' | $AWK '{print $[1];}'`
1426 -case $cf_cv_gnat_version in
1427 +AC_MSG_CHECKING(for gnat version)
1428 +cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[[0-9]].[[0-9]][[0-9]]*' |\
1429 + sed -e '2,$d' -e 's/[[^0-9 \.]]//g' -e 's/^[[ ]]*//' -e 's/ .*//'`
1430 +AC_MSG_RESULT($cf_gnat_version)
1432 +case $cf_gnat_version in
1433 3.1[[1-9]]*|3.[[2-9]]*|[[4-9]].*)
1434 cf_cv_prog_gnat_correct=yes
1436 - *) echo Unsupported GNAT version $cf_cv_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
1437 + *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
1438 cf_cv_prog_gnat_correct=no
1441 -case $cf_cv_gnat_version in
1443 +case $cf_gnat_version in
1444 + 3.[[1-9]]*|[[4-9]].*)
1445 cf_compile_generics=generics
1446 cf_generic_objects="\$(GENOBJS)"
1451 dnl ---------------------------------------------------------------------------
1452 +dnl CF_GNU_SOURCE version: 3 updated: 2000/10/29 23:30:53
1454 dnl Check if we must define _GNU_SOURCE to get a reasonable value for
1455 dnl _XOPEN_SOURCE, upon which many POSIX definitions depend. This is a defect
1456 dnl (or misfeature) of glibc2, which breaks portability of many applications,
1458 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
1460 dnl ---------------------------------------------------------------------------
1461 +dnl CF_GPP_LIBRARY version: 8 updated: 2003/02/02 01:41:46
1463 dnl If we're trying to use g++, test if libg++ is installed (a rather common
1464 dnl problem :-). If we have the compiler but no library, we'll be able to
1465 dnl configure, but won't be able to build the c++ demo program.
1470 -if test "$ac_cv_prog_gxx" = yes; then
1471 +if test "$GXX" = yes; then
1472 AC_MSG_CHECKING([for lib$cf_gpp_libname])
1474 LIBS="$LIBS -l$cf_gpp_libname"
1475 @@ -937,20 +1019,37 @@
1478 dnl ---------------------------------------------------------------------------
1479 +dnl CF_GXX_VERSION version: 3 updated: 2003/09/06 19:16:21
1481 +dnl Check for version of g++
1482 +AC_DEFUN([CF_GXX_VERSION],[
1483 +AC_REQUIRE([AC_PROG_CPP])
1485 +if test "$GXX" = yes; then
1486 + AC_MSG_CHECKING(version of g++)
1487 + GXX_VERSION="`${CXX-g++} --version|sed -e '2,$d'`"
1488 + AC_MSG_RESULT($GXX_VERSION)
1491 +dnl ---------------------------------------------------------------------------
1492 +dnl CF_HELP_MESSAGE version: 3 updated: 1998/01/14 10:56:23
1493 +dnl ---------------
1494 dnl Insert text into the help-message, for readability, from AC_ARG_WITH.
1495 AC_DEFUN([CF_HELP_MESSAGE],
1496 [AC_DIVERT_HELP([$1])dnl
1498 dnl ---------------------------------------------------------------------------
1499 +dnl CF_INCLUDE_DIRS version: 4 updated: 2002/12/01 00:12:15
1500 +dnl ---------------
1501 dnl Construct the list of include-options according to whether we're building
1502 dnl in the source directory or using '--srcdir=DIR' option. If we're building
1503 dnl with gcc, don't append the includedir if it happens to be /usr/include,
1504 dnl since that usually breaks gcc's shadow-includes.
1505 AC_DEFUN([CF_INCLUDE_DIRS],
1507 -CPPFLAGS="$CPPFLAGS -I. -I../include"
1508 +CPPFLAGS="-I. -I../include $CPPFLAGS"
1509 if test "$srcdir" != "."; then
1510 - CPPFLAGS="$CPPFLAGS -I\$(srcdir)/../include"
1511 + CPPFLAGS="-I\$(srcdir)/../include $CPPFLAGS"
1513 if test "$GCC" != yes; then
1514 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
1515 @@ -966,6 +1065,8 @@
1518 dnl ---------------------------------------------------------------------------
1519 +dnl CF_ISASCII version: 3 updated: 2000/08/12 23:18:52
1521 dnl Check if we have either a function or macro for 'isascii()'.
1522 AC_DEFUN([CF_ISASCII],
1524 @@ -979,6 +1080,8 @@
1525 test "$cf_cv_have_isascii" = yes && AC_DEFINE(HAVE_ISASCII)
1527 dnl ---------------------------------------------------------------------------
1528 +dnl CF_LIBUTF8 version: 2 updated: 2002/01/19 22:51:32
1530 dnl Check for libutf8
1531 AC_DEFUN([CF_LIBUTF8],
1533 @@ -998,6 +1101,8 @@
1536 dnl ---------------------------------------------------------------------------
1537 +dnl CF_LIB_PREFIX version: 7 updated: 2001/01/12 01:23:48
1539 dnl Compute the library-prefix for the given host system
1540 dnl $1 = variable to set
1541 AC_DEFUN([CF_LIB_PREFIX],
1542 @@ -1011,6 +1116,8 @@
1543 AC_SUBST(LIB_PREFIX)
1545 dnl ---------------------------------------------------------------------------
1546 +dnl CF_LIB_RULES version: 29 updated: 2003/07/19 16:05:52
1548 dnl Append definitions and rules for the given models to the subdirectory
1549 dnl Makefiles, and the recursion rule for the top-level Makefile. If the
1550 dnl subdirectory is a library-source directory, modify the LIBRARIES list in
1551 @@ -1054,8 +1161,10 @@
1554 # cygwin needs import library, and has unique naming convention
1555 + # use autodetected ${cf_prefix} for import lib and static lib, but
1556 + # use 'cyg' prefix for shared lib.
1557 if test $cf_cv_shlib_version = cygdll ; then
1558 - SHARED_LIB="../lib/${cf_prefix}${cf_dir}\$(ABI_VERSION).dll"
1559 + SHARED_LIB="../lib/cyg${cf_dir}\$(ABI_VERSION).dll"
1560 IMPORT_LIB="../lib/${cf_prefix}${cf_dir}.dll.a"
1561 LIBS_TO_MAKE="$LIBS_TO_MAKE \$(SHARED_LIB) \$(IMPORT_LIB)"
1563 @@ -1070,7 +1179,7 @@
1567 - cf_item=`echo $LIBS_TO_MAKE |sed -e s/$LIB_NAME/$TINFO_NAME/g`
1568 + cf_item=`echo $LIBS_TO_MAKE |sed -e s%$LIB_NAME%$TINFO_NAME%g`
1569 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
1572 @@ -1128,7 +1237,7 @@
1573 ldconfig="$LDCONFIG" \
1574 overwrite=$WITH_OVERWRITE \
1575 depend="$cf_depend" \
1576 - target="$target" \
1578 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
1579 for cf_subdir2 in $cf_subdirs lib
1581 @@ -1364,6 +1473,8 @@
1584 dnl ---------------------------------------------------------------------------
1585 +dnl CF_LIB_SUFFIX version: 12 updated: 2002/01/20 01:43:41
1587 dnl Compute the library file-suffix from the given model name
1589 dnl $2 = variable to set
1590 @@ -1387,6 +1498,8 @@
1591 test -n "$LIB_SUFFIX" && $2="${LIB_SUFFIX}[$]{$2}"
1593 dnl ---------------------------------------------------------------------------
1594 +dnl CF_LIB_TYPE version: 4 updated: 2000/10/20 22:57:49
1596 dnl Compute the string to append to -library from the given model name
1598 dnl $2 = variable to set
1599 @@ -1403,6 +1516,8 @@
1600 test -n "$LIB_SUFFIX" && $2="${LIB_SUFFIX}[$]{$2}"
1602 dnl ---------------------------------------------------------------------------
1603 +dnl CF_LINK_DATAONLY version: 6 updated: 2003/02/02 01:41:46
1604 +dnl ----------------
1605 dnl Some systems have a non-ANSI linker that doesn't pull in modules that have
1606 dnl only data (i.e., no functions), for example NeXT. On those systems we'll
1607 dnl have to provide wrappers for global tables to ensure they're linked
1608 @@ -1418,7 +1533,7 @@
1610 if AC_TRY_EVAL(ac_compile) ; then
1611 mv conftest.o data.o && \
1612 - ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
1613 + ( $AR $AR_OPTS conftest.a data.o ) 2>&AC_FD_CC 1>/dev/null
1615 rm -f conftest.$ac_ext data.o
1616 cat >conftest.$ac_ext <<EOF
1617 @@ -1437,10 +1552,10 @@
1619 if AC_TRY_EVAL(ac_compile); then
1620 mv conftest.o func.o && \
1621 - ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
1622 + ( $AR $AR_OPTS conftest.a func.o ) 2>&AC_FD_CC 1>/dev/null
1624 rm -f conftest.$ac_ext func.o
1625 - ( eval $ac_cv_prog_RANLIB conftest.a ) 2>&5 >/dev/null
1626 + ( eval $RANLIB conftest.a ) 2>&AC_FD_CC >/dev/null
1628 LIBS="conftest.a $LIBS"
1630 @@ -1464,6 +1579,8 @@
1633 dnl ---------------------------------------------------------------------------
1634 +dnl CF_LINK_FUNCS version: 5 updated: 2003/02/02 01:41:46
1636 dnl Most Unix systems have both link and symlink, a few don't have symlink.
1637 dnl A few non-Unix systems implement symlink, but not link.
1638 dnl A few non-systems implement neither (or have nonfunctional versions).
1639 @@ -1473,7 +1590,7 @@
1643 -if test "$ac_cv_prog_cc_cross" = yes ; then
1644 +if test "$cross_compiling" = yes ; then
1648 @@ -1519,6 +1636,8 @@
1651 dnl ---------------------------------------------------------------------------
1652 +dnl CF_MAKEFLAGS version: 9 updated: 2001/12/30 18:17:27
1654 dnl Some 'make' programs support $(MAKEFLAGS), some $(MFLAGS), to pass 'make'
1655 dnl options to lower-levels. It's very useful for "make -n" -- if we have it.
1656 dnl (GNU 'make' does both, something POSIX 'make', which happens to make the
1657 @@ -1556,6 +1675,8 @@
1658 AC_SUBST(cf_cv_makeflags)
1660 dnl ---------------------------------------------------------------------------
1661 +dnl CF_MAKE_TAGS version: 2 updated: 2000/10/04 09:18:40
1663 dnl Generate tags/TAGS targets for makefiles. Do not generate TAGS if we have
1664 dnl a monocase filesystem.
1665 AC_DEFUN([CF_MAKE_TAGS],[
1666 @@ -1583,6 +1704,8 @@
1667 AC_SUBST(MAKE_LOWER_TAGS)
1669 dnl ---------------------------------------------------------------------------
1670 +dnl CF_MANPAGE_FORMAT version: 6 updated: 2002/01/19 22:51:32
1671 +dnl -----------------
1672 dnl Option to allow user to override automatic configuration of manpage format.
1673 dnl There are several special cases.
1674 AC_DEFUN([CF_MANPAGE_FORMAT],
1675 @@ -1635,6 +1758,8 @@
1676 AC_MSG_RESULT($MANPAGE_FORMAT)
1678 dnl ---------------------------------------------------------------------------
1679 +dnl CF_MANPAGE_RENAMES version: 6 updated: 2002/01/19 22:51:32
1680 +dnl ------------------
1681 dnl The Debian people have their own naming convention for manpages. This
1682 dnl option lets us override the name of the file containing renaming, or
1683 dnl disable it altogether.
1684 @@ -1680,6 +1805,8 @@
1685 AC_SUBST(MANPAGE_RENAMES)
1687 dnl ---------------------------------------------------------------------------
1688 +dnl CF_MANPAGE_SYMLINKS version: 3 updated: 2002/01/19 22:51:32
1689 +dnl -------------------
1690 dnl Some people expect each tool to make all aliases for manpages in the
1691 dnl man-directory. This accommodates the older, less-capable implementations
1692 dnl of 'man', and is optional.
1693 @@ -1695,6 +1822,8 @@
1694 AC_MSG_RESULT($MANPAGE_SYMLINKS)
1696 dnl ---------------------------------------------------------------------------
1697 +dnl CF_MANPAGE_TBL version: 3 updated: 2002/01/19 22:51:32
1699 dnl This option causes manpages to be run through tbl(1) to generate tables
1701 AC_DEFUN([CF_MANPAGE_TBL],
1702 @@ -1709,6 +1838,8 @@
1703 AC_MSG_RESULT($MANPAGE_TBL)
1705 dnl ---------------------------------------------------------------------------
1706 +dnl CF_MAN_PAGES version: 23 updated: 2002/12/21 22:46:07
1708 dnl Try to determine if the man-pages on the system are compressed, and if
1709 dnl so, what format is used. Use this information to construct a script that
1710 dnl will install man-pages.
1711 @@ -1888,7 +2019,7 @@
1714 cat >>man/edit_man.sh <<CF_EOF
1715 - suffix=\`basename \$target | sed -e 's/^[[^.]]*//'\`
1716 + suffix=\`basename \$target | sed -e 's%^[[^.]]*%%'\`
1717 if test \$verb = installing ; then
1718 echo \$verb \$target
1719 \$INSTALL_DATA \$TMP \$target
1720 @@ -1947,6 +2078,8 @@
1723 dnl ---------------------------------------------------------------------------
1724 +dnl CF_MATH_LIB version: 5 updated: 2000/05/28 01:39:10
1726 dnl Checks for libraries. At least one UNIX system, Apple Macintosh
1727 dnl Rhapsody 5.5, does not have -lm. We cannot use the simpler
1728 dnl AC_CHECK_LIB(m,sin), because that fails for C++.
1729 @@ -1969,37 +2102,8 @@
1732 dnl ---------------------------------------------------------------------------
1733 -dnl Check if mbstate_t is declared, and if so, which header file.
1734 -AC_DEFUN([CF_MBSTATE_T],
1736 -# This is needed on Tru64 5.0 to declare mbstate_t
1737 -AC_CACHE_CHECK(if we must include wchar.h to declare mbstate_t,cf_cv_mbstate_t,[
1739 -#include <stdlib.h>
1740 -#ifdef HAVE_LIBUTF8_H
1741 -#include <libutf8.h>
1743 - [mbstate_t state],
1744 - [cf_cv_mbstate_t=no],
1746 -#include <stdlib.h>
1748 -#ifdef HAVE_LIBUTF8_H
1749 -#include <libutf8.h>
1751 - [mbstate_t value],
1752 - [cf_cv_mbstate_t=yes],
1753 - [cf_cv_mbstate_t=unknown])])])
1755 -if test "$cf_cv_mbstate_t" = yes ; then
1756 - AC_DEFINE(NEED_WCHAR_H)
1759 -if test "$cf_cv_mbstate_t" != unknown ; then
1760 - AC_DEFINE(HAVE_MBSTATE_T)
1763 -dnl ---------------------------------------------------------------------------
1764 +dnl CF_MIXEDCASE_FILENAMES version: 2 updated: 2000/10/04 09:18:40
1765 +dnl ----------------------
1766 dnl Check if the file-system supports mixed-case filenames. If we're able to
1767 dnl create a lowercase name and see it as uppercase, it doesn't support that.
1768 AC_DEFUN([CF_MIXEDCASE_FILENAMES],
1769 @@ -2017,6 +2121,8 @@
1770 test "$cf_cv_mixedcase" = yes && AC_DEFINE(MIXEDCASE_FILENAMES)
1772 dnl ---------------------------------------------------------------------------
1773 +dnl CF_MKSTEMP version: 3 updated: 2001/11/08 20:59:59
1775 dnl Check for a working mkstemp. This creates two files, checks that they are
1776 dnl successfully created and distinct (AmigaOS apparently fails on the last).
1777 AC_DEFUN([CF_MKSTEMP],[
1778 @@ -2065,6 +2171,8 @@
1781 dnl ---------------------------------------------------------------------------
1782 +dnl CF_OBJ_SUBDIR version: 4 updated: 2002/02/23 20:38:31
1784 dnl Compute the object-directory name from the given model name
1785 AC_DEFUN([CF_OBJ_SUBDIR],
1787 @@ -2083,6 +2191,8 @@
1790 dnl ---------------------------------------------------------------------------
1791 +dnl CF_PATHSEP version: 3 updated: 2001/01/12 01:23:53
1793 dnl Provide a value for the $PATH and similar separator
1794 AC_DEFUN([CF_PATHSEP],
1796 @@ -2094,6 +2204,8 @@
1799 dnl ---------------------------------------------------------------------------
1800 +dnl CF_PATH_SYNTAX version: 9 updated: 2002/09/17 23:03:38
1802 dnl Check the argument to see that it looks like a pathname. Rewrite it if it
1803 dnl begins with one of the prefix/exec_prefix variables, and then again if the
1804 dnl result begins with 'NONE'. This is necessary to work around autoconf's
1805 @@ -2123,6 +2235,41 @@
1808 dnl ---------------------------------------------------------------------------
1809 +dnl CF_PREDEFINE version: 1 updated: 2003/07/26 17:53:56
1811 +dnl Add definitions to CPPFLAGS to ensure they're predefined for all compiles.
1813 +dnl $1 = symbol to test
1814 +dnl $2 = value (if any) to use for a predefinition
1815 +AC_DEFUN([CF_PREDEFINE],
1817 +AC_MSG_CHECKING(if we must define $1)
1818 +AC_TRY_COMPILE([#include <sys/types.h>
1822 +#endif],[cf_result=no],[cf_result=yes])
1823 +AC_MSG_RESULT($cf_result)
1825 +if test "$cf_result" = yes ; then
1826 + CPPFLAGS="$CPPFLAGS ifelse($2,,-D$1,[-D$1=$2])"
1827 +elif test "x$2" != "x" ; then
1828 + AC_MSG_CHECKING(checking for compatible value versus $2)
1829 + AC_TRY_COMPILE([#include <sys/types.h>
1833 +#endif],[cf_result=yes],[cf_result=no])
1834 + AC_MSG_RESULT($cf_result)
1835 + if test "$cf_result" = no ; then
1836 + # perhaps we can override it - try...
1837 + CPPFLAGS="$CPPFLAGS -D$1=$2"
1841 +dnl ---------------------------------------------------------------------------
1842 +dnl CF_PROG_EXT version: 8 updated: 2002/12/21 19:25:52
1844 dnl Compute $PROG_EXT, used for non-Unix ports, such as OS/2 EMX.
1845 AC_DEFUN([CF_PROG_EXT],
1847 @@ -2134,7 +2281,7 @@
1848 CFLAGS="$CFLAGS -Zmt"
1849 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
1850 CXXFLAGS="$CXXFLAGS -Zmt"
1851 - LDFLAGS=`echo "$LDFLAGS -Zmt -Zcrtdll" | sed "s/-Zexe//g"`
1852 + LDFLAGS=`echo "$LDFLAGS -Zmt -Zcrtdll" | sed -e "s%-Zexe%%g"`
1856 @@ -2145,6 +2292,8 @@
1857 test -n "$PROG_EXT" && AC_DEFINE_UNQUOTED(PROG_EXT,"$PROG_EXT")
1859 dnl ---------------------------------------------------------------------------
1860 +dnl CF_PROG_INSTALL version: 5 updated: 2002/12/21 22:46:07
1861 +dnl ---------------
1862 dnl Force $INSTALL to be an absolute-path. Otherwise, edit_man.sh and the
1863 dnl misc/tabset install won't work properly. Usually this happens only when
1864 dnl using the fallback mkinstalldirs script
1865 @@ -2156,11 +2305,13 @@
1867 CF_DIRNAME(cf_dir,$INSTALL)
1868 test -z "$cf_dir" && cf_dir=.
1869 - INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's:^.*/::'`
1870 + INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
1874 dnl ---------------------------------------------------------------------------
1875 +dnl CF_REGEX version: 3 updated: 1997/11/01 14:26:01
1877 dnl Attempt to determine if we've got one of the flavors of regular-expression
1878 dnl code that we can support.
1879 AC_DEFUN([CF_REGEX],
1880 @@ -2193,6 +2344,8 @@
1883 dnl ---------------------------------------------------------------------------
1884 +dnl CF_SHARED_OPTS version: 29 updated: 2003/07/12 15:15:19
1886 dnl Attempt to determine the appropriate CC/LD options for creating a shared
1889 @@ -2303,7 +2456,7 @@
1890 MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $[@]` -o $[@]'
1891 cf_cv_rm_so_locs=yes
1894 + linux*|gnu*|k*bsd*-gnu)
1895 if test "$DFT_LWR_MODEL" = "shared" ; then
1896 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
1897 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
1898 @@ -2364,7 +2517,7 @@
1900 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
1901 # tested with osr5.0.5
1902 - if test "$ac_cv_prog_gcc" != yes; then
1903 + if test "$GCC" != yes; then
1904 CC_SHARED_OPTS='-belf -KPIC'
1906 MK_SHARED_LIB='$(LD) -dy -G -h `basename $[@] .$(REL_VERSION)`.$(ABI_VERSION) -o [$]@'
1907 @@ -2378,7 +2531,7 @@
1910 # tested with SunOS 4.1.1 and gcc 2.7.0
1911 - if test "$ac_cv_prog_gcc" != yes; then
1912 + if test "$GCC" != yes; then
1913 CC_SHARED_OPTS='-KPIC'
1915 MK_SHARED_LIB='$(LD) -assert pure-text -o $[@]'
1916 @@ -2386,7 +2539,7 @@
1919 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
1920 - if test "$ac_cv_prog_gcc" != yes; then
1921 + if test "$GCC" != yes; then
1922 CC_SHARED_OPTS='-KPIC'
1924 MK_SHARED_LIB='$(LD) -dy -G -h `basename $[@] .$(REL_VERSION)`.$(ABI_VERSION) -o $[@]'
1925 @@ -2402,7 +2555,7 @@
1928 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
1929 - if test "$ac_cv_prog_gcc" != yes; then
1930 + if test "$GCC" != yes; then
1931 CC_SHARED_OPTS='-KPIC'
1933 MK_SHARED_LIB='$(LD) -d y -G -o [$]@'
1934 @@ -2449,6 +2602,8 @@
1935 AC_SUBST(INSTALL_LIB)
1937 dnl ---------------------------------------------------------------------------
1938 +dnl CF_SIZECHANGE version: 8 updated: 2000/11/04 12:22:16
1940 dnl Check for definitions & structures needed for window size-changing
1941 dnl FIXME: check that this works with "snake" (HP-UX 10.x)
1942 AC_DEFUN([CF_SIZECHANGE],
1943 @@ -2517,6 +2672,8 @@
1946 dnl ---------------------------------------------------------------------------
1947 +dnl CF_SRC_MODULES version: 14 updated: 2002/01/19 22:51:32
1949 dnl For each parameter, test if the source-directory exists, and if it contains
1950 dnl a 'modules' file. If so, add to the list $cf_cv_src_modules which we'll
1951 dnl use in CF_LIB_RULES.
1952 @@ -2614,6 +2771,8 @@
1955 dnl ---------------------------------------------------------------------------
1956 +dnl CF_STDCPP_LIBRARY version: 5 updated: 2000/08/12 23:18:52
1957 +dnl -----------------
1958 dnl Check for -lstdc++, which is GNU's standard C++ library.
1959 AC_DEFUN([CF_STDCPP_LIBRARY],
1961 @@ -2642,10 +2801,14 @@
1964 dnl ---------------------------------------------------------------------------
1965 +dnl CF_STRIP_G_OPT version: 3 updated: 2002/12/21 19:25:52
1967 dnl Remove "-g" option from the compiler options
1968 AC_DEFUN([CF_STRIP_G_OPT],
1969 -[$1=`echo ${$1} | sed -e 's/-g //' -e 's/-g$//'`])dnl
1970 +[$1=`echo ${$1} | sed -e 's%-g %%' -e 's%-g$%%'`])dnl
1971 dnl ---------------------------------------------------------------------------
1972 +dnl CF_STRUCT_SIGACTION version: 3 updated: 2000/08/12 23:18:52
1973 +dnl -------------------
1974 dnl Check if we need _POSIX_SOURCE defined to use struct sigaction. We'll only
1975 dnl do this if we've found the sigaction function.
1977 @@ -2671,6 +2834,8 @@
1980 dnl ---------------------------------------------------------------------------
1981 +dnl CF_STRUCT_TERMIOS version: 5 updated: 2000/11/04 12:22:46
1982 +dnl -----------------
1983 dnl Some machines require _POSIX_SOURCE to completely define struct termios.
1984 dnl If so, define SVR4_TERMIO
1985 AC_DEFUN([CF_STRUCT_TERMIOS],[
1986 @@ -2705,6 +2870,8 @@
1989 dnl ---------------------------------------------------------------------------
1990 +dnl CF_SUBST version: 2 updated: 1997/09/06 23:41:28
1992 dnl Shorthand macro for substituting things that the user may override
1993 dnl with an environment variable.
1995 @@ -2721,6 +2888,8 @@
1996 $2=${cf_cv_subst_$2}
1998 dnl ---------------------------------------------------------------------------
1999 +dnl CF_SUBST_NCURSES_VERSION version: 7 updated: 2003/06/07 16:22:51
2000 +dnl ------------------------
2001 dnl Get the version-number for use in shared-library naming, etc.
2002 AC_DEFUN([CF_SUBST_NCURSES_VERSION],
2004 @@ -2739,12 +2908,13 @@
2005 dnl We need these values in the generated makefiles
2006 AC_SUBST(cf_cv_rel_version)
2007 AC_SUBST(cf_cv_abi_version)
2008 -AC_SUBST(cf_cv_cc_bool_type)
2009 AC_SUBST(cf_cv_builtin_bool)
2010 AC_SUBST(cf_cv_header_stdbool_h)
2011 AC_SUBST(cf_cv_type_of_bool)dnl
2013 dnl ---------------------------------------------------------------------------
2014 +dnl CF_SYS_TIME_SELECT version: 4 updated: 2000/10/04 09:18:40
2015 +dnl ------------------
2016 dnl Check if we can include <sys/time.h> with <sys/select.h>; this breaks on
2017 dnl older SCO configurations.
2018 AC_DEFUN([CF_SYS_TIME_SELECT],
2019 @@ -2766,6 +2936,8 @@
2020 test "$cf_cv_sys_time_select" = yes && AC_DEFINE(HAVE_SYS_TIME_SELECT)
2022 dnl ---------------------------------------------------------------------------
2023 +dnl CF_TYPEOF_CHTYPE version: 4 updated: 2000/10/04 09:18:40
2024 +dnl ----------------
2025 dnl Determine the type we should use for chtype (and attr_t, which is treated
2026 dnl as the same thing). We want around 32 bits, so on most machines want a
2027 dnl long, but on newer 64-bit machines, probably want an int. If we're using
2028 @@ -2835,6 +3007,8 @@
2031 dnl ---------------------------------------------------------------------------
2032 +dnl CF_TYPE_SIGACTION version: 3 updated: 2000/08/12 23:18:52
2033 +dnl -----------------
2035 AC_DEFUN([CF_TYPE_SIGACTION],
2037 @@ -2849,6 +3023,8 @@
2038 test "$cf_cv_type_sigaction" = yes && AC_DEFINE(HAVE_TYPE_SIGACTION)
2040 dnl ---------------------------------------------------------------------------
2041 +dnl CF_UNSIGNED_LITERALS version: 2 updated: 1998/02/07 22:10:16
2042 +dnl --------------------
2043 dnl Test if the compiler supports 'U' and 'L' suffixes. Only old compilers
2044 dnl won't, but they're still there.
2045 AC_DEFUN([CF_UNSIGNED_LITERALS],
2046 @@ -2862,6 +3038,8 @@
2047 AC_MSG_RESULT($cf_cv_unsigned_literals)
2049 dnl ---------------------------------------------------------------------------
2050 +dnl CF_UPPER version: 5 updated: 2001/01/29 23:40:59
2052 dnl Make an uppercase version of a variable
2053 dnl $1=uppercase($2)
2054 AC_DEFUN([CF_UPPER],
2055 @@ -2869,11 +3047,184 @@
2056 $1=`echo "$2" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2058 dnl ---------------------------------------------------------------------------
2059 +dnl CF_VERBOSE version: 2 updated: 1997/09/05 10:45:14
2061 dnl Use AC_VERBOSE w/o the warnings
2062 AC_DEFUN([CF_VERBOSE],
2063 [test -n "$verbose" && echo " $1" 1>&AC_FD_MSG
2065 dnl ---------------------------------------------------------------------------
2066 +dnl CF_WCHAR_TYPE version: 1 updated: 2003/03/22 19:13:43
2068 +dnl Check if type wide-character type $1 is declared, and if so, which header
2069 +dnl file is needed. The second parameter is used to set a shell variable when
2070 +dnl the type is not found. The first parameter sets a shell variable for the
2071 +dnl opposite sense.
2072 +AC_DEFUN([CF_WCHAR_TYPE],
2074 +# This is needed on Tru64 5.0 to declare $1
2075 +AC_CACHE_CHECK(if we must include wchar.h to declare $1,cf_cv_$1,[
2077 +#include <stdlib.h>
2078 +#ifdef HAVE_LIBUTF8_H
2079 +#include <libutf8.h>
2084 +#include <stdlib.h>
2086 +#ifdef HAVE_LIBUTF8_H
2087 +#include <libutf8.h>
2091 + [cf_cv_$1=unknown])])])
2093 +if test "$cf_cv_$1" = yes ; then
2094 + AC_DEFINE(NEED_WCHAR_H)
2099 +# if we do not find $1 in either place, use substitution to provide a fallback.
2100 +if test "$cf_cv_$1" = unknown ; then
2105 +# if we find $1 in either place, use substitution to provide a fallback.
2106 +if test "$cf_cv_$1" != unknown ; then
2111 +dnl ---------------------------------------------------------------------------
2112 +dnl CF_WITH_DBMALLOC version: 2 updated: 2002/12/29 21:11:45
2113 +dnl ----------------
2114 +dnl Configure-option for dbmalloc
2115 +AC_DEFUN([CF_WITH_DBMALLOC],[
2116 +AC_MSG_CHECKING(if you want to link with dbmalloc for testing)
2117 +AC_ARG_WITH(dbmalloc,
2118 + [ --with-dbmalloc test: use Conor Cahill's dbmalloc library],
2119 + [with_dbmalloc=$withval],
2120 + [with_dbmalloc=no])
2121 +AC_MSG_RESULT($with_dbmalloc)
2122 +if test $with_dbmalloc = yes ; then
2123 + AC_CHECK_LIB(dbmalloc,debug_malloc)
2126 +dnl ---------------------------------------------------------------------------
2127 +dnl CF_WITH_DMALLOC version: 2 updated: 2002/12/29 21:11:45
2128 +dnl ---------------
2129 +dnl Configure-option for dmalloc
2130 +AC_DEFUN([CF_WITH_DMALLOC],[
2131 +AC_MSG_CHECKING(if you want to link with dmalloc for testing)
2132 +AC_ARG_WITH(dmalloc,
2133 + [ --with-dmalloc test: use Gray Watson's dmalloc library],
2134 + [with_dmalloc=$withval],
2135 + [with_dmalloc=no])
2136 +AC_MSG_RESULT($with_dmalloc)
2137 +if test $with_dmalloc = yes ; then
2138 + AC_CHECK_LIB(dmalloc,dmalloc_debug)
2141 +dnl ---------------------------------------------------------------------------
2142 +dnl CF_WITH_LIBTOOL version: 8 updated: 2003/09/06 19:15:56
2143 +dnl ---------------
2144 +dnl Provide a configure option to incorporate libtool. Define several useful
2145 +dnl symbols for the makefile rules.
2146 +AC_DEFUN([CF_WITH_LIBTOOL],
2150 +# common library maintenance symbols that are convenient for libtool scripts:
2151 +LIB_CREATE='$(AR) -cr'
2152 +LIB_OBJECT='$(OBJECTS)'
2156 +# symbols used to prop libtool up to enable it to determine what it should be
2164 +AC_MSG_CHECKING(if you want to build libraries with libtool)
2165 +AC_ARG_WITH(libtool,
2166 + [ --with-libtool generate libraries with libtool],
2167 + [with_libtool=$withval],
2168 + [with_libtool=no])
2169 +AC_MSG_RESULT($with_libtool)
2170 +if test "$with_libtool" != "no"; then
2171 + if test "$with_libtool" != "yes" ; then
2172 + CF_PATH_SYNTAX(with_libtool)
2173 + LIBTOOL=$with_libtool
2175 + AC_PATH_PROG(LIBTOOL,libtool)
2177 + if test -z "$LIBTOOL" ; then
2178 + AC_MSG_ERROR(Cannot find libtool)
2181 + LIB_CREATE='$(LIBTOOL) --mode=link $(CC) -rpath $(DESTDIR)$(libdir) -version-info `cut -f1 $(srcdir)/VERSION` -o'
2182 + LIB_OBJECT='$(OBJECTS:.o=.lo)'
2184 + LIB_CLEAN='$(LIBTOOL) --mode=clean'
2185 + LIB_COMPILE='$(LIBTOOL) --mode=compile'
2186 + LIB_LINK='$(LIBTOOL) --mode=link'
2187 + LIB_INSTALL='$(LIBTOOL) --mode=install'
2188 + LIB_UNINSTALL='$(LIBTOOL) --mode=uninstall'
2191 + # Show the version of libtool
2192 + AC_MSG_CHECKING(version of libtool)
2194 + # Save the version in a cache variable - this is not entirely a good
2195 + # thing, but the version string from libtool is very ugly, and for
2196 + # bug reports it might be useful to have the original string.
2197 + cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '2,$d' -e 's/^[[^1-9]]*//' -e 's/[[^0-9.]].*//'`
2198 + AC_MSG_RESULT($cf_cv_libtool_version)
2199 + if test -z "$cf_cv_libtool_version" ; then
2200 + AC_MSG_ERROR(This is not libtool)
2203 + # special hack to add --tag option for C++ compiler
2204 + case $cf_cv_libtool_version in
2205 + 1.[[5-9]]*|[[2-9]]*)
2206 + LIBTOOL_CXX="$LIBTOOL --tag=CXX"
2209 + LIBTOOL_CXX="$LIBTOOL"
2217 +test -z "$LIBTOOL" && ECHO_LT=
2220 +AC_SUBST(LIBTOOL_CXX)
2222 +AC_SUBST(LIB_CREATE)
2223 +AC_SUBST(LIB_OBJECT)
2224 +AC_SUBST(LIB_SUFFIX)
2227 +AC_SUBST(LIB_CLEAN)
2228 +AC_SUBST(LIB_COMPILE)
2230 +AC_SUBST(LIB_INSTALL)
2231 +AC_SUBST(LIB_UNINSTALL)
2234 +dnl ---------------------------------------------------------------------------
2235 +dnl CF_WITH_PATH version: 6 updated: 1998/10/11 00:40:17
2237 dnl Wrapper for AC_ARG_WITH to ensure that user supplies a pathname, not just
2238 dnl defaulting to yes/no.
2240 @@ -2891,6 +3242,8 @@
2243 dnl ---------------------------------------------------------------------------
2244 +dnl CF_WITH_PATHLIST version: 5 updated: 2001/12/10 01:28:30
2245 +dnl ----------------
2246 dnl Process an option specifying a list of colon-separated paths.
2248 dnl $1 = option name
2249 @@ -2930,3 +3283,33 @@
2253 +dnl ---------------------------------------------------------------------------
2254 +dnl CF_WITH_SYSMOUSE version: 2 updated: 2003/03/22 19:13:43
2255 +dnl ----------------
2256 +dnl If we can compile with sysmouse, make it available unless it is not wanted.
2257 +AC_DEFUN([CF_WITH_SYSMOUSE],[
2258 +# not everyone has "test -c"
2259 +if test -c /dev/sysmouse 2>/dev/null ; then
2260 +AC_MSG_CHECKING(if you want to use sysmouse)
2261 +AC_ARG_WITH(sysmouse,
2262 + [ --with-sysmouse use sysmouse (FreeBSD console)],
2263 + [cf_with_sysmouse=$withval],
2264 + [cf_with_sysmouse=maybe])
2265 + if test "$cf_with_sysmouse" != no ; then
2267 +#include <osreldate.h>
2268 +#if (__FreeBSD_version >= 400017)
2269 +#include <sys/consio.h>
2270 +#include <sys/fbio.h>
2272 +#include <machine/console.h>
2275 + struct mouse_info the_mouse;
2276 + ioctl(0, CONS_MOUSECTL, &the_mouse);
2277 +],[cf_with_sysmouse=yes],[cf_with_sysmouse=no])
2279 +AC_MSG_RESULT($cf_with_sysmouse)
2280 +test "$cf_with_sysmouse" = yes && AC_DEFINE(USE_SYSMOUSE)
2283 diff -urNd -urNd ncurses-5.3/announce.html.in ncurses-5.3.20030906.orig/announce.html.in
2284 --- ncurses-5.3/announce.html.in Sat Oct 12 18:35:32 2002
2285 +++ ncurses-5.3.20030906.orig/announce.html.in Tue May 13 20:08:22 2003
2287 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
2289 - $Id: announce.html.in,v 1.44 2002/10/12 23:35:32 tom Exp $
2290 + $Id: announce.html.in,v 1.48 2002/10/19 21:46:46 tom Exp $
2294 -<TITLE>Announcing ncurses @VERSION@ Pre-Release</TITLE>
2295 +<TITLE>Announcing ncurses @VERSION@</TITLE>
2296 <link rev=made href="mailto:bug-ncurses@gnu.org">
2297 +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
2303 The ncurses distribution is available via anonymous FTP at
2304 the GNU distribution site
2305 -<A HREF="ftp://ftp.gnu.org/pub/gnu/ncurses">ftp://ftp.gnu.org/pub/gnu/ncurses</A>.
2306 +<A HREF="ftp://ftp.gnu.org/gnu/ncurses/">ftp://ftp.gnu.org/gnu/ncurses/</A> .
2307 <br>It is also available at
2308 -<A HREF="ftp://invisible-island.net/ncurses">ftp://invisible-island.net/ncurses</A>.
2309 +<A HREF="ftp://invisible-island.net/ncurses/">ftp://invisible-island.net/ncurses/</A> .
2311 <H1>Release Notes</H1>
2313 @@ -317,61 +318,61 @@
2315 <DD> Curses Development Kit
2317 -<A HREF="http://invisible-island.net/cdk/cdk.html">http://invisible-island.net/cdk</A>.
2318 +<A HREF="http://invisible-island.net/cdk/">http://invisible-island.net/cdk/</A>
2320 -<A HREF="http://www.vexus.ca/CDK.html">http://www.vexus.ca/CDK.html</a>
2321 +<A HREF="http://www.vexus.ca/products/CDK/">http://www.vexus.ca/products/CDK/</a>
2323 <DD> directory-editor
2325 -<A HREF="http://invisible-island.net/ded/ded.html">http://invisible-island.net/ded</A>.
2326 +<A HREF="http://invisible-island.net/ded/">http://invisible-island.net/ded/</A>
2328 <DD> the underlying application used in Slackware's setup, and the basis
2329 for similar applications on GNU/Linux.
2331 -<A HREF="http://invisible-island.net/dialog/dialog.html">http://invisible-island.net/dialog</A>.
2332 +<A HREF="http://invisible-island.net/dialog/">http://invisible-island.net/dialog/</A>
2334 <DD> the character-screen WWW browser
2336 -<A HREF="http://lynx.isc.org/release/">http://lynx.isc.org/release</A>.
2337 +<A HREF="http://lynx.isc.org/release/">http://lynx.isc.org/release/</A>
2338 <DT> Midnight Commander
2341 -<A HREF="www.gnome.org/mc/">www.gnome.org/mc/</A>.
2342 +<A HREF="http://www.ibiblio.org/mc/">http://www.ibiblio.org/mc/</A>
2346 -<A HREF="http://www.mutt.org">http://www.mutt.org</A>.
2347 +<A HREF="http://www.mutt.org/">http://www.mutt.org/</A>
2349 <DD> file-transfer utility
2351 -<A HREF="http://www.ncftp.com">http://www.ncftp.com</A>.
2352 +<A HREF="http://www.ncftp.com/">http://www.ncftp.com/</A>
2354 <DD> New vi versions 1.50 are able to use ncurses versions 1.9.7 and later.
2356 -<A HREF="http://www.bostic.com/vi/">http://www.bostic.com/vi/</A>.
2357 +<A HREF="http://www.bostic.com/vi/">http://www.bostic.com/vi/</A>
2359 <DD> newsreader, supporting color, MIME
2361 -<A HREF="http://www.tin.org">http://www.tin.org</A>.
2362 +<A HREF="http://www.tin.org/">http://www.tin.org/</A>
2364 <DD> tape archive utility
2366 -<A HREF="http://members.iinet.net.au/~yusuf/taper/">http://members.iinet.net.au/~yusuf/taper/</A>.
2367 +<A HREF="http://taper.e-survey.net.au/">http://taper.e-survey.net.au/</A>
2369 <DD> Volks-Hypertext browser for the Jargon File
2371 -<A HREF="http://www.bg.debian.org/Packages/unstable/text/vh.html">http://www.bg.debian.org/Packages/unstable/text/vh.html</A>.
2372 +<A HREF="http://www.debian.org/Packages/unstable/text/vh.html">http://www.debian.org/Packages/unstable/text/vh.html</A>
2374 as well as some that use ncurses for the terminfo support alone:
2377 <DD> terminal emulator
2379 -<A HREF="http://www.pp.clinet.fi/~walker/minicom.html">http://www.pp.clinet.fi/~walker/minicom.html</A>.
2380 +<A HREF="http://www.netsonic.fi/~walker/minicom.html">http://www.netsonic.fi/~walker/minicom.html</A>
2384 -<A HREF="http://invisible-island.net/vile/vile.html">http://invisible-island.net/vile</A>.
2385 +<A HREF="http://invisible-island.net/vile/">http://invisible-island.net/vile/</A>
2391 The original developers of ncurses are <A
2392 HREF="mailto:zmbenhal@netcom.com">Zeyd Ben-Halim</A> and
2393 -<A HREF="http://www.ccil.org/~esr/home.html">Eric S. Raymond</A>.
2394 +<A HREF="http://www.tuxedo.org/~esr/">Eric S. Raymond</A>.
2395 Ongoing work is being done by
2396 <A HREF="mailto:dickey@herndon4.his.com">Thomas Dickey</A>
2399 testing of this package.<P>
2401 Beta versions of ncurses and patches to the current release are made available at
2402 -<A HREF="ftp://invisible-island.net/ncurses">ftp://invisible-island.net/ncurses</A>.
2403 +<A HREF="ftp://invisible-island.net/ncurses/">ftp://invisible-island.net/ncurses/</A> .
2405 <H2>Future Plans</H2>
2407 @@ -418,12 +419,12 @@
2409 The distribution includes and uses a version of the terminfo-format
2410 terminal description file maintained by Eric Raymond.
2411 -<A HREF="http://earthspace.net/~esr/terminfo">http://earthspace.net/~esr/terminfo</A>.<P>
2412 +<A HREF="http://www.tuxedo.org/~esr/terminfo/">http://www.tuxedo.org/~esr/terminfo/</A> .<P>
2414 You can find lots of information on terminal-related topics
2415 not covered in the terminfo file at
2416 <A HREF="http://www.cs.utk.edu/~shuford/terminal_index.html">Richard Shuford's
2422 diff -urNd -urNd ncurses-5.3/c++/Makefile.in ncurses-5.3.20030906.orig/c++/Makefile.in
2423 --- ncurses-5.3/c++/Makefile.in Sat Jan 19 14:25:31 2002
2424 +++ ncurses-5.3.20030906.orig/c++/Makefile.in Fri Sep 12 16:42:40 2003
2426 -# $Id: Makefile.in,v 1.64 2002/01/19 20:25:31 NIIBE.Yutaka Exp $
2427 +# $Id: Makefile.in,v 1.69 2003/08/24 00:19:44 tom Exp $
2428 ##############################################################################
2429 -# Copyright (c) 1998,1999,2000,2001,2002 Free Software Foundation, Inc. #
2430 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
2432 # Permission is hereby granted, free of charge, to any person obtaining a #
2433 # copy of this software and associated documentation files (the "Software"), #
2436 includedir = @includedir@
2438 -LIBTOOL = @LIBTOOL@
2439 +LIBTOOL = @LIBTOOL_CXX@
2440 +LIBTOOL_CLEAN = @LIB_CLEAN@
2441 +LIBTOOL_COMPILE = @LIB_COMPILE@
2442 +LIBTOOL_LINK = @LIB_LINK@
2443 +LIBTOOL_INSTALL = @LIB_INSTALL@
2444 +LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
2447 INSTALL_DATA = @INSTALL_DATA@
2451 CXX_AR_OPTS = @CXX_AR_OPTS@
2453 +RANLIB = @LIB_PREP@
2458 REL_VERSION = @cf_cv_rel_version@
2459 ABI_VERSION = @cf_cv_abi_version@
2461 -LINK = @LINK_PROGS@ $(LIBTOOL) $(CXX) @CXXLDFLAGS@
2462 +LINK = @LINK_PROGS@ $(LIBTOOL_LINK) $(CXX) @CXXLDFLAGS@
2463 +SHLIB_DIRS = -L../lib
2464 +SHLIB_LIST = $(SHLIB_DIRS) -lncurses@LIB_SUFFIX@ @SHLIB_LIST@
2468 @@ -102,11 +109,11 @@
2469 LDFLAGS = @TEST_ARGS@ @LDFLAGS@ \
2470 @LD_MODEL@ @LIBS@ @EXTRA_LIBS@ @LOCAL_LDFLAGS@ $(CXXLIBS)
2472 -LDFLAGS_LIBTOOL = $(LDFLAGS)
2473 -LDFLAGS_NORMAL = $(LDFLAGS)
2474 -LDFLAGS_DEBUG = $(LDFLAGS) @CC_G_OPT@
2475 -LDFLAGS_PROFILE = $(LDFLAGS) -pg
2476 -LDFLAGS_SHARED = $(LDFLAGS) @LD_SHARED_OPTS@
2477 +LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
2478 +LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL)
2479 +LDFLAGS_DEBUG = $(LDFLAGS) $(CFLAGS_DEBUG)
2480 +LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
2481 +LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
2483 LDFLAGS_DEFAULT = $(LINK_@DFT_UPR_MODEL@) $(LDFLAGS_@DFT_UPR_MODEL@)
2488 ../lib/$(LIBNAME_LIBTOOL) : $(LIB_OBJS)
2489 - cd ../lib && $(LIBTOOL) $(CXX) -o $(LIBNAME) $(LIB_OBJS:.o=.lo) \
2490 + cd ../lib && $(LIBTOOL_LINK) $(CXX) -o $(LIBNAME) $(LIB_OBJS:.o=.lo) \
2491 -rpath $(INSTALL_PREFIX)$(libdir) \
2492 - -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR)
2493 + -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR) $(SHLIB_LIST)
2495 OBJS_DEMO = $(MODEL)/demo.o
2497 @@ -163,18 +170,18 @@
2500 install.libs:: ../lib/$(LIBNAME) $(DESTDIR)$(libdir)
2501 - $(LIBTOOL) $(INSTALL) ../lib/$(LIBNAME) $(DESTDIR)$(libdir)/$(LIBNAME)
2502 + $(LIBTOOL_INSTALL) $(INSTALL) ../lib/$(LIBNAME) $(DESTDIR)$(libdir)/$(LIBNAME)
2506 - -$(LIBTOOL) rm -f $(DESTDIR)$(libdir)/$(LIBNAME)
2507 + -$(LIBTOOL_UNINSTALL) rm -f $(DESTDIR)$(libdir)/$(LIBNAME)
2510 -rm -f core tags TAGS *~ *.bak *.i *.ii *.ln *.atac trace
2512 clean :: mostlyclean
2513 -rm -rf $(MODEL)/SunWS_cache
2514 - -$(LIBTOOL) rm -f demo$x $(AUTO_SRC) ../lib/$(LIBNAME) $(LIB_OBJS) $(LIB_OBJS:.o=.lo) $(OBJS_DEMO)
2515 + -$(LIBTOOL_CLEAN) rm -f demo$x $(AUTO_SRC) ../lib/$(LIBNAME) $(LIB_OBJS) $(LIB_OBJS:.o=.lo) $(OBJS_DEMO)
2519 diff -urNd -urNd ncurses-5.3/c++/cursesmain.cc ncurses-5.3.20030906.orig/c++/cursesmain.cc
2520 --- ncurses-5.3/c++/cursesmain.cc Sat Jul 6 10:47:52 2002
2521 +++ ncurses-5.3.20030906.orig/c++/cursesmain.cc Sun Jul 20 14:02:08 2003
2523 // * this is for making emacs happy: -*-Mode: C++;-*-
2524 /****************************************************************************
2525 - * Copyright (c) 1998,2001 Free Software Foundation, Inc. *
2526 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
2528 * Permission is hereby granted, free of charge, to any person obtaining a *
2529 * copy of this software and associated documentation files (the *
2531 #include "internal.h"
2532 #include "cursesapp.h"
2534 -MODULE_ID("$Id: cursesmain.cc,v 1.9 2002/07/06 15:47:52 juergen Exp $")
2535 +MODULE_ID("$Id: cursesmain.cc,v 1.10 2003/06/07 23:39:54 tom Exp $")
2538 +#include <locale.h>
2540 +#define setlocale(name,string) /* nothing */
2543 /* This is the default implementation of main() for a NCursesApplication.
2544 * You only have to instantiate a static NCursesApplication object in your
2545 * main application source file and link this module with your application.
2548 int main(int argc, char* argv[])
2550 + setlocale(LC_ALL, "");
2552 NCursesApplication* A = NCursesApplication::getApplication();
2555 diff -urNd -urNd ncurses-5.3/config.guess ncurses-5.3.20030906.orig/config.guess
2556 --- ncurses-5.3/config.guess Sat Aug 31 14:53:33 2002
2557 +++ ncurses-5.3.20030906.orig/config.guess Sun Jul 20 14:02:09 2003
2560 # Attempt to guess a canonical system name.
2561 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2562 -# 2000, 2001, 2002 Free Software Foundation, Inc.
2563 +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
2565 -timestamp='2002-08-23'
2566 +timestamp='2003-07-02'
2568 # This file is free software; you can redistribute it and/or modify it
2569 # under the terms of the GNU General Public License as published by
2571 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
2572 # use `HOST_CC' if defined, but it is deprecated.
2574 -# This shell variable is my proudest work .. or something. --bje
2575 +# Portable tmp directory creation inspired by the Autoconf team.
2577 -set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
2578 -(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
2579 - || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
2580 -dummy=$tmpdir/dummy ;
2581 -files="$dummy.c $dummy.o $dummy.rel $dummy" ;
2582 -trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
2584 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
2585 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
2587 + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
2588 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
2589 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
2590 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
2592 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
2593 case $CC_FOR_BUILD,$HOST_CC,$CC in
2594 ,,) echo "int x;" > $dummy.c ;
2595 for c in cc gcc c89 c99 ; do
2596 - if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then
2597 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
2598 CC_FOR_BUILD="$c"; break ;
2602 if test x"$CC_FOR_BUILD" = x ; then
2603 CC_FOR_BUILD=no_compiler_found ;
2606 ,,*) CC_FOR_BUILD=$CC ;;
2607 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
2612 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
2613 # (ghazi@noc.rutgers.edu 1994-08-24)
2614 @@ -178,7 +180,18 @@
2618 - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
2619 + # Debian GNU/NetBSD machines have a different userland, and
2620 + # thus, need a distinct triplet. However, they do not need
2621 + # kernel version information, so it can be replaced with a
2622 + # suitable tag, in the style of linux-gnu.
2623 + case "${UNAME_VERSION}" in
2628 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
2631 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
2632 # contains redundant information, the shorter form:
2633 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
2634 @@ -227,68 +240,52 @@
2635 if test $UNAME_RELEASE = "V4.0"; then
2636 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
2638 + # According to Compaq, /usr/sbin/psrinfo has been available on
2639 + # OSF/1 and Tru64 systems produced since 1995. I hope that
2640 + # covers most systems running today. This code pipes the CPU
2641 + # types through head -n 1, so we only detect the type of CPU 0.
2642 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
2643 + case "$ALPHA_CPU_TYPE" in
2645 + UNAME_MACHINE="alpha" ;;
2647 + UNAME_MACHINE="alpha" ;;
2648 + "LCA4 (21066/21068)")
2649 + UNAME_MACHINE="alpha" ;;
2651 + UNAME_MACHINE="alphaev5" ;;
2653 + UNAME_MACHINE="alphaev56" ;;
2654 + "EV5.6 (21164PC)")
2655 + UNAME_MACHINE="alphapca56" ;;
2656 + "EV5.7 (21164PC)")
2657 + UNAME_MACHINE="alphapca57" ;;
2659 + UNAME_MACHINE="alphaev6" ;;
2661 + UNAME_MACHINE="alphaev67" ;;
2662 + "EV6.8CB (21264C)")
2663 + UNAME_MACHINE="alphaev68" ;;
2664 + "EV6.8AL (21264B)")
2665 + UNAME_MACHINE="alphaev68" ;;
2666 + "EV6.8CX (21264D)")
2667 + UNAME_MACHINE="alphaev68" ;;
2668 + "EV6.9A (21264/EV69A)")
2669 + UNAME_MACHINE="alphaev69" ;;
2671 + UNAME_MACHINE="alphaev7" ;;
2673 + UNAME_MACHINE="alphaev79" ;;
2675 # A Vn.n version is a released version.
2676 # A Tn.n version is a released field test version.
2677 # A Xn.n version is an unreleased experimental baselevel.
2678 # 1.2 uses "1.2" for uname -r.
2679 - eval $set_cc_for_build
2680 - cat <<EOF >$dummy.s
2683 - .byte 37,100,45,37,120,10,0 # "%d-%x\n"
2690 - .frame \$30,16,\$26,0
2693 - .long 0x47e03d80 # implver \$0
2695 - .long 0x47e20c21 # amask \$2,\$1
2696 - lda \$16,\$Lformat
2705 - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
2706 - if test "$?" = 0 ; then
2709 - UNAME_MACHINE="alpha"
2712 - UNAME_MACHINE="alphaev5"
2715 - UNAME_MACHINE="alphaev56"
2718 - UNAME_MACHINE="alphapca56"
2721 - UNAME_MACHINE="alphaev6"
2724 - UNAME_MACHINE="alphaev67"
2727 - UNAME_MACHINE="alphaev68"
2730 - UNAME_MACHINE="alphaev7"
2734 - rm -f $dummy.s $dummy && rmdir $tmpdir
2735 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2737 + Alpha*:OpenVMS:*:*)
2740 Alpha\ *:Windows_NT*:*)
2741 # How do we know it's Interix rather than the generic POSIX subsystem?
2742 # Should we change UNAME_MACHINE based on the output of uname instead
2745 echo pyramid-pyramid-svr4
2747 + DRS?6000:unix:4.0:6*)
2748 + echo sparc-icl-nx6
2750 DRS?6000:UNIX_SV:4.2*:7*)
2751 case `/usr/bin/uname -p` in
2752 sparc) echo sparc-icl-nx7 && exit 0 ;;
2753 @@ -437,10 +437,9 @@
2757 - $CC_FOR_BUILD $dummy.c -o $dummy \
2758 + $CC_FOR_BUILD -o $dummy $dummy.c \
2759 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
2760 - && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
2761 - rm -f $dummy.c $dummy && rmdir $tmpdir
2763 echo mips-mips-riscos${UNAME_RELEASE}
2765 Motorola:PowerMAX_OS:*:*)
2767 Motorola:*:4.3:PL8-*)
2768 echo powerpc-harris-powermax
2770 - Night_Hawk:*:*:PowerMAX_OS)
2771 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
2772 echo powerpc-harris-powermax
2774 Night_Hawk:Power_UNIX:*:*)
2779 - $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
2780 - rm -f $dummy.c $dummy && rmdir $tmpdir
2781 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
2782 echo rs6000-ibm-aix3.2.5
2783 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
2784 echo rs6000-ibm-aix3.2.4
2785 @@ -623,11 +621,21 @@
2789 - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy`
2790 - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
2791 - rm -f $dummy.c $dummy && rmdir $tmpdir
2792 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
2793 + test -z "$HP_ARCH" && HP_ARCH=hppa
2796 + if [ ${HP_ARCH} = "hppa2.0w" ]
2798 + # avoid double evaluation of $set_cc_for_build
2799 + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
2800 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
2802 + HP_ARCH="hppa2.0w"
2807 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
2814 - $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
2815 - rm -f $dummy.c $dummy && rmdir $tmpdir
2816 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
2817 echo unknown-hitachi-hiuxwe2
2819 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
2820 @@ -720,15 +727,15 @@
2822 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2825 - echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2828 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2831 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2834 + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2836 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
2837 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2838 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2841 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
2844 + *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
2845 # Determine whether the default compiler uses glibc.
2846 eval $set_cc_for_build
2847 sed 's/^ //' << EOF >$dummy.c
2848 @@ -756,8 +763,10 @@
2851 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
2852 - rm -f $dummy.c && rmdir $tmpdir
2853 - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
2854 + # GNU/FreeBSD systems have a "k" prefix to indicate we are using
2855 + # FreeBSD's kernel, but not the complete OS.
2856 + case ${LIBC} in gnu) kernel_only='k' ;; esac
2857 + echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
2860 echo ${UNAME_MACHINE}-pc-cygwin
2861 @@ -768,14 +777,17 @@
2863 echo ${UNAME_MACHINE}-pc-pw32
2866 - echo i386-pc-interix3
2867 + x86:Interix*:[34]*)
2868 + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
2870 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
2871 + echo i${UNAME_MACHINE}-pc-mks
2873 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
2874 # How do we know it's Interix rather than the generic POSIX subsystem?
2875 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
2876 # UNAME_MACHINE based on the output of uname instead of i386?
2877 - echo i386-pc-interix
2878 + echo i586-pc-interix
2881 echo ${UNAME_MACHINE}-pc-uwin
2884 echo ${UNAME_MACHINE}-unknown-linux-gnu
2887 + echo cris-axis-linux-gnu
2890 echo ${UNAME_MACHINE}-unknown-linux-gnu
2892 @@ -818,8 +833,26 @@
2895 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
2896 - rm -f $dummy.c && rmdir $tmpdir
2897 - test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
2898 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
2901 + eval $set_cc_for_build
2902 + sed 's/^ //' << EOF >$dummy.c
2906 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
2909 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
2916 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
2917 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
2920 echo powerpc-unknown-linux-gnu
2922 s390:Linux:*:* | s390x:Linux:*:*)
2923 echo ${UNAME_MACHINE}-ibm-linux
2926 + echo ${UNAME_MACHINE}-unknown-linux-gnu
2929 echo ${UNAME_MACHINE}-unknown-linux-gnu
2934 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
2935 - rm -f $dummy.c && rmdir $tmpdir
2936 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
2937 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
2939 @@ -932,6 +967,23 @@
2940 # Use sysv4.2uw... so that sysv4* matches it.
2941 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
2944 + # If we were able to find `uname', then EMX Unix compatibility
2945 + # is probably installed.
2946 + echo ${UNAME_MACHINE}-pc-os2-emx
2948 + i*86:XTS-300:*:STOP)
2949 + echo ${UNAME_MACHINE}-unknown-stop
2952 + echo ${UNAME_MACHINE}-unknown-atheos
2954 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
2955 + echo i386-unknown-lynxos${UNAME_RELEASE}
2958 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
2960 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
2961 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
2962 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
2963 @@ -966,9 +1018,6 @@
2964 echo ${UNAME_MACHINE}-pc-sysv32
2968 - echo ${UNAME_MACHINE}-pc-msdosdjgpp
2971 # Left here for compatibility:
2972 # uname -m prints for DJGPP always 'pc', but it prints nothing about
2973 @@ -995,9 +1044,12 @@
2974 mc68k:UNIX:SYSTEM5:3.51m)
2975 echo m68k-convergent-sysv
2977 + M680?0:D-NIX:5.3:*)
2978 + echo m68k-diab-dnix
2981 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
2982 - 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
2983 + 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
2985 test -r /etc/.relid \
2986 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
2987 @@ -1014,9 +1066,6 @@
2988 mc68030:UNIX_System_V:4.*:*)
2989 echo m68k-atari-sysv4
2991 - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
2992 - echo i386-unknown-lynxos${UNAME_RELEASE}
2994 TSUNAMI:LynxOS:2.*:*)
2995 echo sparc-unknown-lynxos${UNAME_RELEASE}
2997 @@ -1098,7 +1147,11 @@
2998 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
3001 - echo `uname -p`-apple-darwin${UNAME_RELEASE}
3002 + case `uname -p` in
3003 + *86) UNAME_PROCESSOR=i686 ;;
3004 + powerpc) UNAME_PROCESSOR=powerpc ;;
3006 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
3008 *:procnto*:*:* | *:QNX:[0123456789]*:*)
3009 UNAME_PROCESSOR=`uname -p`
3010 @@ -1111,7 +1164,7 @@
3014 - NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*)
3015 + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
3016 echo nsr-tandem-nsk${UNAME_RELEASE}
3019 @@ -1134,11 +1187,6 @@
3021 echo ${UNAME_MACHINE}-unknown-plan9
3024 - # If we were able to find `uname', then EMX Unix compatibility
3025 - # is probably installed.
3026 - echo ${UNAME_MACHINE}-pc-os2-emx
3029 echo pdp10-unknown-tops10
3031 @@ -1157,11 +1205,8 @@
3033 echo pdp10-unknown-its
3035 - i*86:XTS-300:*:STOP)
3036 - echo ${UNAME_MACHINE}-unknown-stop
3039 - echo ${UNAME_MACHINE}-unknown-atheos
3041 + echo mips-sei-seiux${UNAME_RELEASE}
3045 @@ -1283,8 +1328,7 @@
3049 -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
3050 -rm -f $dummy.c $dummy && rmdir $tmpdir
3051 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
3053 # Apollos put the system type in the environment.
3055 diff -urNd -urNd ncurses-5.3/config.sub ncurses-5.3.20030906.orig/config.sub
3056 --- ncurses-5.3/config.sub Sat Aug 31 14:53:19 2002
3057 +++ ncurses-5.3.20030906.orig/config.sub Sun Jul 20 14:02:09 2003
3060 # Configuration validation subroutine script.
3061 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3062 -# 2000, 2001, 2002 Free Software Foundation, Inc.
3063 +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
3065 -timestamp='2002-08-22'
3066 +timestamp='2003-07-04'
3068 # This file is (in principle) common to ALL GNU software.
3069 # The presence of a machine in this file suggests that SOME GNU software
3071 # Here we must recognize all the valid KERNEL-OS combinations.
3072 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
3074 - nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
3075 + nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
3077 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
3079 @@ -245,21 +245,23 @@
3080 | mips64vr4300 | mips64vr4300el \
3081 | mips64vr5000 | mips64vr5000el \
3082 | mipsisa32 | mipsisa32el \
3083 + | mipsisa32r2 | mipsisa32r2el \
3084 | mipsisa64 | mipsisa64el \
3085 | mipsisa64sb1 | mipsisa64sb1el \
3086 | mipsisa64sr71k | mipsisa64sr71kel \
3087 | mipstx39 | mipstx39el \
3088 | mn10200 | mn10300 \
3092 | pdp10 | pdp11 | pj | pjl \
3093 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
3095 - | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
3096 + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
3098 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
3100 - | tahoe | thumb | tic80 | tron \
3101 + | tahoe | thumb | tic4x | tic80 | tron \
3104 | x86 | xscale | xstormy16 | xtensa \
3106 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
3109 - | c[123]* | c30-* | [cjt]90-* | c54x-* \
3110 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
3111 | clipper-* | cydra-* \
3112 | d10v-* | d30v-* | dlx-* \
3114 @@ -315,21 +317,25 @@
3115 | mips64vr4300-* | mips64vr4300el-* \
3116 | mips64vr5000-* | mips64vr5000el-* \
3117 | mipsisa32-* | mipsisa32el-* \
3118 + | mipsisa32r2-* | mipsisa32r2el-* \
3119 | mipsisa64-* | mipsisa64el-* \
3120 | mipsisa64sb1-* | mipsisa64sb1el-* \
3121 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
3122 - | mipstx39 | mipstx39el \
3123 - | none-* | np1-* | ns16k-* | ns32k-* \
3124 + | mipstx39-* | mipstx39el-* \
3126 + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
3128 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
3129 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
3131 | romp-* | rs6000-* \
3132 - | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
3133 + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
3134 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
3135 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
3136 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
3137 - | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
3138 + | tahoe-* | thumb-* \
3139 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
3141 | v850-* | v850e-* | vax-* \
3143 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
3145 basic_machine=a29k-none
3149 + basic_machine=x86_64-pc
3152 basic_machine=580-amdahl
3154 @@ -716,6 +725,10 @@
3156 basic_machine=np1-gould
3159 + basic_machine=nv1-cray
3163 basic_machine=nsr-tandem
3165 @@ -758,18 +771,24 @@
3166 pentiumpro | p6 | 6x86 | athlon | athlon_*)
3167 basic_machine=i686-pc
3169 - pentiumii | pentium2)
3170 + pentiumii | pentium2 | pentiumiii | pentium3)
3171 basic_machine=i686-pc
3174 + basic_machine=i786-pc
3176 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
3177 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
3179 pentiumpro-* | p6-* | 6x86-* | athlon-*)
3180 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
3182 - pentiumii-* | pentium2-*)
3183 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
3184 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
3187 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
3190 basic_machine=pn-gould
3192 @@ -828,6 +847,10 @@
3194 basic_machine=mipsisa64sb1el-unknown
3197 + basic_machine=mips-sei
3201 basic_machine=i386-sequent
3204 basic_machine=sh-hitachi
3208 + basic_machine=sh64-unknown
3210 sparclite-wrs | simso-wrs)
3211 basic_machine=sparclite-wrs
3213 @@ -901,10 +927,6 @@
3214 basic_machine=i386-sequent
3218 - basic_machine=alpha-cray
3222 basic_machine=alphaev5-cray
3224 @@ -917,6 +939,14 @@
3225 basic_machine=tic54x-unknown
3229 + basic_machine=tic55x-unknown
3233 + basic_machine=tic6x-unknown
3237 basic_machine=mipstx39-unknown
3239 @@ -973,10 +1003,6 @@
3240 basic_machine=hppa1.1-winbond
3244 - basic_machine=i386-pc
3245 - os=-windows32-msvcrt
3248 basic_machine=xps100-honeywell
3250 @@ -1023,7 +1049,7 @@
3252 basic_machine=we32k-att
3254 - sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
3255 + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
3256 basic_machine=sh-unknown
3259 @@ -1047,10 +1073,6 @@
3261 basic_machine=powerpc-apple
3264 - basic_machine=c4x-none
3268 # Make sure to match an already-canonicalized machine name.
3270 @@ -1106,18 +1128,19 @@
3272 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
3273 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
3274 - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
3275 + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
3276 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
3277 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
3278 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
3279 | -chorusos* | -chorusrdb* \
3280 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
3281 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
3282 - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
3283 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
3284 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
3285 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
3286 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
3287 - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
3288 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
3289 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
3290 # Remember, each alternative MUST END IN *, to match a version number.
3293 @@ -1129,8 +1152,10 @@
3301 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
3303 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
3304 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
3305 @@ -1224,6 +1249,12 @@
3306 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3318 @@ -1255,6 +1286,9 @@
3325 # This must come before the *-dec entry.
3328 diff -urNd -urNd ncurses-5.3/configure ncurses-5.3.20030906.orig/configure
3329 --- ncurses-5.3/configure Sat Sep 21 19:49:14 2002
3330 +++ ncurses-5.3.20030906.orig/configure Fri Sep 12 16:42:59 2003
3333 -# From configure.in Revision: 1.274 .
3334 +# From configure.in Revision: 1.297 .
3335 # Guess values for system-dependent variables and create Makefiles.
3336 -# Generated by Autoconf 2.52.20011227.
3337 +# Generated by Autoconf 2.52.20030208.
3339 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3340 # Free Software Foundation, Inc.
3341 @@ -655,19 +655,20 @@
3342 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
3343 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
3345 + --with-abi-version=XXX override derived ABI version
3346 --with-system-type=XXX test: override derived host system-type
3347 - --enable-add-ons=DIR... used to check if we are a glibc add-on.
3348 - --with-build-cc=XXX if cross-compiling, the host C compiler (\$BUILD_CC)
3349 - --with-build-cflags=XXX if cross-compiling, the host C compiler-flags
3350 - --with-build-cppflags=XXX if cross-compiling, the host C preprocessor-flags
3351 - --with-build-ldflags=XXX if cross-compiling, the host linker-flags
3352 - --with-build-libs=XXX if cross-compiling, the host libraries
3353 --without-cxx do not adjust ncurses bool to match C++
3354 --without-cxx-binding do not build C++ binding and demo
3355 --without-ada suppress check for Ada95, don't build demo
3356 --without-progs suppress build with programs (e.g., tic)
3357 --without-curses-h install curses.h as ncurses.h only
3358 --with-install-prefix prefixes actual install-location (\$DESTDIR)
3359 +Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
3360 + --with-build-cc=XXX the build C compiler (\$BUILD_CC)
3361 + --with-build-cflags=XXX the build C compiler-flags
3362 + --with-build-cppflags=XXX the build C preprocessor-flags
3363 + --with-build-ldflags=XXX the build linker-flags
3364 + --with-build-libs=XXX the build libraries
3365 Options to Specify the Libraries Built/Used:
3366 --with-libtool generate libraries with libtool
3367 --with-shared generate shared-libraries
3369 --with-dbmalloc test: use Conor Cahill's dbmalloc library
3370 --with-dmalloc test: use Gray Watson's dmalloc library
3371 --with-gpm use Alessandro Rubini's GPM library
3372 + --with-sysmouse use sysmouse (FreeBSD console)
3373 --enable-rpath use rpath option when generating shared libraries
3374 --with-shlib-version=X Specify rel or abi version for shared libs
3375 Fine-Tuning Your Configuration:
3377 running configure, to aid debugging if configure makes a mistake.
3379 It was created by $as_me, which was
3380 -generated by GNU Autoconf 2.52.20011227. Invocation command line was
3381 +generated by GNU Autoconf 2.52.20030208. Invocation command line was
3387 for ac_site_file in $CONFIG_SITE; do
3388 if test -r "$ac_site_file"; then
3389 - { echo "$as_me:933: loading site script $ac_site_file" >&5
3390 + { echo "$as_me:935: loading site script $ac_site_file" >&5
3391 echo "$as_me: loading site script $ac_site_file" >&6;}
3392 cat "$ac_site_file" >&5
3395 # Some versions of bash will fail to source /dev/null (special
3396 # files actually), so we avoid doing that.
3397 if test -f "$cache_file"; then
3398 - { echo "$as_me:944: loading cache $cache_file" >&5
3399 + { echo "$as_me:946: loading cache $cache_file" >&5
3400 echo "$as_me: loading cache $cache_file" >&6;}
3402 [\\/]* | ?:[\\/]* ) . $cache_file;;
3407 - { echo "$as_me:952: creating cache $cache_file" >&5
3408 + { echo "$as_me:954: creating cache $cache_file" >&5
3409 echo "$as_me: creating cache $cache_file" >&6;}
3412 @@ -965,21 +967,21 @@
3413 eval ac_new_val="\$ac_env_${ac_var}_value"
3414 case $ac_old_set,$ac_new_set in
3416 - { echo "$as_me:968: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3417 + { echo "$as_me:970: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3418 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3419 ac_cache_corrupted=: ;;
3421 - { echo "$as_me:972: error: \`$ac_var' was not set in the previous run" >&5
3422 + { echo "$as_me:974: error: \`$ac_var' was not set in the previous run" >&5
3423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3424 ac_cache_corrupted=: ;;
3427 if test "x$ac_old_val" != "x$ac_new_val"; then
3428 - { echo "$as_me:978: error: \`$ac_var' has changed since the previous run:" >&5
3429 + { echo "$as_me:980: error: \`$ac_var' has changed since the previous run:" >&5
3430 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3431 - { echo "$as_me:980: former value: $ac_old_val" >&5
3432 + { echo "$as_me:982: former value: $ac_old_val" >&5
3433 echo "$as_me: former value: $ac_old_val" >&2;}
3434 - { echo "$as_me:982: current value: $ac_new_val" >&5
3435 + { echo "$as_me:984: current value: $ac_new_val" >&5
3436 echo "$as_me: current value: $ac_new_val" >&2;}
3437 ac_cache_corrupted=:
3439 @@ -998,9 +1000,9 @@
3442 if $ac_cache_corrupted; then
3443 - { echo "$as_me:1001: error: changes in the environment can compromise the build" >&5
3444 + { echo "$as_me:1003: error: changes in the environment can compromise the build" >&5
3445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3446 - { { echo "$as_me:1003: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
3447 + { { echo "$as_me:1005: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
3448 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
3449 { (exit 1); exit 1; }; }
3451 @@ -1020,10 +1022,10 @@
3452 echo "#! $SHELL" >conftest.sh
3453 echo "exit 0" >>conftest.sh
3454 chmod +x conftest.sh
3455 -if { (echo "$as_me:1023: PATH=\".;.\"; conftest.sh") >&5
3456 +if { (echo "$as_me:1025: PATH=\".;.\"; conftest.sh") >&5
3457 (PATH=".;."; conftest.sh) 2>&5
3459 - echo "$as_me:1026: \$? = $ac_status" >&5
3460 + echo "$as_me:1028: \$? = $ac_status" >&5
3461 (exit $ac_status); }; then
3462 ac_path_separator=';'
3464 @@ -1040,9 +1042,17 @@
3465 cf_cv_abi_version=${NCURSES_MAJOR}
3466 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
3467 cf_cv_timestamp=`date`
3468 -echo "$as_me:1043: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
3469 +echo "$as_me:1045: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
3470 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
3472 +# Check whether --with-abi-version or --without-abi-version was given.
3473 +if test "${with_abi_version+set}" = set; then
3474 + withval="$with_abi_version"
3475 + { echo "$as_me:1051: WARNING: overriding ABI version to $withval" >&5
3476 +echo "$as_me: WARNING: overriding ABI version to $withval" >&2;}
3477 + cf_cv_abi_version=$withval
3481 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3482 if test -f $ac_dir/install-sh; then
3483 @@ -1060,7 +1070,7 @@
3486 if test -z "$ac_aux_dir"; then
3487 - { { echo "$as_me:1063: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3488 + { { echo "$as_me:1073: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3489 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3490 { (exit 1); exit 1; }; }
3492 @@ -1070,11 +1080,11 @@
3494 # Make sure we can run config.sub.
3495 $ac_config_sub sun4 >/dev/null 2>&1 ||
3496 - { { echo "$as_me:1073: error: cannot run $ac_config_sub" >&5
3497 + { { echo "$as_me:1083: error: cannot run $ac_config_sub" >&5
3498 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3499 { (exit 1); exit 1; }; }
3501 -echo "$as_me:1077: checking build system type" >&5
3502 +echo "$as_me:1087: checking build system type" >&5
3503 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3504 if test "${ac_cv_build+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 @@ -1083,23 +1093,23 @@
3507 test -z "$ac_cv_build_alias" &&
3508 ac_cv_build_alias=`$ac_config_guess`
3509 test -z "$ac_cv_build_alias" &&
3510 - { { echo "$as_me:1086: error: cannot guess build type; you must specify one" >&5
3511 + { { echo "$as_me:1096: error: cannot guess build type; you must specify one" >&5
3512 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3513 { (exit 1); exit 1; }; }
3514 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3515 - { { echo "$as_me:1090: error: $ac_config_sub $ac_cv_build_alias failed." >&5
3516 + { { echo "$as_me:1100: error: $ac_config_sub $ac_cv_build_alias failed." >&5
3517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
3518 { (exit 1); exit 1; }; }
3521 -echo "$as_me:1095: result: $ac_cv_build" >&5
3522 +echo "$as_me:1105: result: $ac_cv_build" >&5
3523 echo "${ECHO_T}$ac_cv_build" >&6
3525 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3526 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3527 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3529 -echo "$as_me:1102: checking host system type" >&5
3530 +echo "$as_me:1112: checking host system type" >&5
3531 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3532 if test "${ac_cv_host+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 @@ -1108,12 +1118,12 @@
3535 test -z "$ac_cv_host_alias" &&
3536 ac_cv_host_alias=$ac_cv_build_alias
3537 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3538 - { { echo "$as_me:1111: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3539 + { { echo "$as_me:1121: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3540 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3541 { (exit 1); exit 1; }; }
3544 -echo "$as_me:1116: result: $ac_cv_host" >&5
3545 +echo "$as_me:1126: result: $ac_cv_host" >&5
3546 echo "${ECHO_T}$ac_cv_host" >&6
3548 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3549 @@ -1121,7 +1131,7 @@
3550 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3552 if test -f $srcdir/config.guess ; then
3553 - echo "$as_me:1124: checking target system type" >&5
3554 + echo "$as_me:1134: checking target system type" >&5
3555 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3556 if test "${ac_cv_target+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 @@ -1130,12 +1140,12 @@
3559 test "x$ac_cv_target_alias" = "x" &&
3560 ac_cv_target_alias=$ac_cv_host_alias
3561 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3562 - { { echo "$as_me:1133: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3563 + { { echo "$as_me:1143: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3564 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3565 { (exit 1); exit 1; }; }
3568 -echo "$as_me:1138: result: $ac_cv_target" >&5
3569 +echo "$as_me:1148: result: $ac_cv_target" >&5
3570 echo "${ECHO_T}$ac_cv_target" >&6
3571 target=$ac_cv_target
3572 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3573 @@ -1166,13 +1176,13 @@
3576 test -z "$system_name" && system_name="$cf_cv_system_name"
3577 -test -n "$cf_cv_system_name" && echo "$as_me:1169: result: Configuring for $cf_cv_system_name" >&5
3578 +test -n "$cf_cv_system_name" && echo "$as_me:1179: result: Configuring for $cf_cv_system_name" >&5
3579 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
3581 if test ".$system_name" != ".$cf_cv_system_name" ; then
3582 - echo "$as_me:1173: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
3583 + echo "$as_me:1183: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
3584 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
3585 - { { echo "$as_me:1175: error: \"Please remove config.cache and try again.\"" >&5
3586 + { { echo "$as_me:1185: error: \"Please remove config.cache and try again.\"" >&5
3587 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
3588 { (exit 1); exit 1; }; }
3590 @@ -1180,62 +1190,33 @@
3591 # Check whether --with-system-type or --without-system-type was given.
3592 if test "${with_system_type+set}" = set; then
3593 withval="$with_system_type"
3594 - { echo "$as_me:1183: WARNING: overriding system type to $withval" >&5
3595 + { echo "$as_me:1193: WARNING: overriding system type to $withval" >&5
3596 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
3597 cf_cv_system_name=$withval
3600 -# We need a configure script only when compiling as part of GNU C library.
3601 -# Here we have to generate one of the files we need while compiling.
3603 -# The only problem is that users of the package might think they have to
3604 -# run configure themself and find it irritating when nothing happens.
3606 -# So we try here to find out whether we are called from the glibc configure
3610 -# Check whether --enable-add-ons or --disable-add-ons was given.
3611 -if test "${enable_add_ons+set}" = set; then
3612 - enableval="$enable_add_ons"
3618 -if test x"$glibc_add_on" = "xyes" ; then
3619 - rm -f $srcdir/Banner
3620 - # We are in glibc.
3621 - rm -f $srcdir/Makefile
3622 - cp $srcdir/Makefile.glibc $srcdir/Makefile
3623 - echo "ncurses `grep \"^[ ]*ncurses-version[ ]*=.*$\" \
3624 - $srcdir/Makefile | sed -e \
3625 - 's/^[ ]*ncurses-version[ ]*=[ ]*\([^ ^ ]*\)[ ]*$/\1/'`" > $srcdir/Banner
3629 ### Save the given $CFLAGS to allow user-override.
3630 cf_user_CFLAGS="$CFLAGS"
3632 ### Default install-location
3634 -echo "$as_me:1222: checking for prefix" >&5
3635 +echo "$as_me:1203: checking for prefix" >&5
3636 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
3637 if test "x$prefix" = "xNONE" ; then
3638 case "$cf_cv_system_name" in
3639 # non-vendor systems don't have a conflict
3640 - openbsd*|netbsd*|freebsd*|linux*|cygwin*)
3641 + openbsd*|netbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
3644 *) prefix=$ac_default_prefix
3648 -echo "$as_me:1234: result: $prefix" >&5
3649 +echo "$as_me:1215: result: $prefix" >&5
3650 echo "${ECHO_T}$prefix" >&6
3652 if test "x$prefix" = "xNONE" ; then
3653 -echo "$as_me:1238: checking for default include-directory" >&5
3654 +echo "$as_me:1219: checking for default include-directory" >&5
3655 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
3656 test -n "$verbose" && echo 1>&6
3658 @@ -1258,7 +1239,7 @@
3660 test -n "$verbose" && echo " tested $cf_dir" 1>&6
3662 -echo "$as_me:1261: result: $includedir" >&5
3663 +echo "$as_me:1242: result: $includedir" >&5
3664 echo "${ECHO_T}$includedir" >&6
3667 @@ -1271,7 +1252,7 @@
3668 if test -n "$ac_tool_prefix"; then
3669 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3670 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3671 -echo "$as_me:1274: checking for $ac_word" >&5
3672 +echo "$as_me:1255: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_prog_CC+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 @@ -1286,7 +1267,7 @@
3677 test -z "$ac_dir" && ac_dir=.
3678 $as_executable_p "$ac_dir/$ac_word" || continue
3679 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3680 -echo "$as_me:1289: found $ac_dir/$ac_word" >&5
3681 +echo "$as_me:1270: found $ac_dir/$ac_word" >&5
3685 @@ -1294,10 +1275,10 @@
3688 if test -n "$CC"; then
3689 - echo "$as_me:1297: result: $CC" >&5
3690 + echo "$as_me:1278: result: $CC" >&5
3691 echo "${ECHO_T}$CC" >&6
3693 - echo "$as_me:1300: result: no" >&5
3694 + echo "$as_me:1281: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 @@ -1306,7 +1287,7 @@
3700 # Extract the first word of "gcc", so it can be a program name with args.
3701 set dummy gcc; ac_word=$2
3702 -echo "$as_me:1309: checking for $ac_word" >&5
3703 +echo "$as_me:1290: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 @@ -1321,7 +1302,7 @@
3708 test -z "$ac_dir" && ac_dir=.
3709 $as_executable_p "$ac_dir/$ac_word" || continue
3710 ac_cv_prog_ac_ct_CC="gcc"
3711 -echo "$as_me:1324: found $ac_dir/$ac_word" >&5
3712 +echo "$as_me:1305: found $ac_dir/$ac_word" >&5
3716 @@ -1329,10 +1310,10 @@
3718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3719 if test -n "$ac_ct_CC"; then
3720 - echo "$as_me:1332: result: $ac_ct_CC" >&5
3721 + echo "$as_me:1313: result: $ac_ct_CC" >&5
3722 echo "${ECHO_T}$ac_ct_CC" >&6
3724 - echo "$as_me:1335: result: no" >&5
3725 + echo "$as_me:1316: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3729 @@ -1345,7 +1326,7 @@
3730 if test -n "$ac_tool_prefix"; then
3731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}cc; ac_word=$2
3733 -echo "$as_me:1348: checking for $ac_word" >&5
3734 +echo "$as_me:1329: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_CC+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 @@ -1360,7 +1341,7 @@
3739 test -z "$ac_dir" && ac_dir=.
3740 $as_executable_p "$ac_dir/$ac_word" || continue
3741 ac_cv_prog_CC="${ac_tool_prefix}cc"
3742 -echo "$as_me:1363: found $ac_dir/$ac_word" >&5
3743 +echo "$as_me:1344: found $ac_dir/$ac_word" >&5
3747 @@ -1368,10 +1349,10 @@
3750 if test -n "$CC"; then
3751 - echo "$as_me:1371: result: $CC" >&5
3752 + echo "$as_me:1352: result: $CC" >&5
3753 echo "${ECHO_T}$CC" >&6
3755 - echo "$as_me:1374: result: no" >&5
3756 + echo "$as_me:1355: result: no" >&5
3757 echo "${ECHO_T}no" >&6
3760 @@ -1380,7 +1361,7 @@
3762 # Extract the first word of "cc", so it can be a program name with args.
3763 set dummy cc; ac_word=$2
3764 -echo "$as_me:1383: checking for $ac_word" >&5
3765 +echo "$as_me:1364: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 @@ -1395,7 +1376,7 @@
3770 test -z "$ac_dir" && ac_dir=.
3771 $as_executable_p "$ac_dir/$ac_word" || continue
3772 ac_cv_prog_ac_ct_CC="cc"
3773 -echo "$as_me:1398: found $ac_dir/$ac_word" >&5
3774 +echo "$as_me:1379: found $ac_dir/$ac_word" >&5
3778 @@ -1403,10 +1384,10 @@
3780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3781 if test -n "$ac_ct_CC"; then
3782 - echo "$as_me:1406: result: $ac_ct_CC" >&5
3783 + echo "$as_me:1387: result: $ac_ct_CC" >&5
3784 echo "${ECHO_T}$ac_ct_CC" >&6
3786 - echo "$as_me:1409: result: no" >&5
3787 + echo "$as_me:1390: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3791 @@ -1419,7 +1400,7 @@
3792 if test -z "$CC"; then
3793 # Extract the first word of "cc", so it can be a program name with args.
3794 set dummy cc; ac_word=$2
3795 -echo "$as_me:1422: checking for $ac_word" >&5
3796 +echo "$as_me:1403: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_CC+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 @@ -1439,7 +1420,7 @@
3804 -echo "$as_me:1442: found $ac_dir/$ac_word" >&5
3805 +echo "$as_me:1423: found $ac_dir/$ac_word" >&5
3809 @@ -1461,10 +1442,10 @@
3812 if test -n "$CC"; then
3813 - echo "$as_me:1464: result: $CC" >&5
3814 + echo "$as_me:1445: result: $CC" >&5
3815 echo "${ECHO_T}$CC" >&6
3817 - echo "$as_me:1467: result: no" >&5
3818 + echo "$as_me:1448: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3822 @@ -1475,7 +1456,7 @@
3824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3826 -echo "$as_me:1478: checking for $ac_word" >&5
3827 +echo "$as_me:1459: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_CC+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 @@ -1490,7 +1471,7 @@
3832 test -z "$ac_dir" && ac_dir=.
3833 $as_executable_p "$ac_dir/$ac_word" || continue
3834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3835 -echo "$as_me:1493: found $ac_dir/$ac_word" >&5
3836 +echo "$as_me:1474: found $ac_dir/$ac_word" >&5
3840 @@ -1498,10 +1479,10 @@
3843 if test -n "$CC"; then
3844 - echo "$as_me:1501: result: $CC" >&5
3845 + echo "$as_me:1482: result: $CC" >&5
3846 echo "${ECHO_T}$CC" >&6
3848 - echo "$as_me:1504: result: no" >&5
3849 + echo "$as_me:1485: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3853 @@ -1514,7 +1495,7 @@
3855 # Extract the first word of "$ac_prog", so it can be a program name with args.
3856 set dummy $ac_prog; ac_word=$2
3857 -echo "$as_me:1517: checking for $ac_word" >&5
3858 +echo "$as_me:1498: checking for $ac_word" >&5
3859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 @@ -1529,7 +1510,7 @@
3863 test -z "$ac_dir" && ac_dir=.
3864 $as_executable_p "$ac_dir/$ac_word" || continue
3865 ac_cv_prog_ac_ct_CC="$ac_prog"
3866 -echo "$as_me:1532: found $ac_dir/$ac_word" >&5
3867 +echo "$as_me:1513: found $ac_dir/$ac_word" >&5
3871 @@ -1537,10 +1518,10 @@
3873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3874 if test -n "$ac_ct_CC"; then
3875 - echo "$as_me:1540: result: $ac_ct_CC" >&5
3876 + echo "$as_me:1521: result: $ac_ct_CC" >&5
3877 echo "${ECHO_T}$ac_ct_CC" >&6
3879 - echo "$as_me:1543: result: no" >&5
3880 + echo "$as_me:1524: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3884 @@ -1552,32 +1533,32 @@
3888 -test -z "$CC" && { { echo "$as_me:1555: error: no acceptable cc found in \$PATH" >&5
3889 +test -z "$CC" && { { echo "$as_me:1536: error: no acceptable cc found in \$PATH" >&5
3890 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3891 { (exit 1); exit 1; }; }
3893 # Provide some information about the compiler.
3894 -echo "$as_me:1560:" \
3895 +echo "$as_me:1541:" \
3896 "checking for C compiler version" >&5
3897 ac_compiler=`set X $ac_compile; echo $2`
3898 -{ (eval echo "$as_me:1563: \"$ac_compiler --version </dev/null >&5\"") >&5
3899 +{ (eval echo "$as_me:1544: \"$ac_compiler --version </dev/null >&5\"") >&5
3900 (eval $ac_compiler --version </dev/null >&5) 2>&5
3902 - echo "$as_me:1566: \$? = $ac_status" >&5
3903 + echo "$as_me:1547: \$? = $ac_status" >&5
3904 (exit $ac_status); }
3905 -{ (eval echo "$as_me:1568: \"$ac_compiler -v </dev/null >&5\"") >&5
3906 +{ (eval echo "$as_me:1549: \"$ac_compiler -v </dev/null >&5\"") >&5
3907 (eval $ac_compiler -v </dev/null >&5) 2>&5
3909 - echo "$as_me:1571: \$? = $ac_status" >&5
3910 + echo "$as_me:1552: \$? = $ac_status" >&5
3911 (exit $ac_status); }
3912 -{ (eval echo "$as_me:1573: \"$ac_compiler -V </dev/null >&5\"") >&5
3913 +{ (eval echo "$as_me:1554: \"$ac_compiler -V </dev/null >&5\"") >&5
3914 (eval $ac_compiler -V </dev/null >&5) 2>&5
3916 - echo "$as_me:1576: \$? = $ac_status" >&5
3917 + echo "$as_me:1557: \$? = $ac_status" >&5
3918 (exit $ac_status); }
3920 cat >conftest.$ac_ext <<_ACEOF
3921 -#line 1580 "configure"
3922 +#line 1561 "configure"
3923 #include "confdefs.h"
3926 @@ -1593,13 +1574,13 @@
3927 # Try to create an executable without -o first, disregard a.out.
3928 # It will help us diagnose broken compilers, and finding out an intuition
3930 -echo "$as_me:1596: checking for C compiler default output" >&5
3931 +echo "$as_me:1577: checking for C compiler default output" >&5
3932 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3933 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3934 -if { (eval echo "$as_me:1599: \"$ac_link_default\"") >&5
3935 +if { (eval echo "$as_me:1580: \"$ac_link_default\"") >&5
3936 (eval $ac_link_default) 2>&5
3938 - echo "$as_me:1602: \$? = $ac_status" >&5
3939 + echo "$as_me:1583: \$? = $ac_status" >&5
3940 (exit $ac_status); }; then
3941 # Find the output, starting from the most likely. This scheme is
3942 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3943 @@ -1622,34 +1603,34 @@
3945 echo "$as_me: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3947 -{ { echo "$as_me:1625: error: C compiler cannot create executables" >&5
3948 +{ { echo "$as_me:1606: error: C compiler cannot create executables" >&5
3949 echo "$as_me: error: C compiler cannot create executables" >&2;}
3950 { (exit 77); exit 77; }; }
3953 ac_exeext=$ac_cv_exeext
3954 -echo "$as_me:1631: result: $ac_file" >&5
3955 +echo "$as_me:1612: result: $ac_file" >&5
3956 echo "${ECHO_T}$ac_file" >&6
3958 # Check the compiler produces executables we can run. If not, either
3959 # the compiler is broken, or we cross compile.
3960 -echo "$as_me:1636: checking whether the C compiler works" >&5
3961 +echo "$as_me:1617: checking whether the C compiler works" >&5
3962 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3963 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3964 # If not cross compiling, check that we can run a simple program.
3965 if test "$cross_compiling" != yes; then
3966 if { ac_try='./$ac_file'
3967 - { (eval echo "$as_me:1642: \"$ac_try\"") >&5
3968 + { (eval echo "$as_me:1623: \"$ac_try\"") >&5
3971 - echo "$as_me:1645: \$? = $ac_status" >&5
3972 + echo "$as_me:1626: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3976 if test "$cross_compiling" = maybe; then
3979 - { { echo "$as_me:1652: error: cannot run C compiled programs.
3980 + { { echo "$as_me:1633: error: cannot run C compiled programs.
3981 If you meant to cross compile, use \`--host'." >&5
3982 echo "$as_me: error: cannot run C compiled programs.
3983 If you meant to cross compile, use \`--host'." >&2;}
3984 @@ -1657,24 +1638,24 @@
3988 -echo "$as_me:1660: result: yes" >&5
3989 +echo "$as_me:1641: result: yes" >&5
3990 echo "${ECHO_T}yes" >&6
3992 rm -f a.out a.exe conftest$ac_cv_exeext
3993 ac_clean_files=$ac_clean_files_save
3994 # Check the compiler produces executables we can run. If not, either
3995 # the compiler is broken, or we cross compile.
3996 -echo "$as_me:1667: checking whether we are cross compiling" >&5
3997 +echo "$as_me:1648: checking whether we are cross compiling" >&5
3998 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3999 -echo "$as_me:1669: result: $cross_compiling" >&5
4000 +echo "$as_me:1650: result: $cross_compiling" >&5
4001 echo "${ECHO_T}$cross_compiling" >&6
4003 -echo "$as_me:1672: checking for executable suffix" >&5
4004 +echo "$as_me:1653: checking for executable suffix" >&5
4005 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
4006 -if { (eval echo "$as_me:1674: \"$ac_link\"") >&5
4007 +if { (eval echo "$as_me:1655: \"$ac_link\"") >&5
4008 (eval $ac_link) 2>&5
4010 - echo "$as_me:1677: \$? = $ac_status" >&5
4011 + echo "$as_me:1658: \$? = $ac_status" >&5
4012 (exit $ac_status); }; then
4013 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4014 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4015 @@ -1690,25 +1671,25 @@
4019 - { { echo "$as_me:1693: error: cannot compute EXEEXT: cannot compile and link" >&5
4020 + { { echo "$as_me:1674: error: cannot compute EXEEXT: cannot compile and link" >&5
4021 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
4022 { (exit 1); exit 1; }; }
4025 rm -f conftest$ac_cv_exeext
4026 -echo "$as_me:1699: result: $ac_cv_exeext" >&5
4027 +echo "$as_me:1680: result: $ac_cv_exeext" >&5
4028 echo "${ECHO_T}$ac_cv_exeext" >&6
4030 rm -f conftest.$ac_ext
4031 EXEEXT=$ac_cv_exeext
4033 -echo "$as_me:1705: checking for object suffix" >&5
4034 +echo "$as_me:1686: checking for object suffix" >&5
4035 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
4036 if test "${ac_cv_objext+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4040 -#line 1711 "configure"
4041 +#line 1692 "configure"
4042 #include "confdefs.h"
4045 @@ -1720,10 +1701,10 @@
4048 rm -f conftest.o conftest.obj
4049 -if { (eval echo "$as_me:1723: \"$ac_compile\"") >&5
4050 +if { (eval echo "$as_me:1704: \"$ac_compile\"") >&5
4051 (eval $ac_compile) 2>&5
4053 - echo "$as_me:1726: \$? = $ac_status" >&5
4054 + echo "$as_me:1707: \$? = $ac_status" >&5
4055 (exit $ac_status); }; then
4056 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4058 @@ -1735,24 +1716,24 @@
4060 echo "$as_me: failed program was:" >&5
4061 cat conftest.$ac_ext >&5
4062 -{ { echo "$as_me:1738: error: cannot compute OBJEXT: cannot compile" >&5
4063 +{ { echo "$as_me:1719: error: cannot compute OBJEXT: cannot compile" >&5
4064 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
4065 { (exit 1); exit 1; }; }
4068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4070 -echo "$as_me:1745: result: $ac_cv_objext" >&5
4071 +echo "$as_me:1726: result: $ac_cv_objext" >&5
4072 echo "${ECHO_T}$ac_cv_objext" >&6
4073 OBJEXT=$ac_cv_objext
4075 -echo "$as_me:1749: checking whether we are using the GNU C compiler" >&5
4076 +echo "$as_me:1730: checking whether we are using the GNU C compiler" >&5
4077 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4078 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 cat >conftest.$ac_ext <<_ACEOF
4082 -#line 1755 "configure"
4083 +#line 1736 "configure"
4084 #include "confdefs.h"
4087 @@ -1767,16 +1748,16 @@
4090 rm -f conftest.$ac_objext
4091 -if { (eval echo "$as_me:1770: \"$ac_compile\"") >&5
4092 +if { (eval echo "$as_me:1751: \"$ac_compile\"") >&5
4093 (eval $ac_compile) 2>&5
4095 - echo "$as_me:1773: \$? = $ac_status" >&5
4096 + echo "$as_me:1754: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 - { (eval echo "$as_me:1776: \"$ac_try\"") >&5
4100 + { (eval echo "$as_me:1757: \"$ac_try\"") >&5
4103 - echo "$as_me:1779: \$? = $ac_status" >&5
4104 + echo "$as_me:1760: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4108 @@ -1788,19 +1769,19 @@
4109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4112 -echo "$as_me:1791: result: $ac_cv_c_compiler_gnu" >&5
4113 +echo "$as_me:1772: result: $ac_cv_c_compiler_gnu" >&5
4114 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4115 GCC=`test $ac_compiler_gnu = yes && echo yes`
4116 ac_test_CFLAGS=${CFLAGS+set}
4117 ac_save_CFLAGS=$CFLAGS
4119 -echo "$as_me:1797: checking whether $CC accepts -g" >&5
4120 +echo "$as_me:1778: checking whether $CC accepts -g" >&5
4121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4122 if test "${ac_cv_prog_cc_g+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 cat >conftest.$ac_ext <<_ACEOF
4126 -#line 1803 "configure"
4127 +#line 1784 "configure"
4128 #include "confdefs.h"
4131 @@ -1812,16 +1793,16 @@
4134 rm -f conftest.$ac_objext
4135 -if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
4136 +if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
4137 (eval $ac_compile) 2>&5
4139 - echo "$as_me:1818: \$? = $ac_status" >&5
4140 + echo "$as_me:1799: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try='test -s conftest.$ac_objext'
4143 - { (eval echo "$as_me:1821: \"$ac_try\"") >&5
4144 + { (eval echo "$as_me:1802: \"$ac_try\"") >&5
4147 - echo "$as_me:1824: \$? = $ac_status" >&5
4148 + echo "$as_me:1805: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4152 @@ -1831,7 +1812,7 @@
4154 rm -f conftest.$ac_objext conftest.$ac_ext
4156 -echo "$as_me:1834: result: $ac_cv_prog_cc_g" >&5
4157 +echo "$as_me:1815: result: $ac_cv_prog_cc_g" >&5
4158 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4159 if test "$ac_test_CFLAGS" = set; then
4160 CFLAGS=$ac_save_CFLAGS
4161 @@ -1858,16 +1839,16 @@
4164 rm -f conftest.$ac_objext
4165 -if { (eval echo "$as_me:1861: \"$ac_compile\"") >&5
4166 +if { (eval echo "$as_me:1842: \"$ac_compile\"") >&5
4167 (eval $ac_compile) 2>&5
4169 - echo "$as_me:1864: \$? = $ac_status" >&5
4170 + echo "$as_me:1845: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 - { (eval echo "$as_me:1867: \"$ac_try\"") >&5
4174 + { (eval echo "$as_me:1848: \"$ac_try\"") >&5
4177 - echo "$as_me:1870: \$? = $ac_status" >&5
4178 + echo "$as_me:1851: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 for ac_declaration in \
4182 @@ -1879,7 +1860,7 @@
4185 cat >conftest.$ac_ext <<_ACEOF
4186 -#line 1882 "configure"
4187 +#line 1863 "configure"
4188 #include "confdefs.h"
4191 @@ -1892,16 +1873,16 @@
4194 rm -f conftest.$ac_objext
4195 -if { (eval echo "$as_me:1895: \"$ac_compile\"") >&5
4196 +if { (eval echo "$as_me:1876: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>&5
4199 - echo "$as_me:1898: \$? = $ac_status" >&5
4200 + echo "$as_me:1879: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 - { (eval echo "$as_me:1901: \"$ac_try\"") >&5
4204 + { (eval echo "$as_me:1882: \"$ac_try\"") >&5
4207 - echo "$as_me:1904: \$? = $ac_status" >&5
4208 + echo "$as_me:1885: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4212 @@ -1911,7 +1892,7 @@
4214 rm -f conftest.$ac_objext conftest.$ac_ext
4215 cat >conftest.$ac_ext <<_ACEOF
4216 -#line 1914 "configure"
4217 +#line 1895 "configure"
4218 #include "confdefs.h"
4221 @@ -1923,16 +1904,16 @@
4224 rm -f conftest.$ac_objext
4225 -if { (eval echo "$as_me:1926: \"$ac_compile\"") >&5
4226 +if { (eval echo "$as_me:1907: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>&5
4229 - echo "$as_me:1929: \$? = $ac_status" >&5
4230 + echo "$as_me:1910: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 - { (eval echo "$as_me:1932: \"$ac_try\"") >&5
4234 + { (eval echo "$as_me:1913: \"$ac_try\"") >&5
4237 - echo "$as_me:1935: \$? = $ac_status" >&5
4238 + echo "$as_me:1916: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4242 @@ -1961,98 +1942,20 @@
4245 if test "$GCC" = yes ; then
4246 - echo "$as_me:1964: checking version of gcc" >&5
4247 -echo $ECHO_N "checking version of gcc... $ECHO_C" >&6
4248 - GCC_VERSION="`${CC} --version|head -1`"
4249 - echo "$as_me:1967: result: $GCC_VERSION" >&5
4250 + echo "$as_me:1945: checking version of $CC" >&5
4251 +echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
4252 + GCC_VERSION="`${CC} --version|sed -e '2,$d' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
4253 + test -z "$GCC_VERSION" && GCC_VERSION=unknown
4254 + echo "$as_me:1949: result: $GCC_VERSION" >&5
4255 echo "${ECHO_T}$GCC_VERSION" >&6
4258 -# If we're cross-compiling, allow the user to override the tools and their
4259 -# options. The configure script is oriented toward identifying the target
4260 -# compiler, etc., but we need a host compiler to generate parts of the source.
4262 -BUILD_CFLAGS='$(CFLAGS)'
4263 -BUILD_CPPFLAGS='$(CPPFLAGS)'
4264 -BUILD_LDFLAGS='$(LDFLAGS)'
4265 -BUILD_LIBS='$(LIBS)'
4266 -if test "$host_alias" != "$target_alias" ; then
4268 -# Check whether --with-build-cc or --without-build-cc was given.
4269 -if test "${with_build_cc+set}" = set; then
4270 - withval="$with_build_cc"
4271 - BUILD_CC="$withval"
4273 - for ac_prog in $CC gcc cc
4275 - # Extract the first word of "$ac_prog", so it can be a program name with args.
4276 -set dummy $ac_prog; ac_word=$2
4277 -echo "$as_me:1990: checking for $ac_word" >&5
4278 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4279 -if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4280 - echo $ECHO_N "(cached) $ECHO_C" >&6
4282 - if test -n "$BUILD_CC"; then
4283 - ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4285 - ac_save_IFS=$IFS; IFS=$ac_path_separator
4287 -for ac_dir in $ac_dummy; do
4289 - test -z "$ac_dir" && ac_dir=.
4290 - $as_executable_p "$ac_dir/$ac_word" || continue
4291 -ac_cv_prog_BUILD_CC="$ac_prog"
4292 -echo "$as_me:2005: found $ac_dir/$ac_word" >&5
4298 -BUILD_CC=$ac_cv_prog_BUILD_CC
4299 -if test -n "$BUILD_CC"; then
4300 - echo "$as_me:2013: result: $BUILD_CC" >&5
4301 -echo "${ECHO_T}$BUILD_CC" >&6
4303 - echo "$as_me:2016: result: no" >&5
4304 -echo "${ECHO_T}no" >&6
4307 - test -n "$BUILD_CC" && break
4312 -# Check whether --with-build-cflags or --without-build-cflags was given.
4313 -if test "${with_build_cflags+set}" = set; then
4314 - withval="$with_build_cflags"
4315 - BUILD_CFLAGS="$withval"
4318 -# Check whether --with-build-cppflags or --without-build-cppflags was given.
4319 -if test "${with_build_cppflags+set}" = set; then
4320 - withval="$with_build_cppflags"
4321 - BUILD_CPPFLAGS="$withval"
4324 -# Check whether --with-build-ldflags or --without-build-ldflags was given.
4325 -if test "${with_build_ldflags+set}" = set; then
4326 - withval="$with_build_ldflags"
4327 - BUILD_LDFLAGS="$withval"
4330 -# Check whether --with-build-libs or --without-build-libs was given.
4331 -if test "${with_build_libs+set}" = set; then
4332 - withval="$with_build_libs"
4333 - BUILD_LIBS="$withval"
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 -echo "$as_me:2055: checking how to run the C preprocessor" >&5
4343 +echo "$as_me:1958: checking how to run the C preprocessor" >&5
4344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4345 # On Suns, sometimes $CPP names a directory.
4346 if test -n "$CPP" && test -d "$CPP"; then
4347 @@ -2073,18 +1976,18 @@
4348 # On the NeXT, cc -E runs the code through the compiler's parser,
4349 # not just through cpp. "Syntax error" is here to catch this case.
4350 cat >conftest.$ac_ext <<_ACEOF
4351 -#line 2076 "configure"
4352 +#line 1979 "configure"
4353 #include "confdefs.h"
4357 -if { (eval echo "$as_me:2081: \"$ac_cpp conftest.$ac_ext\"") >&5
4358 +if { (eval echo "$as_me:1984: \"$ac_cpp conftest.$ac_ext\"") >&5
4359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4361 egrep -v '^ *\+' conftest.er1 >conftest.err
4363 cat conftest.err >&5
4364 - echo "$as_me:2087: \$? = $ac_status" >&5
4365 + echo "$as_me:1990: \$? = $ac_status" >&5
4366 (exit $ac_status); } >/dev/null; then
4367 if test -s conftest.err; then
4368 ac_cpp_err=$ac_c_preproc_warn_flag
4369 @@ -2107,17 +2010,17 @@
4370 # OK, works on sane cases. Now check whether non-existent headers
4371 # can be detected and how.
4372 cat >conftest.$ac_ext <<_ACEOF
4373 -#line 2110 "configure"
4374 +#line 2013 "configure"
4375 #include "confdefs.h"
4376 #include <ac_nonexistent.h>
4378 -if { (eval echo "$as_me:2114: \"$ac_cpp conftest.$ac_ext\"") >&5
4379 +if { (eval echo "$as_me:2017: \"$ac_cpp conftest.$ac_ext\"") >&5
4380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4382 egrep -v '^ *\+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 - echo "$as_me:2120: \$? = $ac_status" >&5
4386 + echo "$as_me:2023: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev/null; then
4388 if test -s conftest.err; then
4389 ac_cpp_err=$ac_c_preproc_warn_flag
4390 @@ -2154,7 +2057,7 @@
4394 -echo "$as_me:2157: result: $CPP" >&5
4395 +echo "$as_me:2060: result: $CPP" >&5
4396 echo "${ECHO_T}$CPP" >&6
4398 for ac_c_preproc_warn_flag in '' yes
4399 @@ -2164,18 +2067,18 @@
4400 # On the NeXT, cc -E runs the code through the compiler's parser,
4401 # not just through cpp. "Syntax error" is here to catch this case.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 -#line 2167 "configure"
4404 +#line 2070 "configure"
4405 #include "confdefs.h"
4409 -if { (eval echo "$as_me:2172: \"$ac_cpp conftest.$ac_ext\"") >&5
4410 +if { (eval echo "$as_me:2075: \"$ac_cpp conftest.$ac_ext\"") >&5
4411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4413 egrep -v '^ *\+' conftest.er1 >conftest.err
4415 cat conftest.err >&5
4416 - echo "$as_me:2178: \$? = $ac_status" >&5
4417 + echo "$as_me:2081: \$? = $ac_status" >&5
4418 (exit $ac_status); } >/dev/null; then
4419 if test -s conftest.err; then
4420 ac_cpp_err=$ac_c_preproc_warn_flag
4421 @@ -2198,17 +2101,17 @@
4422 # OK, works on sane cases. Now check whether non-existent headers
4423 # can be detected and how.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 -#line 2201 "configure"
4426 +#line 2104 "configure"
4427 #include "confdefs.h"
4428 #include <ac_nonexistent.h>
4430 -if { (eval echo "$as_me:2205: \"$ac_cpp conftest.$ac_ext\"") >&5
4431 +if { (eval echo "$as_me:2108: \"$ac_cpp conftest.$ac_ext\"") >&5
4432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4434 egrep -v '^ *\+' conftest.er1 >conftest.err
4436 cat conftest.err >&5
4437 - echo "$as_me:2211: \$? = $ac_status" >&5
4438 + echo "$as_me:2114: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev/null; then
4440 if test -s conftest.err; then
4441 ac_cpp_err=$ac_c_preproc_warn_flag
4442 @@ -2236,7 +2139,7 @@
4443 if $ac_preproc_ok; then
4446 - { { echo "$as_me:2239: error: C preprocessor \"$CPP\" fails sanity check" >&5
4447 + { { echo "$as_me:2142: error: C preprocessor \"$CPP\" fails sanity check" >&5
4448 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4449 { (exit 1); exit 1; }; }
4451 @@ -2248,17 +2151,17 @@
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 if test $ac_cv_c_compiler_gnu = yes; then
4455 - echo "$as_me:2251: checking whether $CC needs -traditional" >&5
4456 + echo "$as_me:2154: checking whether $CC needs -traditional" >&5
4457 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4458 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 ac_pattern="Autoconf.*'x'"
4462 cat >conftest.$ac_ext <<_ACEOF
4463 -#line 2258 "configure"
4464 +#line 2161 "configure"
4465 #include "confdefs.h"
4468 +int Autoconf = TIOCGETP;
4470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 egrep "$ac_pattern" >/dev/null 2>&1; then
4472 @@ -2270,10 +2173,10 @@
4474 if test $ac_cv_prog_gcc_traditional = no; then
4475 cat >conftest.$ac_ext <<_ACEOF
4476 -#line 2273 "configure"
4477 +#line 2176 "configure"
4478 #include "confdefs.h"
4481 +int Autoconf = TCGETA;
4483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 egrep "$ac_pattern" >/dev/null 2>&1; then
4485 @@ -2283,19 +2186,19 @@
4489 -echo "$as_me:2286: result: $ac_cv_prog_gcc_traditional" >&5
4490 +echo "$as_me:2189: result: $ac_cv_prog_gcc_traditional" >&5
4491 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4492 if test $ac_cv_prog_gcc_traditional = yes; then
4493 CC="$CC -traditional"
4497 -echo "$as_me:2293: checking for POSIXized ISC" >&5
4498 +echo "$as_me:2196: checking for POSIXized ISC" >&5
4499 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
4500 if test -d /etc/conf/kconfig.d &&
4501 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
4503 - echo "$as_me:2298: result: yes" >&5
4504 + echo "$as_me:2201: result: yes" >&5
4505 echo "${ECHO_T}yes" >&6
4506 ISC=yes # If later tests want to check for ISC.
4508 @@ -2309,12 +2212,12 @@
4512 - echo "$as_me:2312: result: no" >&5
4513 + echo "$as_me:2215: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4518 -echo "$as_me:2317: checking for ${CC-cc} option to accept ANSI C" >&5
4519 +echo "$as_me:2220: checking for ${CC-cc} option to accept ANSI C" >&5
4520 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4521 if test "${cf_cv_ansi_cc+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 @@ -2366,11 +2269,11 @@
4525 if test -n "$cf_new_cppflags" ; then
4527 - CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4528 + CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
4531 cat >conftest.$ac_ext <<_ACEOF
4532 -#line 2373 "configure"
4533 +#line 2276 "configure"
4534 #include "confdefs.h"
4536 #ifndef CC_HAS_PROTOS
4537 @@ -2391,16 +2294,16 @@
4540 rm -f conftest.$ac_objext
4541 -if { (eval echo "$as_me:2394: \"$ac_compile\"") >&5
4542 +if { (eval echo "$as_me:2297: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4545 - echo "$as_me:2397: \$? = $ac_status" >&5
4546 + echo "$as_me:2300: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 - { (eval echo "$as_me:2400: \"$ac_try\"") >&5
4550 + { (eval echo "$as_me:2303: \"$ac_try\"") >&5
4553 - echo "$as_me:2403: \$? = $ac_status" >&5
4554 + echo "$as_me:2306: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 cf_cv_ansi_cc="$cf_arg"; break
4558 @@ -2413,7 +2316,7 @@
4559 CPPFLAGS="$cf_save_CPPFLAGS"
4562 -echo "$as_me:2416: result: $cf_cv_ansi_cc" >&5
4563 +echo "$as_me:2319: result: $cf_cv_ansi_cc" >&5
4564 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
4566 if test "$cf_cv_ansi_cc" != "no"; then
4567 @@ -2446,7 +2349,7 @@
4569 if test -n "$cf_new_cppflags" ; then
4571 - CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4572 + CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
4576 @@ -2458,7 +2361,7 @@
4579 if test "$cf_cv_ansi_cc" = "no"; then
4580 - { { echo "$as_me:2461: error: Your compiler does not appear to recognize prototypes.
4581 + { { echo "$as_me:2364: error: Your compiler does not appear to recognize prototypes.
4582 You have the following choices:
4583 a. adjust your compiler options
4584 b. get an up-to-date compiler
4585 @@ -2478,7 +2381,7 @@
4586 CFLAGS="$CFLAGS -Zmt"
4587 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
4588 CXXFLAGS="$CXXFLAGS -Zmt"
4589 - LDFLAGS=`echo "$LDFLAGS -Zmt -Zcrtdll" | sed "s/-Zexe//g"`
4590 + LDFLAGS=`echo "$LDFLAGS -Zmt -Zcrtdll" | sed -e "s%-Zexe%%g"`
4594 @@ -2497,7 +2400,7 @@
4595 *) LDPATH=$PATH:/sbin:/usr/sbin
4596 # Extract the first word of "ldconfig", so it can be a program name with args.
4597 set dummy ldconfig; ac_word=$2
4598 -echo "$as_me:2500: checking for $ac_word" >&5
4599 +echo "$as_me:2403: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 @@ -2514,7 +2417,7 @@
4604 test -z "$ac_dir" && ac_dir=.
4605 if $as_executable_p "$ac_dir/$ac_word"; then
4606 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
4607 - echo "$as_me:2517: found $ac_dir/$ac_word" >&5
4608 + echo "$as_me:2420: found $ac_dir/$ac_word" >&5
4612 @@ -2525,17 +2428,17 @@
4613 LDCONFIG=$ac_cv_path_LDCONFIG
4615 if test -n "$LDCONFIG"; then
4616 - echo "$as_me:2528: result: $LDCONFIG" >&5
4617 + echo "$as_me:2431: result: $LDCONFIG" >&5
4618 echo "${ECHO_T}$LDCONFIG" >&6
4620 - echo "$as_me:2531: result: no" >&5
4621 + echo "$as_me:2434: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4628 -echo "$as_me:2538: checking if you want to ensure bool is consistent with C++" >&5
4629 +echo "$as_me:2441: checking if you want to ensure bool is consistent with C++" >&5
4630 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
4632 # Check whether --with-cxx or --without-cxx was given.
4633 @@ -2545,12 +2448,13 @@
4637 -echo "$as_me:2548: result: $cf_with_cxx" >&5
4638 +echo "$as_me:2451: result: $cf_with_cxx" >&5
4639 echo "${ECHO_T}$cf_with_cxx" >&6
4640 if test "X$cf_with_cxx" = Xno ; then
4644 + # with autoconf 2.13, we can change the error to a warning:
4646 ac_cpp='$CXXCPP $CPPFLAGS'
4647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 @@ -2561,7 +2465,7 @@
4650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4652 -echo "$as_me:2564: checking for $ac_word" >&5
4653 +echo "$as_me:2468: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_CXX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 @@ -2576,7 +2480,7 @@
4658 test -z "$ac_dir" && ac_dir=.
4659 $as_executable_p "$ac_dir/$ac_word" || continue
4660 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4661 -echo "$as_me:2579: found $ac_dir/$ac_word" >&5
4662 +echo "$as_me:2483: found $ac_dir/$ac_word" >&5
4666 @@ -2584,10 +2488,10 @@
4669 if test -n "$CXX"; then
4670 - echo "$as_me:2587: result: $CXX" >&5
4671 + echo "$as_me:2491: result: $CXX" >&5
4672 echo "${ECHO_T}$CXX" >&6
4674 - echo "$as_me:2590: result: no" >&5
4675 + echo "$as_me:2494: result: no" >&5
4676 echo "${ECHO_T}no" >&6
4679 @@ -2600,7 +2504,7 @@
4681 # Extract the first word of "$ac_prog", so it can be a program name with args.
4682 set dummy $ac_prog; ac_word=$2
4683 -echo "$as_me:2603: checking for $ac_word" >&5
4684 +echo "$as_me:2507: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 @@ -2615,7 +2519,7 @@
4689 test -z "$ac_dir" && ac_dir=.
4690 $as_executable_p "$ac_dir/$ac_word" || continue
4691 ac_cv_prog_ac_ct_CXX="$ac_prog"
4692 -echo "$as_me:2618: found $ac_dir/$ac_word" >&5
4693 +echo "$as_me:2522: found $ac_dir/$ac_word" >&5
4697 @@ -2623,10 +2527,10 @@
4699 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4700 if test -n "$ac_ct_CXX"; then
4701 - echo "$as_me:2626: result: $ac_ct_CXX" >&5
4702 + echo "$as_me:2530: result: $ac_ct_CXX" >&5
4703 echo "${ECHO_T}$ac_ct_CXX" >&6
4705 - echo "$as_me:2629: result: no" >&5
4706 + echo "$as_me:2533: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4710 @@ -2638,32 +2542,32 @@
4713 # Provide some information about the compiler.
4714 -echo "$as_me:2641:" \
4715 +echo "$as_me:2545:" \
4716 "checking for C++ compiler version" >&5
4717 ac_compiler=`set X $ac_compile; echo $2`
4718 -{ (eval echo "$as_me:2644: \"$ac_compiler --version </dev/null >&5\"") >&5
4719 +{ (eval echo "$as_me:2548: \"$ac_compiler --version </dev/null >&5\"") >&5
4720 (eval $ac_compiler --version </dev/null >&5) 2>&5
4722 - echo "$as_me:2647: \$? = $ac_status" >&5
4723 + echo "$as_me:2551: \$? = $ac_status" >&5
4724 (exit $ac_status); }
4725 -{ (eval echo "$as_me:2649: \"$ac_compiler -v </dev/null >&5\"") >&5
4726 +{ (eval echo "$as_me:2553: \"$ac_compiler -v </dev/null >&5\"") >&5
4727 (eval $ac_compiler -v </dev/null >&5) 2>&5
4729 - echo "$as_me:2652: \$? = $ac_status" >&5
4730 + echo "$as_me:2556: \$? = $ac_status" >&5
4731 (exit $ac_status); }
4732 -{ (eval echo "$as_me:2654: \"$ac_compiler -V </dev/null >&5\"") >&5
4733 +{ (eval echo "$as_me:2558: \"$ac_compiler -V </dev/null >&5\"") >&5
4734 (eval $ac_compiler -V </dev/null >&5) 2>&5
4736 - echo "$as_me:2657: \$? = $ac_status" >&5
4737 + echo "$as_me:2561: \$? = $ac_status" >&5
4738 (exit $ac_status); }
4740 -echo "$as_me:2660: checking whether we are using the GNU C++ compiler" >&5
4741 +echo "$as_me:2564: checking whether we are using the GNU C++ compiler" >&5
4742 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4743 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 cat >conftest.$ac_ext <<_ACEOF
4747 -#line 2666 "configure"
4748 +#line 2570 "configure"
4749 #include "confdefs.h"
4752 @@ -2678,16 +2582,16 @@
4755 rm -f conftest.$ac_objext
4756 -if { (eval echo "$as_me:2681: \"$ac_compile\"") >&5
4757 +if { (eval echo "$as_me:2585: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>&5
4760 - echo "$as_me:2684: \$? = $ac_status" >&5
4761 + echo "$as_me:2588: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 - { (eval echo "$as_me:2687: \"$ac_try\"") >&5
4765 + { (eval echo "$as_me:2591: \"$ac_try\"") >&5
4768 - echo "$as_me:2690: \$? = $ac_status" >&5
4769 + echo "$as_me:2594: \$? = $ac_status" >&5
4770 (exit $ac_status); }; }; then
4773 @@ -2699,19 +2603,19 @@
4774 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4777 -echo "$as_me:2702: result: $ac_cv_cxx_compiler_gnu" >&5
4778 +echo "$as_me:2606: result: $ac_cv_cxx_compiler_gnu" >&5
4779 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4780 GXX=`test $ac_compiler_gnu = yes && echo yes`
4781 ac_test_CXXFLAGS=${CXXFLAGS+set}
4782 ac_save_CXXFLAGS=$CXXFLAGS
4784 -echo "$as_me:2708: checking whether $CXX accepts -g" >&5
4785 +echo "$as_me:2612: checking whether $CXX accepts -g" >&5
4786 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4787 if test "${ac_cv_prog_cxx_g+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 cat >conftest.$ac_ext <<_ACEOF
4791 -#line 2714 "configure"
4792 +#line 2618 "configure"
4793 #include "confdefs.h"
4796 @@ -2723,16 +2627,16 @@
4799 rm -f conftest.$ac_objext
4800 -if { (eval echo "$as_me:2726: \"$ac_compile\"") >&5
4801 +if { (eval echo "$as_me:2630: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>&5
4804 - echo "$as_me:2729: \$? = $ac_status" >&5
4805 + echo "$as_me:2633: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 - { (eval echo "$as_me:2732: \"$ac_try\"") >&5
4809 + { (eval echo "$as_me:2636: \"$ac_try\"") >&5
4812 - echo "$as_me:2735: \$? = $ac_status" >&5
4813 + echo "$as_me:2639: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_cv_prog_cxx_g=yes
4817 @@ -2742,7 +2646,7 @@
4819 rm -f conftest.$ac_objext conftest.$ac_ext
4821 -echo "$as_me:2745: result: $ac_cv_prog_cxx_g" >&5
4822 +echo "$as_me:2649: result: $ac_cv_prog_cxx_g" >&5
4823 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4824 if test "$ac_test_CXXFLAGS" = set; then
4825 CXXFLAGS=$ac_save_CXXFLAGS
4826 @@ -2769,7 +2673,7 @@
4829 cat >conftest.$ac_ext <<_ACEOF
4830 -#line 2772 "configure"
4831 +#line 2676 "configure"
4832 #include "confdefs.h"
4835 @@ -2782,16 +2686,16 @@
4838 rm -f conftest.$ac_objext
4839 -if { (eval echo "$as_me:2785: \"$ac_compile\"") >&5
4840 +if { (eval echo "$as_me:2689: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>&5
4843 - echo "$as_me:2788: \$? = $ac_status" >&5
4844 + echo "$as_me:2692: \$? = $ac_status" >&5
4845 (exit $ac_status); } &&
4846 { ac_try='test -s conftest.$ac_objext'
4847 - { (eval echo "$as_me:2791: \"$ac_try\"") >&5
4848 + { (eval echo "$as_me:2695: \"$ac_try\"") >&5
4851 - echo "$as_me:2794: \$? = $ac_status" >&5
4852 + echo "$as_me:2698: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4856 @@ -2801,7 +2705,7 @@
4858 rm -f conftest.$ac_objext conftest.$ac_ext
4859 cat >conftest.$ac_ext <<_ACEOF
4860 -#line 2804 "configure"
4861 +#line 2708 "configure"
4862 #include "confdefs.h"
4865 @@ -2813,16 +2717,16 @@
4868 rm -f conftest.$ac_objext
4869 -if { (eval echo "$as_me:2816: \"$ac_compile\"") >&5
4870 +if { (eval echo "$as_me:2720: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>&5
4873 - echo "$as_me:2819: \$? = $ac_status" >&5
4874 + echo "$as_me:2723: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 - { (eval echo "$as_me:2822: \"$ac_try\"") >&5
4878 + { (eval echo "$as_me:2726: \"$ac_try\"") >&5
4881 - echo "$as_me:2825: \$? = $ac_status" >&5
4882 + echo "$as_me:2729: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4886 @@ -2844,26 +2748,72 @@
4887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890 + # autoconf 2.5x removed the error - by hardcoding it to g++.
4891 + if test "$CXX" = "g++" ; then
4892 + # Extract the first word of "g++", so it can be a program name with args.
4893 +set dummy g++; ac_word=$2
4894 +echo "$as_me:2755: checking for $ac_word" >&5
4895 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4896 +if test "${ac_cv_path_CXX+set}" = set; then
4897 + echo $ECHO_N "(cached) $ECHO_C" >&6
4900 + [\\/]* | ?:[\\/]*)
4901 + ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4904 + ac_save_IFS=$IFS; IFS=$ac_path_separator
4906 +for ac_dir in $ac_dummy; do
4908 + test -z "$ac_dir" && ac_dir=.
4909 + if $as_executable_p "$ac_dir/$ac_word"; then
4910 + ac_cv_path_CXX="$ac_dir/$ac_word"
4911 + echo "$as_me:2772: found $ac_dir/$ac_word" >&5
4919 +CXX=$ac_cv_path_CXX
4921 +if test -n "$CXX"; then
4922 + echo "$as_me:2783: result: $CXX" >&5
4923 +echo "${ECHO_T}$CXX" >&6
4925 + echo "$as_me:2786: result: no" >&5
4926 +echo "${ECHO_T}no" >&6
4930 + if test "$CXX" = "g++" ; then
4931 + { echo "$as_me:2792: WARNING: ignoring hardcoded g++" >&5
4932 +echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
4933 + cf_with_cxx=no; CXX=""; GXX="";
4938 if test "$GXX" = yes; then
4939 - echo "$as_me:2851: checking version of g++" >&5
4940 + echo "$as_me:2800: checking version of g++" >&5
4941 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
4942 - GXX_VERSION="`${CXX-g++} --version|head -1`"
4943 - echo "$as_me:2854: result: $GXX_VERSION" >&5
4944 + GXX_VERSION="`${CXX-g++} --version|sed -e '2,$d'`"
4945 + echo "$as_me:2803: result: $GXX_VERSION" >&5
4946 echo "${ECHO_T}$GXX_VERSION" >&6
4947 - case $GXX_VERSION in
4949 - GXX=""; CXX=""; ac_cv_cxx_compiler_gnu=no
4951 - { echo "$as_me:2860: WARNING: templates do not work" >&5
4952 -echo "$as_me: WARNING: templates do not work" >&2;}
4957 -echo "$as_me:2866: checking if you want to build C++ binding and demo" >&5
4958 +case $GXX_VERSION in
4960 + GXX=""; CXX=""; ac_cv_cxx_compiler_gnu=no
4962 + { echo "$as_me:2811: WARNING: templates do not work" >&5
4963 +echo "$as_me: WARNING: templates do not work" >&2;}
4967 +echo "$as_me:2816: checking if you want to build C++ binding and demo" >&5
4968 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
4970 # Check whether --with-cxx-binding or --without-cxx-binding was given.
4971 @@ -2873,10 +2823,10 @@
4973 cf_with_cxx_binding=$cf_with_cxx
4975 -echo "$as_me:2876: result: $cf_with_cxx_binding" >&5
4976 +echo "$as_me:2826: result: $cf_with_cxx_binding" >&5
4977 echo "${ECHO_T}$cf_with_cxx_binding" >&6
4979 -echo "$as_me:2879: checking if you want to build with Ada95" >&5
4980 +echo "$as_me:2829: checking if you want to build with Ada95" >&5
4981 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
4983 # Check whether --with-ada or --without-ada was given.
4984 @@ -2886,10 +2836,10 @@
4988 -echo "$as_me:2889: result: $cf_with_ada" >&5
4989 +echo "$as_me:2839: result: $cf_with_ada" >&5
4990 echo "${ECHO_T}$cf_with_ada" >&6
4992 -echo "$as_me:2892: checking if you want to build programs such as tic" >&5
4993 +echo "$as_me:2842: checking if you want to build programs such as tic" >&5
4994 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
4996 # Check whether --with-progs or --without-progs was given.
4997 @@ -2899,10 +2849,10 @@
5001 -echo "$as_me:2902: result: $cf_with_progs" >&5
5002 +echo "$as_me:2852: result: $cf_with_progs" >&5
5003 echo "${ECHO_T}$cf_with_progs" >&6
5005 -echo "$as_me:2905: checking if you wish to install curses.h" >&5
5006 +echo "$as_me:2855: checking if you wish to install curses.h" >&5
5007 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
5009 # Check whether --with-curses-h or --without-curses-h was given.
5010 @@ -2912,7 +2862,7 @@
5014 -echo "$as_me:2915: result: $with_curses_h" >&5
5015 +echo "$as_me:2865: result: $with_curses_h" >&5
5016 echo "${ECHO_T}$with_curses_h" >&6
5018 modules_to_build="ncurses"
5019 @@ -2938,7 +2888,7 @@
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy $ac_prog; ac_word=$2
5023 -echo "$as_me:2941: checking for $ac_word" >&5
5024 +echo "$as_me:2891: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026 if test "${ac_cv_prog_AWK+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 @@ -2953,7 +2903,7 @@
5029 test -z "$ac_dir" && ac_dir=.
5030 $as_executable_p "$ac_dir/$ac_word" || continue
5031 ac_cv_prog_AWK="$ac_prog"
5032 -echo "$as_me:2956: found $ac_dir/$ac_word" >&5
5033 +echo "$as_me:2906: found $ac_dir/$ac_word" >&5
5037 @@ -2961,17 +2911,17 @@
5040 if test -n "$AWK"; then
5041 - echo "$as_me:2964: result: $AWK" >&5
5042 + echo "$as_me:2914: result: $AWK" >&5
5043 echo "${ECHO_T}$AWK" >&6
5045 - echo "$as_me:2967: result: no" >&5
5046 + echo "$as_me:2917: result: no" >&5
5047 echo "${ECHO_T}no" >&6
5050 test -n "$AWK" && break
5053 -echo "$as_me:2974: checking whether ${MAKE-make} sets \${MAKE}" >&5
5054 +echo "$as_me:2924: checking whether ${MAKE-make} sets \${MAKE}" >&5
5055 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5056 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5057 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5058 @@ -2991,11 +2941,11 @@
5061 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5062 - echo "$as_me:2994: result: yes" >&5
5063 + echo "$as_me:2944: result: yes" >&5
5064 echo "${ECHO_T}yes" >&6
5067 - echo "$as_me:2998: result: no" >&5
5068 + echo "$as_me:2948: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5070 SET_MAKE="MAKE=${MAKE-make}"
5072 @@ -3012,7 +2962,7 @@
5073 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5074 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5075 # ./install, which can be erroneously created by make from ./install.sh.
5076 -echo "$as_me:3015: checking for a BSD compatible install" >&5
5077 +echo "$as_me:2965: checking for a BSD compatible install" >&5
5078 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5079 if test -z "$INSTALL"; then
5080 if test "${ac_cv_path_install+set}" = set; then
5081 @@ -3061,7 +3011,7 @@
5082 INSTALL=$ac_install_sh
5085 -echo "$as_me:3064: result: $INSTALL" >&5
5086 +echo "$as_me:3014: result: $INSTALL" >&5
5087 echo "${ECHO_T}$INSTALL" >&6
5089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5090 @@ -3076,13 +3026,13 @@
5094 - cf_dir=`echo $INSTALL | sed -e 's:/[^/]*$::'`
5095 + cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
5096 test -z "$cf_dir" && cf_dir=.
5097 - INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's:^.*/::'`
5098 + INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
5102 -echo "$as_me:3085: checking for long file names" >&5
5103 +echo "$as_me:3035: checking for long file names" >&5
5104 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5105 if test "${ac_cv_sys_long_file_names+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 @@ -3121,7 +3071,7 @@
5108 rm -rf $ac_xdir 2>/dev/null
5111 -echo "$as_me:3124: result: $ac_cv_sys_long_file_names" >&5
5112 +echo "$as_me:3074: result: $ac_cv_sys_long_file_names" >&5
5113 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5114 if test $ac_cv_sys_long_file_names = yes; then
5116 @@ -3131,7 +3081,7 @@
5120 -echo "$as_me:3134: checking if filesystem supports mixed-case filenames" >&5
5121 +echo "$as_me:3084: checking if filesystem supports mixed-case filenames" >&5
5122 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
5123 if test "${cf_cv_mixedcase+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 @@ -3147,27 +3097,27 @@
5126 rm -f conftest CONFTEST
5129 -echo "$as_me:3150: result: $cf_cv_mixedcase" >&5
5130 +echo "$as_me:3100: result: $cf_cv_mixedcase" >&5
5131 echo "${ECHO_T}$cf_cv_mixedcase" >&6
5132 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
5133 #define MIXEDCASE_FILENAMES 1
5136 -echo "$as_me:3156: checking whether ln -s works" >&5
5137 +echo "$as_me:3106: checking whether ln -s works" >&5
5138 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5140 if test "$LN_S" = "ln -s"; then
5141 - echo "$as_me:3160: result: yes" >&5
5142 + echo "$as_me:3110: result: yes" >&5
5143 echo "${ECHO_T}yes" >&6
5145 - echo "$as_me:3163: result: no, using $LN_S" >&5
5146 + echo "$as_me:3113: result: no, using $LN_S" >&5
5147 echo "${ECHO_T}no, using $LN_S" >&6
5150 if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5153 -echo "$as_me:3170: checking for $ac_word" >&5
5154 +echo "$as_me:3120: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_RANLIB+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 @@ -3182,7 +3132,7 @@
5159 test -z "$ac_dir" && ac_dir=.
5160 $as_executable_p "$ac_dir/$ac_word" || continue
5161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5162 -echo "$as_me:3185: found $ac_dir/$ac_word" >&5
5163 +echo "$as_me:3135: found $ac_dir/$ac_word" >&5
5167 @@ -3190,10 +3140,10 @@
5169 RANLIB=$ac_cv_prog_RANLIB
5170 if test -n "$RANLIB"; then
5171 - echo "$as_me:3193: result: $RANLIB" >&5
5172 + echo "$as_me:3143: result: $RANLIB" >&5
5173 echo "${ECHO_T}$RANLIB" >&6
5175 - echo "$as_me:3196: result: no" >&5
5176 + echo "$as_me:3146: result: no" >&5
5177 echo "${ECHO_T}no" >&6
5180 @@ -3202,7 +3152,7 @@
5181 ac_ct_RANLIB=$RANLIB
5182 # Extract the first word of "ranlib", so it can be a program name with args.
5183 set dummy ranlib; ac_word=$2
5184 -echo "$as_me:3205: checking for $ac_word" >&5
5185 +echo "$as_me:3155: checking for $ac_word" >&5
5186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5187 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 @@ -3217,7 +3167,7 @@
5190 test -z "$ac_dir" && ac_dir=.
5191 $as_executable_p "$ac_dir/$ac_word" || continue
5192 ac_cv_prog_ac_ct_RANLIB="ranlib"
5193 -echo "$as_me:3220: found $ac_dir/$ac_word" >&5
5194 +echo "$as_me:3170: found $ac_dir/$ac_word" >&5
5198 @@ -3226,10 +3176,10 @@
5200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5201 if test -n "$ac_ct_RANLIB"; then
5202 - echo "$as_me:3229: result: $ac_ct_RANLIB" >&5
5203 + echo "$as_me:3179: result: $ac_ct_RANLIB" >&5
5204 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5206 - echo "$as_me:3232: result: no" >&5
5207 + echo "$as_me:3182: result: no" >&5
5208 echo "${ECHO_T}no" >&6
5211 @@ -3240,7 +3190,7 @@
5213 # Extract the first word of "ctags", so it can be a program name with args.
5214 set dummy ctags; ac_word=$2
5215 -echo "$as_me:3243: checking for $ac_word" >&5
5216 +echo "$as_me:3193: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 @@ -3255,7 +3205,7 @@
5221 test -z "$ac_dir" && ac_dir=.
5222 $as_executable_p "$ac_dir/$ac_word" || continue
5223 ac_cv_prog_MAKE_LOWER_TAGS="yes"
5224 -echo "$as_me:3258: found $ac_dir/$ac_word" >&5
5225 +echo "$as_me:3208: found $ac_dir/$ac_word" >&5
5229 @@ -3264,17 +3214,17 @@
5231 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
5232 if test -n "$MAKE_LOWER_TAGS"; then
5233 - echo "$as_me:3267: result: $MAKE_LOWER_TAGS" >&5
5234 + echo "$as_me:3217: result: $MAKE_LOWER_TAGS" >&5
5235 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
5237 - echo "$as_me:3270: result: no" >&5
5238 + echo "$as_me:3220: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5242 if test "$cf_cv_mixedcase" = yes ; then
5243 # Extract the first word of "etags", so it can be a program name with args.
5244 set dummy etags; ac_word=$2
5245 -echo "$as_me:3277: checking for $ac_word" >&5
5246 +echo "$as_me:3227: checking for $ac_word" >&5
5247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5248 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 @@ -3289,7 +3239,7 @@
5251 test -z "$ac_dir" && ac_dir=.
5252 $as_executable_p "$ac_dir/$ac_word" || continue
5253 ac_cv_prog_MAKE_UPPER_TAGS="yes"
5254 -echo "$as_me:3292: found $ac_dir/$ac_word" >&5
5255 +echo "$as_me:3242: found $ac_dir/$ac_word" >&5
5259 @@ -3298,10 +3248,10 @@
5261 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
5262 if test -n "$MAKE_UPPER_TAGS"; then
5263 - echo "$as_me:3301: result: $MAKE_UPPER_TAGS" >&5
5264 + echo "$as_me:3251: result: $MAKE_UPPER_TAGS" >&5
5265 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
5267 - echo "$as_me:3304: result: no" >&5
5268 + echo "$as_me:3254: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5272 @@ -3325,7 +3275,7 @@
5274 # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 -echo "$as_me:3328: checking for $ac_word" >&5
5277 +echo "$as_me:3278: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5279 if test "${ac_cv_prog_LINT+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 @@ -3340,7 +3290,7 @@
5282 test -z "$ac_dir" && ac_dir=.
5283 $as_executable_p "$ac_dir/$ac_word" || continue
5284 ac_cv_prog_LINT="$ac_prog"
5285 -echo "$as_me:3343: found $ac_dir/$ac_word" >&5
5286 +echo "$as_me:3293: found $ac_dir/$ac_word" >&5
5290 @@ -3348,10 +3298,10 @@
5292 LINT=$ac_cv_prog_LINT
5293 if test -n "$LINT"; then
5294 - echo "$as_me:3351: result: $LINT" >&5
5295 + echo "$as_me:3301: result: $LINT" >&5
5296 echo "${ECHO_T}$LINT" >&6
5298 - echo "$as_me:3354: result: no" >&5
5299 + echo "$as_me:3304: result: no" >&5
5300 echo "${ECHO_T}no" >&6
5303 @@ -3362,7 +3312,7 @@
5305 # Extract the first word of "$ac_prog", so it can be a program name with args.
5306 set dummy $ac_prog; ac_word=$2
5307 -echo "$as_me:3365: checking for $ac_word" >&5
5308 +echo "$as_me:3315: checking for $ac_word" >&5
5309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5310 if test "${ac_cv_prog_MAN+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 @@ -3377,7 +3327,7 @@
5313 test -z "$ac_dir" && ac_dir=.
5314 $as_executable_p "$ac_dir/$ac_word" || continue
5315 ac_cv_prog_MAN="$ac_prog"
5316 -echo "$as_me:3380: found $ac_dir/$ac_word" >&5
5317 +echo "$as_me:3330: found $ac_dir/$ac_word" >&5
5321 @@ -3385,54 +3335,172 @@
5324 if test -n "$MAN"; then
5325 - echo "$as_me:3388: result: $MAN" >&5
5326 + echo "$as_me:3338: result: $MAN" >&5
5327 echo "${ECHO_T}$MAN" >&6
5329 - echo "$as_me:3391: result: no" >&5
5330 + echo "$as_me:3341: result: no" >&5
5331 echo "${ECHO_T}no" >&6
5334 test -n "$MAN" && break
5337 -if test "${cf_cv_subst_LD+set}" = set; then
5338 +if test -n "$ac_tool_prefix"; then
5339 + # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5340 +set dummy ${ac_tool_prefix}ld; ac_word=$2
5341 +echo "$as_me:3351: checking for $ac_word" >&5
5342 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 +if test "${ac_cv_prog_LD+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 + if test -n "$LD"; then
5347 + ac_cv_prog_LD="$LD" # Let the user override the test.
5349 + ac_save_IFS=$IFS; IFS=$ac_path_separator
5351 +for ac_dir in $ac_dummy; do
5353 + test -z "$ac_dir" && ac_dir=.
5354 + $as_executable_p "$ac_dir/$ac_word" || continue
5355 +ac_cv_prog_LD="${ac_tool_prefix}ld"
5356 +echo "$as_me:3366: found $ac_dir/$ac_word" >&5
5360 -echo "$as_me:3402: checking for loader (symbol LD)" >&5
5361 -echo $ECHO_N "checking for loader (symbol LD)... $ECHO_C" >&6
5362 -test -z "$LD" && LD=ld
5363 -echo "$as_me:3405: result: $LD" >&5
5367 +if test -n "$LD"; then
5368 + echo "$as_me:3374: result: $LD" >&5
5369 echo "${ECHO_T}$LD" >&6
5371 + echo "$as_me:3377: result: no" >&5
5372 +echo "${ECHO_T}no" >&6
5377 +if test -z "$ac_cv_prog_LD"; then
5379 + # Extract the first word of "ld", so it can be a program name with args.
5380 +set dummy ld; ac_word=$2
5381 +echo "$as_me:3386: checking for $ac_word" >&5
5382 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 +if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5384 + echo $ECHO_N "(cached) $ECHO_C" >&6
5386 + if test -n "$ac_ct_LD"; then
5387 + ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5389 + ac_save_IFS=$IFS; IFS=$ac_path_separator
5391 +for ac_dir in $ac_dummy; do
5393 + test -z "$ac_dir" && ac_dir=.
5394 + $as_executable_p "$ac_dir/$ac_word" || continue
5395 +ac_cv_prog_ac_ct_LD="ld"
5396 +echo "$as_me:3401: found $ac_dir/$ac_word" >&5
5400 -LD=${cf_cv_subst_LD}
5401 + test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5404 +ac_ct_LD=$ac_cv_prog_ac_ct_LD
5405 +if test -n "$ac_ct_LD"; then
5406 + echo "$as_me:3410: result: $ac_ct_LD" >&5
5407 +echo "${ECHO_T}$ac_ct_LD" >&6
5409 + echo "$as_me:3413: result: no" >&5
5410 +echo "${ECHO_T}no" >&6
5413 -if test "${cf_cv_subst_AR+set}" = set; then
5416 + LD="$ac_cv_prog_LD"
5419 +if test -n "$ac_tool_prefix"; then
5420 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5421 +set dummy ${ac_tool_prefix}ar; ac_word=$2
5422 +echo "$as_me:3425: checking for $ac_word" >&5
5423 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5424 +if test "${ac_cv_prog_AR+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 + if test -n "$AR"; then
5428 + ac_cv_prog_AR="$AR" # Let the user override the test.
5430 + ac_save_IFS=$IFS; IFS=$ac_path_separator
5432 +for ac_dir in $ac_dummy; do
5434 + test -z "$ac_dir" && ac_dir=.
5435 + $as_executable_p "$ac_dir/$ac_word" || continue
5436 +ac_cv_prog_AR="${ac_tool_prefix}ar"
5437 +echo "$as_me:3440: found $ac_dir/$ac_word" >&5
5441 -echo "$as_me:3417: checking for archiver (symbol AR)" >&5
5442 -echo $ECHO_N "checking for archiver (symbol AR)... $ECHO_C" >&6
5443 -test -z "$AR" && AR=ar
5444 -echo "$as_me:3420: result: $AR" >&5
5448 +if test -n "$AR"; then
5449 + echo "$as_me:3448: result: $AR" >&5
5450 echo "${ECHO_T}$AR" >&6
5452 + echo "$as_me:3451: result: no" >&5
5453 +echo "${ECHO_T}no" >&6
5458 +if test -z "$ac_cv_prog_AR"; then
5460 + # Extract the first word of "ar", so it can be a program name with args.
5461 +set dummy ar; ac_word=$2
5462 +echo "$as_me:3460: checking for $ac_word" >&5
5463 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5465 + echo $ECHO_N "(cached) $ECHO_C" >&6
5467 + if test -n "$ac_ct_AR"; then
5468 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5470 + ac_save_IFS=$IFS; IFS=$ac_path_separator
5472 +for ac_dir in $ac_dummy; do
5474 + test -z "$ac_dir" && ac_dir=.
5475 + $as_executable_p "$ac_dir/$ac_word" || continue
5476 +ac_cv_prog_ac_ct_AR="ar"
5477 +echo "$as_me:3475: found $ac_dir/$ac_word" >&5
5481 + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5484 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
5485 +if test -n "$ac_ct_AR"; then
5486 + echo "$as_me:3484: result: $ac_ct_AR" >&5
5487 +echo "${ECHO_T}$ac_ct_AR" >&6
5489 + echo "$as_me:3487: result: no" >&5
5490 +echo "${ECHO_T}no" >&6
5493 -AR=${cf_cv_subst_AR}
5496 + AR="$ac_cv_prog_AR"
5499 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 -echo "$as_me:3432: checking for archiver options (symbol AR_OPTS)" >&5
5504 +echo "$as_me:3500: checking for archiver options (symbol AR_OPTS)" >&5
5505 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
5506 test -z "$AR_OPTS" && AR_OPTS=rv
5507 -echo "$as_me:3435: result: $AR_OPTS" >&5
5508 +echo "$as_me:3503: result: $AR_OPTS" >&5
5509 echo "${ECHO_T}$AR_OPTS" >&6
5511 cf_cv_subst_AR_OPTS=$AR_OPTS
5512 @@ -3440,7 +3508,7 @@
5514 AR_OPTS=${cf_cv_subst_AR_OPTS}
5516 -echo "$as_me:3443: checking for makeflags variable" >&5
5517 +echo "$as_me:3511: checking for makeflags variable" >&5
5518 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
5519 if test "${cf_cv_makeflags+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 @@ -3473,10 +3541,10 @@
5522 rm -f cf_makeflags.tmp
5525 -echo "$as_me:3476: result: $cf_cv_makeflags" >&5
5526 +echo "$as_me:3544: result: $cf_cv_makeflags" >&5
5527 echo "${ECHO_T}$cf_cv_makeflags" >&6
5529 -echo "$as_me:3479: checking if you have specified an install-prefix" >&5
5530 +echo "$as_me:3547: checking if you have specified an install-prefix" >&5
5531 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5533 # Check whether --with-install-prefix or --without-install-prefix was given.
5534 @@ -3489,17 +3557,114 @@
5538 -echo "$as_me:3492: result: $DESTDIR" >&5
5539 +echo "$as_me:3560: result: $DESTDIR" >&5
5540 echo "${ECHO_T}$DESTDIR" >&6
5542 ###############################################################################
5544 +# If we're cross-compiling, allow the user to override the tools and their
5545 +# options. The configure script is oriented toward identifying the host
5546 +# compiler, etc., but we need a build compiler to generate parts of the source.
5547 +: ${BUILD_CC:='$(CC)'}
5548 +: ${BUILD_CFLAGS:='$(CFLAGS)'}
5549 +: ${BUILD_CPPFLAGS:='$(CPPFLAGS)'}
5550 +: ${BUILD_LDFLAGS:='$(LDFLAGS)'}
5551 +: ${BUILD_LIBS:='$(LIBS)'}
5552 +if test "$cross_compiling" = yes ; then
5554 +# Check whether --with-build-cc or --without-build-cc was given.
5555 +if test "${with_build_cc+set}" = set; then
5556 + withval="$with_build_cc"
5557 + BUILD_CC="$withval"
5559 + for ac_prog in $CC gcc cc
5561 + # Extract the first word of "$ac_prog", so it can be a program name with args.
5562 +set dummy $ac_prog; ac_word=$2
5563 +echo "$as_me:3584: checking for $ac_word" >&5
5564 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565 +if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5566 + echo $ECHO_N "(cached) $ECHO_C" >&6
5568 + if test -n "$BUILD_CC"; then
5569 + ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5571 + ac_save_IFS=$IFS; IFS=$ac_path_separator
5573 +for ac_dir in $ac_dummy; do
5575 + test -z "$ac_dir" && ac_dir=.
5576 + $as_executable_p "$ac_dir/$ac_word" || continue
5577 +ac_cv_prog_BUILD_CC="$ac_prog"
5578 +echo "$as_me:3599: found $ac_dir/$ac_word" >&5
5584 +BUILD_CC=$ac_cv_prog_BUILD_CC
5585 +if test -n "$BUILD_CC"; then
5586 + echo "$as_me:3607: result: $BUILD_CC" >&5
5587 +echo "${ECHO_T}$BUILD_CC" >&6
5589 + echo "$as_me:3610: result: no" >&5
5590 +echo "${ECHO_T}no" >&6
5593 + test -n "$BUILD_CC" && break
5598 +# Check whether --with-build-cflags or --without-build-cflags was given.
5599 +if test "${with_build_cflags+set}" = set; then
5600 + withval="$with_build_cflags"
5601 + BUILD_CFLAGS="$withval"
5604 +# Check whether --with-build-cppflags or --without-build-cppflags was given.
5605 +if test "${with_build_cppflags+set}" = set; then
5606 + withval="$with_build_cppflags"
5607 + BUILD_CPPFLAGS="$withval"
5610 +# Check whether --with-build-ldflags or --without-build-ldflags was given.
5611 +if test "${with_build_ldflags+set}" = set; then
5612 + withval="$with_build_ldflags"
5613 + BUILD_LDFLAGS="$withval"
5616 +# Check whether --with-build-libs or --without-build-libs was given.
5617 +if test "${with_build_libs+set}" = set; then
5618 + withval="$with_build_libs"
5619 + BUILD_LIBS="$withval"
5623 +###############################################################################
5625 ### Options to allow the user to specify the set of libraries which are used.
5626 ### Use "--without-normal --with-shared" to allow the default model to be
5627 ### shared, for example.
5630 -echo "$as_me:3502: checking if you want to build libraries with libtool" >&5
5633 +# common library maintenance symbols that are convenient for libtool scripts:
5634 +LIB_CREATE='$(AR) -cr'
5635 +LIB_OBJECT='$(OBJECTS)'
5639 +# symbols used to prop libtool up to enable it to determine what it should be
5647 +echo "$as_me:3667: checking if you want to build libraries with libtool" >&5
5648 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5650 # Check whether --with-libtool or --without-libtool was given.
5651 @@ -3509,16 +3674,131 @@
5655 -echo "$as_me:3512: result: $with_libtool" >&5
5656 +echo "$as_me:3677: result: $with_libtool" >&5
5657 echo "${ECHO_T}$with_libtool" >&6
5658 -if test "$with_libtool" = "yes"; then
5659 - cf_list_models="$cf_list_models libtool"
5660 - test -z "$LIBTOOL" && LIBTOOL=libtool
5661 +if test "$with_libtool" != "no"; then
5662 + if test "$with_libtool" != "yes" ; then
5664 +case ".$with_libtool" in #(vi
5665 +.\$\(*\)*|.\'*\'*) #(vi
5669 +.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5671 +.\${*prefix}*) #(vi
5672 + eval with_libtool="$with_libtool"
5673 + case ".$with_libtool" in #(vi
5675 + with_libtool=`echo $with_libtool | sed -e s%NONE%$ac_default_prefix%`
5680 + with_libtool=`echo $with_libtool | sed -e s%NONE%$ac_default_prefix%`
5683 + { { echo "$as_me:3701: error: expected a pathname, not \"$with_libtool\"" >&5
5684 +echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5685 + { (exit 1); exit 1; }; }
5689 + LIBTOOL=$with_libtool
5691 + # Extract the first word of "libtool", so it can be a program name with args.
5692 +set dummy libtool; ac_word=$2
5693 +echo "$as_me:3711: checking for $ac_word" >&5
5694 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5695 +if test "${ac_cv_path_LIBTOOL+set}" = set; then
5696 + echo $ECHO_N "(cached) $ECHO_C" >&6
5699 + [\\/]* | ?:[\\/]*)
5700 + ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
5703 + ac_save_IFS=$IFS; IFS=$ac_path_separator
5705 +for ac_dir in $ac_dummy; do
5707 + test -z "$ac_dir" && ac_dir=.
5708 + if $as_executable_p "$ac_dir/$ac_word"; then
5709 + ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
5710 + echo "$as_me:3728: found $ac_dir/$ac_word" >&5
5718 +LIBTOOL=$ac_cv_path_LIBTOOL
5720 +if test -n "$LIBTOOL"; then
5721 + echo "$as_me:3739: result: $LIBTOOL" >&5
5722 +echo "${ECHO_T}$LIBTOOL" >&6
5724 + echo "$as_me:3742: result: no" >&5
5725 +echo "${ECHO_T}no" >&6
5729 + if test -z "$LIBTOOL" ; then
5730 + { { echo "$as_me:3748: error: Cannot find libtool" >&5
5731 +echo "$as_me: error: Cannot find libtool" >&2;}
5732 + { (exit 1); exit 1; }; }
5735 + LIB_CREATE='$(LIBTOOL) --mode=link $(CC) -rpath $(DESTDIR)$(libdir) -version-info `cut -f1 $(srcdir)/VERSION` -o'
5736 + LIB_OBJECT='$(OBJECTS:.o=.lo)'
5738 + LIB_CLEAN='$(LIBTOOL) --mode=clean'
5739 + LIB_COMPILE='$(LIBTOOL) --mode=compile'
5740 + LIB_LINK='$(LIBTOOL) --mode=link'
5741 + LIB_INSTALL='$(LIBTOOL) --mode=install'
5742 + LIB_UNINSTALL='$(LIBTOOL) --mode=uninstall'
5745 + # Show the version of libtool
5746 + echo "$as_me:3764: checking version of libtool" >&5
5747 +echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
5749 + # Save the version in a cache variable - this is not entirely a good
5750 + # thing, but the version string from libtool is very ugly, and for
5751 + # bug reports it might be useful to have the original string.
5752 + cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '2,$d' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
5753 + echo "$as_me:3771: result: $cf_cv_libtool_version" >&5
5754 +echo "${ECHO_T}$cf_cv_libtool_version" >&6
5755 + if test -z "$cf_cv_libtool_version" ; then
5756 + { { echo "$as_me:3774: error: This is not libtool" >&5
5757 +echo "$as_me: error: This is not libtool" >&2;}
5758 + { (exit 1); exit 1; }; }
5761 + # special hack to add --tag option for C++ compiler
5762 + case $cf_cv_libtool_version in
5764 + LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5767 + LIBTOOL_CXX="$LIBTOOL"
5775 -echo "$as_me:3521: checking if you want to build shared libraries" >&5
5776 +test -z "$LIBTOOL" && ECHO_LT=
5778 +if test "$with_libtool" != "no" ; then
5780 +cf_list_models="$cf_list_models libtool"
5784 +echo "$as_me:3801: checking if you want to build shared libraries" >&5
5785 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5787 # Check whether --with-shared or --without-shared was given.
5788 @@ -3528,11 +3808,11 @@
5792 -echo "$as_me:3531: result: $with_shared" >&5
5793 +echo "$as_me:3811: result: $with_shared" >&5
5794 echo "${ECHO_T}$with_shared" >&6
5795 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
5797 -echo "$as_me:3535: checking if you want to build static libraries" >&5
5798 +echo "$as_me:3815: checking if you want to build static libraries" >&5
5799 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5801 # Check whether --with-normal or --without-normal was given.
5802 @@ -3542,11 +3822,11 @@
5806 -echo "$as_me:3545: result: $with_normal" >&5
5807 +echo "$as_me:3825: result: $with_normal" >&5
5808 echo "${ECHO_T}$with_normal" >&6
5809 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
5811 -echo "$as_me:3549: checking if you want to build debug libraries" >&5
5812 +echo "$as_me:3829: checking if you want to build debug libraries" >&5
5813 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5815 # Check whether --with-debug or --without-debug was given.
5816 @@ -3556,11 +3836,11 @@
5820 -echo "$as_me:3559: result: $with_debug" >&5
5821 +echo "$as_me:3839: result: $with_debug" >&5
5822 echo "${ECHO_T}$with_debug" >&6
5823 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
5825 -echo "$as_me:3563: checking if you want to build profiling libraries" >&5
5826 +echo "$as_me:3843: checking if you want to build profiling libraries" >&5
5827 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5829 # Check whether --with-profile or --without-profile was given.
5830 @@ -3570,25 +3850,27 @@
5834 -echo "$as_me:3573: result: $with_profile" >&5
5835 +echo "$as_me:3853: result: $with_profile" >&5
5836 echo "${ECHO_T}$with_profile" >&6
5837 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
5841 ###############################################################################
5843 -echo "$as_me:3579: checking for specified models" >&5
5844 +echo "$as_me:3861: checking for specified models" >&5
5845 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5846 test -z "$cf_list_models" && cf_list_models=normal
5847 -test "$with_libtool" = "yes" && cf_list_models=libtool
5848 -echo "$as_me:3583: result: $cf_list_models" >&5
5849 +test "$with_libtool" != "no" && cf_list_models=libtool
5850 +echo "$as_me:3865: result: $cf_list_models" >&5
5851 echo "${ECHO_T}$cf_list_models" >&6
5853 ### Use the first model as the default, and save its suffix for use in building
5854 ### up test-applications.
5855 -echo "$as_me:3588: checking for default model" >&5
5856 +echo "$as_me:3870: checking for default model" >&5
5857 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5858 -DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
5859 -echo "$as_me:3591: result: $DFT_LWR_MODEL" >&5
5860 +DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5861 +echo "$as_me:3873: result: $DFT_LWR_MODEL" >&5
5862 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5864 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5865 @@ -3612,7 +3894,7 @@
5867 ###############################################################################
5869 -echo "$as_me:3615: checking if you want to build a separate terminfo library" >&5
5870 +echo "$as_me:3897: checking if you want to build a separate terminfo library" >&5
5871 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5873 # Check whether --with-termlib or --without-termlib was given.
5874 @@ -3622,11 +3904,12 @@
5878 -echo "$as_me:3625: result: $with_termlib" >&5
5879 +echo "$as_me:3907: result: $with_termlib" >&5
5880 echo "${ECHO_T}$with_termlib" >&6
5882 ### Checks for special libraries, must be done up-front.
5883 -echo "$as_me:3629: checking if you want to link with dbmalloc for testing" >&5
5885 +echo "$as_me:3912: checking if you want to link with dbmalloc for testing" >&5
5886 echo $ECHO_N "checking if you want to link with dbmalloc for testing... $ECHO_C" >&6
5888 # Check whether --with-dbmalloc or --without-dbmalloc was given.
5889 @@ -3636,11 +3919,11 @@
5893 -echo "$as_me:3639: result: $with_dbmalloc" >&5
5894 +echo "$as_me:3922: result: $with_dbmalloc" >&5
5895 echo "${ECHO_T}$with_dbmalloc" >&6
5896 -if test "$with_dbmalloc" = yes ; then
5897 +if test $with_dbmalloc = yes ; then
5899 -echo "$as_me:3643: checking for debug_malloc in -ldbmalloc" >&5
5900 +echo "$as_me:3926: checking for debug_malloc in -ldbmalloc" >&5
5901 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
5902 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 @@ -3648,7 +3931,7 @@
5905 ac_check_lib_save_LIBS=$LIBS
5906 LIBS="-ldbmalloc $LIBS"
5907 cat >conftest.$ac_ext <<_ACEOF
5908 -#line 3651 "configure"
5909 +#line 3934 "configure"
5910 #include "confdefs.h"
5912 /* Override any gcc2 internal prototype to avoid an error. */
5913 @@ -3667,16 +3950,16 @@
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 -if { (eval echo "$as_me:3670: \"$ac_link\"") >&5
5918 +if { (eval echo "$as_me:3953: \"$ac_link\"") >&5
5919 (eval $ac_link) 2>&5
5921 - echo "$as_me:3673: \$? = $ac_status" >&5
5922 + echo "$as_me:3956: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 - { (eval echo "$as_me:3676: \"$ac_try\"") >&5
5926 + { (eval echo "$as_me:3959: \"$ac_try\"") >&5
5929 - echo "$as_me:3679: \$? = $ac_status" >&5
5930 + echo "$as_me:3962: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_lib_dbmalloc_debug_malloc=yes
5934 @@ -3687,7 +3970,7 @@
5935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5936 LIBS=$ac_check_lib_save_LIBS
5938 -echo "$as_me:3690: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
5939 +echo "$as_me:3973: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
5940 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
5941 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
5942 cat >>confdefs.h <<EOF
5943 @@ -3700,7 +3983,7 @@
5947 -echo "$as_me:3703: checking if you want to link with dmalloc for testing" >&5
5948 +echo "$as_me:3986: checking if you want to link with dmalloc for testing" >&5
5949 echo $ECHO_N "checking if you want to link with dmalloc for testing... $ECHO_C" >&6
5951 # Check whether --with-dmalloc or --without-dmalloc was given.
5952 @@ -3710,11 +3993,11 @@
5956 -echo "$as_me:3713: result: $with_dmalloc" >&5
5957 +echo "$as_me:3996: result: $with_dmalloc" >&5
5958 echo "${ECHO_T}$with_dmalloc" >&6
5959 -if test "$with_dmalloc" = yes ; then
5960 +if test $with_dmalloc = yes ; then
5962 -echo "$as_me:3717: checking for dmalloc_debug in -ldmalloc" >&5
5963 +echo "$as_me:4000: checking for dmalloc_debug in -ldmalloc" >&5
5964 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
5965 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 @@ -3722,7 +4005,7 @@
5968 ac_check_lib_save_LIBS=$LIBS
5969 LIBS="-ldmalloc $LIBS"
5970 cat >conftest.$ac_ext <<_ACEOF
5971 -#line 3725 "configure"
5972 +#line 4008 "configure"
5973 #include "confdefs.h"
5975 /* Override any gcc2 internal prototype to avoid an error. */
5976 @@ -3741,16 +4024,16 @@
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 -if { (eval echo "$as_me:3744: \"$ac_link\"") >&5
5981 +if { (eval echo "$as_me:4027: \"$ac_link\"") >&5
5982 (eval $ac_link) 2>&5
5984 - echo "$as_me:3747: \$? = $ac_status" >&5
5985 + echo "$as_me:4030: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -s conftest$ac_exeext'
5988 - { (eval echo "$as_me:3750: \"$ac_try\"") >&5
5989 + { (eval echo "$as_me:4033: \"$ac_try\"") >&5
5992 - echo "$as_me:3753: \$? = $ac_status" >&5
5993 + echo "$as_me:4036: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_lib_dmalloc_dmalloc_debug=yes
5997 @@ -3761,7 +4044,7 @@
5998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5999 LIBS=$ac_check_lib_save_LIBS
6001 -echo "$as_me:3764: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
6002 +echo "$as_me:4047: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
6003 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
6004 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
6005 cat >>confdefs.h <<EOF
6006 @@ -3775,7 +4058,7 @@
6010 -echo "$as_me:3778: checking if you want to link with the gpm mouse library" >&5
6011 +echo "$as_me:4061: checking if you want to link with the gpm mouse library" >&5
6012 echo $ECHO_N "checking if you want to link with the gpm mouse library... $ECHO_C" >&6
6014 # Check whether --with-gpm or --without-gpm was given.
6015 @@ -3785,10 +4068,10 @@
6019 -echo "$as_me:3788: result: $with_gpm" >&5
6020 +echo "$as_me:4071: result: $with_gpm" >&5
6021 echo "${ECHO_T}$with_gpm" >&6
6022 if test "$with_gpm" = yes ; then
6023 - echo "$as_me:3791: checking for Gpm_Open in -lgpm" >&5
6024 + echo "$as_me:4074: checking for Gpm_Open in -lgpm" >&5
6025 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6026 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 @@ -3796,7 +4079,7 @@
6029 ac_check_lib_save_LIBS=$LIBS
6031 cat >conftest.$ac_ext <<_ACEOF
6032 -#line 3799 "configure"
6033 +#line 4082 "configure"
6034 #include "confdefs.h"
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 @@ -3815,16 +4098,16 @@
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 -if { (eval echo "$as_me:3818: \"$ac_link\"") >&5
6042 +if { (eval echo "$as_me:4101: \"$ac_link\"") >&5
6043 (eval $ac_link) 2>&5
6045 - echo "$as_me:3821: \$? = $ac_status" >&5
6046 + echo "$as_me:4104: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -s conftest$ac_exeext'
6049 - { (eval echo "$as_me:3824: \"$ac_try\"") >&5
6050 + { (eval echo "$as_me:4107: \"$ac_try\"") >&5
6053 - echo "$as_me:3827: \$? = $ac_status" >&5
6054 + echo "$as_me:4110: \$? = $ac_status" >&5
6055 (exit $ac_status); }; }; then
6056 ac_cv_lib_gpm_Gpm_Open=yes
6058 @@ -3835,7 +4118,7 @@
6059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6060 LIBS=$ac_check_lib_save_LIBS
6062 -echo "$as_me:3838: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6063 +echo "$as_me:4121: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6064 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6065 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6067 @@ -3848,23 +4131,23 @@
6068 for ac_header in gpm.h
6070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6071 -echo "$as_me:3851: checking for $ac_header" >&5
6072 +echo "$as_me:4134: checking for $ac_header" >&5
6073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 cat >conftest.$ac_ext <<_ACEOF
6078 -#line 3857 "configure"
6079 +#line 4140 "configure"
6080 #include "confdefs.h"
6081 #include <$ac_header>
6083 -if { (eval echo "$as_me:3861: \"$ac_cpp conftest.$ac_ext\"") >&5
6084 +if { (eval echo "$as_me:4144: \"$ac_cpp conftest.$ac_ext\"") >&5
6085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6087 egrep -v '^ *\+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 - echo "$as_me:3867: \$? = $ac_status" >&5
6091 + echo "$as_me:4150: \$? = $ac_status" >&5
6092 (exit $ac_status); } >/dev/null; then
6093 if test -s conftest.err; then
6094 ac_cpp_err=$ac_c_preproc_warn_flag
6095 @@ -3883,7 +4166,7 @@
6097 rm -f conftest.err conftest.$ac_ext
6099 -echo "$as_me:3886: result: `eval echo '${'$as_ac_Header'}'`" >&5
6100 +echo "$as_me:4169: result: `eval echo '${'$as_ac_Header'}'`" >&5
6101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6103 cat >>confdefs.h <<EOF
6104 @@ -3894,12 +4177,76 @@
6108 - { echo "$as_me:3897: WARNING: Cannot link with gpm library - read the FAQ" >&5
6109 + { echo "$as_me:4180: WARNING: Cannot link with gpm library - read the FAQ" >&5
6110 echo "$as_me: WARNING: Cannot link with gpm library - read the FAQ" >&2;}
6115 +# not everyone has "test -c"
6116 +if test -c /dev/sysmouse 2>/dev/null ; then
6117 +echo "$as_me:4188: checking if you want to use sysmouse" >&5
6118 +echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
6120 +# Check whether --with-sysmouse or --without-sysmouse was given.
6121 +if test "${with_sysmouse+set}" = set; then
6122 + withval="$with_sysmouse"
6123 + cf_with_sysmouse=$withval
6125 + cf_with_sysmouse=maybe
6127 + if test "$cf_with_sysmouse" != no ; then
6128 + cat >conftest.$ac_ext <<_ACEOF
6129 +#line 4200 "configure"
6130 +#include "confdefs.h"
6132 +#include <osreldate.h>
6133 +#if (__FreeBSD_version >= 400017)
6134 +#include <sys/consio.h>
6135 +#include <sys/fbio.h>
6137 +#include <machine/console.h>
6144 + struct mouse_info the_mouse;
6145 + ioctl(0, CONS_MOUSECTL, &the_mouse);
6151 +rm -f conftest.$ac_objext
6152 +if { (eval echo "$as_me:4223: \"$ac_compile\"") >&5
6153 + (eval $ac_compile) 2>&5
6155 + echo "$as_me:4226: \$? = $ac_status" >&5
6156 + (exit $ac_status); } &&
6157 + { ac_try='test -s conftest.$ac_objext'
6158 + { (eval echo "$as_me:4229: \"$ac_try\"") >&5
6159 + (eval $ac_try) 2>&5
6161 + echo "$as_me:4232: \$? = $ac_status" >&5
6162 + (exit $ac_status); }; }; then
6163 + cf_with_sysmouse=yes
6165 + echo "$as_me: failed program was:" >&5
6166 +cat conftest.$ac_ext >&5
6167 +cf_with_sysmouse=no
6169 +rm -f conftest.$ac_objext conftest.$ac_ext
6171 +echo "$as_me:4242: result: $cf_with_sysmouse" >&5
6172 +echo "${ECHO_T}$cf_with_sysmouse" >&6
6173 +test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
6174 +#define USE_SYSMOUSE 1
6179 if test X"$CC_G_OPT" = X"" ; then
6181 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
6182 @@ -3910,7 +4257,7 @@
6183 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
6186 -echo "$as_me:3913: checking for default loader flags" >&5
6187 +echo "$as_me:4260: checking for default loader flags" >&5
6188 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
6189 case $DFT_LWR_MODEL in
6190 libtool) LD_MODEL='' ;;
6191 @@ -3919,10 +4266,10 @@
6192 profile) LD_MODEL='-pg';;
6193 shared) LD_MODEL='' ;;
6195 -echo "$as_me:3922: result: $LD_MODEL" >&5
6196 +echo "$as_me:4269: result: $LD_MODEL" >&5
6197 echo "${ECHO_T}$LD_MODEL" >&6
6199 -echo "$as_me:3925: checking if rpath option should be used" >&5
6200 +echo "$as_me:4272: checking if rpath option should be used" >&5
6201 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
6203 # Check whether --enable-rpath or --disable-rpath was given.
6204 @@ -3932,7 +4279,7 @@
6208 -echo "$as_me:3935: result: $cf_cv_ld_rpath" >&5
6209 +echo "$as_me:4282: result: $cf_cv_ld_rpath" >&5
6210 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
6213 @@ -3942,7 +4289,7 @@
6215 cf_cv_do_symlinks=no
6217 - echo "$as_me:3945: checking if release/abi version should be used for shared libs" >&5
6218 + echo "$as_me:4292: checking if release/abi version should be used for shared libs" >&5
6219 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6221 # Check whether --with-shlib-version or --without-shlib-version was given.
6222 @@ -3957,7 +4304,7 @@
6223 cf_cv_shlib_version=$withval
6226 - { { echo "$as_me:3960: error: option value must be one of: rel, abi, auto or no" >&5
6227 + { { echo "$as_me:4307: error: option value must be one of: rel, abi, auto or no" >&5
6228 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
6229 { (exit 1); exit 1; }; }
6231 @@ -3966,7 +4313,7 @@
6233 cf_cv_shlib_version=auto
6235 - echo "$as_me:3969: result: $cf_cv_shlib_version" >&5
6236 + echo "$as_me:4316: result: $cf_cv_shlib_version" >&5
6237 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6240 @@ -3975,14 +4322,14 @@
6242 if test "$GCC" = yes
6244 - echo "$as_me:3978: checking which $CC option to use" >&5
6245 + echo "$as_me:4325: checking which $CC option to use" >&5
6246 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6247 cf_save_CFLAGS="$CFLAGS"
6248 for CC_SHARED_OPTS in -fPIC -fpic ''
6250 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6251 cat >conftest.$ac_ext <<_ACEOF
6252 -#line 3985 "configure"
6253 +#line 4332 "configure"
6254 #include "confdefs.h"
6257 @@ -3994,16 +4341,16 @@
6260 rm -f conftest.$ac_objext
6261 -if { (eval echo "$as_me:3997: \"$ac_compile\"") >&5
6262 +if { (eval echo "$as_me:4344: \"$ac_compile\"") >&5
6263 (eval $ac_compile) 2>&5
6265 - echo "$as_me:4000: \$? = $ac_status" >&5
6266 + echo "$as_me:4347: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -s conftest.$ac_objext'
6269 - { (eval echo "$as_me:4003: \"$ac_try\"") >&5
6270 + { (eval echo "$as_me:4350: \"$ac_try\"") >&5
6273 - echo "$as_me:4006: \$? = $ac_status" >&5
6274 + echo "$as_me:4353: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6278 @@ -4012,7 +4359,7 @@
6280 rm -f conftest.$ac_objext conftest.$ac_ext
6282 - echo "$as_me:4015: result: $CC_SHARED_OPTS" >&5
6283 + echo "$as_me:4362: result: $CC_SHARED_OPTS" >&5
6284 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6285 CFLAGS="$cf_save_CFLAGS"
6287 @@ -4061,7 +4408,7 @@
6288 MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $@` -o $@'
6289 cf_cv_rm_so_locs=yes
6292 + linux*|gnu*|k*bsd*-gnu)
6293 if test "$DFT_LWR_MODEL" = "shared" ; then
6294 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
6295 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6296 @@ -4122,7 +4469,7 @@
6298 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
6299 # tested with osr5.0.5
6300 - if test "$ac_cv_c_compiler_gnu" != yes; then
6301 + if test "$GCC" != yes; then
6302 CC_SHARED_OPTS='-belf -KPIC'
6304 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
6305 @@ -4136,7 +4483,7 @@
6308 # tested with SunOS 4.1.1 and gcc 2.7.0
6309 - if test "$ac_cv_c_compiler_gnu" != yes; then
6310 + if test "$GCC" != yes; then
6311 CC_SHARED_OPTS='-KPIC'
6313 MK_SHARED_LIB='$(LD) -assert pure-text -o $@'
6314 @@ -4144,7 +4491,7 @@
6317 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6318 - if test "$ac_cv_c_compiler_gnu" != yes; then
6319 + if test "$GCC" != yes; then
6320 CC_SHARED_OPTS='-KPIC'
6322 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
6323 @@ -4160,7 +4507,7 @@
6326 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6327 - if test "$ac_cv_c_compiler_gnu" != yes; then
6328 + if test "$GCC" != yes; then
6329 CC_SHARED_OPTS='-KPIC'
6331 MK_SHARED_LIB='$(LD) -d y -G -o $@'
6332 @@ -4179,7 +4526,7 @@
6333 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6336 - { echo "$as_me:4182: WARNING: ignored --with-shlib-version" >&5
6337 + { echo "$as_me:4529: WARNING: ignored --with-shlib-version" >&5
6338 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6341 @@ -4187,12 +4534,12 @@
6344 if test -n "$cf_ld_rpath_opt" ; then
6345 - echo "$as_me:4190: checking if we need a space after rpath option" >&5
6346 + echo "$as_me:4537: checking if we need a space after rpath option" >&5
6347 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
6348 cf_save_LIBS="$LIBS"
6349 LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
6350 cat >conftest.$ac_ext <<_ACEOF
6351 -#line 4195 "configure"
6352 +#line 4542 "configure"
6353 #include "confdefs.h"
6356 @@ -4204,16 +4551,16 @@
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 -if { (eval echo "$as_me:4207: \"$ac_link\"") >&5
6361 +if { (eval echo "$as_me:4554: \"$ac_link\"") >&5
6362 (eval $ac_link) 2>&5
6364 - echo "$as_me:4210: \$? = $ac_status" >&5
6365 + echo "$as_me:4557: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -s conftest$ac_exeext'
6368 - { (eval echo "$as_me:4213: \"$ac_try\"") >&5
6369 + { (eval echo "$as_me:4560: \"$ac_try\"") >&5
6372 - echo "$as_me:4216: \$? = $ac_status" >&5
6373 + echo "$as_me:4563: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6377 @@ -4223,7 +4570,7 @@
6379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6380 LIBS="$cf_save_LIBS"
6381 - echo "$as_me:4226: result: $cf_rpath_space" >&5
6382 + echo "$as_me:4573: result: $cf_rpath_space" >&5
6383 echo "${ECHO_T}$cf_rpath_space" >&6
6384 test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
6385 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\$(libdir)"
6386 @@ -4232,7 +4579,7 @@
6387 if test "$CC_SHARED_OPTS" = "unknown"; then
6388 for model in $cf_list_models; do
6389 if test "$model" = "shared"; then
6390 - { { echo "$as_me:4235: error: Shared libraries are not supported in this version" >&5
6391 + { { echo "$as_me:4582: error: Shared libraries are not supported in this version" >&5
6392 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6393 { (exit 1); exit 1; }; }
6395 @@ -4242,7 +4589,7 @@
6396 ###############################################################################
6398 ### use option --disable-overwrite to leave out the link to -lcurses
6399 -echo "$as_me:4245: checking if you wish to install ncurses overwriting curses" >&5
6400 +echo "$as_me:4592: checking if you wish to install ncurses overwriting curses" >&5
6401 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6403 # Check whether --enable-overwrite or --disable-overwrite was given.
6404 @@ -4252,10 +4599,10 @@
6406 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6408 -echo "$as_me:4255: result: $with_overwrite" >&5
6409 +echo "$as_me:4602: result: $with_overwrite" >&5
6410 echo "${ECHO_T}$with_overwrite" >&6
6412 -echo "$as_me:4258: checking if external terminfo-database is used" >&5
6413 +echo "$as_me:4605: checking if external terminfo-database is used" >&5
6414 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6416 # Check whether --enable-database or --disable-database was given.
6417 @@ -4265,7 +4612,7 @@
6421 -echo "$as_me:4268: result: $use_database" >&5
6422 +echo "$as_me:4615: result: $use_database" >&5
6423 echo "${ECHO_T}$use_database" >&6
6425 case $host_os in #(vi
6426 @@ -4287,7 +4634,7 @@
6427 #define USE_DATABASE 1
6430 - echo "$as_me:4290: checking which terminfo source-file will be installed" >&5
6431 + echo "$as_me:4637: checking which terminfo source-file will be installed" >&5
6432 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6434 # Check whether --enable-database or --disable-database was given.
6435 @@ -4295,11 +4642,11 @@
6436 enableval="$enable_database"
6437 TERMINFO_SRC=$withval
6439 - echo "$as_me:4298: result: $TERMINFO_SRC" >&5
6440 + echo "$as_me:4645: result: $TERMINFO_SRC" >&5
6441 echo "${ECHO_T}$TERMINFO_SRC" >&6
6444 -echo "$as_me:4302: checking for list of fallback descriptions" >&5
6445 +echo "$as_me:4649: checking for list of fallback descriptions" >&5
6446 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6448 # Check whether --with-fallbacks or --without-fallbacks was given.
6449 @@ -4309,9 +4656,9 @@
6453 -echo "$as_me:4312: result: $with_fallback" >&5
6454 +echo "$as_me:4659: result: $with_fallback" >&5
6455 echo "${ECHO_T}$with_fallback" >&6
6456 -FALLBACK_LIST=`echo $with_fallback|sed -e 's/,/ /g'`
6457 +FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6460 if test "$use_database" = no ; then
6461 @@ -4319,7 +4666,7 @@
6465 -echo "$as_me:4322: checking for list of terminfo directories" >&5
6466 +echo "$as_me:4669: checking for list of terminfo directories" >&5
6467 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6469 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6470 @@ -4353,7 +4700,7 @@
6471 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$ac_default_prefix%`
6474 - { { echo "$as_me:4356: error: expected a pathname, not \"$cf_src_path\"" >&5
6475 + { { echo "$as_me:4703: error: expected a pathname, not \"$cf_src_path\"" >&5
6476 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6477 { (exit 1); exit 1; }; }
6479 @@ -4366,13 +4713,13 @@
6481 eval 'TERMINFO_DIRS="$cf_dst_path"'
6483 -echo "$as_me:4369: result: $TERMINFO_DIRS" >&5
6484 +echo "$as_me:4716: result: $TERMINFO_DIRS" >&5
6485 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6486 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6487 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6490 -echo "$as_me:4375: checking for default terminfo directory" >&5
6491 +echo "$as_me:4722: checking for default terminfo directory" >&5
6492 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6494 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6495 @@ -4401,7 +4748,7 @@
6496 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
6499 - { { echo "$as_me:4404: error: expected a pathname, not \"$withval\"" >&5
6500 + { { echo "$as_me:4751: error: expected a pathname, not \"$withval\"" >&5
6501 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6502 { (exit 1); exit 1; }; }
6504 @@ -4409,7 +4756,7 @@
6506 eval TERMINFO="$withval"
6508 -echo "$as_me:4412: result: $TERMINFO" >&5
6509 +echo "$as_me:4759: result: $TERMINFO" >&5
6510 echo "${ECHO_T}$TERMINFO" >&6
6511 cat >>confdefs.h <<EOF
6512 #define TERMINFO "$TERMINFO"
6513 @@ -4419,7 +4766,7 @@
6515 ### use option --disable-big-core to make tic run on small machines
6516 ### We need 4Mb, check if we can allocate 50% more than that.
6517 -echo "$as_me:4422: checking if big-core option selected" >&5
6518 +echo "$as_me:4769: checking if big-core option selected" >&5
6519 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6521 # Check whether --enable-big-core or --disable-big-core was given.
6522 @@ -4431,7 +4778,7 @@
6525 cat >conftest.$ac_ext <<_ACEOF
6526 -#line 4434 "configure"
6527 +#line 4781 "configure"
6528 #include "confdefs.h"
6531 @@ -4445,15 +4792,15 @@
6534 rm -f conftest$ac_exeext
6535 -if { (eval echo "$as_me:4448: \"$ac_link\"") >&5
6536 +if { (eval echo "$as_me:4795: \"$ac_link\"") >&5
6537 (eval $ac_link) 2>&5
6539 - echo "$as_me:4451: \$? = $ac_status" >&5
6540 + echo "$as_me:4798: \$? = $ac_status" >&5
6541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6542 - { (eval echo "$as_me:4453: \"$ac_try\"") >&5
6543 + { (eval echo "$as_me:4800: \"$ac_try\"") >&5
6546 - echo "$as_me:4456: \$? = $ac_status" >&5
6547 + echo "$as_me:4803: \$? = $ac_status" >&5
6548 (exit $ac_status); }; }; then
6551 @@ -4465,14 +4812,14 @@
6552 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6555 -echo "$as_me:4468: result: $with_big_core" >&5
6556 +echo "$as_me:4815: result: $with_big_core" >&5
6557 echo "${ECHO_T}$with_big_core" >&6
6558 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6559 #define HAVE_BIG_CORE 1
6562 ### use option --enable-termcap to compile in the termcap fallback support
6563 -echo "$as_me:4475: checking if you want termcap-fallback support" >&5
6564 +echo "$as_me:4822: checking if you want termcap-fallback support" >&5
6565 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6567 # Check whether --enable-termcap or --disable-termcap was given.
6568 @@ -4482,13 +4829,13 @@
6572 -echo "$as_me:4485: result: $with_termcap" >&5
6573 +echo "$as_me:4832: result: $with_termcap" >&5
6574 echo "${ECHO_T}$with_termcap" >&6
6576 if test "$with_termcap" != "yes" ; then
6577 if test "$use_database" = no ; then
6578 - if test -z $with_fallback ; then
6579 - { { echo "$as_me:4491: error: You have disabled the database w/o specifying fallbacks" >&5
6580 + if test -z "$with_fallback" ; then
6581 + { { echo "$as_me:4838: error: You have disabled the database w/o specifying fallbacks" >&5
6582 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6583 { (exit 1); exit 1; }; }
6585 @@ -4503,7 +4850,7 @@
6586 #define USE_TERMCAP 1
6589 -echo "$as_me:4506: checking for list of termcap files" >&5
6590 +echo "$as_me:4853: checking for list of termcap files" >&5
6591 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6593 # Check whether --with-termpath or --without-termpath was given.
6594 @@ -4537,7 +4884,7 @@
6595 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$ac_default_prefix%`
6598 - { { echo "$as_me:4540: error: expected a pathname, not \"$cf_src_path\"" >&5
6599 + { { echo "$as_me:4887: error: expected a pathname, not \"$cf_src_path\"" >&5
6600 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6601 { (exit 1); exit 1; }; }
6603 @@ -4550,14 +4897,14 @@
6605 eval 'TERMPATH="$cf_dst_path"'
6607 -echo "$as_me:4553: result: $TERMPATH" >&5
6608 +echo "$as_me:4900: result: $TERMPATH" >&5
6609 echo "${ECHO_T}$TERMPATH" >&6
6610 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6611 #define TERMPATH "$TERMPATH"
6614 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6615 -echo "$as_me:4560: checking if fast termcap-loader is needed" >&5
6616 +echo "$as_me:4907: checking if fast termcap-loader is needed" >&5
6617 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6619 # Check whether --enable-getcap or --disable-getcap was given.
6620 @@ -4567,13 +4914,13 @@
6624 -echo "$as_me:4570: result: $with_getcap" >&5
6625 +echo "$as_me:4917: result: $with_getcap" >&5
6626 echo "${ECHO_T}$with_getcap" >&6
6627 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6628 #define USE_GETCAP 1
6631 -echo "$as_me:4576: checking if translated termcaps will be cached in ~/.terminfo" >&5
6632 +echo "$as_me:4923: checking if translated termcaps will be cached in ~/.terminfo" >&5
6633 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6635 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6636 @@ -4583,7 +4930,7 @@
6638 with_getcap_cache=no
6640 -echo "$as_me:4586: result: $with_getcap_cache" >&5
6641 +echo "$as_me:4933: result: $with_getcap_cache" >&5
6642 echo "${ECHO_T}$with_getcap_cache" >&6
6643 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6644 #define USE_GETCAP_CACHE 1
6645 @@ -4599,13 +4946,13 @@
6648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6649 -echo "$as_me:4602: checking for $ac_func" >&5
6650 +echo "$as_me:4949: checking for $ac_func" >&5
6651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6652 if eval "test \"\${$as_ac_var+set}\" = set"; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6656 -#line 4608 "configure"
6657 +#line 4955 "configure"
6658 #include "confdefs.h"
6659 /* System header to define __stub macros and hopefully few prototypes,
6660 which can conflict with char $ac_func (); below. */
6661 @@ -4636,16 +4983,16 @@
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 -if { (eval echo "$as_me:4639: \"$ac_link\"") >&5
6666 +if { (eval echo "$as_me:4986: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>&5
6669 - echo "$as_me:4642: \$? = $ac_status" >&5
6670 + echo "$as_me:4989: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -s conftest$ac_exeext'
6673 - { (eval echo "$as_me:4645: \"$ac_try\"") >&5
6674 + { (eval echo "$as_me:4992: \"$ac_try\"") >&5
6677 - echo "$as_me:4648: \$? = $ac_status" >&5
6678 + echo "$as_me:4995: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6680 eval "$as_ac_var=yes"
6682 @@ -4655,7 +5002,7 @@
6684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6686 -echo "$as_me:4658: result: `eval echo '${'$as_ac_var'}'`" >&5
6687 +echo "$as_me:5005: result: `eval echo '${'$as_ac_var'}'`" >&5
6688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6689 if test `eval echo '${'$as_ac_var'}'` = yes; then
6690 cat >>confdefs.h <<EOF
6691 @@ -4665,20 +5012,20 @@
6695 -if test "$ac_cv_prog_cc_cross" = yes ; then
6696 +if test "$cross_compiling" = yes ; then
6702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6703 -echo "$as_me:4675: checking for $ac_func" >&5
6704 +echo "$as_me:5022: checking for $ac_func" >&5
6705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706 if eval "test \"\${$as_ac_var+set}\" = set"; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 cat >conftest.$ac_ext <<_ACEOF
6710 -#line 4681 "configure"
6711 +#line 5028 "configure"
6712 #include "confdefs.h"
6713 /* System header to define __stub macros and hopefully few prototypes,
6714 which can conflict with char $ac_func (); below. */
6715 @@ -4709,16 +5056,16 @@
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 -if { (eval echo "$as_me:4712: \"$ac_link\"") >&5
6720 +if { (eval echo "$as_me:5059: \"$ac_link\"") >&5
6721 (eval $ac_link) 2>&5
6723 - echo "$as_me:4715: \$? = $ac_status" >&5
6724 + echo "$as_me:5062: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try='test -s conftest$ac_exeext'
6727 - { (eval echo "$as_me:4718: \"$ac_try\"") >&5
6728 + { (eval echo "$as_me:5065: \"$ac_try\"") >&5
6731 - echo "$as_me:4721: \$? = $ac_status" >&5
6732 + echo "$as_me:5068: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
6734 eval "$as_ac_var=yes"
6736 @@ -4728,7 +5075,7 @@
6738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6740 -echo "$as_me:4731: result: `eval echo '${'$as_ac_var'}'`" >&5
6741 +echo "$as_me:5078: result: `eval echo '${'$as_ac_var'}'`" >&5
6742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6743 if test `eval echo '${'$as_ac_var'}'` = yes; then
6744 cat >>confdefs.h <<EOF
6745 @@ -4739,7 +5086,7 @@
6749 - echo "$as_me:4742: checking if link/symlink functions work" >&5
6750 + echo "$as_me:5089: checking if link/symlink functions work" >&5
6751 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6752 if test "${cf_cv_link_funcs+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 @@ -4752,7 +5099,7 @@
6755 eval 'ac_cv_func_'$cf_func'=error'
6757 cat >conftest.$ac_ext <<_ACEOF
6758 -#line 4755 "configure"
6759 +#line 5102 "configure"
6760 #include "confdefs.h"
6762 #include <sys/types.h>
6763 @@ -4782,15 +5129,15 @@
6766 rm -f conftest$ac_exeext
6767 -if { (eval echo "$as_me:4785: \"$ac_link\"") >&5
6768 +if { (eval echo "$as_me:5132: \"$ac_link\"") >&5
6769 (eval $ac_link) 2>&5
6771 - echo "$as_me:4788: \$? = $ac_status" >&5
6772 + echo "$as_me:5135: \$? = $ac_status" >&5
6773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6774 - { (eval echo "$as_me:4790: \"$ac_try\"") >&5
6775 + { (eval echo "$as_me:5137: \"$ac_try\"") >&5
6778 - echo "$as_me:4793: \$? = $ac_status" >&5
6779 + echo "$as_me:5140: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6782 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6783 @@ -4808,7 +5155,7 @@
6784 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6787 -echo "$as_me:4811: result: $cf_cv_link_funcs" >&5
6788 +echo "$as_me:5158: result: $cf_cv_link_funcs" >&5
6789 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6790 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6792 @@ -4824,27 +5171,27 @@
6795 if test "$ac_cv_func_link" != yes ; then
6796 - echo "$as_me:4827: checking if tic should use symbolic links" >&5
6797 + echo "$as_me:5174: checking if tic should use symbolic links" >&5
6798 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6799 if test "$ac_cv_func_symlink" = yes ; then
6804 - echo "$as_me:4834: result: $with_symlinks" >&5
6805 + echo "$as_me:5181: result: $with_symlinks" >&5
6806 echo "${ECHO_T}$with_symlinks" >&6
6807 elif test "$ac_cv_func_symlink" != yes ; then
6808 - echo "$as_me:4837: checking if tic should use hard links" >&5
6809 + echo "$as_me:5184: checking if tic should use hard links" >&5
6810 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6811 if test "$ac_cv_func_link" = yes ; then
6816 - echo "$as_me:4844: result: $with_links" >&5
6817 + echo "$as_me:5191: result: $with_links" >&5
6818 echo "${ECHO_T}$with_links" >&6
6820 - echo "$as_me:4847: checking if tic should use symbolic links" >&5
6821 + echo "$as_me:5194: checking if tic should use symbolic links" >&5
6822 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6824 # Check whether --enable-symlinks or --disable-symlinks was given.
6825 @@ -4854,7 +5201,7 @@
6829 - echo "$as_me:4857: result: $with_symlinks" >&5
6830 + echo "$as_me:5204: result: $with_symlinks" >&5
6831 echo "${ECHO_T}$with_symlinks" >&6
6834 @@ -4867,7 +5214,7 @@
6837 ### use option --enable-broken-linker to force on use of broken-linker support
6838 -echo "$as_me:4870: checking if you want broken-linker support code" >&5
6839 +echo "$as_me:5217: checking if you want broken-linker support code" >&5
6840 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6842 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6843 @@ -4877,7 +5224,7 @@
6845 with_broken_linker=$BROKEN_LINKER
6847 -echo "$as_me:4880: result: $with_broken_linker" >&5
6848 +echo "$as_me:5227: result: $with_broken_linker" >&5
6849 echo "${ECHO_T}$with_broken_linker" >&6
6852 @@ -4887,7 +5234,7 @@
6856 -elif test $DFT_LWR_MODEL = shared ; then
6857 +elif test "$DFT_LWR_MODEL" = shared ; then
6858 case $cf_cv_system_name in #(vi
6860 cat >>confdefs.h <<\EOF
6861 @@ -4902,7 +5249,7 @@
6864 ### use option --with-bool to override bool's type
6865 -echo "$as_me:4905: checking for type of bool" >&5
6866 +echo "$as_me:5252: checking for type of bool" >&5
6867 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
6869 # Check whether --with-bool or --without-bool was given.
6870 @@ -4912,11 +5259,11 @@
6874 -echo "$as_me:4915: result: $NCURSES_BOOL" >&5
6875 +echo "$as_me:5262: result: $NCURSES_BOOL" >&5
6876 echo "${ECHO_T}$NCURSES_BOOL" >&6
6878 ### use option --with-ospeed to override ospeed's type
6879 -echo "$as_me:4919: checking for type of ospeed" >&5
6880 +echo "$as_me:5266: checking for type of ospeed" >&5
6881 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
6883 # Check whether --with-ospeed or --without-ospeed was given.
6884 @@ -4926,11 +5273,11 @@
6886 NCURSES_OSPEED=short
6888 -echo "$as_me:4929: result: $NCURSES_OSPEED" >&5
6889 +echo "$as_me:5276: result: $NCURSES_OSPEED" >&5
6890 echo "${ECHO_T}$NCURSES_OSPEED" >&6
6892 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6893 -echo "$as_me:4933: checking if tputs should process BSD-style prefix padding" >&5
6894 +echo "$as_me:5280: checking if tputs should process BSD-style prefix padding" >&5
6895 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6897 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6898 @@ -4940,14 +5287,14 @@
6902 -echo "$as_me:4943: result: $with_bsdpad" >&5
6903 +echo "$as_me:5290: result: $with_bsdpad" >&5
6904 echo "${ECHO_T}$with_bsdpad" >&6
6905 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6909 ### Enable compiling-in rcs id's
6910 -echo "$as_me:4950: checking if RCS identifiers should be compiled-in" >&5
6911 +echo "$as_me:5297: checking if RCS identifiers should be compiled-in" >&5
6912 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
6914 # Check whether --with-rcs-ids or --without-rcs-ids was given.
6915 @@ -4957,7 +5304,7 @@
6919 -echo "$as_me:4960: result: $with_rcs_ids" >&5
6920 +echo "$as_me:5307: result: $with_rcs_ids" >&5
6921 echo "${ECHO_T}$with_rcs_ids" >&6
6922 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
6923 #define USE_RCS_IDS 1
6924 @@ -4965,7 +5312,7 @@
6926 ###############################################################################
6928 -echo "$as_me:4968: checking format of man-pages" >&5
6929 +echo "$as_me:5315: checking format of man-pages" >&5
6930 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
6932 # Check whether --with-manpage-format or --without-manpage-format was given.
6933 @@ -5008,15 +5355,15 @@
6937 - { echo "$as_me:5011: WARNING: Unexpected manpage-format" >&5
6938 + { echo "$as_me:5358: WARNING: Unexpected manpage-format" >&5
6939 echo "$as_me: WARNING: Unexpected manpage-format" >&2;}
6943 -echo "$as_me:5016: result: $MANPAGE_FORMAT" >&5
6944 +echo "$as_me:5363: result: $MANPAGE_FORMAT" >&5
6945 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
6947 -echo "$as_me:5019: checking for manpage renaming" >&5
6948 +echo "$as_me:5366: checking for manpage renaming" >&5
6949 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
6951 # Check whether --with-manpage-renames or --without-manpage-renames was given.
6952 @@ -5044,7 +5391,7 @@
6953 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
6954 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
6955 elif test ! -f $MANPAGE_RENAMES ; then
6956 - { { echo "$as_me:5047: error: not a filename: $MANPAGE_RENAMES" >&5
6957 + { { echo "$as_me:5394: error: not a filename: $MANPAGE_RENAMES" >&5
6958 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
6959 { (exit 1); exit 1; }; }
6961 @@ -5058,10 +5405,10 @@
6965 -echo "$as_me:5061: result: $MANPAGE_RENAMES" >&5
6966 +echo "$as_me:5408: result: $MANPAGE_RENAMES" >&5
6967 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
6969 -echo "$as_me:5064: checking for manpage symlinks" >&5
6970 +echo "$as_me:5411: checking for manpage symlinks" >&5
6971 echo $ECHO_N "checking for manpage symlinks... $ECHO_C" >&6
6973 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
6974 @@ -5072,10 +5419,10 @@
6975 MANPAGE_SYMLINKS=yes
6978 -echo "$as_me:5075: result: $MANPAGE_SYMLINKS" >&5
6979 +echo "$as_me:5422: result: $MANPAGE_SYMLINKS" >&5
6980 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
6982 -echo "$as_me:5078: checking for manpage tbl" >&5
6983 +echo "$as_me:5425: checking for manpage tbl" >&5
6984 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
6986 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
6987 @@ -5086,7 +5433,7 @@
6991 -echo "$as_me:5089: result: $MANPAGE_TBL" >&5
6992 +echo "$as_me:5436: result: $MANPAGE_TBL" >&5
6993 echo "${ECHO_T}$MANPAGE_TBL" >&6
6995 if test "$prefix" = "NONE" ; then
6996 @@ -5257,7 +5604,7 @@
6999 cat >>man/edit_man.sh <<CF_EOF
7000 - suffix=\`basename \$target | sed -e 's/^[^.]*//'\`
7001 + suffix=\`basename \$target | sed -e 's%^[^.]*%%'\`
7002 if test \$verb = installing ; then
7003 echo \$verb \$target
7004 \$INSTALL_DATA \$TMP \$target
7005 @@ -5317,7 +5664,7 @@
7006 ###############################################################################
7008 ### Note that some functions (such as const) are normally disabled anyway.
7009 -echo "$as_me:5320: checking if you want to build with function extensions" >&5
7010 +echo "$as_me:5667: checking if you want to build with function extensions" >&5
7011 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
7013 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
7014 @@ -5327,7 +5674,7 @@
7018 -echo "$as_me:5330: result: $with_ext_funcs" >&5
7019 +echo "$as_me:5677: result: $with_ext_funcs" >&5
7020 echo "${ECHO_T}$with_ext_funcs" >&6
7021 if test "$with_ext_funcs" = yes ; then
7023 @@ -5344,6 +5691,10 @@
7026 cat >>confdefs.h <<\EOF
7027 +#define HAVE_RESIZE_TERM 1
7030 + cat >>confdefs.h <<\EOF
7031 #define HAVE_USE_DEFAULT_COLORS 1
7034 @@ -5360,7 +5711,7 @@
7037 ### use option --enable-const to turn on use of const beyond that in XSI.
7038 -echo "$as_me:5363: checking for extended use of const keyword" >&5
7039 +echo "$as_me:5714: checking for extended use of const keyword" >&5
7040 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
7042 # Check whether --enable-const or --disable-const was given.
7043 @@ -5370,14 +5721,14 @@
7047 -echo "$as_me:5373: result: $with_ext_const" >&5
7048 +echo "$as_me:5724: result: $with_ext_const" >&5
7049 echo "${ECHO_T}$with_ext_const" >&6
7050 NCURSES_CONST='/*nothing*/'
7051 if test "$with_ext_const" = yes ; then
7055 -echo "$as_me:5380: checking if you want \$NCURSES_NO_PADDING code" >&5
7056 +echo "$as_me:5731: checking if you want \$NCURSES_NO_PADDING code" >&5
7057 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
7059 # Check whether --enable-no-padding or --disable-no-padding was given.
7060 @@ -5387,14 +5738,14 @@
7062 with_no_padding=$with_ext_funcs
7064 -echo "$as_me:5390: result: $with_no_padding" >&5
7065 +echo "$as_me:5741: result: $with_no_padding" >&5
7066 echo "${ECHO_T}$with_no_padding" >&6
7067 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
7068 #define NCURSES_NO_PADDING 1
7071 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
7072 -echo "$as_me:5397: checking if you want SIGWINCH handler" >&5
7073 +echo "$as_me:5748: checking if you want SIGWINCH handler" >&5
7074 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
7076 # Check whether --enable-sigwinch or --disable-sigwinch was given.
7077 @@ -5404,14 +5755,14 @@
7079 with_sigwinch=$with_ext_funcs
7081 -echo "$as_me:5407: result: $with_sigwinch" >&5
7082 +echo "$as_me:5758: result: $with_sigwinch" >&5
7083 echo "${ECHO_T}$with_sigwinch" >&6
7084 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
7085 #define USE_SIGWINCH 1
7088 ### use option --enable-tcap-names to allow user to define new capabilities
7089 -echo "$as_me:5414: checking if you want user-definable terminal capabilities like termcap" >&5
7090 +echo "$as_me:5765: checking if you want user-definable terminal capabilities like termcap" >&5
7091 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
7093 # Check whether --enable-tcap-names or --disable-tcap-names was given.
7094 @@ -5421,7 +5772,7 @@
7096 with_tcap_names=$with_ext_funcs
7098 -echo "$as_me:5424: result: $with_tcap_names" >&5
7099 +echo "$as_me:5775: result: $with_tcap_names" >&5
7100 echo "${ECHO_T}$with_tcap_names" >&6
7102 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
7103 @@ -5429,7 +5780,7 @@
7104 ###############################################################################
7105 # These options are relatively safe to experiment with.
7107 -echo "$as_me:5432: checking if you want all development code" >&5
7108 +echo "$as_me:5783: checking if you want all development code" >&5
7109 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
7111 # Check whether --with-develop or --without-develop was given.
7112 @@ -5439,11 +5790,11 @@
7116 -echo "$as_me:5442: result: $with_develop" >&5
7117 +echo "$as_me:5793: result: $with_develop" >&5
7118 echo "${ECHO_T}$with_develop" >&6
7120 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
7121 -echo "$as_me:5446: checking if you want hard-tabs code" >&5
7122 +echo "$as_me:5797: checking if you want hard-tabs code" >&5
7123 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
7125 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
7126 @@ -5453,13 +5804,13 @@
7128 with_hardtabs=$with_develop
7130 -echo "$as_me:5456: result: $with_hardtabs" >&5
7131 +echo "$as_me:5807: result: $with_hardtabs" >&5
7132 echo "${ECHO_T}$with_hardtabs" >&6
7133 test "$with_hardtabs" = yes && cat >>confdefs.h <<\EOF
7134 #define USE_HARD_TABS 1
7137 -echo "$as_me:5462: checking if you want to use restrict environment when running as root" >&5
7138 +echo "$as_me:5813: checking if you want to use restrict environment when running as root" >&5
7139 echo $ECHO_N "checking if you want to use restrict environment when running as root... $ECHO_C" >&6
7141 # Check whether --enable-root-environ or --disable-root-environ was given.
7142 @@ -5469,14 +5820,14 @@
7144 with_root_environ=yes
7146 -echo "$as_me:5472: result: $with_root_environ" >&5
7147 +echo "$as_me:5823: result: $with_root_environ" >&5
7148 echo "${ECHO_T}$with_root_environ" >&6
7149 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
7150 #define USE_ROOT_ENVIRON 1
7153 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
7154 -echo "$as_me:5479: checking if you want limited support for xmc" >&5
7155 +echo "$as_me:5830: checking if you want limited support for xmc" >&5
7156 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
7158 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
7159 @@ -5486,7 +5837,7 @@
7161 with_xmc_glitch=$with_develop
7163 -echo "$as_me:5489: result: $with_xmc_glitch" >&5
7164 +echo "$as_me:5840: result: $with_xmc_glitch" >&5
7165 echo "${ECHO_T}$with_xmc_glitch" >&6
7166 test "$with_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
7167 #define USE_XMC_SUPPORT 1
7168 @@ -5495,7 +5846,7 @@
7169 ###############################################################################
7170 # These are just experimental, probably should not be in a package:
7172 -echo "$as_me:5498: checking if you do not want to assume colors are white-on-black" >&5
7173 +echo "$as_me:5849: checking if you do not want to assume colors are white-on-black" >&5
7174 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
7176 # Check whether --enable-assumed-color or --disable-assumed-color was given.
7177 @@ -5505,14 +5856,14 @@
7179 with_assumed_color=yes
7181 -echo "$as_me:5508: result: $with_assumed_color" >&5
7182 +echo "$as_me:5859: result: $with_assumed_color" >&5
7183 echo "${ECHO_T}$with_assumed_color" >&6
7184 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
7185 #define USE_ASSUMED_COLOR 1
7188 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
7189 -echo "$as_me:5515: checking if you want hashmap scrolling-optimization code" >&5
7190 +echo "$as_me:5866: checking if you want hashmap scrolling-optimization code" >&5
7191 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
7193 # Check whether --enable-hashmap or --disable-hashmap was given.
7194 @@ -5522,14 +5873,14 @@
7198 -echo "$as_me:5525: result: $with_hashmap" >&5
7199 +echo "$as_me:5876: result: $with_hashmap" >&5
7200 echo "${ECHO_T}$with_hashmap" >&6
7201 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
7202 #define USE_HASHMAP 1
7205 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
7206 -echo "$as_me:5532: checking if you want colorfgbg code" >&5
7207 +echo "$as_me:5883: checking if you want colorfgbg code" >&5
7208 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
7210 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
7211 @@ -5539,13 +5890,13 @@
7215 -echo "$as_me:5542: result: $with_colorfgbg" >&5
7216 +echo "$as_me:5893: result: $with_colorfgbg" >&5
7217 echo "${ECHO_T}$with_colorfgbg" >&6
7218 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
7219 #define USE_COLORFGBG 1
7222 -echo "$as_me:5548: checking if you want experimental safe-sprintf code" >&5
7223 +echo "$as_me:5899: checking if you want experimental safe-sprintf code" >&5
7224 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
7226 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
7227 @@ -5555,7 +5906,7 @@
7229 with_safe_sprintf=no
7231 -echo "$as_me:5558: result: $with_safe_sprintf" >&5
7232 +echo "$as_me:5909: result: $with_safe_sprintf" >&5
7233 echo "${ECHO_T}$with_safe_sprintf" >&6
7234 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
7235 #define USE_SAFE_SPRINTF 1
7236 @@ -5564,7 +5915,7 @@
7237 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
7238 # when hashmap is used scroll hints are useless
7239 if test "$with_hashmap" = no ; then
7240 -echo "$as_me:5567: checking if you want to experiment without scrolling-hints code" >&5
7241 +echo "$as_me:5918: checking if you want to experiment without scrolling-hints code" >&5
7242 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
7244 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
7245 @@ -5574,7 +5925,7 @@
7247 with_scroll_hints=yes
7249 -echo "$as_me:5577: result: $with_scroll_hints" >&5
7250 +echo "$as_me:5928: result: $with_scroll_hints" >&5
7251 echo "${ECHO_T}$with_scroll_hints" >&6
7252 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
7253 #define USE_SCROLL_HINTS 1
7254 @@ -5585,8 +5936,102 @@
7255 ### use option --enable-widec to turn on use of wide-character support
7261 -echo "$as_me:5589: checking if you want experimental wide-character code" >&5
7265 +# Check to define _XOPEN_SOURCE "automatically"
7267 +echo "$as_me:5947: checking if we must define _GNU_SOURCE" >&5
7268 +echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7269 +if test "${cf_cv_gnu_source+set}" = set; then
7270 + echo $ECHO_N "(cached) $ECHO_C" >&6
7273 +cat >conftest.$ac_ext <<_ACEOF
7274 +#line 5954 "configure"
7275 +#include "confdefs.h"
7276 +#include <sys/types.h>
7281 +#ifndef _XOPEN_SOURCE
7288 +rm -f conftest.$ac_objext
7289 +if { (eval echo "$as_me:5969: \"$ac_compile\"") >&5
7290 + (eval $ac_compile) 2>&5
7292 + echo "$as_me:5972: \$? = $ac_status" >&5
7293 + (exit $ac_status); } &&
7294 + { ac_try='test -s conftest.$ac_objext'
7295 + { (eval echo "$as_me:5975: \"$ac_try\"") >&5
7296 + (eval $ac_try) 2>&5
7298 + echo "$as_me:5978: \$? = $ac_status" >&5
7299 + (exit $ac_status); }; }; then
7300 + cf_cv_gnu_source=no
7302 + echo "$as_me: failed program was:" >&5
7303 +cat conftest.$ac_ext >&5
7304 +cf_save="$CPPFLAGS"
7305 + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7306 + cat >conftest.$ac_ext <<_ACEOF
7307 +#line 5987 "configure"
7308 +#include "confdefs.h"
7309 +#include <sys/types.h>
7314 +#ifdef _XOPEN_SOURCE
7321 +rm -f conftest.$ac_objext
7322 +if { (eval echo "$as_me:6002: \"$ac_compile\"") >&5
7323 + (eval $ac_compile) 2>&5
7325 + echo "$as_me:6005: \$? = $ac_status" >&5
7326 + (exit $ac_status); } &&
7327 + { ac_try='test -s conftest.$ac_objext'
7328 + { (eval echo "$as_me:6008: \"$ac_try\"") >&5
7329 + (eval $ac_try) 2>&5
7331 + echo "$as_me:6011: \$? = $ac_status" >&5
7332 + (exit $ac_status); }; }; then
7333 + cf_cv_gnu_source=no
7335 + echo "$as_me: failed program was:" >&5
7336 +cat conftest.$ac_ext >&5
7337 +cf_cv_gnu_source=yes
7339 +rm -f conftest.$ac_objext conftest.$ac_ext
7340 + CPPFLAGS="$cf_save"
7343 +rm -f conftest.$ac_objext conftest.$ac_ext
7346 +echo "$as_me:6026: result: $cf_cv_gnu_source" >&5
7347 +echo "${ECHO_T}$cf_cv_gnu_source" >&6
7348 +test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7350 +# use these variables to work around a defect in gcc's fixincludes.
7351 +NCURSES_OK_WCHAR_T=
7354 +echo "$as_me:6034: checking if you want experimental wide-character code" >&5
7355 echo $ECHO_N "checking if you want experimental wide-character code... $ECHO_C" >&6
7357 # Check whether --enable-widec or --disable-widec was given.
7358 @@ -5596,7 +6041,7 @@
7362 -echo "$as_me:5599: result: $with_widec" >&5
7363 +echo "$as_me:6044: result: $with_widec" >&5
7364 echo "${ECHO_T}$with_widec" >&6
7365 if test "$with_widec" = yes ; then
7366 LIB_SUFFIX="w${LIB_SUFFIX}"
7367 @@ -5604,19 +6049,198 @@
7368 #define USE_WIDEC_SUPPORT 1
7371 +echo "$as_me:6052: checking if we must define _XOPEN_SOURCE" >&5
7372 +echo $ECHO_N "checking if we must define _XOPEN_SOURCE... $ECHO_C" >&6
7373 +cat >conftest.$ac_ext <<_ACEOF
7374 +#line 6055 "configure"
7375 +#include "confdefs.h"
7376 +#include <sys/types.h>
7382 +#ifndef _XOPEN_SOURCE
7389 +rm -f conftest.$ac_objext
7390 +if { (eval echo "$as_me:6071: \"$ac_compile\"") >&5
7391 + (eval $ac_compile) 2>&5
7393 + echo "$as_me:6074: \$? = $ac_status" >&5
7394 + (exit $ac_status); } &&
7395 + { ac_try='test -s conftest.$ac_objext'
7396 + { (eval echo "$as_me:6077: \"$ac_try\"") >&5
7397 + (eval $ac_try) 2>&5
7399 + echo "$as_me:6080: \$? = $ac_status" >&5
7400 + (exit $ac_status); }; }; then
7403 + echo "$as_me: failed program was:" >&5
7404 +cat conftest.$ac_ext >&5
7407 +rm -f conftest.$ac_objext conftest.$ac_ext
7408 +echo "$as_me:6089: result: $cf_result" >&5
7409 +echo "${ECHO_T}$cf_result" >&6
7411 +if test "$cf_result" = yes ; then
7412 + CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
7413 +elif test "x500" != "x" ; then
7414 + echo "$as_me:6095: checking checking for compatible value versus 500" >&5
7415 +echo $ECHO_N "checking checking for compatible value versus 500... $ECHO_C" >&6
7416 + cat >conftest.$ac_ext <<_ACEOF
7417 +#line 6098 "configure"
7418 +#include "confdefs.h"
7419 +#include <sys/types.h>
7425 +#if _XOPEN_SOURCE-500 < 0
7432 +rm -f conftest.$ac_objext
7433 +if { (eval echo "$as_me:6114: \"$ac_compile\"") >&5
7434 + (eval $ac_compile) 2>&5
7436 + echo "$as_me:6117: \$? = $ac_status" >&5
7437 + (exit $ac_status); } &&
7438 + { ac_try='test -s conftest.$ac_objext'
7439 + { (eval echo "$as_me:6120: \"$ac_try\"") >&5
7440 + (eval $ac_try) 2>&5
7442 + echo "$as_me:6123: \$? = $ac_status" >&5
7443 + (exit $ac_status); }; }; then
7446 + echo "$as_me: failed program was:" >&5
7447 +cat conftest.$ac_ext >&5
7450 +rm -f conftest.$ac_objext conftest.$ac_ext
7451 + echo "$as_me:6132: result: $cf_result" >&5
7452 +echo "${ECHO_T}$cf_result" >&6
7453 + if test "$cf_result" = no ; then
7454 + # perhaps we can override it - try...
7455 + CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
7459 +echo "$as_me:6140: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
7460 +echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
7461 +cat >conftest.$ac_ext <<_ACEOF
7462 +#line 6143 "configure"
7463 +#include "confdefs.h"
7464 +#include <sys/types.h>
7470 +#ifndef _XOPEN_SOURCE_EXTENDED
7477 +rm -f conftest.$ac_objext
7478 +if { (eval echo "$as_me:6159: \"$ac_compile\"") >&5
7479 + (eval $ac_compile) 2>&5
7481 + echo "$as_me:6162: \$? = $ac_status" >&5
7482 + (exit $ac_status); } &&
7483 + { ac_try='test -s conftest.$ac_objext'
7484 + { (eval echo "$as_me:6165: \"$ac_try\"") >&5
7485 + (eval $ac_try) 2>&5
7487 + echo "$as_me:6168: \$? = $ac_status" >&5
7488 + (exit $ac_status); }; }; then
7491 + echo "$as_me: failed program was:" >&5
7492 +cat conftest.$ac_ext >&5
7495 +rm -f conftest.$ac_objext conftest.$ac_ext
7496 +echo "$as_me:6177: result: $cf_result" >&5
7497 +echo "${ECHO_T}$cf_result" >&6
7499 +if test "$cf_result" = yes ; then
7500 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
7501 +elif test "x" != "x" ; then
7502 + echo "$as_me:6183: checking checking for compatible value versus " >&5
7503 +echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
7504 + cat >conftest.$ac_ext <<_ACEOF
7505 +#line 6186 "configure"
7506 +#include "confdefs.h"
7507 +#include <sys/types.h>
7513 +#if _XOPEN_SOURCE_EXTENDED- < 0
7520 +rm -f conftest.$ac_objext
7521 +if { (eval echo "$as_me:6202: \"$ac_compile\"") >&5
7522 + (eval $ac_compile) 2>&5
7524 + echo "$as_me:6205: \$? = $ac_status" >&5
7525 + (exit $ac_status); } &&
7526 + { ac_try='test -s conftest.$ac_objext'
7527 + { (eval echo "$as_me:6208: \"$ac_try\"") >&5
7528 + (eval $ac_try) 2>&5
7530 + echo "$as_me:6211: \$? = $ac_status" >&5
7531 + (exit $ac_status); }; }; then
7534 + echo "$as_me: failed program was:" >&5
7535 +cat conftest.$ac_ext >&5
7538 +rm -f conftest.$ac_objext conftest.$ac_ext
7539 + echo "$as_me:6220: result: $cf_result" >&5
7540 +echo "${ECHO_T}$cf_result" >&6
7541 + if test "$cf_result" = no ; then
7542 + # perhaps we can override it - try...
7543 + CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
7548 NCURSES_CH_T=cchar_t
7549 - echo "$as_me:5610: checking for putwc" >&5
7550 -echo $ECHO_N "checking for putwc... $ECHO_C" >&6
7551 -if test "${ac_cv_func_putwc+set}" = set; then
7553 +for ac_func in putwc btowc wctob mbtowc wctomb
7555 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7556 +echo "$as_me:6234: checking for $ac_func" >&5
7557 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7558 +if eval "test \"\${$as_ac_var+set}\" = set"; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 cat >conftest.$ac_ext <<_ACEOF
7562 -#line 5616 "configure"
7563 +#line 6240 "configure"
7564 #include "confdefs.h"
7565 /* System header to define __stub macros and hopefully few prototypes,
7566 - which can conflict with char putwc (); below. */
7567 + which can conflict with char $ac_func (); below. */
7569 /* Override any gcc2 internal prototype to avoid an error. */
7571 @@ -5624,7 +6248,7 @@
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7580 @@ -5633,10 +6257,10 @@
7581 /* The GNU C library defines this for functions which it implements
7582 to always fail with ENOSYS. Some functions are actually named
7583 something starting with __ and the normal name is an alias. */
7584 -#if defined (__stub_putwc) || defined (__stub___putwc)
7585 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7593 @@ -5644,31 +6268,38 @@
7596 rm -f conftest.$ac_objext conftest$ac_exeext
7597 -if { (eval echo "$as_me:5647: \"$ac_link\"") >&5
7598 +if { (eval echo "$as_me:6271: \"$ac_link\"") >&5
7599 (eval $ac_link) 2>&5
7601 - echo "$as_me:5650: \$? = $ac_status" >&5
7602 + echo "$as_me:6274: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try='test -s conftest$ac_exeext'
7605 - { (eval echo "$as_me:5653: \"$ac_try\"") >&5
7606 + { (eval echo "$as_me:6277: \"$ac_try\"") >&5
7609 - echo "$as_me:5656: \$? = $ac_status" >&5
7610 + echo "$as_me:6280: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 - ac_cv_func_putwc=yes
7613 + eval "$as_ac_var=yes"
7615 echo "$as_me: failed program was:" >&5
7616 cat conftest.$ac_ext >&5
7617 -ac_cv_func_putwc=no
7618 +eval "$as_ac_var=no"
7620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7622 -echo "$as_me:5666: result: $ac_cv_func_putwc" >&5
7623 -echo "${ECHO_T}$ac_cv_func_putwc" >&6
7624 +echo "$as_me:6290: result: `eval echo '${'$as_ac_var'}'`" >&5
7625 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7626 +if test `eval echo '${'$as_ac_var'}'` = yes; then
7627 + cat >>confdefs.h <<EOF
7628 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7631 -if test "$ac_cv_func_putwc" != yes ; then
7635 -echo "$as_me:5671: checking for putwc in libutf8" >&5
7636 + if test "$ac_cv_func_putwc" != yes ; then
7638 +echo "$as_me:6302: checking for putwc in libutf8" >&5
7639 echo $ECHO_N "checking for putwc in libutf8... $ECHO_C" >&6
7640 if test "${cf_cv_libutf8+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 @@ -5677,7 +6308,7 @@
7643 cf_save_LIBS="$LIBS"
7645 cat >conftest.$ac_ext <<_ACEOF
7646 -#line 5680 "configure"
7647 +#line 6311 "configure"
7648 #include "confdefs.h"
7650 #include <libutf8.h>
7651 @@ -5690,16 +6321,16 @@
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 -if { (eval echo "$as_me:5693: \"$ac_link\"") >&5
7656 +if { (eval echo "$as_me:6324: \"$ac_link\"") >&5
7657 (eval $ac_link) 2>&5
7659 - echo "$as_me:5696: \$? = $ac_status" >&5
7660 + echo "$as_me:6327: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try='test -s conftest$ac_exeext'
7663 - { (eval echo "$as_me:5699: \"$ac_try\"") >&5
7664 + { (eval echo "$as_me:6330: \"$ac_try\"") >&5
7667 - echo "$as_me:5702: \$? = $ac_status" >&5
7668 + echo "$as_me:6333: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7672 @@ -5711,7 +6342,7 @@
7673 LIBS="$cf_save_LIBS"
7676 -echo "$as_me:5714: result: $cf_cv_libutf8" >&5
7677 +echo "$as_me:6345: result: $cf_cv_libutf8" >&5
7678 echo "${ECHO_T}$cf_cv_libutf8" >&6
7680 if test "$cf_cv_libutf8" = yes ; then
7681 @@ -5722,20 +6353,20 @@
7685 - if test "$cf_cv_libutf8" = yes ; then
7687 + if test "$cf_cv_libutf8" = yes ; then
7693 # This is needed on Tru64 5.0 to declare mbstate_t
7694 -echo "$as_me:5731: checking if we must include wchar.h to declare mbstate_t" >&5
7695 +echo "$as_me:6362: checking if we must include wchar.h to declare mbstate_t" >&5
7696 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
7697 if test "${cf_cv_mbstate_t+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 cat >conftest.$ac_ext <<_ACEOF
7702 -#line 5738 "configure"
7703 +#line 6369 "configure"
7704 #include "confdefs.h"
7707 @@ -5751,23 +6382,23 @@
7710 rm -f conftest.$ac_objext
7711 -if { (eval echo "$as_me:5754: \"$ac_compile\"") >&5
7712 +if { (eval echo "$as_me:6385: \"$ac_compile\"") >&5
7713 (eval $ac_compile) 2>&5
7715 - echo "$as_me:5757: \$? = $ac_status" >&5
7716 + echo "$as_me:6388: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try='test -s conftest.$ac_objext'
7719 - { (eval echo "$as_me:5760: \"$ac_try\"") >&5
7720 + { (eval echo "$as_me:6391: \"$ac_try\"") >&5
7723 - echo "$as_me:5763: \$? = $ac_status" >&5
7724 + echo "$as_me:6394: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 cat >conftest.$ac_ext <<_ACEOF
7731 -#line 5770 "configure"
7732 +#line 6401 "configure"
7733 #include "confdefs.h"
7736 @@ -5784,16 +6415,16 @@
7739 rm -f conftest.$ac_objext
7740 -if { (eval echo "$as_me:5787: \"$ac_compile\"") >&5
7741 +if { (eval echo "$as_me:6418: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>&5
7744 - echo "$as_me:5790: \$? = $ac_status" >&5
7745 + echo "$as_me:6421: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try='test -s conftest.$ac_objext'
7748 - { (eval echo "$as_me:5793: \"$ac_try\"") >&5
7749 + { (eval echo "$as_me:6424: \"$ac_try\"") >&5
7752 - echo "$as_me:5796: \$? = $ac_status" >&5
7753 + echo "$as_me:6427: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7757 @@ -5805,7 +6436,7 @@
7759 rm -f conftest.$ac_objext conftest.$ac_ext
7761 -echo "$as_me:5808: result: $cf_cv_mbstate_t" >&5
7762 +echo "$as_me:6439: result: $cf_cv_mbstate_t" >&5
7763 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
7765 if test "$cf_cv_mbstate_t" = yes ; then
7766 @@ -5813,21 +6444,215 @@
7767 #define NEED_WCHAR_H 1
7773 -if test "$cf_cv_mbstate_t" != unknown ; then
7774 +# if we do not find mbstate_t in either place, use substitution to provide a fallback.
7775 +if test "$cf_cv_mbstate_t" = unknown ; then
7776 + NCURSES_MBSTATE_T=1
7779 +# This is needed on Tru64 5.0 to declare wchar_t
7780 +echo "$as_me:6456: checking if we must include wchar.h to declare wchar_t" >&5
7781 +echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
7782 +if test "${cf_cv_wchar_t+set}" = set; then
7783 + echo $ECHO_N "(cached) $ECHO_C" >&6
7786 +cat >conftest.$ac_ext <<_ACEOF
7787 +#line 6463 "configure"
7788 +#include "confdefs.h"
7790 +#include <stdlib.h>
7791 +#ifdef HAVE_LIBUTF8_H
7792 +#include <libutf8.h>
7802 +rm -f conftest.$ac_objext
7803 +if { (eval echo "$as_me:6479: \"$ac_compile\"") >&5
7804 + (eval $ac_compile) 2>&5
7806 + echo "$as_me:6482: \$? = $ac_status" >&5
7807 + (exit $ac_status); } &&
7808 + { ac_try='test -s conftest.$ac_objext'
7809 + { (eval echo "$as_me:6485: \"$ac_try\"") >&5
7810 + (eval $ac_try) 2>&5
7812 + echo "$as_me:6488: \$? = $ac_status" >&5
7813 + (exit $ac_status); }; }; then
7816 + echo "$as_me: failed program was:" >&5
7817 +cat conftest.$ac_ext >&5
7818 +cat >conftest.$ac_ext <<_ACEOF
7819 +#line 6495 "configure"
7820 +#include "confdefs.h"
7822 +#include <stdlib.h>
7824 +#ifdef HAVE_LIBUTF8_H
7825 +#include <libutf8.h>
7835 +rm -f conftest.$ac_objext
7836 +if { (eval echo "$as_me:6512: \"$ac_compile\"") >&5
7837 + (eval $ac_compile) 2>&5
7839 + echo "$as_me:6515: \$? = $ac_status" >&5
7840 + (exit $ac_status); } &&
7841 + { ac_try='test -s conftest.$ac_objext'
7842 + { (eval echo "$as_me:6518: \"$ac_try\"") >&5
7843 + (eval $ac_try) 2>&5
7845 + echo "$as_me:6521: \$? = $ac_status" >&5
7846 + (exit $ac_status); }; }; then
7849 + echo "$as_me: failed program was:" >&5
7850 +cat conftest.$ac_ext >&5
7851 +cf_cv_wchar_t=unknown
7853 +rm -f conftest.$ac_objext conftest.$ac_ext
7855 +rm -f conftest.$ac_objext conftest.$ac_ext
7857 +echo "$as_me:6533: result: $cf_cv_wchar_t" >&5
7858 +echo "${ECHO_T}$cf_cv_wchar_t" >&6
7860 +if test "$cf_cv_wchar_t" = yes ; then
7861 cat >>confdefs.h <<\EOF
7862 -#define HAVE_MBSTATE_T 1
7863 +#define NEED_WCHAR_H 1
7869 - if test $cf_cv_mbstate_t = yes ; then
7870 - NCURSES_MBSTATE_T=1
7872 +# if we do not find wchar_t in either place, use substitution to provide a fallback.
7873 +if test "$cf_cv_wchar_t" = unknown ; then
7877 -echo "$as_me:5830: checking for terminal capabilities file" >&5
7878 +# if we find wchar_t in either place, use substitution to provide a fallback.
7879 +if test "$cf_cv_wchar_t" != unknown ; then
7880 + NCURSES_OK_WCHAR_T=1
7883 +# This is needed on Tru64 5.0 to declare wint_t
7884 +echo "$as_me:6555: checking if we must include wchar.h to declare wint_t" >&5
7885 +echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
7886 +if test "${cf_cv_wint_t+set}" = set; then
7887 + echo $ECHO_N "(cached) $ECHO_C" >&6
7890 +cat >conftest.$ac_ext <<_ACEOF
7891 +#line 6562 "configure"
7892 +#include "confdefs.h"
7894 +#include <stdlib.h>
7895 +#ifdef HAVE_LIBUTF8_H
7896 +#include <libutf8.h>
7906 +rm -f conftest.$ac_objext
7907 +if { (eval echo "$as_me:6578: \"$ac_compile\"") >&5
7908 + (eval $ac_compile) 2>&5
7910 + echo "$as_me:6581: \$? = $ac_status" >&5
7911 + (exit $ac_status); } &&
7912 + { ac_try='test -s conftest.$ac_objext'
7913 + { (eval echo "$as_me:6584: \"$ac_try\"") >&5
7914 + (eval $ac_try) 2>&5
7916 + echo "$as_me:6587: \$? = $ac_status" >&5
7917 + (exit $ac_status); }; }; then
7920 + echo "$as_me: failed program was:" >&5
7921 +cat conftest.$ac_ext >&5
7922 +cat >conftest.$ac_ext <<_ACEOF
7923 +#line 6594 "configure"
7924 +#include "confdefs.h"
7926 +#include <stdlib.h>
7928 +#ifdef HAVE_LIBUTF8_H
7929 +#include <libutf8.h>
7939 +rm -f conftest.$ac_objext
7940 +if { (eval echo "$as_me:6611: \"$ac_compile\"") >&5
7941 + (eval $ac_compile) 2>&5
7943 + echo "$as_me:6614: \$? = $ac_status" >&5
7944 + (exit $ac_status); } &&
7945 + { ac_try='test -s conftest.$ac_objext'
7946 + { (eval echo "$as_me:6617: \"$ac_try\"") >&5
7947 + (eval $ac_try) 2>&5
7949 + echo "$as_me:6620: \$? = $ac_status" >&5
7950 + (exit $ac_status); }; }; then
7953 + echo "$as_me: failed program was:" >&5
7954 +cat conftest.$ac_ext >&5
7955 +cf_cv_wint_t=unknown
7957 +rm -f conftest.$ac_objext conftest.$ac_ext
7959 +rm -f conftest.$ac_objext conftest.$ac_ext
7961 +echo "$as_me:6632: result: $cf_cv_wint_t" >&5
7962 +echo "${ECHO_T}$cf_cv_wint_t" >&6
7964 +if test "$cf_cv_wint_t" = yes ; then
7965 + cat >>confdefs.h <<\EOF
7966 +#define NEED_WCHAR_H 1
7972 +# if we do not find wint_t in either place, use substitution to provide a fallback.
7973 +if test "$cf_cv_wint_t" = unknown ; then
7977 +# if we find wint_t in either place, use substitution to provide a fallback.
7978 +if test "$cf_cv_wint_t" != unknown ; then
7979 + NCURSES_OK_WINT_T=1
7984 +echo "$as_me:6655: checking for terminal capabilities file" >&5
7985 echo $ECHO_N "checking for terminal capabilities file... $ECHO_C" >&6
7987 # Check whether --with-caps or --without-caps was given.
7988 @@ -5838,13 +6663,13 @@
7991 test -f ${srcdir}/include/${TERMINFO_CAPS} || TERMINFO_CAPS=Caps
7992 -echo "$as_me:5841: result: $TERMINFO_CAPS" >&5
7993 +echo "$as_me:6666: result: $TERMINFO_CAPS" >&5
7994 echo "${ECHO_T}$TERMINFO_CAPS" >&6
7996 ###############################################################################
7998 ### use option --disable-echo to suppress full display compiling commands
7999 -echo "$as_me:5847: checking if you want to display full commands during build" >&5
8000 +echo "$as_me:6672: checking if you want to display full commands during build" >&5
8001 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
8003 # Check whether --enable-echo or --disable-echo was given.
8004 @@ -5860,11 +6685,11 @@
8005 ECHO_LINK='@ echo linking $@ ... ;'
8006 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
8008 -echo "$as_me:5863: result: $with_echo" >&5
8009 +echo "$as_me:6688: result: $with_echo" >&5
8010 echo "${ECHO_T}$with_echo" >&6
8012 ### use option --enable-warnings to turn on all gcc warnings
8013 -echo "$as_me:5867: checking if you want to see compiler warnings" >&5
8014 +echo "$as_me:6692: checking if you want to see compiler warnings" >&5
8015 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
8017 # Check whether --enable-warnings or --disable-warnings was given.
8018 @@ -5872,7 +6697,7 @@
8019 enableval="$enable_warnings"
8020 with_warnings=$enableval
8022 -echo "$as_me:5875: result: $with_warnings" >&5
8023 +echo "$as_me:6700: result: $with_warnings" >&5
8024 echo "${ECHO_T}$with_warnings" >&6
8026 if test -n "$with_warnings"; then
8027 @@ -5881,10 +6706,10 @@
8028 if test "$GCC" = yes
8030 cat > conftest.$ac_ext <<EOF
8031 -#line 5884 "configure"
8032 +#line 6709 "configure"
8033 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
8035 - { echo "$as_me:5887: checking for $CC warning options..." >&5
8036 + { echo "$as_me:6712: checking for $CC warning options..." >&5
8037 echo "$as_me: checking for $CC warning options..." >&6;}
8038 cf_save_CFLAGS="$CFLAGS"
8039 EXTRA_CFLAGS="-W -Wall"
8040 @@ -5904,15 +6729,27 @@
8041 Wundef $cf_warn_CONST
8043 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
8044 - if { (eval echo "$as_me:5907: \"$ac_compile\"") >&5
8045 + if { (eval echo "$as_me:6732: \"$ac_compile\"") >&5
8046 (eval $ac_compile) 2>&5
8048 - echo "$as_me:5910: \$? = $ac_status" >&5
8049 + echo "$as_me:6735: \$? = $ac_status" >&5
8050 (exit $ac_status); }; then
8051 - test -n "$verbose" && echo "$as_me:5912: result: ... -$cf_opt" >&5
8052 + test -n "$verbose" && echo "$as_me:6737: result: ... -$cf_opt" >&5
8053 echo "${ECHO_T}... -$cf_opt" >&6
8054 + case $cf_opt in #(vi
8056 + CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
8059 + case $GCC_VERSION in
8061 + test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
8067 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
8068 - test "$cf_opt" = Wcast-qual && EXTRA_CFLAGS="$EXTRA_CFLAGS -DXTSTRINGDEFINES"
8072 @@ -5939,10 +6776,10 @@
8074 if test "$GCC" = yes
8076 - { echo "$as_me:5942: checking for $CC __attribute__ directives..." >&5
8077 + { echo "$as_me:6779: checking for $CC __attribute__ directives..." >&5
8078 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
8079 cat > conftest.$ac_ext <<EOF
8080 -#line 5945 "configure"
8081 +#line 6782 "configure"
8082 #include "confdefs.h"
8083 #include "conftest.h"
8084 #include "conftest.i"
8085 @@ -5980,16 +6817,14 @@
8089 - if { (eval echo "$as_me:5983: \"$ac_compile\"") >&5
8090 + if { (eval echo "$as_me:6820: \"$ac_compile\"") >&5
8091 (eval $ac_compile) 2>&5
8093 - echo "$as_me:5986: \$? = $ac_status" >&5
8094 + echo "$as_me:6823: \$? = $ac_status" >&5
8095 (exit $ac_status); }; then
8096 - test -n "$verbose" && echo "$as_me:5988: result: ... $cf_attribute" >&5
8097 + test -n "$verbose" && echo "$as_me:6825: result: ... $cf_attribute" >&5
8098 echo "${ECHO_T}... $cf_attribute" >&6
8099 cat conftest.h >>confdefs.h
8101 -# sed -e 's/__attr.*/\/*nothing*\//' conftest.h >>confdefs.h
8105 @@ -5999,7 +6834,7 @@
8108 ### use option --enable-assertions to turn on generation of assertion code
8109 -echo "$as_me:6002: checking if you want to enable runtime assertions" >&5
8110 +echo "$as_me:6837: checking if you want to enable runtime assertions" >&5
8111 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
8113 # Check whether --enable-assertions or --disable-assertions was given.
8114 @@ -6009,7 +6844,7 @@
8118 -echo "$as_me:6012: result: $with_assertions" >&5
8119 +echo "$as_me:6847: result: $with_assertions" >&5
8120 echo "${ECHO_T}$with_assertions" >&6
8123 @@ -6062,13 +6897,13 @@
8126 ### Checks for libraries.
8127 -echo "$as_me:6065: checking for gettimeofday" >&5
8128 +echo "$as_me:6900: checking for gettimeofday" >&5
8129 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
8130 if test "${ac_cv_func_gettimeofday+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 cat >conftest.$ac_ext <<_ACEOF
8134 -#line 6071 "configure"
8135 +#line 6906 "configure"
8136 #include "confdefs.h"
8137 /* System header to define __stub macros and hopefully few prototypes,
8138 which can conflict with char gettimeofday (); below. */
8139 @@ -6099,16 +6934,16 @@
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 -if { (eval echo "$as_me:6102: \"$ac_link\"") >&5
8144 +if { (eval echo "$as_me:6937: \"$ac_link\"") >&5
8145 (eval $ac_link) 2>&5
8147 - echo "$as_me:6105: \$? = $ac_status" >&5
8148 + echo "$as_me:6940: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -s conftest$ac_exeext'
8151 - { (eval echo "$as_me:6108: \"$ac_try\"") >&5
8152 + { (eval echo "$as_me:6943: \"$ac_try\"") >&5
8155 - echo "$as_me:6111: \$? = $ac_status" >&5
8156 + echo "$as_me:6946: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_cv_func_gettimeofday=yes
8160 @@ -6118,7 +6953,7 @@
8162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8164 -echo "$as_me:6121: result: $ac_cv_func_gettimeofday" >&5
8165 +echo "$as_me:6956: result: $ac_cv_func_gettimeofday" >&5
8166 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
8167 if test $ac_cv_func_gettimeofday = yes; then
8168 cat >>confdefs.h <<\EOF
8169 @@ -6127,7 +6962,7 @@
8173 -echo "$as_me:6130: checking for gettimeofday in -lbsd" >&5
8174 +echo "$as_me:6965: checking for gettimeofday in -lbsd" >&5
8175 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
8176 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 @@ -6135,7 +6970,7 @@
8179 ac_check_lib_save_LIBS=$LIBS
8181 cat >conftest.$ac_ext <<_ACEOF
8182 -#line 6138 "configure"
8183 +#line 6973 "configure"
8184 #include "confdefs.h"
8186 /* Override any gcc2 internal prototype to avoid an error. */
8187 @@ -6154,16 +6989,16 @@
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 -if { (eval echo "$as_me:6157: \"$ac_link\"") >&5
8192 +if { (eval echo "$as_me:6992: \"$ac_link\"") >&5
8193 (eval $ac_link) 2>&5
8195 - echo "$as_me:6160: \$? = $ac_status" >&5
8196 + echo "$as_me:6995: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -s conftest$ac_exeext'
8199 - { (eval echo "$as_me:6163: \"$ac_try\"") >&5
8200 + { (eval echo "$as_me:6998: \"$ac_try\"") >&5
8203 - echo "$as_me:6166: \$? = $ac_status" >&5
8204 + echo "$as_me:7001: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 ac_cv_lib_bsd_gettimeofday=yes
8208 @@ -6174,7 +7009,7 @@
8209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8210 LIBS=$ac_check_lib_save_LIBS
8212 -echo "$as_me:6177: result: $ac_cv_lib_bsd_gettimeofday" >&5
8213 +echo "$as_me:7012: result: $ac_cv_lib_bsd_gettimeofday" >&5
8214 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
8215 if test $ac_cv_lib_bsd_gettimeofday = yes; then
8216 cat >>confdefs.h <<\EOF
8217 @@ -6186,14 +7021,14 @@
8221 -echo "$as_me:6189: checking if -lm needed for math functions" >&5
8222 +echo "$as_me:7024: checking if -lm needed for math functions" >&5
8223 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
8224 if test "${cf_cv_need_libm+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8229 -#line 6196 "configure"
8230 +#line 7031 "configure"
8231 #include "confdefs.h"
8234 @@ -6208,16 +7043,16 @@
8237 rm -f conftest.$ac_objext conftest$ac_exeext
8238 -if { (eval echo "$as_me:6211: \"$ac_link\"") >&5
8239 +if { (eval echo "$as_me:7046: \"$ac_link\"") >&5
8240 (eval $ac_link) 2>&5
8242 - echo "$as_me:6214: \$? = $ac_status" >&5
8243 + echo "$as_me:7049: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -s conftest$ac_exeext'
8246 - { (eval echo "$as_me:6217: \"$ac_try\"") >&5
8247 + { (eval echo "$as_me:7052: \"$ac_try\"") >&5
8250 - echo "$as_me:6220: \$? = $ac_status" >&5
8251 + echo "$as_me:7055: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8255 @@ -6227,7 +7062,7 @@
8257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8259 -echo "$as_me:6230: result: $cf_cv_need_libm" >&5
8260 +echo "$as_me:7065: result: $cf_cv_need_libm" >&5
8261 echo "${ECHO_T}$cf_cv_need_libm" >&6
8262 if test "$cf_cv_need_libm" = yes
8264 @@ -6235,97 +7070,13 @@
8267 ### Checks for header files.
8269 -echo "$as_me:6239: checking if we must define _GNU_SOURCE" >&5
8270 -echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
8271 -if test "${cf_cv_gnu_source+set}" = set; then
8272 - echo $ECHO_N "(cached) $ECHO_C" >&6
8275 -cat >conftest.$ac_ext <<_ACEOF
8276 -#line 6246 "configure"
8277 -#include "confdefs.h"
8278 -#include <sys/types.h>
8283 -#ifndef _XOPEN_SOURCE
8290 -rm -f conftest.$ac_objext
8291 -if { (eval echo "$as_me:6261: \"$ac_compile\"") >&5
8292 - (eval $ac_compile) 2>&5
8294 - echo "$as_me:6264: \$? = $ac_status" >&5
8295 - (exit $ac_status); } &&
8296 - { ac_try='test -s conftest.$ac_objext'
8297 - { (eval echo "$as_me:6267: \"$ac_try\"") >&5
8298 - (eval $ac_try) 2>&5
8300 - echo "$as_me:6270: \$? = $ac_status" >&5
8301 - (exit $ac_status); }; }; then
8302 - cf_cv_gnu_source=no
8304 - echo "$as_me: failed program was:" >&5
8305 -cat conftest.$ac_ext >&5
8306 -cf_save="$CPPFLAGS"
8307 - CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8308 - cat >conftest.$ac_ext <<_ACEOF
8309 -#line 6279 "configure"
8310 -#include "confdefs.h"
8311 -#include <sys/types.h>
8316 -#ifdef _XOPEN_SOURCE
8323 -rm -f conftest.$ac_objext
8324 -if { (eval echo "$as_me:6294: \"$ac_compile\"") >&5
8325 - (eval $ac_compile) 2>&5
8327 - echo "$as_me:6297: \$? = $ac_status" >&5
8328 - (exit $ac_status); } &&
8329 - { ac_try='test -s conftest.$ac_objext'
8330 - { (eval echo "$as_me:6300: \"$ac_try\"") >&5
8331 - (eval $ac_try) 2>&5
8333 - echo "$as_me:6303: \$? = $ac_status" >&5
8334 - (exit $ac_status); }; }; then
8335 - cf_cv_gnu_source=no
8337 - echo "$as_me: failed program was:" >&5
8338 -cat conftest.$ac_ext >&5
8339 -cf_cv_gnu_source=yes
8341 -rm -f conftest.$ac_objext conftest.$ac_ext
8342 - CPPFLAGS="$cf_save"
8345 -rm -f conftest.$ac_objext conftest.$ac_ext
8348 -echo "$as_me:6318: result: $cf_cv_gnu_source" >&5
8349 -echo "${ECHO_T}$cf_cv_gnu_source" >&6
8350 -test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8352 -echo "$as_me:6322: checking for ANSI C header files" >&5
8353 +echo "$as_me:7073: checking for ANSI C header files" >&5
8354 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8355 if test "${ac_cv_header_stdc+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 cat >conftest.$ac_ext <<_ACEOF
8359 -#line 6328 "configure"
8360 +#line 7079 "configure"
8361 #include "confdefs.h"
8364 @@ -6333,13 +7084,13 @@
8368 -if { (eval echo "$as_me:6336: \"$ac_cpp conftest.$ac_ext\"") >&5
8369 +if { (eval echo "$as_me:7087: \"$ac_cpp conftest.$ac_ext\"") >&5
8370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8372 egrep -v '^ *\+' conftest.er1 >conftest.err
8374 cat conftest.err >&5
8375 - echo "$as_me:6342: \$? = $ac_status" >&5
8376 + echo "$as_me:7093: \$? = $ac_status" >&5
8377 (exit $ac_status); } >/dev/null; then
8378 if test -s conftest.err; then
8379 ac_cpp_err=$ac_c_preproc_warn_flag
8380 @@ -6361,7 +7112,7 @@
8381 if test $ac_cv_header_stdc = yes; then
8382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8383 cat >conftest.$ac_ext <<_ACEOF
8384 -#line 6364 "configure"
8385 +#line 7115 "configure"
8386 #include "confdefs.h"
8389 @@ -6379,7 +7130,7 @@
8390 if test $ac_cv_header_stdc = yes; then
8391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8392 cat >conftest.$ac_ext <<_ACEOF
8393 -#line 6382 "configure"
8394 +#line 7133 "configure"
8395 #include "confdefs.h"
8398 @@ -6400,7 +7151,7 @@
8401 cat >conftest.$ac_ext <<_ACEOF
8402 -#line 6403 "configure"
8403 +#line 7154 "configure"
8404 #include "confdefs.h"
8406 #if ((' ' & 0x0FF) == 0x020)
8407 @@ -6426,15 +7177,15 @@
8410 rm -f conftest$ac_exeext
8411 -if { (eval echo "$as_me:6429: \"$ac_link\"") >&5
8412 +if { (eval echo "$as_me:7180: \"$ac_link\"") >&5
8413 (eval $ac_link) 2>&5
8415 - echo "$as_me:6432: \$? = $ac_status" >&5
8416 + echo "$as_me:7183: \$? = $ac_status" >&5
8417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8418 - { (eval echo "$as_me:6434: \"$ac_try\"") >&5
8419 + { (eval echo "$as_me:7185: \"$ac_try\"") >&5
8422 - echo "$as_me:6437: \$? = $ac_status" >&5
8423 + echo "$as_me:7188: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8427 @@ -6447,7 +7198,7 @@
8431 -echo "$as_me:6450: result: $ac_cv_header_stdc" >&5
8432 +echo "$as_me:7201: result: $ac_cv_header_stdc" >&5
8433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8434 if test $ac_cv_header_stdc = yes; then
8436 @@ -6460,13 +7211,13 @@
8438 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8439 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8440 -echo "$as_me:6463: checking for $ac_hdr that defines DIR" >&5
8441 +echo "$as_me:7214: checking for $ac_hdr that defines DIR" >&5
8442 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8447 -#line 6469 "configure"
8448 +#line 7220 "configure"
8449 #include "confdefs.h"
8450 #include <sys/types.h>
8452 @@ -6481,16 +7232,16 @@
8455 rm -f conftest.$ac_objext
8456 -if { (eval echo "$as_me:6484: \"$ac_compile\"") >&5
8457 +if { (eval echo "$as_me:7235: \"$ac_compile\"") >&5
8458 (eval $ac_compile) 2>&5
8460 - echo "$as_me:6487: \$? = $ac_status" >&5
8461 + echo "$as_me:7238: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -s conftest.$ac_objext'
8464 - { (eval echo "$as_me:6490: \"$ac_try\"") >&5
8465 + { (eval echo "$as_me:7241: \"$ac_try\"") >&5
8468 - echo "$as_me:6493: \$? = $ac_status" >&5
8469 + echo "$as_me:7244: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 eval "$as_ac_Header=yes"
8473 @@ -6500,7 +7251,7 @@
8475 rm -f conftest.$ac_objext conftest.$ac_ext
8477 -echo "$as_me:6503: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478 +echo "$as_me:7254: result: `eval echo '${'$as_ac_Header'}'`" >&5
8479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8481 cat >>confdefs.h <<EOF
8482 @@ -6513,7 +7264,7 @@
8484 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8485 if test $ac_header_dirent = dirent.h; then
8486 - echo "$as_me:6516: checking for opendir in -ldir" >&5
8487 + echo "$as_me:7267: checking for opendir in -ldir" >&5
8488 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
8489 if test "${ac_cv_lib_dir_opendir+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 @@ -6521,7 +7272,7 @@
8492 ac_check_lib_save_LIBS=$LIBS
8494 cat >conftest.$ac_ext <<_ACEOF
8495 -#line 6524 "configure"
8496 +#line 7275 "configure"
8497 #include "confdefs.h"
8499 /* Override any gcc2 internal prototype to avoid an error. */
8500 @@ -6540,16 +7291,16 @@
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 -if { (eval echo "$as_me:6543: \"$ac_link\"") >&5
8505 +if { (eval echo "$as_me:7294: \"$ac_link\"") >&5
8506 (eval $ac_link) 2>&5
8508 - echo "$as_me:6546: \$? = $ac_status" >&5
8509 + echo "$as_me:7297: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -s conftest$ac_exeext'
8512 - { (eval echo "$as_me:6549: \"$ac_try\"") >&5
8513 + { (eval echo "$as_me:7300: \"$ac_try\"") >&5
8516 - echo "$as_me:6552: \$? = $ac_status" >&5
8517 + echo "$as_me:7303: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_cv_lib_dir_opendir=yes
8521 @@ -6560,14 +7311,14 @@
8522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8523 LIBS=$ac_check_lib_save_LIBS
8525 -echo "$as_me:6563: result: $ac_cv_lib_dir_opendir" >&5
8526 +echo "$as_me:7314: result: $ac_cv_lib_dir_opendir" >&5
8527 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
8528 if test $ac_cv_lib_dir_opendir = yes; then
8533 - echo "$as_me:6570: checking for opendir in -lx" >&5
8534 + echo "$as_me:7321: checking for opendir in -lx" >&5
8535 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
8536 if test "${ac_cv_lib_x_opendir+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 @@ -6575,7 +7326,7 @@
8539 ac_check_lib_save_LIBS=$LIBS
8541 cat >conftest.$ac_ext <<_ACEOF
8542 -#line 6578 "configure"
8543 +#line 7329 "configure"
8544 #include "confdefs.h"
8546 /* Override any gcc2 internal prototype to avoid an error. */
8547 @@ -6594,16 +7345,16 @@
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 -if { (eval echo "$as_me:6597: \"$ac_link\"") >&5
8552 +if { (eval echo "$as_me:7348: \"$ac_link\"") >&5
8553 (eval $ac_link) 2>&5
8555 - echo "$as_me:6600: \$? = $ac_status" >&5
8556 + echo "$as_me:7351: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 - { (eval echo "$as_me:6603: \"$ac_try\"") >&5
8560 + { (eval echo "$as_me:7354: \"$ac_try\"") >&5
8563 - echo "$as_me:6606: \$? = $ac_status" >&5
8564 + echo "$as_me:7357: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_lib_x_opendir=yes
8568 @@ -6614,7 +7365,7 @@
8569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8572 -echo "$as_me:6617: result: $ac_cv_lib_x_opendir" >&5
8573 +echo "$as_me:7368: result: $ac_cv_lib_x_opendir" >&5
8574 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
8575 if test $ac_cv_lib_x_opendir = yes; then
8577 @@ -6622,13 +7373,13 @@
8581 -echo "$as_me:6625: checking whether time.h and sys/time.h may both be included" >&5
8582 +echo "$as_me:7376: checking whether time.h and sys/time.h may both be included" >&5
8583 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8584 if test "${ac_cv_header_time+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 cat >conftest.$ac_ext <<_ACEOF
8588 -#line 6631 "configure"
8589 +#line 7382 "configure"
8590 #include "confdefs.h"
8591 #include <sys/types.h>
8592 #include <sys/time.h>
8593 @@ -6644,16 +7395,16 @@
8596 rm -f conftest.$ac_objext
8597 -if { (eval echo "$as_me:6647: \"$ac_compile\"") >&5
8598 +if { (eval echo "$as_me:7398: \"$ac_compile\"") >&5
8599 (eval $ac_compile) 2>&5
8601 - echo "$as_me:6650: \$? = $ac_status" >&5
8602 + echo "$as_me:7401: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -s conftest.$ac_objext'
8605 - { (eval echo "$as_me:6653: \"$ac_try\"") >&5
8606 + { (eval echo "$as_me:7404: \"$ac_try\"") >&5
8609 - echo "$as_me:6656: \$? = $ac_status" >&5
8610 + echo "$as_me:7407: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 ac_cv_header_time=yes
8614 @@ -6663,7 +7414,7 @@
8616 rm -f conftest.$ac_objext conftest.$ac_ext
8618 -echo "$as_me:6666: result: $ac_cv_header_time" >&5
8619 +echo "$as_me:7417: result: $ac_cv_header_time" >&5
8620 echo "${ECHO_T}$ac_cv_header_time" >&6
8621 if test $ac_cv_header_time = yes; then
8623 @@ -6673,14 +7424,14 @@
8627 -echo "$as_me:6676: checking for regular-expression headers" >&5
8628 +echo "$as_me:7427: checking for regular-expression headers" >&5
8629 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
8630 if test "${cf_cv_regex+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 cat >conftest.$ac_ext <<_ACEOF
8635 -#line 6683 "configure"
8636 +#line 7434 "configure"
8637 #include "confdefs.h"
8638 #include <sys/types.h>
8640 @@ -6698,16 +7449,16 @@
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 -if { (eval echo "$as_me:6701: \"$ac_link\"") >&5
8645 +if { (eval echo "$as_me:7452: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>&5
8648 - echo "$as_me:6704: \$? = $ac_status" >&5
8649 + echo "$as_me:7455: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -s conftest$ac_exeext'
8652 - { (eval echo "$as_me:6707: \"$ac_try\"") >&5
8653 + { (eval echo "$as_me:7458: \"$ac_try\"") >&5
8656 - echo "$as_me:6710: \$? = $ac_status" >&5
8657 + echo "$as_me:7461: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 cf_cv_regex="regex.h"
8661 @@ -6715,7 +7466,7 @@
8662 cat conftest.$ac_ext >&5
8664 cat >conftest.$ac_ext <<_ACEOF
8665 -#line 6718 "configure"
8666 +#line 7469 "configure"
8667 #include "confdefs.h"
8670 @@ -6730,16 +7481,16 @@
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 -if { (eval echo "$as_me:6733: \"$ac_link\"") >&5
8675 +if { (eval echo "$as_me:7484: \"$ac_link\"") >&5
8676 (eval $ac_link) 2>&5
8678 - echo "$as_me:6736: \$? = $ac_status" >&5
8679 + echo "$as_me:7487: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -s conftest$ac_exeext'
8682 - { (eval echo "$as_me:6739: \"$ac_try\"") >&5
8683 + { (eval echo "$as_me:7490: \"$ac_try\"") >&5
8686 - echo "$as_me:6742: \$? = $ac_status" >&5
8687 + echo "$as_me:7493: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 cf_cv_regex="regexp.h"
8691 @@ -6749,7 +7500,7 @@
8692 cf_save_LIBS="$LIBS"
8694 cat >conftest.$ac_ext <<_ACEOF
8695 -#line 6752 "configure"
8696 +#line 7503 "configure"
8697 #include "confdefs.h"
8698 #include <regexpr.h>
8700 @@ -6764,16 +7515,16 @@
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 -if { (eval echo "$as_me:6767: \"$ac_link\"") >&5
8705 +if { (eval echo "$as_me:7518: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>&5
8708 - echo "$as_me:6770: \$? = $ac_status" >&5
8709 + echo "$as_me:7521: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 - { (eval echo "$as_me:6773: \"$ac_try\"") >&5
8713 + { (eval echo "$as_me:7524: \"$ac_try\"") >&5
8716 - echo "$as_me:6776: \$? = $ac_status" >&5
8717 + echo "$as_me:7527: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 cf_cv_regex="regexpr.h"
8721 @@ -6789,7 +7540,7 @@
8725 -echo "$as_me:6792: result: $cf_cv_regex" >&5
8726 +echo "$as_me:7543: result: $cf_cv_regex" >&5
8727 echo "${ECHO_T}$cf_cv_regex" >&6
8728 case $cf_cv_regex in
8729 regex.h) cat >>confdefs.h <<\EOF
8730 @@ -6825,23 +7576,23 @@
8733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8734 -echo "$as_me:6828: checking for $ac_header" >&5
8735 +echo "$as_me:7579: checking for $ac_header" >&5
8736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 cat >conftest.$ac_ext <<_ACEOF
8741 -#line 6834 "configure"
8742 +#line 7585 "configure"
8743 #include "confdefs.h"
8744 #include <$ac_header>
8746 -if { (eval echo "$as_me:6838: \"$ac_cpp conftest.$ac_ext\"") >&5
8747 +if { (eval echo "$as_me:7589: \"$ac_cpp conftest.$ac_ext\"") >&5
8748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8750 egrep -v '^ *\+' conftest.er1 >conftest.err
8752 cat conftest.err >&5
8753 - echo "$as_me:6844: \$? = $ac_status" >&5
8754 + echo "$as_me:7595: \$? = $ac_status" >&5
8755 (exit $ac_status); } >/dev/null; then
8756 if test -s conftest.err; then
8757 ac_cpp_err=$ac_c_preproc_warn_flag
8758 @@ -6860,7 +7611,7 @@
8760 rm -f conftest.err conftest.$ac_ext
8762 -echo "$as_me:6863: result: `eval echo '${'$as_ac_Header'}'`" >&5
8763 +echo "$as_me:7614: result: `eval echo '${'$as_ac_Header'}'`" >&5
8764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8766 cat >>confdefs.h <<EOF
8767 @@ -6874,7 +7625,7 @@
8768 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
8769 if test "$ISC" = yes ; then
8771 -echo "$as_me:6877: checking for main in -lcposix" >&5
8772 +echo "$as_me:7628: checking for main in -lcposix" >&5
8773 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
8774 if test "${ac_cv_lib_cposix_main+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 @@ -6882,7 +7633,7 @@
8777 ac_check_lib_save_LIBS=$LIBS
8778 LIBS="-lcposix $LIBS"
8779 cat >conftest.$ac_ext <<_ACEOF
8780 -#line 6885 "configure"
8781 +#line 7636 "configure"
8782 #include "confdefs.h"
8785 @@ -6894,16 +7645,16 @@
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 -if { (eval echo "$as_me:6897: \"$ac_link\"") >&5
8790 +if { (eval echo "$as_me:7648: \"$ac_link\"") >&5
8791 (eval $ac_link) 2>&5
8793 - echo "$as_me:6900: \$? = $ac_status" >&5
8794 + echo "$as_me:7651: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -s conftest$ac_exeext'
8797 - { (eval echo "$as_me:6903: \"$ac_try\"") >&5
8798 + { (eval echo "$as_me:7654: \"$ac_try\"") >&5
8801 - echo "$as_me:6906: \$? = $ac_status" >&5
8802 + echo "$as_me:7657: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 ac_cv_lib_cposix_main=yes
8806 @@ -6914,7 +7665,7 @@
8807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8808 LIBS=$ac_check_lib_save_LIBS
8810 -echo "$as_me:6917: result: $ac_cv_lib_cposix_main" >&5
8811 +echo "$as_me:7668: result: $ac_cv_lib_cposix_main" >&5
8812 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
8813 if test $ac_cv_lib_cposix_main = yes; then
8814 cat >>confdefs.h <<EOF
8815 @@ -6925,7 +7676,7 @@
8819 - echo "$as_me:6928: checking for bzero in -linet" >&5
8820 + echo "$as_me:7679: checking for bzero in -linet" >&5
8821 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
8822 if test "${ac_cv_lib_inet_bzero+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 @@ -6933,7 +7684,7 @@
8825 ac_check_lib_save_LIBS=$LIBS
8827 cat >conftest.$ac_ext <<_ACEOF
8828 -#line 6936 "configure"
8829 +#line 7687 "configure"
8830 #include "confdefs.h"
8832 /* Override any gcc2 internal prototype to avoid an error. */
8833 @@ -6952,16 +7703,16 @@
8836 rm -f conftest.$ac_objext conftest$ac_exeext
8837 -if { (eval echo "$as_me:6955: \"$ac_link\"") >&5
8838 +if { (eval echo "$as_me:7706: \"$ac_link\"") >&5
8839 (eval $ac_link) 2>&5
8841 - echo "$as_me:6958: \$? = $ac_status" >&5
8842 + echo "$as_me:7709: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try='test -s conftest$ac_exeext'
8845 - { (eval echo "$as_me:6961: \"$ac_try\"") >&5
8846 + { (eval echo "$as_me:7712: \"$ac_try\"") >&5
8849 - echo "$as_me:6964: \$? = $ac_status" >&5
8850 + echo "$as_me:7715: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_lib_inet_bzero=yes
8854 @@ -6972,21 +7723,21 @@
8855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8856 LIBS=$ac_check_lib_save_LIBS
8858 -echo "$as_me:6975: result: $ac_cv_lib_inet_bzero" >&5
8859 +echo "$as_me:7726: result: $ac_cv_lib_inet_bzero" >&5
8860 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
8861 if test $ac_cv_lib_inet_bzero = yes; then
8866 -echo "$as_me:6982: checking if sys/time.h works with sys/select.h" >&5
8867 +echo "$as_me:7733: checking if sys/time.h works with sys/select.h" >&5
8868 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
8869 if test "${cf_cv_sys_time_select+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 cat >conftest.$ac_ext <<_ACEOF
8874 -#line 6989 "configure"
8875 +#line 7740 "configure"
8876 #include "confdefs.h"
8878 #include <sys/types.h>
8879 @@ -7006,16 +7757,16 @@
8882 rm -f conftest.$ac_objext
8883 -if { (eval echo "$as_me:7009: \"$ac_compile\"") >&5
8884 +if { (eval echo "$as_me:7760: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>&5
8887 - echo "$as_me:7012: \$? = $ac_status" >&5
8888 + echo "$as_me:7763: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -s conftest.$ac_objext'
8891 - { (eval echo "$as_me:7015: \"$ac_try\"") >&5
8892 + { (eval echo "$as_me:7766: \"$ac_try\"") >&5
8895 - echo "$as_me:7018: \$? = $ac_status" >&5
8896 + echo "$as_me:7769: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 cf_cv_sys_time_select=yes
8900 @@ -7027,7 +7778,7 @@
8904 -echo "$as_me:7030: result: $cf_cv_sys_time_select" >&5
8905 +echo "$as_me:7781: result: $cf_cv_sys_time_select" >&5
8906 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
8907 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
8908 #define HAVE_SYS_TIME_SELECT 1
8909 @@ -7040,7 +7791,7 @@
8910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8913 -echo "$as_me:7043: checking for $CC option to accept ANSI C" >&5
8914 +echo "$as_me:7794: checking for $CC option to accept ANSI C" >&5
8915 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8916 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 @@ -7048,7 +7799,7 @@
8919 ac_cv_prog_cc_stdc=no
8921 cat >conftest.$ac_ext <<_ACEOF
8922 -#line 7051 "configure"
8923 +#line 7802 "configure"
8924 #include "confdefs.h"
8927 @@ -7097,16 +7848,16 @@
8929 CC="$ac_save_CC $ac_arg"
8930 rm -f conftest.$ac_objext
8931 -if { (eval echo "$as_me:7100: \"$ac_compile\"") >&5
8932 +if { (eval echo "$as_me:7851: \"$ac_compile\"") >&5
8933 (eval $ac_compile) 2>&5
8935 - echo "$as_me:7103: \$? = $ac_status" >&5
8936 + echo "$as_me:7854: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try='test -s conftest.$ac_objext'
8939 - { (eval echo "$as_me:7106: \"$ac_try\"") >&5
8940 + { (eval echo "$as_me:7857: \"$ac_try\"") >&5
8943 - echo "$as_me:7109: \$? = $ac_status" >&5
8944 + echo "$as_me:7860: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946 ac_cv_prog_cc_stdc=$ac_arg
8948 @@ -7123,21 +7874,21 @@
8950 case "x$ac_cv_prog_cc_stdc" in
8952 - echo "$as_me:7126: result: none needed" >&5
8953 + echo "$as_me:7877: result: none needed" >&5
8954 echo "${ECHO_T}none needed" >&6 ;;
8956 - echo "$as_me:7129: result: $ac_cv_prog_cc_stdc" >&5
8957 + echo "$as_me:7880: result: $ac_cv_prog_cc_stdc" >&5
8958 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8959 CC="$CC $ac_cv_prog_cc_stdc" ;;
8962 -echo "$as_me:7134: checking for an ANSI C-conforming const" >&5
8963 +echo "$as_me:7885: checking for an ANSI C-conforming const" >&5
8964 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8965 if test "${ac_cv_c_const+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 cat >conftest.$ac_ext <<_ACEOF
8969 -#line 7140 "configure"
8970 +#line 7891 "configure"
8971 #include "confdefs.h"
8974 @@ -7195,16 +7946,16 @@
8977 rm -f conftest.$ac_objext
8978 -if { (eval echo "$as_me:7198: \"$ac_compile\"") >&5
8979 +if { (eval echo "$as_me:7949: \"$ac_compile\"") >&5
8980 (eval $ac_compile) 2>&5
8982 - echo "$as_me:7201: \$? = $ac_status" >&5
8983 + echo "$as_me:7952: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -s conftest.$ac_objext'
8986 - { (eval echo "$as_me:7204: \"$ac_try\"") >&5
8987 + { (eval echo "$as_me:7955: \"$ac_try\"") >&5
8990 - echo "$as_me:7207: \$? = $ac_status" >&5
8991 + echo "$as_me:7958: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8995 @@ -7214,7 +7965,7 @@
8997 rm -f conftest.$ac_objext conftest.$ac_ext
8999 -echo "$as_me:7217: result: $ac_cv_c_const" >&5
9000 +echo "$as_me:7968: result: $ac_cv_c_const" >&5
9001 echo "${ECHO_T}$ac_cv_c_const" >&6
9002 if test $ac_cv_c_const = no; then
9004 @@ -7224,7 +7975,7 @@
9008 -echo "$as_me:7227: checking for inline" >&5
9009 +echo "$as_me:7978: checking for inline" >&5
9010 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9011 if test "${ac_cv_c_inline+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 @@ -7232,7 +7983,7 @@
9015 for ac_kw in inline __inline__ __inline; do
9016 cat >conftest.$ac_ext <<_ACEOF
9017 -#line 7235 "configure"
9018 +#line 7986 "configure"
9019 #include "confdefs.h"
9021 static $ac_kw int static_foo () {return 0; }
9022 @@ -7241,16 +7992,16 @@
9025 rm -f conftest.$ac_objext
9026 -if { (eval echo "$as_me:7244: \"$ac_compile\"") >&5
9027 +if { (eval echo "$as_me:7995: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>&5
9030 - echo "$as_me:7247: \$? = $ac_status" >&5
9031 + echo "$as_me:7998: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -s conftest.$ac_objext'
9034 - { (eval echo "$as_me:7250: \"$ac_try\"") >&5
9035 + { (eval echo "$as_me:8001: \"$ac_try\"") >&5
9038 - echo "$as_me:7253: \$? = $ac_status" >&5
9039 + echo "$as_me:8004: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 ac_cv_c_inline=$ac_kw; break
9043 @@ -7261,7 +8012,7 @@
9047 -echo "$as_me:7264: result: $ac_cv_c_inline" >&5
9048 +echo "$as_me:8015: result: $ac_cv_c_inline" >&5
9049 echo "${ECHO_T}$ac_cv_c_inline" >&6
9050 case $ac_cv_c_inline in
9052 @@ -7280,14 +8031,14 @@
9053 #define CC_HAS_INLINE_FUNCS 1
9056 -echo "$as_me:7283: checking if unsigned literals are legal" >&5
9057 +echo "$as_me:8034: checking if unsigned literals are legal" >&5
9058 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
9059 if test "${cf_cv_unsigned_literals+set}" = set; then
9060 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 cat >conftest.$ac_ext <<_ACEOF
9064 -#line 7290 "configure"
9065 +#line 8041 "configure"
9066 #include "confdefs.h"
9069 @@ -7299,16 +8050,16 @@
9072 rm -f conftest.$ac_objext
9073 -if { (eval echo "$as_me:7302: \"$ac_compile\"") >&5
9074 +if { (eval echo "$as_me:8053: \"$ac_compile\"") >&5
9075 (eval $ac_compile) 2>&5
9077 - echo "$as_me:7305: \$? = $ac_status" >&5
9078 + echo "$as_me:8056: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -s conftest.$ac_objext'
9081 - { (eval echo "$as_me:7308: \"$ac_try\"") >&5
9082 + { (eval echo "$as_me:8059: \"$ac_try\"") >&5
9085 - echo "$as_me:7311: \$? = $ac_status" >&5
9086 + echo "$as_me:8062: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 cf_cv_unsigned_literals=yes
9090 @@ -7320,10 +8071,10 @@
9094 -echo "$as_me:7323: result: $cf_cv_unsigned_literals" >&5
9095 +echo "$as_me:8074: result: $cf_cv_unsigned_literals" >&5
9096 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
9098 -echo "$as_me:7326: checking for type of chtype" >&5
9099 +echo "$as_me:8077: checking for type of chtype" >&5
9100 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
9101 if test "${cf_cv_typeof_chtype+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 @@ -7333,7 +8084,7 @@
9104 cf_cv_typeof_chtype=long
9106 cat >conftest.$ac_ext <<_ACEOF
9107 -#line 7336 "configure"
9108 +#line 8087 "configure"
9109 #include "confdefs.h"
9111 #ifdef USE_WIDEC_SUPPORT
9112 @@ -7380,15 +8131,15 @@
9115 rm -f conftest$ac_exeext
9116 -if { (eval echo "$as_me:7383: \"$ac_link\"") >&5
9117 +if { (eval echo "$as_me:8134: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>&5
9120 - echo "$as_me:7386: \$? = $ac_status" >&5
9121 + echo "$as_me:8137: \$? = $ac_status" >&5
9122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9123 - { (eval echo "$as_me:7388: \"$ac_try\"") >&5
9124 + { (eval echo "$as_me:8139: \"$ac_try\"") >&5
9127 - echo "$as_me:7391: \$? = $ac_status" >&5
9128 + echo "$as_me:8142: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 cf_cv_typeof_chtype=`cat cf_test.out`
9132 @@ -7403,7 +8154,7 @@
9136 -echo "$as_me:7406: result: $cf_cv_typeof_chtype" >&5
9137 +echo "$as_me:8157: result: $cf_cv_typeof_chtype" >&5
9138 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
9140 cat >>confdefs.h <<EOF
9141 @@ -7416,14 +8167,14 @@
9143 ### Checks for external-data
9145 -echo "$as_me:7419: checking if external errno is declared" >&5
9146 +echo "$as_me:8170: checking if external errno is declared" >&5
9147 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
9148 if test "${cf_cv_dcl_errno+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 cat >conftest.$ac_ext <<_ACEOF
9153 -#line 7426 "configure"
9154 +#line 8177 "configure"
9155 #include "confdefs.h"
9157 #ifdef HAVE_STDLIB_H
9158 @@ -7441,16 +8192,16 @@
9161 rm -f conftest.$ac_objext
9162 -if { (eval echo "$as_me:7444: \"$ac_compile\"") >&5
9163 +if { (eval echo "$as_me:8195: \"$ac_compile\"") >&5
9164 (eval $ac_compile) 2>&5
9166 - echo "$as_me:7447: \$? = $ac_status" >&5
9167 + echo "$as_me:8198: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -s conftest.$ac_objext'
9170 - { (eval echo "$as_me:7450: \"$ac_try\"") >&5
9171 + { (eval echo "$as_me:8201: \"$ac_try\"") >&5
9174 - echo "$as_me:7453: \$? = $ac_status" >&5
9175 + echo "$as_me:8204: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9179 @@ -7461,7 +8212,7 @@
9180 rm -f conftest.$ac_objext conftest.$ac_ext
9183 -echo "$as_me:7464: result: $cf_cv_dcl_errno" >&5
9184 +echo "$as_me:8215: result: $cf_cv_dcl_errno" >&5
9185 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
9187 if test "$cf_cv_dcl_errno" = no ; then
9188 @@ -7476,14 +8227,14 @@
9190 # It's possible (for near-UNIX clones) that the data doesn't exist
9192 -echo "$as_me:7479: checking if external errno exists" >&5
9193 +echo "$as_me:8230: checking if external errno exists" >&5
9194 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
9195 if test "${cf_cv_have_errno+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 cat >conftest.$ac_ext <<_ACEOF
9200 -#line 7486 "configure"
9201 +#line 8237 "configure"
9202 #include "confdefs.h"
9205 @@ -7498,16 +8249,16 @@
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 -if { (eval echo "$as_me:7501: \"$ac_link\"") >&5
9210 +if { (eval echo "$as_me:8252: \"$ac_link\"") >&5
9211 (eval $ac_link) 2>&5
9213 - echo "$as_me:7504: \$? = $ac_status" >&5
9214 + echo "$as_me:8255: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -s conftest$ac_exeext'
9217 - { (eval echo "$as_me:7507: \"$ac_try\"") >&5
9218 + { (eval echo "$as_me:8258: \"$ac_try\"") >&5
9221 - echo "$as_me:7510: \$? = $ac_status" >&5
9222 + echo "$as_me:8261: \$? = $ac_status" >&5
9223 (exit $ac_status); }; }; then
9224 cf_cv_have_errno=yes
9226 @@ -7518,7 +8269,7 @@
9227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9230 -echo "$as_me:7521: result: $cf_cv_have_errno" >&5
9231 +echo "$as_me:8272: result: $cf_cv_have_errno" >&5
9232 echo "${ECHO_T}$cf_cv_have_errno" >&6
9234 if test "$cf_cv_have_errno" = yes ; then
9235 @@ -7531,7 +8282,7 @@
9239 -echo "$as_me:7534: checking if data-only library module links" >&5
9240 +echo "$as_me:8285: checking if data-only library module links" >&5
9241 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
9242 if test "${cf_cv_link_dataonly+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 @@ -7539,20 +8290,20 @@
9247 cat >conftest.$ac_ext <<EOF
9248 -#line 7542 "configure"
9249 +#line 8293 "configure"
9250 int testdata[3] = { 123, 456, 789 };
9252 - if { (eval echo "$as_me:7545: \"$ac_compile\"") >&5
9253 + if { (eval echo "$as_me:8296: \"$ac_compile\"") >&5
9254 (eval $ac_compile) 2>&5
9256 - echo "$as_me:7548: \$? = $ac_status" >&5
9257 + echo "$as_me:8299: \$? = $ac_status" >&5
9258 (exit $ac_status); } ; then
9259 mv conftest.o data.o && \
9260 ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
9262 rm -f conftest.$ac_ext data.o
9263 cat >conftest.$ac_ext <<EOF
9264 -#line 7555 "configure"
9265 +#line 8306 "configure"
9269 @@ -7565,23 +8316,23 @@
9273 - if { (eval echo "$as_me:7568: \"$ac_compile\"") >&5
9274 + if { (eval echo "$as_me:8319: \"$ac_compile\"") >&5
9275 (eval $ac_compile) 2>&5
9277 - echo "$as_me:7571: \$? = $ac_status" >&5
9278 + echo "$as_me:8322: \$? = $ac_status" >&5
9279 (exit $ac_status); }; then
9280 mv conftest.o func.o && \
9281 ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
9283 rm -f conftest.$ac_ext func.o
9284 - ( eval $ac_cv_prog_RANLIB conftest.a ) 2>&5 >/dev/null
9285 + ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
9287 LIBS="conftest.a $LIBS"
9288 if test "$cross_compiling" = yes; then
9289 cf_cv_link_dataonly=unknown
9291 cat >conftest.$ac_ext <<_ACEOF
9292 -#line 7584 "configure"
9293 +#line 8335 "configure"
9294 #include "confdefs.h"
9297 @@ -7592,15 +8343,15 @@
9300 rm -f conftest$ac_exeext
9301 -if { (eval echo "$as_me:7595: \"$ac_link\"") >&5
9302 +if { (eval echo "$as_me:8346: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>&5
9305 - echo "$as_me:7598: \$? = $ac_status" >&5
9306 + echo "$as_me:8349: \$? = $ac_status" >&5
9307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9308 - { (eval echo "$as_me:7600: \"$ac_try\"") >&5
9309 + { (eval echo "$as_me:8351: \"$ac_try\"") >&5
9312 - echo "$as_me:7603: \$? = $ac_status" >&5
9313 + echo "$as_me:8354: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 cf_cv_link_dataonly=yes
9317 @@ -7615,7 +8366,7 @@
9321 -echo "$as_me:7618: result: $cf_cv_link_dataonly" >&5
9322 +echo "$as_me:8369: result: $cf_cv_link_dataonly" >&5
9323 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
9325 if test "$cf_cv_link_dataonly" = no ; then
9326 @@ -7652,13 +8403,13 @@
9329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9330 -echo "$as_me:7655: checking for $ac_func" >&5
9331 +echo "$as_me:8406: checking for $ac_func" >&5
9332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9333 if eval "test \"\${$as_ac_var+set}\" = set"; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 cat >conftest.$ac_ext <<_ACEOF
9337 -#line 7661 "configure"
9338 +#line 8412 "configure"
9339 #include "confdefs.h"
9340 /* System header to define __stub macros and hopefully few prototypes,
9341 which can conflict with char $ac_func (); below. */
9342 @@ -7689,16 +8440,16 @@
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 -if { (eval echo "$as_me:7692: \"$ac_link\"") >&5
9347 +if { (eval echo "$as_me:8443: \"$ac_link\"") >&5
9348 (eval $ac_link) 2>&5
9350 - echo "$as_me:7695: \$? = $ac_status" >&5
9351 + echo "$as_me:8446: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -s conftest$ac_exeext'
9354 - { (eval echo "$as_me:7698: \"$ac_try\"") >&5
9355 + { (eval echo "$as_me:8449: \"$ac_try\"") >&5
9358 - echo "$as_me:7701: \$? = $ac_status" >&5
9359 + echo "$as_me:8452: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 eval "$as_ac_var=yes"
9363 @@ -7708,7 +8459,7 @@
9365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9367 -echo "$as_me:7711: result: `eval echo '${'$as_ac_var'}'`" >&5
9368 +echo "$as_me:8462: result: `eval echo '${'$as_ac_var'}'`" >&5
9369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9370 if test `eval echo '${'$as_ac_var'}'` = yes; then
9371 cat >>confdefs.h <<EOF
9372 @@ -7720,14 +8471,14 @@
9374 if test "$with_getcap" = "yes" ; then
9376 -echo "$as_me:7723: checking for terminal-capability database functions" >&5
9377 +echo "$as_me:8474: checking for terminal-capability database functions" >&5
9378 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
9379 if test "${cf_cv_cgetent+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 cat >conftest.$ac_ext <<_ACEOF
9384 -#line 7730 "configure"
9385 +#line 8481 "configure"
9386 #include "confdefs.h"
9389 @@ -7747,16 +8498,16 @@
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 -if { (eval echo "$as_me:7750: \"$ac_link\"") >&5
9394 +if { (eval echo "$as_me:8501: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>&5
9397 - echo "$as_me:7753: \$? = $ac_status" >&5
9398 + echo "$as_me:8504: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -s conftest$ac_exeext'
9401 - { (eval echo "$as_me:7756: \"$ac_try\"") >&5
9402 + { (eval echo "$as_me:8507: \"$ac_try\"") >&5
9405 - echo "$as_me:7759: \$? = $ac_status" >&5
9406 + echo "$as_me:8510: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9410 @@ -7768,7 +8519,7 @@
9414 -echo "$as_me:7771: result: $cf_cv_cgetent" >&5
9415 +echo "$as_me:8522: result: $cf_cv_cgetent" >&5
9416 echo "${ECHO_T}$cf_cv_cgetent" >&6
9417 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
9418 #define HAVE_BSD_CGETENT 1
9419 @@ -7776,14 +8527,14 @@
9423 -echo "$as_me:7779: checking for isascii" >&5
9424 +echo "$as_me:8530: checking for isascii" >&5
9425 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
9426 if test "${cf_cv_have_isascii+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 cat >conftest.$ac_ext <<_ACEOF
9431 -#line 7786 "configure"
9432 +#line 8537 "configure"
9433 #include "confdefs.h"
9436 @@ -7795,16 +8546,16 @@
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 -if { (eval echo "$as_me:7798: \"$ac_link\"") >&5
9441 +if { (eval echo "$as_me:8549: \"$ac_link\"") >&5
9442 (eval $ac_link) 2>&5
9444 - echo "$as_me:7801: \$? = $ac_status" >&5
9445 + echo "$as_me:8552: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 - { (eval echo "$as_me:7804: \"$ac_try\"") >&5
9449 + { (eval echo "$as_me:8555: \"$ac_try\"") >&5
9452 - echo "$as_me:7807: \$? = $ac_status" >&5
9453 + echo "$as_me:8558: \$? = $ac_status" >&5
9454 (exit $ac_status); }; }; then
9455 cf_cv_have_isascii=yes
9457 @@ -7815,17 +8566,17 @@
9458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9461 -echo "$as_me:7818: result: $cf_cv_have_isascii" >&5
9462 +echo "$as_me:8569: result: $cf_cv_have_isascii" >&5
9463 echo "${ECHO_T}$cf_cv_have_isascii" >&6
9464 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
9465 #define HAVE_ISASCII 1
9468 if test "$ac_cv_func_sigaction" = yes; then
9469 -echo "$as_me:7825: checking whether sigaction needs _POSIX_SOURCE" >&5
9470 +echo "$as_me:8576: checking whether sigaction needs _POSIX_SOURCE" >&5
9471 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
9472 cat >conftest.$ac_ext <<_ACEOF
9473 -#line 7828 "configure"
9474 +#line 8579 "configure"
9475 #include "confdefs.h"
9477 #include <sys/types.h>
9478 @@ -7839,16 +8590,16 @@
9481 rm -f conftest.$ac_objext
9482 -if { (eval echo "$as_me:7842: \"$ac_compile\"") >&5
9483 +if { (eval echo "$as_me:8593: \"$ac_compile\"") >&5
9484 (eval $ac_compile) 2>&5
9486 - echo "$as_me:7845: \$? = $ac_status" >&5
9487 + echo "$as_me:8596: \$? = $ac_status" >&5
9488 (exit $ac_status); } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 - { (eval echo "$as_me:7848: \"$ac_try\"") >&5
9491 + { (eval echo "$as_me:8599: \"$ac_try\"") >&5
9494 - echo "$as_me:7851: \$? = $ac_status" >&5
9495 + echo "$as_me:8602: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9499 @@ -7856,7 +8607,7 @@
9500 cat conftest.$ac_ext >&5
9502 cat >conftest.$ac_ext <<_ACEOF
9503 -#line 7859 "configure"
9504 +#line 8610 "configure"
9505 #include "confdefs.h"
9507 #define _POSIX_SOURCE
9508 @@ -7871,16 +8622,16 @@
9511 rm -f conftest.$ac_objext
9512 -if { (eval echo "$as_me:7874: \"$ac_compile\"") >&5
9513 +if { (eval echo "$as_me:8625: \"$ac_compile\"") >&5
9514 (eval $ac_compile) 2>&5
9516 - echo "$as_me:7877: \$? = $ac_status" >&5
9517 + echo "$as_me:8628: \$? = $ac_status" >&5
9518 (exit $ac_status); } &&
9519 { ac_try='test -s conftest.$ac_objext'
9520 - { (eval echo "$as_me:7880: \"$ac_try\"") >&5
9521 + { (eval echo "$as_me:8631: \"$ac_try\"") >&5
9524 - echo "$as_me:7883: \$? = $ac_status" >&5
9525 + echo "$as_me:8634: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9528 cat >>confdefs.h <<\EOF
9529 @@ -7895,7 +8646,7 @@
9530 rm -f conftest.$ac_objext conftest.$ac_ext
9532 rm -f conftest.$ac_objext conftest.$ac_ext
9533 -echo "$as_me:7898: result: $sigact_bad" >&5
9534 +echo "$as_me:8649: result: $sigact_bad" >&5
9535 echo "${ECHO_T}$sigact_bad" >&6
9538 @@ -7906,23 +8657,23 @@
9541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9542 -echo "$as_me:7909: checking for $ac_header" >&5
9543 +echo "$as_me:8660: checking for $ac_header" >&5
9544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 -#line 7915 "configure"
9550 +#line 8666 "configure"
9551 #include "confdefs.h"
9552 #include <$ac_header>
9554 -if { (eval echo "$as_me:7919: \"$ac_cpp conftest.$ac_ext\"") >&5
9555 +if { (eval echo "$as_me:8670: \"$ac_cpp conftest.$ac_ext\"") >&5
9556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9558 egrep -v '^ *\+' conftest.er1 >conftest.err
9560 cat conftest.err >&5
9561 - echo "$as_me:7925: \$? = $ac_status" >&5
9562 + echo "$as_me:8676: \$? = $ac_status" >&5
9563 (exit $ac_status); } >/dev/null; then
9564 if test -s conftest.err; then
9565 ac_cpp_err=$ac_c_preproc_warn_flag
9566 @@ -7941,7 +8692,7 @@
9568 rm -f conftest.err conftest.$ac_ext
9570 -echo "$as_me:7944: result: `eval echo '${'$as_ac_Header'}'`" >&5
9571 +echo "$as_me:8695: result: `eval echo '${'$as_ac_Header'}'`" >&5
9572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9574 cat >>confdefs.h <<EOF
9575 @@ -7956,23 +8707,23 @@
9576 for ac_header in sys/termio.h
9578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9579 -echo "$as_me:7959: checking for $ac_header" >&5
9580 +echo "$as_me:8710: checking for $ac_header" >&5
9581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 cat >conftest.$ac_ext <<_ACEOF
9586 -#line 7965 "configure"
9587 +#line 8716 "configure"
9588 #include "confdefs.h"
9589 #include <$ac_header>
9591 -if { (eval echo "$as_me:7969: \"$ac_cpp conftest.$ac_ext\"") >&5
9592 +if { (eval echo "$as_me:8720: \"$ac_cpp conftest.$ac_ext\"") >&5
9593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9595 egrep -v '^ *\+' conftest.er1 >conftest.err
9597 cat conftest.err >&5
9598 - echo "$as_me:7975: \$? = $ac_status" >&5
9599 + echo "$as_me:8726: \$? = $ac_status" >&5
9600 (exit $ac_status); } >/dev/null; then
9601 if test -s conftest.err; then
9602 ac_cpp_err=$ac_c_preproc_warn_flag
9603 @@ -7991,7 +8742,7 @@
9605 rm -f conftest.err conftest.$ac_ext
9607 -echo "$as_me:7994: result: `eval echo '${'$as_ac_Header'}'`" >&5
9608 +echo "$as_me:8745: result: `eval echo '${'$as_ac_Header'}'`" >&5
9609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9611 cat >>confdefs.h <<EOF
9612 @@ -8009,10 +8760,10 @@
9613 *) termios_bad=maybe ;;
9615 if test "$termios_bad" = maybe ; then
9616 - echo "$as_me:8012: checking whether termios.h needs _POSIX_SOURCE" >&5
9617 + echo "$as_me:8763: checking whether termios.h needs _POSIX_SOURCE" >&5
9618 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9620 -#line 8015 "configure"
9621 +#line 8766 "configure"
9622 #include "confdefs.h"
9623 #include <termios.h>
9625 @@ -8024,16 +8775,16 @@
9628 rm -f conftest.$ac_objext
9629 -if { (eval echo "$as_me:8027: \"$ac_compile\"") >&5
9630 +if { (eval echo "$as_me:8778: \"$ac_compile\"") >&5
9631 (eval $ac_compile) 2>&5
9633 - echo "$as_me:8030: \$? = $ac_status" >&5
9634 + echo "$as_me:8781: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -s conftest.$ac_objext'
9637 - { (eval echo "$as_me:8033: \"$ac_try\"") >&5
9638 + { (eval echo "$as_me:8784: \"$ac_try\"") >&5
9641 - echo "$as_me:8036: \$? = $ac_status" >&5
9642 + echo "$as_me:8787: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9646 @@ -8041,7 +8792,7 @@
9647 cat conftest.$ac_ext >&5
9649 cat >conftest.$ac_ext <<_ACEOF
9650 -#line 8044 "configure"
9651 +#line 8795 "configure"
9652 #include "confdefs.h"
9654 #define _POSIX_SOURCE
9655 @@ -8055,16 +8806,16 @@
9658 rm -f conftest.$ac_objext
9659 -if { (eval echo "$as_me:8058: \"$ac_compile\"") >&5
9660 +if { (eval echo "$as_me:8809: \"$ac_compile\"") >&5
9661 (eval $ac_compile) 2>&5
9663 - echo "$as_me:8061: \$? = $ac_status" >&5
9664 + echo "$as_me:8812: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -s conftest.$ac_objext'
9667 - { (eval echo "$as_me:8064: \"$ac_try\"") >&5
9668 + { (eval echo "$as_me:8815: \"$ac_try\"") >&5
9671 - echo "$as_me:8067: \$? = $ac_status" >&5
9672 + echo "$as_me:8818: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9676 @@ -8079,19 +8830,19 @@
9679 rm -f conftest.$ac_objext conftest.$ac_ext
9680 - echo "$as_me:8082: result: $termios_bad" >&5
9681 + echo "$as_me:8833: result: $termios_bad" >&5
9682 echo "${ECHO_T}$termios_bad" >&6
9686 -echo "$as_me:8087: checking for tcgetattr" >&5
9687 +echo "$as_me:8838: checking for tcgetattr" >&5
9688 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
9689 if test "${cf_cv_have_tcgetattr+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 cat >conftest.$ac_ext <<_ACEOF
9694 -#line 8094 "configure"
9695 +#line 8845 "configure"
9696 #include "confdefs.h"
9698 #include <sys/types.h>
9699 @@ -8119,16 +8870,16 @@
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 -if { (eval echo "$as_me:8122: \"$ac_link\"") >&5
9704 +if { (eval echo "$as_me:8873: \"$ac_link\"") >&5
9705 (eval $ac_link) 2>&5
9707 - echo "$as_me:8125: \$? = $ac_status" >&5
9708 + echo "$as_me:8876: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -s conftest$ac_exeext'
9711 - { (eval echo "$as_me:8128: \"$ac_try\"") >&5
9712 + { (eval echo "$as_me:8879: \"$ac_try\"") >&5
9715 - echo "$as_me:8131: \$? = $ac_status" >&5
9716 + echo "$as_me:8882: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 cf_cv_have_tcgetattr=yes
9720 @@ -8138,20 +8889,20 @@
9722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9724 -echo "$as_me:8141: result: $cf_cv_have_tcgetattr" >&5
9725 +echo "$as_me:8892: result: $cf_cv_have_tcgetattr" >&5
9726 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
9727 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
9728 #define HAVE_TCGETATTR 1
9731 -echo "$as_me:8147: checking for vsscanf function or workaround" >&5
9732 +echo "$as_me:8898: checking for vsscanf function or workaround" >&5
9733 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
9734 if test "${cf_cv_func_vsscanf+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 cat >conftest.$ac_ext <<_ACEOF
9739 -#line 8154 "configure"
9740 +#line 8905 "configure"
9741 #include "confdefs.h"
9744 @@ -8167,16 +8918,16 @@
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 -if { (eval echo "$as_me:8170: \"$ac_link\"") >&5
9749 +if { (eval echo "$as_me:8921: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>&5
9752 - echo "$as_me:8173: \$? = $ac_status" >&5
9753 + echo "$as_me:8924: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -s conftest$ac_exeext'
9756 - { (eval echo "$as_me:8176: \"$ac_try\"") >&5
9757 + { (eval echo "$as_me:8927: \"$ac_try\"") >&5
9760 - echo "$as_me:8179: \$? = $ac_status" >&5
9761 + echo "$as_me:8930: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 cf_cv_func_vsscanf=vsscanf
9765 @@ -8184,7 +8935,7 @@
9766 cat conftest.$ac_ext >&5
9768 cat >conftest.$ac_ext <<_ACEOF
9769 -#line 8187 "configure"
9770 +#line 8938 "configure"
9771 #include "confdefs.h"
9774 @@ -8206,16 +8957,16 @@
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 -if { (eval echo "$as_me:8209: \"$ac_link\"") >&5
9779 +if { (eval echo "$as_me:8960: \"$ac_link\"") >&5
9780 (eval $ac_link) 2>&5
9782 - echo "$as_me:8212: \$? = $ac_status" >&5
9783 + echo "$as_me:8963: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 - { (eval echo "$as_me:8215: \"$ac_try\"") >&5
9787 + { (eval echo "$as_me:8966: \"$ac_try\"") >&5
9790 - echo "$as_me:8218: \$? = $ac_status" >&5
9791 + echo "$as_me:8969: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 cf_cv_func_vsscanf=vfscanf
9795 @@ -8223,7 +8974,7 @@
9796 cat conftest.$ac_ext >&5
9798 cat >conftest.$ac_ext <<_ACEOF
9799 -#line 8226 "configure"
9800 +#line 8977 "configure"
9801 #include "confdefs.h"
9804 @@ -8245,16 +8996,16 @@
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 -if { (eval echo "$as_me:8248: \"$ac_link\"") >&5
9809 +if { (eval echo "$as_me:8999: \"$ac_link\"") >&5
9810 (eval $ac_link) 2>&5
9812 - echo "$as_me:8251: \$? = $ac_status" >&5
9813 + echo "$as_me:9002: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try='test -s conftest$ac_exeext'
9816 - { (eval echo "$as_me:8254: \"$ac_try\"") >&5
9817 + { (eval echo "$as_me:9005: \"$ac_try\"") >&5
9820 - echo "$as_me:8257: \$? = $ac_status" >&5
9821 + echo "$as_me:9008: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 cf_cv_func_vsscanf=_doscan
9825 @@ -8269,7 +9020,7 @@
9827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9829 -echo "$as_me:8272: result: $cf_cv_func_vsscanf" >&5
9830 +echo "$as_me:9023: result: $cf_cv_func_vsscanf" >&5
9831 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
9833 case $cf_cv_func_vsscanf in #(vi
9834 @@ -8287,7 +9038,7 @@
9838 -echo "$as_me:8290: checking for working mkstemp" >&5
9839 +echo "$as_me:9041: checking for working mkstemp" >&5
9840 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
9841 if test "${cf_cv_func_mkstemp+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 @@ -8295,13 +9046,13 @@
9846 if test "$cross_compiling" = yes; then
9847 - echo "$as_me:8298: checking for mkstemp" >&5
9848 + echo "$as_me:9049: checking for mkstemp" >&5
9849 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9850 if test "${ac_cv_func_mkstemp+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9854 -#line 8304 "configure"
9855 +#line 9055 "configure"
9856 #include "confdefs.h"
9857 /* System header to define __stub macros and hopefully few prototypes,
9858 which can conflict with char mkstemp (); below. */
9859 @@ -8332,16 +9083,16 @@
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 -if { (eval echo "$as_me:8335: \"$ac_link\"") >&5
9864 +if { (eval echo "$as_me:9086: \"$ac_link\"") >&5
9865 (eval $ac_link) 2>&5
9867 - echo "$as_me:8338: \$? = $ac_status" >&5
9868 + echo "$as_me:9089: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -s conftest$ac_exeext'
9871 - { (eval echo "$as_me:8341: \"$ac_try\"") >&5
9872 + { (eval echo "$as_me:9092: \"$ac_try\"") >&5
9875 - echo "$as_me:8344: \$? = $ac_status" >&5
9876 + echo "$as_me:9095: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_func_mkstemp=yes
9880 @@ -8351,12 +9102,12 @@
9882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9884 -echo "$as_me:8354: result: $ac_cv_func_mkstemp" >&5
9885 +echo "$as_me:9105: result: $ac_cv_func_mkstemp" >&5
9886 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9890 -#line 8359 "configure"
9891 +#line 9110 "configure"
9892 #include "confdefs.h"
9894 #include <sys/types.h>
9895 @@ -8394,15 +9145,15 @@
9898 rm -f conftest$ac_exeext
9899 -if { (eval echo "$as_me:8397: \"$ac_link\"") >&5
9900 +if { (eval echo "$as_me:9148: \"$ac_link\"") >&5
9901 (eval $ac_link) 2>&5
9903 - echo "$as_me:8400: \$? = $ac_status" >&5
9904 + echo "$as_me:9151: \$? = $ac_status" >&5
9905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9906 - { (eval echo "$as_me:8402: \"$ac_try\"") >&5
9907 + { (eval echo "$as_me:9153: \"$ac_try\"") >&5
9910 - echo "$as_me:8405: \$? = $ac_status" >&5
9911 + echo "$as_me:9156: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 cf_cv_func_mkstemp=yes
9915 @@ -8417,7 +9168,7 @@
9919 -echo "$as_me:8420: result: $cf_cv_func_mkstemp" >&5
9920 +echo "$as_me:9171: result: $cf_cv_func_mkstemp" >&5
9921 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
9922 if test "$cf_cv_func_mkstemp" = yes ; then
9923 cat >>confdefs.h <<\EOF
9924 @@ -8434,21 +9185,21 @@
9927 if test "$cross_compiling" = yes ; then
9928 - { echo "$as_me:8437: WARNING: cross compiling: assume setvbuf params not reversed" >&5
9929 + { echo "$as_me:9188: WARNING: cross compiling: assume setvbuf params not reversed" >&5
9930 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
9932 - echo "$as_me:8440: checking whether setvbuf arguments are reversed" >&5
9933 + echo "$as_me:9191: checking whether setvbuf arguments are reversed" >&5
9934 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9935 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 if test "$cross_compiling" = yes; then
9939 - { { echo "$as_me:8446: error: cannot run test program while cross compiling" >&5
9940 + { { echo "$as_me:9197: error: cannot run test program while cross compiling" >&5
9941 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9942 { (exit 1); exit 1; }; }
9944 cat >conftest.$ac_ext <<_ACEOF
9945 -#line 8451 "configure"
9946 +#line 9202 "configure"
9947 #include "confdefs.h"
9949 /* If setvbuf has the reversed format, exit 0. */
9950 @@ -8465,15 +9216,15 @@
9953 rm -f conftest$ac_exeext
9954 -if { (eval echo "$as_me:8468: \"$ac_link\"") >&5
9955 +if { (eval echo "$as_me:9219: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>&5
9958 - echo "$as_me:8471: \$? = $ac_status" >&5
9959 + echo "$as_me:9222: \$? = $ac_status" >&5
9960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9961 - { (eval echo "$as_me:8473: \"$ac_try\"") >&5
9962 + { (eval echo "$as_me:9224: \"$ac_try\"") >&5
9965 - echo "$as_me:8476: \$? = $ac_status" >&5
9966 + echo "$as_me:9227: \$? = $ac_status" >&5
9967 (exit $ac_status); }; }; then
9968 ac_cv_func_setvbuf_reversed=yes
9970 @@ -8486,7 +9237,7 @@
9972 rm -f core core.* *.core
9974 -echo "$as_me:8489: result: $ac_cv_func_setvbuf_reversed" >&5
9975 +echo "$as_me:9240: result: $ac_cv_func_setvbuf_reversed" >&5
9976 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
9977 if test $ac_cv_func_setvbuf_reversed = yes; then
9979 @@ -8497,13 +9248,13 @@
9983 -echo "$as_me:8500: checking return type of signal handlers" >&5
9984 +echo "$as_me:9251: checking return type of signal handlers" >&5
9985 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9986 if test "${ac_cv_type_signal+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 cat >conftest.$ac_ext <<_ACEOF
9990 -#line 8506 "configure"
9991 +#line 9257 "configure"
9992 #include "confdefs.h"
9993 #include <sys/types.h>
9995 @@ -8525,16 +9276,16 @@
9998 rm -f conftest.$ac_objext
9999 -if { (eval echo "$as_me:8528: \"$ac_compile\"") >&5
10000 +if { (eval echo "$as_me:9279: \"$ac_compile\"") >&5
10001 (eval $ac_compile) 2>&5
10003 - echo "$as_me:8531: \$? = $ac_status" >&5
10004 + echo "$as_me:9282: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try='test -s conftest.$ac_objext'
10007 - { (eval echo "$as_me:8534: \"$ac_try\"") >&5
10008 + { (eval echo "$as_me:9285: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 - echo "$as_me:8537: \$? = $ac_status" >&5
10012 + echo "$as_me:9288: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_type_signal=void
10016 @@ -8544,21 +9295,21 @@
10018 rm -f conftest.$ac_objext conftest.$ac_ext
10020 -echo "$as_me:8547: result: $ac_cv_type_signal" >&5
10021 +echo "$as_me:9298: result: $ac_cv_type_signal" >&5
10022 echo "${ECHO_T}$ac_cv_type_signal" >&6
10024 cat >>confdefs.h <<EOF
10025 #define RETSIGTYPE $ac_cv_type_signal
10028 -echo "$as_me:8554: checking for type sigaction_t" >&5
10029 +echo "$as_me:9305: checking for type sigaction_t" >&5
10030 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
10031 if test "${cf_cv_type_sigaction+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10036 -#line 8561 "configure"
10037 +#line 9312 "configure"
10038 #include "confdefs.h"
10040 #include <signal.h>
10041 @@ -8571,16 +9322,16 @@
10044 rm -f conftest.$ac_objext
10045 -if { (eval echo "$as_me:8574: \"$ac_compile\"") >&5
10046 +if { (eval echo "$as_me:9325: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>&5
10049 - echo "$as_me:8577: \$? = $ac_status" >&5
10050 + echo "$as_me:9328: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -s conftest.$ac_objext'
10053 - { (eval echo "$as_me:8580: \"$ac_try\"") >&5
10054 + { (eval echo "$as_me:9331: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 - echo "$as_me:8583: \$? = $ac_status" >&5
10058 + echo "$as_me:9334: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 cf_cv_type_sigaction=yes
10062 @@ -8591,13 +9342,13 @@
10063 rm -f conftest.$ac_objext conftest.$ac_ext
10066 -echo "$as_me:8594: result: $cf_cv_type_sigaction" >&5
10067 +echo "$as_me:9345: result: $cf_cv_type_sigaction" >&5
10068 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
10069 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
10070 #define HAVE_TYPE_SIGACTION 1
10073 -echo "$as_me:8600: checking declaration of size-change" >&5
10074 +echo "$as_me:9351: checking declaration of size-change" >&5
10075 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
10076 if test "${cf_cv_sizechange+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 @@ -8612,7 +9363,7 @@
10079 CPPFLAGS="$cf_save_CPPFLAGS"
10080 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 -#line 8615 "configure"
10083 +#line 9366 "configure"
10084 #include "confdefs.h"
10085 #include <sys/types.h>
10086 #ifdef HAVE_TERMIOS_H
10087 @@ -8656,16 +9407,16 @@
10090 rm -f conftest.$ac_objext
10091 -if { (eval echo "$as_me:8659: \"$ac_compile\"") >&5
10092 +if { (eval echo "$as_me:9410: \"$ac_compile\"") >&5
10093 (eval $ac_compile) 2>&5
10095 - echo "$as_me:8662: \$? = $ac_status" >&5
10096 + echo "$as_me:9413: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -s conftest.$ac_objext'
10099 - { (eval echo "$as_me:8665: \"$ac_try\"") >&5
10100 + { (eval echo "$as_me:9416: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10103 - echo "$as_me:8668: \$? = $ac_status" >&5
10104 + echo "$as_me:9419: \$? = $ac_status" >&5
10105 (exit $ac_status); }; }; then
10106 cf_cv_sizechange=yes
10108 @@ -8684,7 +9435,7 @@
10112 -echo "$as_me:8687: result: $cf_cv_sizechange" >&5
10113 +echo "$as_me:9438: result: $cf_cv_sizechange" >&5
10114 echo "${ECHO_T}$cf_cv_sizechange" >&6
10115 if test "$cf_cv_sizechange" != no ; then
10116 cat >>confdefs.h <<\EOF
10117 @@ -8701,13 +9452,13 @@
10121 -echo "$as_me:8704: checking for memmove" >&5
10122 +echo "$as_me:9455: checking for memmove" >&5
10123 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
10124 if test "${ac_cv_func_memmove+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 cat >conftest.$ac_ext <<_ACEOF
10128 -#line 8710 "configure"
10129 +#line 9461 "configure"
10130 #include "confdefs.h"
10131 /* System header to define __stub macros and hopefully few prototypes,
10132 which can conflict with char memmove (); below. */
10133 @@ -8738,16 +9489,16 @@
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 -if { (eval echo "$as_me:8741: \"$ac_link\"") >&5
10138 +if { (eval echo "$as_me:9492: \"$ac_link\"") >&5
10139 (eval $ac_link) 2>&5
10141 - echo "$as_me:8744: \$? = $ac_status" >&5
10142 + echo "$as_me:9495: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -s conftest$ac_exeext'
10145 - { (eval echo "$as_me:8747: \"$ac_try\"") >&5
10146 + { (eval echo "$as_me:9498: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 - echo "$as_me:8750: \$? = $ac_status" >&5
10150 + echo "$as_me:9501: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 ac_cv_func_memmove=yes
10154 @@ -8757,19 +9508,19 @@
10156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10158 -echo "$as_me:8760: result: $ac_cv_func_memmove" >&5
10159 +echo "$as_me:9511: result: $ac_cv_func_memmove" >&5
10160 echo "${ECHO_T}$ac_cv_func_memmove" >&6
10161 if test $ac_cv_func_memmove = yes; then
10165 -echo "$as_me:8766: checking for bcopy" >&5
10166 +echo "$as_me:9517: checking for bcopy" >&5
10167 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
10168 if test "${ac_cv_func_bcopy+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 cat >conftest.$ac_ext <<_ACEOF
10172 -#line 8772 "configure"
10173 +#line 9523 "configure"
10174 #include "confdefs.h"
10175 /* System header to define __stub macros and hopefully few prototypes,
10176 which can conflict with char bcopy (); below. */
10177 @@ -8800,16 +9551,16 @@
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 -if { (eval echo "$as_me:8803: \"$ac_link\"") >&5
10182 +if { (eval echo "$as_me:9554: \"$ac_link\"") >&5
10183 (eval $ac_link) 2>&5
10185 - echo "$as_me:8806: \$? = $ac_status" >&5
10186 + echo "$as_me:9557: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -s conftest$ac_exeext'
10189 - { (eval echo "$as_me:8809: \"$ac_try\"") >&5
10190 + { (eval echo "$as_me:9560: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 - echo "$as_me:8812: \$? = $ac_status" >&5
10194 + echo "$as_me:9563: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 ac_cv_func_bcopy=yes
10198 @@ -8819,11 +9570,11 @@
10200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10202 -echo "$as_me:8822: result: $ac_cv_func_bcopy" >&5
10203 +echo "$as_me:9573: result: $ac_cv_func_bcopy" >&5
10204 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
10205 if test $ac_cv_func_bcopy = yes; then
10207 - echo "$as_me:8826: checking if bcopy does overlapping moves" >&5
10208 + echo "$as_me:9577: checking if bcopy does overlapping moves" >&5
10209 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
10210 if test "${cf_cv_good_bcopy+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 @@ -8833,7 +9584,7 @@
10213 cf_cv_good_bcopy=unknown
10215 cat >conftest.$ac_ext <<_ACEOF
10216 -#line 8836 "configure"
10217 +#line 9587 "configure"
10218 #include "confdefs.h"
10221 @@ -8847,15 +9598,15 @@
10224 rm -f conftest$ac_exeext
10225 -if { (eval echo "$as_me:8850: \"$ac_link\"") >&5
10226 +if { (eval echo "$as_me:9601: \"$ac_link\"") >&5
10227 (eval $ac_link) 2>&5
10229 - echo "$as_me:8853: \$? = $ac_status" >&5
10230 + echo "$as_me:9604: \$? = $ac_status" >&5
10231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10232 - { (eval echo "$as_me:8855: \"$ac_try\"") >&5
10233 + { (eval echo "$as_me:9606: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 - echo "$as_me:8858: \$? = $ac_status" >&5
10237 + echo "$as_me:9609: \$? = $ac_status" >&5
10238 (exit $ac_status); }; }; then
10239 cf_cv_good_bcopy=yes
10241 @@ -8868,7 +9619,7 @@
10245 -echo "$as_me:8871: result: $cf_cv_good_bcopy" >&5
10246 +echo "$as_me:9622: result: $cf_cv_good_bcopy" >&5
10247 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
10250 @@ -8889,7 +9640,7 @@
10254 -echo "$as_me:8892: checking if poll really works" >&5
10255 +echo "$as_me:9643: checking if poll really works" >&5
10256 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
10257 if test "${cf_cv_working_poll+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 @@ -8899,7 +9650,7 @@
10260 cf_cv_working_poll=unknown
10262 cat >conftest.$ac_ext <<_ACEOF
10263 -#line 8902 "configure"
10264 +#line 9653 "configure"
10265 #include "confdefs.h"
10268 @@ -8920,15 +9671,15 @@
10271 rm -f conftest$ac_exeext
10272 -if { (eval echo "$as_me:8923: \"$ac_link\"") >&5
10273 +if { (eval echo "$as_me:9674: \"$ac_link\"") >&5
10274 (eval $ac_link) 2>&5
10276 - echo "$as_me:8926: \$? = $ac_status" >&5
10277 + echo "$as_me:9677: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279 - { (eval echo "$as_me:8928: \"$ac_try\"") >&5
10280 + { (eval echo "$as_me:9679: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10283 - echo "$as_me:8931: \$? = $ac_status" >&5
10284 + echo "$as_me:9682: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10286 cf_cv_working_poll=yes
10288 @@ -8940,34 +9691,36 @@
10289 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10292 -echo "$as_me:8943: result: $cf_cv_working_poll" >&5
10293 +echo "$as_me:9694: result: $cf_cv_working_poll" >&5
10294 echo "${ECHO_T}$cf_cv_working_poll" >&6
10295 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
10296 #define HAVE_WORKING_POLL 1
10299 if test -z "$cf_user_CFLAGS" ; then
10300 - CFLAGS=`echo ${CFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
10301 - CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
10302 + CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
10303 + CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
10306 -echo "$as_me:8954: checking for stdbool.h" >&5
10307 +# Just in case, check if the C compiler has a bool type.
10309 +echo "$as_me:9707: checking for stdbool.h" >&5
10310 echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6
10311 if test "${ac_cv_header_stdbool_h+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 cat >conftest.$ac_ext <<_ACEOF
10315 -#line 8960 "configure"
10316 +#line 9713 "configure"
10317 #include "confdefs.h"
10318 #include <stdbool.h>
10320 -if { (eval echo "$as_me:8964: \"$ac_cpp conftest.$ac_ext\"") >&5
10321 +if { (eval echo "$as_me:9717: \"$ac_cpp conftest.$ac_ext\"") >&5
10322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10324 egrep -v '^ *\+' conftest.er1 >conftest.err
10326 cat conftest.err >&5
10327 - echo "$as_me:8970: \$? = $ac_status" >&5
10328 + echo "$as_me:9723: \$? = $ac_status" >&5
10329 (exit $ac_status); } >/dev/null; then
10330 if test -s conftest.err; then
10331 ac_cpp_err=$ac_c_preproc_warn_flag
10332 @@ -8986,7 +9739,7 @@
10334 rm -f conftest.err conftest.$ac_ext
10336 -echo "$as_me:8989: result: $ac_cv_header_stdbool_h" >&5
10337 +echo "$as_me:9742: result: $ac_cv_header_stdbool_h" >&5
10338 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10339 if test $ac_cv_header_stdbool_h = yes; then
10340 cf_cv_header_stdbool_h=1
10341 @@ -8994,14 +9747,14 @@
10342 cf_cv_header_stdbool_h=0
10345 -echo "$as_me:8997: checking for builtin bool type" >&5
10346 +echo "$as_me:9750: checking for builtin bool type" >&5
10347 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
10348 -if test "${cf_cv_cc_bool_type+set}" = set; then
10349 +if test "${cv_cv_cc_bool_type+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 cat >conftest.$ac_ext <<_ACEOF
10354 -#line 9004 "configure"
10355 +#line 9757 "configure"
10356 #include "confdefs.h"
10359 @@ -9016,34 +9769,35 @@
10362 rm -f conftest.$ac_objext
10363 -if { (eval echo "$as_me:9019: \"$ac_compile\"") >&5
10364 +if { (eval echo "$as_me:9772: \"$ac_compile\"") >&5
10365 (eval $ac_compile) 2>&5
10367 - echo "$as_me:9022: \$? = $ac_status" >&5
10368 + echo "$as_me:9775: \$? = $ac_status" >&5
10369 (exit $ac_status); } &&
10370 { ac_try='test -s conftest.$ac_objext'
10371 - { (eval echo "$as_me:9025: \"$ac_try\"") >&5
10372 + { (eval echo "$as_me:9778: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10375 - echo "$as_me:9028: \$? = $ac_status" >&5
10376 + echo "$as_me:9781: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 - cf_cv_cc_bool_type=1
10379 + cv_cv_cc_bool_type=1
10381 echo "$as_me: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 -cf_cv_cc_bool_type=0
10384 +cv_cv_cc_bool_type=0
10386 rm -f conftest.$ac_objext conftest.$ac_ext
10390 -if test "$cf_cv_cc_bool_type" = 1
10391 -then echo "$as_me:9041: result: yes" >&5
10392 +if test "$cv_cv_cc_bool_type" = 1
10393 +then echo "$as_me:9794: result: yes" >&5
10394 echo "${ECHO_T}yes" >&6
10395 -else echo "$as_me:9043: result: no" >&5
10396 +else echo "$as_me:9796: result: no" >&5
10397 echo "${ECHO_T}no" >&6
10400 +# Check for C++ compiler characteristics (and ensure that it's there!)
10401 if test -n "$CXX" ; then
10403 ac_cpp='$CXXCPP $CPPFLAGS'
10404 @@ -9060,7 +9814,7 @@
10405 cf_stdcpp_libname=stdc++
10408 -echo "$as_me:9063: checking for library $cf_stdcpp_libname" >&5
10409 +echo "$as_me:9817: checking for library $cf_stdcpp_libname" >&5
10410 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
10411 if test "${cf_cv_libstdcpp+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 @@ -9069,7 +9823,7 @@
10415 LIBS="$LIBS -l$cf_stdcpp_libname"
10416 cat >conftest.$ac_ext <<_ACEOF
10417 -#line 9072 "configure"
10418 +#line 9826 "configure"
10419 #include "confdefs.h"
10421 #include <strstream.h>
10422 @@ -9085,16 +9839,16 @@
10425 rm -f conftest.$ac_objext conftest$ac_exeext
10426 -if { (eval echo "$as_me:9088: \"$ac_link\"") >&5
10427 +if { (eval echo "$as_me:9842: \"$ac_link\"") >&5
10428 (eval $ac_link) 2>&5
10430 - echo "$as_me:9091: \$? = $ac_status" >&5
10431 + echo "$as_me:9845: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -s conftest$ac_exeext'
10434 - { (eval echo "$as_me:9094: \"$ac_try\"") >&5
10435 + { (eval echo "$as_me:9848: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10438 - echo "$as_me:9097: \$? = $ac_status" >&5
10439 + echo "$as_me:9851: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 cf_cv_libstdcpp=yes
10443 @@ -9106,7 +9860,7 @@
10447 -echo "$as_me:9109: result: $cf_cv_libstdcpp" >&5
10448 +echo "$as_me:9863: result: $cf_cv_libstdcpp" >&5
10449 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
10450 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
10452 @@ -9126,13 +9880,13 @@
10456 -if test "$ac_cv_cxx_compiler_gnu" = yes; then
10457 - echo "$as_me:9130: checking for lib$cf_gpp_libname" >&5
10458 +if test "$GXX" = yes; then
10459 + echo "$as_me:9884: checking for lib$cf_gpp_libname" >&5
10460 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
10462 LIBS="$LIBS -l$cf_gpp_libname"
10463 cat >conftest.$ac_ext <<_ACEOF
10464 -#line 9135 "configure"
10465 +#line 9889 "configure"
10466 #include "confdefs.h"
10468 #include <$cf_gpp_libname/builtin.h>
10469 @@ -9146,16 +9900,16 @@
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 -if { (eval echo "$as_me:9149: \"$ac_link\"") >&5
10474 +if { (eval echo "$as_me:9903: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>&5
10477 - echo "$as_me:9152: \$? = $ac_status" >&5
10478 + echo "$as_me:9906: \$? = $ac_status" >&5
10479 (exit $ac_status); } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 - { (eval echo "$as_me:9155: \"$ac_try\"") >&5
10482 + { (eval echo "$as_me:9909: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 - echo "$as_me:9158: \$? = $ac_status" >&5
10486 + echo "$as_me:9912: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10489 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
10490 @@ -9174,7 +9928,7 @@
10491 echo "$as_me: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 cat >conftest.$ac_ext <<_ACEOF
10494 -#line 9177 "configure"
10495 +#line 9931 "configure"
10496 #include "confdefs.h"
10498 #include <builtin.h>
10499 @@ -9188,16 +9942,16 @@
10502 rm -f conftest.$ac_objext conftest$ac_exeext
10503 -if { (eval echo "$as_me:9191: \"$ac_link\"") >&5
10504 +if { (eval echo "$as_me:9945: \"$ac_link\"") >&5
10505 (eval $ac_link) 2>&5
10507 - echo "$as_me:9194: \$? = $ac_status" >&5
10508 + echo "$as_me:9948: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -s conftest$ac_exeext'
10511 - { (eval echo "$as_me:9197: \"$ac_try\"") >&5
10512 + { (eval echo "$as_me:9951: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10515 - echo "$as_me:9200: \$? = $ac_status" >&5
10516 + echo "$as_me:9954: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10519 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
10520 @@ -9214,7 +9968,7 @@
10522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10524 - echo "$as_me:9217: result: $cf_cxx_library" >&5
10525 + echo "$as_me:9971: result: $cf_cxx_library" >&5
10526 echo "${ECHO_T}$cf_cxx_library" >&6
10529 @@ -9229,7 +9983,7 @@
10530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10533 -echo "$as_me:9232: checking how to run the C++ preprocessor" >&5
10534 +echo "$as_me:9986: checking how to run the C++ preprocessor" >&5
10535 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10536 if test -z "$CXXCPP"; then
10537 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10538 @@ -9246,18 +10000,18 @@
10539 # On the NeXT, cc -E runs the code through the compiler's parser,
10540 # not just through cpp. "Syntax error" is here to catch this case.
10541 cat >conftest.$ac_ext <<_ACEOF
10542 -#line 9249 "configure"
10543 +#line 10003 "configure"
10544 #include "confdefs.h"
10545 #include <assert.h>
10548 -if { (eval echo "$as_me:9254: \"$ac_cpp conftest.$ac_ext\"") >&5
10549 +if { (eval echo "$as_me:10008: \"$ac_cpp conftest.$ac_ext\"") >&5
10550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10552 egrep -v '^ *\+' conftest.er1 >conftest.err
10554 cat conftest.err >&5
10555 - echo "$as_me:9260: \$? = $ac_status" >&5
10556 + echo "$as_me:10014: \$? = $ac_status" >&5
10557 (exit $ac_status); } >/dev/null; then
10558 if test -s conftest.err; then
10559 ac_cpp_err=$ac_cxx_preproc_warn_flag
10560 @@ -9280,17 +10034,17 @@
10561 # OK, works on sane cases. Now check whether non-existent headers
10562 # can be detected and how.
10563 cat >conftest.$ac_ext <<_ACEOF
10564 -#line 9283 "configure"
10565 +#line 10037 "configure"
10566 #include "confdefs.h"
10567 #include <ac_nonexistent.h>
10569 -if { (eval echo "$as_me:9287: \"$ac_cpp conftest.$ac_ext\"") >&5
10570 +if { (eval echo "$as_me:10041: \"$ac_cpp conftest.$ac_ext\"") >&5
10571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10573 egrep -v '^ *\+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 - echo "$as_me:9293: \$? = $ac_status" >&5
10577 + echo "$as_me:10047: \$? = $ac_status" >&5
10578 (exit $ac_status); } >/dev/null; then
10579 if test -s conftest.err; then
10580 ac_cpp_err=$ac_cxx_preproc_warn_flag
10581 @@ -9327,7 +10081,7 @@
10583 ac_cv_prog_CXXCPP=$CXXCPP
10585 -echo "$as_me:9330: result: $CXXCPP" >&5
10586 +echo "$as_me:10084: result: $CXXCPP" >&5
10587 echo "${ECHO_T}$CXXCPP" >&6
10588 ac_preproc_ok=false
10589 for ac_cxx_preproc_warn_flag in '' yes
10590 @@ -9337,18 +10091,18 @@
10591 # On the NeXT, cc -E runs the code through the compiler's parser,
10592 # not just through cpp. "Syntax error" is here to catch this case.
10593 cat >conftest.$ac_ext <<_ACEOF
10594 -#line 9340 "configure"
10595 +#line 10094 "configure"
10596 #include "confdefs.h"
10597 #include <assert.h>
10600 -if { (eval echo "$as_me:9345: \"$ac_cpp conftest.$ac_ext\"") >&5
10601 +if { (eval echo "$as_me:10099: \"$ac_cpp conftest.$ac_ext\"") >&5
10602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10604 egrep -v '^ *\+' conftest.er1 >conftest.err
10606 cat conftest.err >&5
10607 - echo "$as_me:9351: \$? = $ac_status" >&5
10608 + echo "$as_me:10105: \$? = $ac_status" >&5
10609 (exit $ac_status); } >/dev/null; then
10610 if test -s conftest.err; then
10611 ac_cpp_err=$ac_cxx_preproc_warn_flag
10612 @@ -9371,17 +10125,17 @@
10613 # OK, works on sane cases. Now check whether non-existent headers
10614 # can be detected and how.
10615 cat >conftest.$ac_ext <<_ACEOF
10616 -#line 9374 "configure"
10617 +#line 10128 "configure"
10618 #include "confdefs.h"
10619 #include <ac_nonexistent.h>
10621 -if { (eval echo "$as_me:9378: \"$ac_cpp conftest.$ac_ext\"") >&5
10622 +if { (eval echo "$as_me:10132: \"$ac_cpp conftest.$ac_ext\"") >&5
10623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10625 egrep -v '^ *\+' conftest.er1 >conftest.err
10627 cat conftest.err >&5
10628 - echo "$as_me:9384: \$? = $ac_status" >&5
10629 + echo "$as_me:10138: \$? = $ac_status" >&5
10630 (exit $ac_status); } >/dev/null; then
10631 if test -s conftest.err; then
10632 ac_cpp_err=$ac_cxx_preproc_warn_flag
10633 @@ -9409,7 +10163,7 @@
10634 if $ac_preproc_ok; then
10637 - { { echo "$as_me:9412: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
10638 + { { echo "$as_me:10166: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
10639 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
10640 { (exit 1); exit 1; }; }
10642 @@ -9423,23 +10177,23 @@
10643 for ac_header in typeinfo
10645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10646 -echo "$as_me:9426: checking for $ac_header" >&5
10647 +echo "$as_me:10180: checking for $ac_header" >&5
10648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 cat >conftest.$ac_ext <<_ACEOF
10653 -#line 9432 "configure"
10654 +#line 10186 "configure"
10655 #include "confdefs.h"
10656 #include <$ac_header>
10658 -if { (eval echo "$as_me:9436: \"$ac_cpp conftest.$ac_ext\"") >&5
10659 +if { (eval echo "$as_me:10190: \"$ac_cpp conftest.$ac_ext\"") >&5
10660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10662 egrep -v '^ *\+' conftest.er1 >conftest.err
10664 cat conftest.err >&5
10665 - echo "$as_me:9442: \$? = $ac_status" >&5
10666 + echo "$as_me:10196: \$? = $ac_status" >&5
10667 (exit $ac_status); } >/dev/null; then
10668 if test -s conftest.err; then
10669 ac_cpp_err=$ac_cxx_preproc_warn_flag
10670 @@ -9458,7 +10212,7 @@
10672 rm -f conftest.err conftest.$ac_ext
10674 -echo "$as_me:9461: result: `eval echo '${'$as_ac_Header'}'`" >&5
10675 +echo "$as_me:10215: result: `eval echo '${'$as_ac_Header'}'`" >&5
10676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10678 cat >>confdefs.h <<EOF
10679 @@ -9468,23 +10222,23 @@
10683 -echo "$as_me:9471: checking for stdbool.h" >&5
10684 +echo "$as_me:10225: checking for stdbool.h" >&5
10685 echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6
10686 if test "${ac_cv_header_stdbool_h+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 cat >conftest.$ac_ext <<_ACEOF
10690 -#line 9477 "configure"
10691 +#line 10231 "configure"
10692 #include "confdefs.h"
10693 #include <stdbool.h>
10695 -if { (eval echo "$as_me:9481: \"$ac_cpp conftest.$ac_ext\"") >&5
10696 +if { (eval echo "$as_me:10235: \"$ac_cpp conftest.$ac_ext\"") >&5
10697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10699 egrep -v '^ *\+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 - echo "$as_me:9487: \$? = $ac_status" >&5
10703 + echo "$as_me:10241: \$? = $ac_status" >&5
10704 (exit $ac_status); } >/dev/null; then
10705 if test -s conftest.err; then
10706 ac_cpp_err=$ac_cxx_preproc_warn_flag
10707 @@ -9503,7 +10257,7 @@
10709 rm -f conftest.err conftest.$ac_ext
10711 -echo "$as_me:9506: result: $ac_cv_header_stdbool_h" >&5
10712 +echo "$as_me:10260: result: $ac_cv_header_stdbool_h" >&5
10713 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10714 if test $ac_cv_header_stdbool_h = yes; then
10715 cf_cv_header_stdbool_h=1
10716 @@ -9511,14 +10265,14 @@
10717 cf_cv_header_stdbool_h=0
10720 -echo "$as_me:9514: checking for builtin bool type" >&5
10721 +echo "$as_me:10268: checking for builtin bool type" >&5
10722 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
10723 if test "${cf_cv_builtin_bool+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 cat >conftest.$ac_ext <<_ACEOF
10728 -#line 9521 "configure"
10729 +#line 10275 "configure"
10730 #include "confdefs.h"
10733 @@ -9533,16 +10287,16 @@
10736 rm -f conftest.$ac_objext
10737 -if { (eval echo "$as_me:9536: \"$ac_compile\"") >&5
10738 +if { (eval echo "$as_me:10290: \"$ac_compile\"") >&5
10739 (eval $ac_compile) 2>&5
10741 - echo "$as_me:9539: \$? = $ac_status" >&5
10742 + echo "$as_me:10293: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -s conftest.$ac_objext'
10745 - { (eval echo "$as_me:9542: \"$ac_try\"") >&5
10746 + { (eval echo "$as_me:10296: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10749 - echo "$as_me:9545: \$? = $ac_status" >&5
10750 + echo "$as_me:10299: \$? = $ac_status" >&5
10751 (exit $ac_status); }; }; then
10752 cf_cv_builtin_bool=1
10754 @@ -9555,13 +10309,13 @@
10757 if test "$cf_cv_builtin_bool" = 1
10758 -then echo "$as_me:9558: result: yes" >&5
10759 +then echo "$as_me:10312: result: yes" >&5
10760 echo "${ECHO_T}yes" >&6
10761 -else echo "$as_me:9560: result: no" >&5
10762 +else echo "$as_me:10314: result: no" >&5
10763 echo "${ECHO_T}no" >&6
10766 -echo "$as_me:9564: checking for size of bool" >&5
10767 +echo "$as_me:10318: checking for size of bool" >&5
10768 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
10769 if test "${cf_cv_type_of_bool+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 @@ -9572,7 +10326,7 @@
10772 cf_cv_type_of_bool=unknown
10774 cat >conftest.$ac_ext <<_ACEOF
10775 -#line 9575 "configure"
10776 +#line 10329 "configure"
10777 #include "confdefs.h"
10779 #include <stdlib.h>
10780 @@ -9614,15 +10368,15 @@
10783 rm -f conftest$ac_exeext
10784 -if { (eval echo "$as_me:9617: \"$ac_link\"") >&5
10785 +if { (eval echo "$as_me:10371: \"$ac_link\"") >&5
10786 (eval $ac_link) 2>&5
10788 - echo "$as_me:9620: \$? = $ac_status" >&5
10789 + echo "$as_me:10374: \$? = $ac_status" >&5
10790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10791 - { (eval echo "$as_me:9622: \"$ac_try\"") >&5
10792 + { (eval echo "$as_me:10376: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 - echo "$as_me:9625: \$? = $ac_status" >&5
10796 + echo "$as_me:10379: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 cf_cv_type_of_bool=`cat cf_test.out`
10799 if test -z "$cf_cv_type_of_bool"; then
10800 @@ -9640,18 +10394,18 @@
10804 -echo "$as_me:9643: result: $cf_cv_type_of_bool" >&5
10805 +echo "$as_me:10397: result: $cf_cv_type_of_bool" >&5
10806 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
10807 if test "$cf_cv_type_of_bool" = unknown ; then
10808 case .$NCURSES_BOOL in #(vi
10809 .auto|.) NCURSES_BOOL=unsigned;;
10811 - { echo "$as_me:9649: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
10812 + { echo "$as_me:10403: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
10813 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
10814 cf_cv_type_of_bool=$NCURSES_BOOL
10817 -echo "$as_me:9654: checking for special defines needed for etip.h" >&5
10818 +echo "$as_me:10408: checking for special defines needed for etip.h" >&5
10819 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
10820 cf_save_CXXFLAGS="$CXXFLAGS"
10822 @@ -9659,11 +10413,11 @@
10824 for cf_excp in "" MATH_EXCEPTION
10826 - CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu"
10827 + CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
10828 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
10829 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
10830 cat >conftest.$ac_ext <<_ACEOF
10831 -#line 9666 "configure"
10832 +#line 10420 "configure"
10833 #include "confdefs.h"
10835 #include <etip.h.in>
10836 @@ -9677,16 +10431,16 @@
10839 rm -f conftest.$ac_objext
10840 -if { (eval echo "$as_me:9680: \"$ac_compile\"") >&5
10841 +if { (eval echo "$as_me:10434: \"$ac_compile\"") >&5
10842 (eval $ac_compile) 2>&5
10844 - echo "$as_me:9683: \$? = $ac_status" >&5
10845 + echo "$as_me:10437: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -s conftest.$ac_objext'
10848 - { (eval echo "$as_me:9686: \"$ac_try\"") >&5
10849 + { (eval echo "$as_me:10440: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10852 - echo "$as_me:9689: \$? = $ac_status" >&5
10853 + echo "$as_me:10443: \$? = $ac_status" >&5
10854 (exit $ac_status); }; }; then
10856 test -n "$cf_math" && cat >>confdefs.h <<EOF
10857 @@ -9707,12 +10461,12 @@
10858 rm -f conftest.$ac_objext conftest.$ac_ext
10861 -echo "$as_me:9710: result: $cf_result" >&5
10862 +echo "$as_me:10464: result: $cf_result" >&5
10863 echo "${ECHO_T}$cf_result" >&6
10864 CXXFLAGS="$cf_save_CXXFLAGS"
10866 if test -n "$CXX"; then
10867 -echo "$as_me:9715: checking if $CXX accepts parameter initialization" >&5
10868 +echo "$as_me:10469: checking if $CXX accepts parameter initialization" >&5
10869 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
10870 if test "${cf_cv_cpp_param_init+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 @@ -9728,7 +10482,7 @@
10873 cf_cv_cpp_param_init=unknown
10875 cat >conftest.$ac_ext <<_ACEOF
10876 -#line 9731 "configure"
10877 +#line 10485 "configure"
10878 #include "confdefs.h"
10881 @@ -9747,15 +10501,15 @@
10884 rm -f conftest$ac_exeext
10885 -if { (eval echo "$as_me:9750: \"$ac_link\"") >&5
10886 +if { (eval echo "$as_me:10504: \"$ac_link\"") >&5
10887 (eval $ac_link) 2>&5
10889 - echo "$as_me:9753: \$? = $ac_status" >&5
10890 + echo "$as_me:10507: \$? = $ac_status" >&5
10891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10892 - { (eval echo "$as_me:9755: \"$ac_try\"") >&5
10893 + { (eval echo "$as_me:10509: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10896 - echo "$as_me:9758: \$? = $ac_status" >&5
10897 + echo "$as_me:10512: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 cf_cv_cpp_param_init=yes
10901 @@ -9773,7 +10527,7 @@
10902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10905 -echo "$as_me:9776: result: $cf_cv_cpp_param_init" >&5
10906 +echo "$as_me:10530: result: $cf_cv_cpp_param_init" >&5
10907 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
10909 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
10910 @@ -9791,23 +10545,23 @@
10911 for ac_header in strstream.h
10913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10914 -echo "$as_me:9794: checking for $ac_header" >&5
10915 +echo "$as_me:10548: checking for $ac_header" >&5
10916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 cat >conftest.$ac_ext <<_ACEOF
10921 -#line 9800 "configure"
10922 +#line 10554 "configure"
10923 #include "confdefs.h"
10924 #include <$ac_header>
10926 -if { (eval echo "$as_me:9804: \"$ac_cpp conftest.$ac_ext\"") >&5
10927 +if { (eval echo "$as_me:10558: \"$ac_cpp conftest.$ac_ext\"") >&5
10928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10930 egrep -v '^ *\+' conftest.er1 >conftest.err
10932 cat conftest.err >&5
10933 - echo "$as_me:9810: \$? = $ac_status" >&5
10934 + echo "$as_me:10564: \$? = $ac_status" >&5
10935 (exit $ac_status); } >/dev/null; then
10936 if test -s conftest.err; then
10937 ac_cpp_err=$ac_cxx_preproc_warn_flag
10938 @@ -9826,7 +10580,7 @@
10940 rm -f conftest.err conftest.$ac_ext
10942 -echo "$as_me:9829: result: `eval echo '${'$as_ac_Header'}'`" >&5
10943 +echo "$as_me:10583: result: `eval echo '${'$as_ac_Header'}'`" >&5
10944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10946 cat >>confdefs.h <<EOF
10947 @@ -9836,7 +10590,7 @@
10951 -echo "$as_me:9839: checking if $CXX supports vscan function" >&5
10952 +echo "$as_me:10593: checking if $CXX supports vscan function" >&5
10953 echo $ECHO_N "checking if $CXX supports vscan function... $ECHO_C" >&6
10954 if test "${cf_cv_cpp_vscan_func+set}" = set; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 @@ -9850,7 +10604,7 @@
10957 strstream_cast) cf_vscan_defs=USE_STRSTREAM_VSCAN_CAST ;;
10959 cat >conftest.$ac_ext <<_ACEOF
10960 -#line 9853 "configure"
10961 +#line 10607 "configure"
10962 #include "confdefs.h"
10965 @@ -9895,16 +10649,16 @@
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 -if { (eval echo "$as_me:9898: \"$ac_link\"") >&5
10970 +if { (eval echo "$as_me:10652: \"$ac_link\"") >&5
10971 (eval $ac_link) 2>&5
10973 - echo "$as_me:9901: \$? = $ac_status" >&5
10974 + echo "$as_me:10655: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -s conftest$ac_exeext'
10977 - { (eval echo "$as_me:9904: \"$ac_try\"") >&5
10978 + { (eval echo "$as_me:10658: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 - echo "$as_me:9907: \$? = $ac_status" >&5
10982 + echo "$as_me:10661: \$? = $ac_status" >&5
10983 (exit $ac_status); }; }; then
10984 cf_cv_cpp_vscan_func=$cf_vscan_func; break
10986 @@ -9917,7 +10671,7 @@
10990 -echo "$as_me:9920: result: $cf_cv_cpp_vscan_func" >&5
10991 +echo "$as_me:10674: result: $cf_cv_cpp_vscan_func" >&5
10992 echo "${ECHO_T}$cf_cv_cpp_vscan_func" >&6
10995 @@ -9999,7 +10753,7 @@
10997 if test "$cf_cv_header_stdbool_h" = 1 ; then
10999 -echo "$as_me:10002: checking for size of bool" >&5
11000 +echo "$as_me:10756: checking for size of bool" >&5
11001 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
11002 if test "${cf_cv_type_of_bool+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 @@ -10010,7 +10764,7 @@
11005 cf_cv_type_of_bool=unknown
11007 cat >conftest.$ac_ext <<_ACEOF
11008 -#line 10013 "configure"
11009 +#line 10767 "configure"
11010 #include "confdefs.h"
11012 #include <stdlib.h>
11013 @@ -10052,15 +10806,15 @@
11016 rm -f conftest$ac_exeext
11017 -if { (eval echo "$as_me:10055: \"$ac_link\"") >&5
11018 +if { (eval echo "$as_me:10809: \"$ac_link\"") >&5
11019 (eval $ac_link) 2>&5
11021 - echo "$as_me:10058: \$? = $ac_status" >&5
11022 + echo "$as_me:10812: \$? = $ac_status" >&5
11023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11024 - { (eval echo "$as_me:10060: \"$ac_try\"") >&5
11025 + { (eval echo "$as_me:10814: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11028 - echo "$as_me:10063: \$? = $ac_status" >&5
11029 + echo "$as_me:10817: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 cf_cv_type_of_bool=`cat cf_test.out`
11032 if test -z "$cf_cv_type_of_bool"; then
11033 @@ -10078,35 +10832,54 @@
11037 -echo "$as_me:10081: result: $cf_cv_type_of_bool" >&5
11038 +echo "$as_me:10835: result: $cf_cv_type_of_bool" >&5
11039 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
11040 if test "$cf_cv_type_of_bool" = unknown ; then
11041 case .$NCURSES_BOOL in #(vi
11042 .auto|.) NCURSES_BOOL=unsigned;;
11044 - { echo "$as_me:10087: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
11045 + { echo "$as_me:10841: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
11046 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
11047 cf_cv_type_of_bool=$NCURSES_BOOL
11051 - echo "$as_me:10093: checking for fallback type of bool" >&5
11052 + echo "$as_me:10847: checking for fallback type of bool" >&5
11053 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
11054 case "$host_cpu" in #(vi
11055 i?86) cf_cv_type_of_bool=char ;; #(vi
11056 *) cf_cv_type_of_bool=int ;;
11058 - echo "$as_me:10099: result: $cf_cv_type_of_bool" >&5
11059 + echo "$as_me:10853: result: $cf_cv_type_of_bool" >&5
11060 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
11065 +# If the C compiler did not declare bool, and we did not determine that the C++
11066 +# compiler does not declare bool, turn on an ifdef in curses.h that makes the
11067 +# ncurses library use the same type as C++ bool. Note that this allows one to
11068 +# specify the type of bool in a configure-script option and postpone
11069 +# integration with the C++ compiler provided that the types are compatible.
11071 +if test $cv_cv_cc_bool_type = 1
11073 + # oops: C has a bool. Unlikely, but C++ could differ.
11075 +elif test $cf_cv_builtin_bool = 0
11077 + # C++ has no bool
11080 + # this is the normal case
11081 + USE_CXX_BOOL='!defined(__cplusplus)'
11084 if test "$cf_with_ada" != "no" ; then
11085 cf_ada_make=gnatmake
11086 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
11087 set dummy $cf_ada_make; ac_word=$2
11088 -echo "$as_me:10109: checking for $ac_word" >&5
11089 +echo "$as_me:10882: checking for $ac_word" >&5
11090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11091 if test "${ac_cv_prog_gnat_exists+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 @@ -10121,7 +10894,7 @@
11094 test -z "$ac_dir" && ac_dir=.
11095 $as_executable_p "$ac_dir/$ac_word" || continue
11096 ac_cv_prog_gnat_exists="yes"
11097 -echo "$as_me:10124: found $ac_dir/$ac_word" >&5
11098 +echo "$as_me:10897: found $ac_dir/$ac_word" >&5
11102 @@ -10130,10 +10903,10 @@
11104 gnat_exists=$ac_cv_prog_gnat_exists
11105 if test -n "$gnat_exists"; then
11106 - echo "$as_me:10133: result: $gnat_exists" >&5
11107 + echo "$as_me:10906: result: $gnat_exists" >&5
11108 echo "${ECHO_T}$gnat_exists" >&6
11110 - echo "$as_me:10136: result: no" >&5
11111 + echo "$as_me:10909: result: no" >&5
11112 echo "${ECHO_T}no" >&6
11115 @@ -10141,18 +10914,23 @@
11119 -cf_cv_gnat_version=`$cf_ada_make -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
11120 - sed -e 's/[^0-9 \.]//g' | $AWK '{print $1;}'`
11121 -case $cf_cv_gnat_version in
11122 +echo "$as_me:10917: checking for gnat version" >&5
11123 +echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
11124 +cf_gnat_version=`$cf_ada_make -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
11125 + sed -e 's/[^0-9 \.]//g' | $AWK '{print $1;}' | sed -e '2,$d'`
11126 +echo "$as_me:10921: result: $cf_gnat_version" >&5
11127 +echo "${ECHO_T}$cf_gnat_version" >&6
11129 +case $cf_gnat_version in
11130 3.1[1-9]*|3.[2-9]*|[4-9].*)
11131 cf_cv_prog_gnat_correct=yes
11133 - *) echo Unsupported GNAT version $cf_cv_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
11134 + *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
11135 cf_cv_prog_gnat_correct=no
11138 -case $cf_cv_gnat_version in
11140 +case $cf_gnat_version in
11141 + 3.[1-9]*|[4-9].*)
11142 cf_compile_generics=generics
11143 cf_generic_objects="\$(GENOBJS)"
11145 @@ -10163,7 +10941,7 @@
11147 # Extract the first word of "m4", so it can be a program name with args.
11148 set dummy m4; ac_word=$2
11149 -echo "$as_me:10166: checking for $ac_word" >&5
11150 +echo "$as_me:10944: checking for $ac_word" >&5
11151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11152 if test "${ac_cv_prog_M4_exists+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 @@ -10178,7 +10956,7 @@
11155 test -z "$ac_dir" && ac_dir=.
11156 $as_executable_p "$ac_dir/$ac_word" || continue
11157 ac_cv_prog_M4_exists="yes"
11158 -echo "$as_me:10181: found $ac_dir/$ac_word" >&5
11159 +echo "$as_me:10959: found $ac_dir/$ac_word" >&5
11163 @@ -10187,10 +10965,10 @@
11165 M4_exists=$ac_cv_prog_M4_exists
11166 if test -n "$M4_exists"; then
11167 - echo "$as_me:10190: result: $M4_exists" >&5
11168 + echo "$as_me:10968: result: $M4_exists" >&5
11169 echo "${ECHO_T}$M4_exists" >&6
11171 - echo "$as_me:10193: result: no" >&5
11172 + echo "$as_me:10971: result: no" >&5
11173 echo "${ECHO_T}no" >&6
11176 @@ -10199,7 +10977,7 @@
11177 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
11179 if test "$cf_cv_prog_gnat_correct" = yes; then
11180 - echo "$as_me:10202: checking if GNAT works" >&5
11181 + echo "$as_me:10980: checking if GNAT works" >&5
11182 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
11185 @@ -10227,7 +11005,7 @@
11189 - echo "$as_me:10230: result: $cf_cv_prog_gnat_correct" >&5
11190 + echo "$as_me:11008: result: $cf_cv_prog_gnat_correct" >&5
11191 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
11194 @@ -10270,7 +11048,7 @@
11195 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
11198 - { { echo "$as_me:10273: error: expected a pathname, not \"$withval\"" >&5
11199 + { { echo "$as_me:11051: error: expected a pathname, not \"$withval\"" >&5
11200 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11201 { (exit 1); exit 1; }; }
11203 @@ -10304,7 +11082,7 @@
11204 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
11207 - { { echo "$as_me:10307: error: expected a pathname, not \"$withval\"" >&5
11208 + { { echo "$as_me:11085: error: expected a pathname, not \"$withval\"" >&5
11209 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11210 { (exit 1); exit 1; }; }
11212 @@ -10315,25 +11093,9 @@
11216 -### It's not possible to appease gcc 2.6.3's conversion-warnings if we're
11217 -### using a 'char' for bools. gcc 2.7.0's conversion-warnings are broken too
11218 -### badly to consider using for development purposes, but 2.5.8 is okay.
11219 -if test -n "$with_warnings"; then
11220 - case $GCC_VERSION in
11222 - if test "$cf_cv_type_of_bool" != "char"; then
11223 - EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
11227 - EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
11232 ### Construct the library-subsets, if any, from this set of keywords:
11233 ### none, base, ext_funcs, termlib.
11234 -echo "$as_me:10336: checking for library subsets" >&5
11235 +echo "$as_me:11098: checking for library subsets" >&5
11236 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
11237 if test "$with_termlib" = yes ; then
11238 LIB_SUBSETS="termlib "
11239 @@ -10343,7 +11105,7 @@
11240 LIB_SUBSETS="${LIB_SUBSETS}base"
11241 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
11242 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
11243 -echo "$as_me:10346: result: $LIB_SUBSETS" >&5
11244 +echo "$as_me:11108: result: $LIB_SUBSETS" >&5
11245 echo "${ECHO_T}$LIB_SUBSETS" >&6
11248 @@ -10357,9 +11119,9 @@
11250 ### Construct the list of include-directories to be generated
11252 -CPPFLAGS="$CPPFLAGS -I. -I../include"
11253 +CPPFLAGS="-I. -I../include $CPPFLAGS"
11254 if test "$srcdir" != "."; then
11255 - CPPFLAGS="$CPPFLAGS -I\$(srcdir)/../include"
11256 + CPPFLAGS="-I\$(srcdir)/../include $CPPFLAGS"
11258 if test "$GCC" != yes; then
11259 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
11260 @@ -10373,9 +11135,9 @@
11264 -ACPPFLAGS="$ACPPFLAGS -I. -I../../include"
11265 +ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
11266 if test "$srcdir" != "."; then
11267 - ACPPFLAGS="$ACPPFLAGS -I\$(srcdir)/../../include"
11268 + ACPPFLAGS="-I\$(srcdir)/../../include $ACPPFLAGS"
11270 if test "$GCC" != yes; then
11271 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
11272 @@ -10390,7 +11152,7 @@
11275 ### Build up pieces for makefile rules
11276 -echo "$as_me:10393: checking default library suffix" >&5
11277 +echo "$as_me:11155: checking default library suffix" >&5
11278 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
11280 case $DFT_LWR_MODEL in
11281 @@ -10401,10 +11163,10 @@
11282 shared) DFT_ARG_SUFFIX='' ;;
11284 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
11285 -echo "$as_me:10404: result: $DFT_ARG_SUFFIX" >&5
11286 +echo "$as_me:11166: result: $DFT_ARG_SUFFIX" >&5
11287 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
11289 -echo "$as_me:10407: checking default library-dependency suffix" >&5
11290 +echo "$as_me:11169: checking default library-dependency suffix" >&5
11291 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
11293 case $DFT_LWR_MODEL in
11294 @@ -10428,10 +11190,10 @@
11298 -echo "$as_me:10431: result: $DFT_DEP_SUFFIX" >&5
11299 +echo "$as_me:11193: result: $DFT_DEP_SUFFIX" >&5
11300 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
11302 -echo "$as_me:10434: checking default object directory" >&5
11303 +echo "$as_me:11196: checking default object directory" >&5
11304 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
11306 case $DFT_LWR_MODEL in
11307 @@ -10447,13 +11209,14 @@
11308 DFT_OBJ_SUBDIR='obj_s' ;;
11311 -echo "$as_me:10450: result: $DFT_OBJ_SUBDIR" >&5
11312 +echo "$as_me:11212: result: $DFT_OBJ_SUBDIR" >&5
11313 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
11315 # libtool thinks it can make c++ shared libraries (perhaps only g++)
11316 -echo "$as_me:10454: checking c++ library-dependency suffix" >&5
11317 +if test "$cf_with_cxx" = yes ; then
11318 +echo "$as_me:11217: checking c++ library-dependency suffix" >&5
11319 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
11320 -if test "$with_libtool" = "yes"; then
11321 +if test "$with_libtool" != "no"; then
11322 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
11325 @@ -10472,18 +11235,22 @@
11327 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
11329 -echo "$as_me:10475: result: $CXX_LIB_SUFFIX" >&5
11330 +echo "$as_me:11238: result: $CXX_LIB_SUFFIX" >&5
11331 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
11335 TINFO_LIST="$SHLIB_LIST"
11336 -test "$with_termlib" = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"
11337 +if test "$with_libtool" = no ; then
11338 + test "$with_termlib" = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"
11341 -echo "$as_me:10481: checking where we will install curses.h" >&5
11342 +echo "$as_me:11248: checking where we will install curses.h" >&5
11343 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
11344 test "$with_overwrite" = no && \
11345 test "x$includedir" = 'x${prefix}/include' && \
11346 includedir='$(prefix)/include/ncurses'${LIB_SUFFIX}
11347 -echo "$as_me:10486: result: $includedir" >&5
11348 +echo "$as_me:11253: result: $includedir" >&5
11349 echo "${ECHO_T}$includedir" >&6
11351 ### Resolve a conflict between normal and wide-curses by forcing applications
11352 @@ -10491,7 +11258,7 @@
11353 if test "$with_overwrite" != no ; then
11354 if test "$NCURSES_LIBUTF8" = 1 ; then
11355 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
11356 - { echo "$as_me:10494: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
11357 + { echo "$as_me:11261: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
11358 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
11361 @@ -10509,10 +11276,15 @@
11362 PROG_DEPS="$TEST_DEPS"
11363 PROG_ARGS="$TEST_ARGS"
11365 +### predefined stuff for the test programs
11366 +cat >>confdefs.h <<\EOF
11367 +#define HAVE_SLK_COLOR 1
11370 ### Construct the list of subdirectories for which we'll customize makefiles
11371 ### with the appropriate compile-rules.
11373 -echo "$as_me:10515: checking for src modules" >&5
11374 +echo "$as_me:11287: checking for src modules" >&5
11375 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
11377 # dependencies and linker-arguments for test-programs
11378 @@ -10572,7 +11344,7 @@
11382 -echo "$as_me:10575: result: $cf_cv_src_modules" >&5
11383 +echo "$as_me:11347: result: $cf_cv_src_modules" >&5
11384 echo "${ECHO_T}$cf_cv_src_modules" >&6
11385 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
11387 @@ -10641,10 +11413,40 @@
11390 ### Now that we're done running tests, add the compiler-warnings, if any
11391 -CFLAGS="$CFLAGS $EXTRA_CFLAGS"
11395 +for cf_add_cflags in $EXTRA_CFLAGS
11397 + case $cf_add_cflags in #(vi
11398 + -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11399 + case "$CPPFLAGS" in
11400 + *$cf_add_cflags) #(vi
11403 + cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11408 + cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11413 +if test -n "$cf_new_cflags" ; then
11415 + CFLAGS="$CFLAGS $cf_new_cflags"
11418 +if test -n "$cf_new_cppflags" ; then
11420 + CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
11423 ################################################################################
11424 -ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h misc/run_tic.sh:misc/run_tic.in $SUB_MAKEFILES Makefile"
11425 +test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
11426 +ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
11427 ac_config_commands="$ac_config_commands default"
11428 cat >confcache <<\_ACEOF
11429 # This file is a shell script that caches the results of configure
11430 @@ -10725,7 +11527,7 @@
11431 : ${CONFIG_STATUS=./config.status}
11432 ac_clean_files_save=$ac_clean_files
11433 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11434 -{ echo "$as_me:10728: creating $CONFIG_STATUS" >&5
11435 +{ echo "$as_me:11530: creating $CONFIG_STATUS" >&5
11436 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11437 cat >$CONFIG_STATUS <<_ACEOF
11439 @@ -10857,7 +11659,7 @@
11440 cat >>$CONFIG_STATUS <<EOF
11443 -configured by $0, generated by GNU Autoconf 2.52.20011227,
11444 +configured by $0, generated by GNU Autoconf 2.52.20030208,
11445 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11447 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11448 @@ -10901,7 +11703,7 @@
11449 echo "$ac_cs_version"; exit 0 ;;
11451 # Conflict between --help and --header
11452 - { { echo "$as_me:10904: error: ambiguous option: $1
11453 + { { echo "$as_me:11706: error: ambiguous option: $1
11454 Try \`$0 --help' for more information." >&5
11455 echo "$as_me: error: ambiguous option: $1
11456 Try \`$0 --help' for more information." >&2;}
11457 @@ -10920,7 +11722,7 @@
11458 ac_need_defaults=false;;
11460 # This is an error.
11461 - -*) { { echo "$as_me:10923: error: unrecognized option: $1
11462 + -*) { { echo "$as_me:11725: error: unrecognized option: $1
11463 Try \`$0 --help' for more information." >&5
11464 echo "$as_me: error: unrecognized option: $1
11465 Try \`$0 --help' for more information." >&2;}
11466 @@ -10939,7 +11741,7 @@
11467 ## Running config.status. ##
11468 ## ----------------------- ##
11470 -This file was extended by $as_me 2.52.20011227, executed with
11471 +This file was extended by $as_me 2.52.20030208, executed with
11472 CONFIG_FILES = $CONFIG_FILES
11473 CONFIG_HEADERS = $CONFIG_HEADERS
11474 CONFIG_LINKS = $CONFIG_LINKS
11475 @@ -10982,7 +11784,7 @@
11476 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
11477 cf_cv_system_name="$cf_cv_system_name"
11478 cf_with_cxx_binding="$cf_with_cxx_binding"
11484 @@ -10995,12 +11797,11 @@
11485 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
11486 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
11487 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
11488 - "misc/run_tic.sh" ) CONFIG_FILES="$CONFIG_FILES misc/run_tic.sh:misc/run_tic.in" ;;
11489 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
11490 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11491 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11492 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
11493 - *) { { echo "$as_me:11003: error: invalid argument: $ac_config_target" >&5
11494 + *) { { echo "$as_me:11804: error: invalid argument: $ac_config_target" >&5
11495 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11496 { (exit 1); exit 1; }; };;
11498 @@ -11087,7 +11888,6 @@
11499 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
11500 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
11501 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
11502 -s,@cf_cv_cc_bool_type@,$cf_cv_cc_bool_type,;t t
11503 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
11504 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
11505 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
11506 @@ -11110,11 +11910,6 @@
11507 s,@ac_ct_CC@,$ac_ct_CC,;t t
11508 s,@EXEEXT@,$EXEEXT,;t t
11509 s,@OBJEXT@,$OBJEXT,;t t
11510 -s,@BUILD_CC@,$BUILD_CC,;t t
11511 -s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
11512 -s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
11513 -s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
11514 -s,@BUILD_LIBS@,$BUILD_LIBS,;t t
11516 s,@PROG_EXT@,$PROG_EXT,;t t
11517 s,@LDCONFIG@,$LDCONFIG,;t t
11518 @@ -11135,18 +11930,34 @@
11520 s,@LINT_OPTS@,$LINT_OPTS,;t t
11522 +s,@ac_ct_LD@,$ac_ct_LD,;t t
11524 +s,@ac_ct_AR@,$ac_ct_AR,;t t
11525 s,@AR_OPTS@,$AR_OPTS,;t t
11526 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
11527 s,@DESTDIR@,$DESTDIR,;t t
11528 +s,@BUILD_CC@,$BUILD_CC,;t t
11529 +s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
11530 +s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
11531 +s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
11532 +s,@BUILD_LIBS@,$BUILD_LIBS,;t t
11533 s,@cf_list_models@,$cf_list_models,;t t
11534 s,@LIBTOOL@,$LIBTOOL,;t t
11535 +s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
11536 +s,@LIB_CREATE@,$LIB_CREATE,;t t
11537 +s,@LIB_OBJECT@,$LIB_OBJECT,;t t
11538 +s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
11539 +s,@LIB_PREP@,$LIB_PREP,;t t
11540 +s,@LIB_CLEAN@,$LIB_CLEAN,;t t
11541 +s,@LIB_COMPILE@,$LIB_COMPILE,;t t
11542 +s,@LIB_LINK@,$LIB_LINK,;t t
11543 +s,@LIB_INSTALL@,$LIB_INSTALL,;t t
11544 +s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
11545 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
11546 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
11547 s,@TINFO_NAME@,$TINFO_NAME,;t t
11548 s,@LIB_NAME@,$LIB_NAME,;t t
11549 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
11550 -s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
11551 s,@CC_G_OPT@,$CC_G_OPT,;t t
11552 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
11553 s,@LD_MODEL@,$LD_MODEL,;t t
11554 @@ -11175,7 +11986,12 @@
11555 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
11556 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
11557 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
11558 +s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
11559 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
11560 +s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
11561 +s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
11562 +s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
11563 +s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
11564 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
11565 s,@ECHO_LINK@,$ECHO_LINK,;t t
11566 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
11567 @@ -11188,6 +12004,7 @@
11568 s,@CXX_AR@,$CXX_AR,;t t
11569 s,@CXX_AR_OPTS@,$CXX_AR_OPTS,;t t
11570 s,@CXXLIBS@,$CXXLIBS,;t t
11571 +s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
11572 s,@gnat_exists@,$gnat_exists,;t t
11573 s,@M4_exists@,$M4_exists,;t t
11574 s,@cf_ada_make@,$cf_ada_make,;t t
11575 @@ -11326,7 +12143,7 @@
11578 if test x"$ac_file" != x-; then
11579 - { echo "$as_me:11329: creating $ac_file" >&5
11580 + { echo "$as_me:12146: creating $ac_file" >&5
11581 echo "$as_me: creating $ac_file" >&6;}
11584 @@ -11344,7 +12161,7 @@
11585 -) echo $tmp/stdin ;;
11587 # Absolute (can't be DOS-style, as IFS=:)
11588 - test -f "$f" || { { echo "$as_me:11347: error: cannot find input file: $f" >&5
11589 + test -f "$f" || { { echo "$as_me:12164: error: cannot find input file: $f" >&5
11590 echo "$as_me: error: cannot find input file: $f" >&2;}
11591 { (exit 1); exit 1; }; }
11593 @@ -11357,7 +12174,7 @@
11597 - { { echo "$as_me:11360: error: cannot find input file: $f" >&5
11598 + { { echo "$as_me:12177: error: cannot find input file: $f" >&5
11599 echo "$as_me: error: cannot find input file: $f" >&2;}
11600 { (exit 1); exit 1; }; }
11602 @@ -11423,7 +12240,7 @@
11603 * ) ac_file_in=$ac_file.in ;;
11606 - test x"$ac_file" != x- && { echo "$as_me:11426: creating $ac_file" >&5
11607 + test x"$ac_file" != x- && { echo "$as_me:12243: creating $ac_file" >&5
11608 echo "$as_me: creating $ac_file" >&6;}
11610 # First look for the input files in the build tree, otherwise in the
11611 @@ -11434,7 +12251,7 @@
11612 -) echo $tmp/stdin ;;
11614 # Absolute (can't be DOS-style, as IFS=:)
11615 - test -f "$f" || { { echo "$as_me:11437: error: cannot find input file: $f" >&5
11616 + test -f "$f" || { { echo "$as_me:12254: error: cannot find input file: $f" >&5
11617 echo "$as_me: error: cannot find input file: $f" >&2;}
11618 { (exit 1); exit 1; }; }
11620 @@ -11447,7 +12264,7 @@
11624 - { { echo "$as_me:11450: error: cannot find input file: $f" >&5
11625 + { { echo "$as_me:12267: error: cannot find input file: $f" >&5
11626 echo "$as_me: error: cannot find input file: $f" >&2;}
11627 { (exit 1); exit 1; }; }
11629 @@ -11505,7 +12322,7 @@
11631 if test x"$ac_file" != x-; then
11632 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11633 - { echo "$as_me:11508: $ac_file is unchanged" >&5
11634 + { echo "$as_me:12325: $ac_file is unchanged" >&5
11635 echo "$as_me: $ac_file is unchanged" >&6;}
11637 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11638 @@ -11608,8 +12425,10 @@
11641 # cygwin needs import library, and has unique naming convention
11642 + # use autodetected ${cf_prefix} for import lib and static lib, but
11643 + # use 'cyg' prefix for shared lib.
11644 if test $cf_cv_shlib_version = cygdll ; then
11645 - SHARED_LIB="../lib/${cf_prefix}${cf_dir}\$(ABI_VERSION).dll"
11646 + SHARED_LIB="../lib/cyg${cf_dir}\$(ABI_VERSION).dll"
11647 IMPORT_LIB="../lib/${cf_prefix}${cf_dir}.dll.a"
11648 LIBS_TO_MAKE="$LIBS_TO_MAKE \$(SHARED_LIB) \$(IMPORT_LIB)"
11650 @@ -11624,7 +12443,7 @@
11654 - cf_item=`echo $LIBS_TO_MAKE |sed -e s/$LIB_NAME/$TINFO_NAME/g`
11655 + cf_item=`echo $LIBS_TO_MAKE |sed -e s%$LIB_NAME%$TINFO_NAME%g`
11656 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
11659 @@ -11710,7 +12529,7 @@
11660 ldconfig="$LDCONFIG" \
11661 overwrite=$WITH_OVERWRITE \
11662 depend="$cf_depend" \
11663 - target="$target" \
11665 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
11666 for cf_subdir2 in $cf_subdirs lib
11668 diff -urNd -urNd ncurses-5.3/configure.in ncurses-5.3.20030906.orig/configure.in
11669 --- ncurses-5.3/configure.in Sat Sep 14 19:11:28 2002
11670 +++ ncurses-5.3.20030906.orig/configure.in Fri Sep 12 16:42:40 2003
11672 dnl***************************************************************************
11673 -dnl Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
11674 +dnl Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
11676 dnl Permission is hereby granted, free of charge, to any person obtaining a *
11677 dnl copy of this software and associated documentation files (the *
11678 @@ -28,50 +28,29 @@
11680 dnl Author: Thomas E. Dickey 1995-on
11682 -dnl $Id: configure.in,v 1.274 2002/09/15 00:11:28 tom Exp $
11683 +dnl $Id: configure.in,v 1.297 2003/08/30 22:52:21 tom Exp $
11684 dnl Process this file with autoconf to produce a configure script.
11686 dnl See http://invisible-island.net/autoconf/ for additional information.
11688 dnl ---------------------------------------------------------------------------
11689 AC_PREREQ(2.13.20020210)
11690 -AC_REVISION($Revision: 1.274 $)
11691 +AC_REVISION($Revision: 1.297 $)
11692 AC_INIT(ncurses/base/lib_initscr.c)
11693 AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
11695 CF_SUBST_NCURSES_VERSION
11696 +AC_ARG_WITH(abi-version,
11697 +[ --with-abi-version=XXX override derived ABI version],
11698 +[AC_MSG_WARN(overriding ABI version to $withval)
11699 + cf_cv_abi_version=$withval])
11701 CF_CHECK_CACHE([AC_CANONICAL_SYSTEM])
11702 AC_ARG_WITH(system-type,
11703 [ --with-system-type=XXX test: override derived host system-type],
11704 [AC_MSG_WARN(overriding system type to $withval)
11705 cf_cv_system_name=$withval])
11707 -# We need a configure script only when compiling as part of GNU C library.
11708 -# Here we have to generate one of the files we need while compiling.
11710 -# The only problem is that users of the package might think they have to
11711 -# run configure themself and find it irritating when nothing happens.
11713 -# So we try here to find out whether we are called from the glibc configure
11716 -dnl Check if we are a drop-in addition to glibc.
11717 -AC_ARG_ENABLE(add-ons, dnl
11718 -[ --enable-add-ons=DIR... used to check if we are a glibc add-on.],
11719 - [glibc_add_on=yes],
11722 -if test x"$glibc_add_on" = "xyes" ; then
11723 - rm -f $srcdir/Banner
11724 - # We are in glibc.
11725 - rm -f $srcdir/Makefile
11726 - cp $srcdir/Makefile.glibc $srcdir/Makefile
11727 - echo "ncurses `grep \"^[[ ]]*ncurses-version[[ ]]*=.*$\" \
11728 - $srcdir/Makefile | sed -e \
11729 - 's/^[[ ]]*ncurses-version[[ ]]*=[[ ]]*\([[^ ^ ]]*\)[[ ]]*$/\1/'`" > $srcdir/Banner
11733 ### Save the given $CFLAGS to allow user-override.
11734 cf_user_CFLAGS="$CFLAGS"
11738 ### Checks for programs.
11741 -if test "$GCC" = yes ; then
11742 - AC_MSG_CHECKING(version of gcc)
11743 - GCC_VERSION="`${CC} --version|head -1`"
11744 - AC_MSG_RESULT($GCC_VERSION)
11747 -# If we're cross-compiling, allow the user to override the tools and their
11748 -# options. The configure script is oriented toward identifying the target
11749 -# compiler, etc., but we need a host compiler to generate parts of the source.
11751 -BUILD_CFLAGS='$(CFLAGS)'
11752 -BUILD_CPPFLAGS='$(CPPFLAGS)'
11753 -BUILD_LDFLAGS='$(LDFLAGS)'
11754 -BUILD_LIBS='$(LIBS)'
11755 -if test "$host_alias" != "$target_alias" ; then
11756 - AC_ARG_WITH(build-cc,
11757 - [ --with-build-cc=XXX if cross-compiling, the host C compiler (\$BUILD_CC)],
11758 - [BUILD_CC="$withval"],
11759 - [AC_CHECK_PROGS(BUILD_CC, $CC gcc cc)])
11760 - AC_ARG_WITH(build-cflags,
11761 - [ --with-build-cflags=XXX if cross-compiling, the host C compiler-flags],
11762 - [BUILD_CFLAGS="$withval"])
11763 - AC_ARG_WITH(build-cppflags,
11764 - [ --with-build-cppflags=XXX if cross-compiling, the host C preprocessor-flags],
11765 - [BUILD_CPPFLAGS="$withval"])
11766 - AC_ARG_WITH(build-ldflags,
11767 - [ --with-build-ldflags=XXX if cross-compiling, the host linker-flags],
11768 - [BUILD_LDFLAGS="$withval"])
11769 - AC_ARG_WITH(build-libs,
11770 - [ --with-build-libs=XXX if cross-compiling, the host libraries],
11771 - [BUILD_LIBS="$withval"])
11773 -AC_SUBST(BUILD_CC)
11774 -AC_SUBST(BUILD_CFLAGS)
11775 -AC_SUBST(BUILD_CPPFLAGS)
11776 -AC_SUBST(BUILD_LDFLAGS)
11777 -AC_SUBST(BUILD_LIBS)
11781 AC_PROG_GCC_TRADITIONAL
11782 @@ -148,26 +90,31 @@
11786 + # with autoconf 2.13, we can change the error to a warning:
11787 pushdef([AC_MSG_ERROR],
11788 - [AC_MSG_RESULT([You don't have any C++ compiler, too bad]); dnl
11789 + [AC_MSG_RESULT(no)
11790 + AC_MSG_WARN([You don't have any C++ compiler, too bad])
11791 cf_with_cxx=no; CXX=""; GXX="";])dnl
11793 popdef([AC_MSG_ERROR])dnl
11794 + # autoconf 2.5x removed the error - by hardcoding it to g++.
11795 + if test "$CXX" = "g++" ; then
11796 + AC_PATH_PROG(CXX,g++)
11798 + if test "$CXX" = "g++" ; then
11799 + AC_MSG_WARN(ignoring hardcoded g++)
11800 + cf_with_cxx=no; CXX=""; GXX="";
11805 -if test "$GXX" = yes; then
11806 - AC_MSG_CHECKING(version of g++)
11807 - GXX_VERSION="`${CXX-g++} --version|head -1`"
11808 - AC_MSG_RESULT($GXX_VERSION)
11809 - case $GXX_VERSION in
11811 - GXX=""; CXX=""; ac_cv_prog_gxx=no
11812 - cf_cxx_library=no
11813 - AC_MSG_WARN(templates do not work)
11818 +case $GXX_VERSION in
11820 + GXX=""; CXX=""; ac_cv_prog_gxx=no
11821 + cf_cxx_library=no
11822 + AC_MSG_WARN(templates do not work)
11826 AC_MSG_CHECKING(if you want to build C++ binding and demo)
11827 AC_ARG_WITH(cxx-binding,
11828 @@ -217,8 +164,8 @@
11829 AC_SUBST(LINT_OPTS)
11831 dnl These are standard among *NIX systems, but not when cross-compiling
11832 -CF_SUBST(loader,LD,ld)
11833 -CF_SUBST(archiver,AR,ar)
11834 +AC_CHECK_TOOL(LD, ld, ld)
11835 +AC_CHECK_TOOL(AR, ar, ar)
11836 CF_SUBST(archiver options,AR_OPTS,rv)
11839 @@ -239,6 +186,40 @@
11842 ###############################################################################
11843 +CF_HELP_MESSAGE(Build-Tools Needed to Compile Temporary Applications for Cross-compiling:)
11844 +# If we're cross-compiling, allow the user to override the tools and their
11845 +# options. The configure script is oriented toward identifying the host
11846 +# compiler, etc., but we need a build compiler to generate parts of the source.
11847 +: ${BUILD_CC:='$(CC)'}
11848 +: ${BUILD_CFLAGS:='$(CFLAGS)'}
11849 +: ${BUILD_CPPFLAGS:='$(CPPFLAGS)'}
11850 +: ${BUILD_LDFLAGS:='$(LDFLAGS)'}
11851 +: ${BUILD_LIBS:='$(LIBS)'}
11852 +if test "$cross_compiling" = yes ; then
11853 + AC_ARG_WITH(build-cc,
11854 + [ --with-build-cc=XXX the build C compiler (\$BUILD_CC)],
11855 + [BUILD_CC="$withval"],
11856 + [AC_CHECK_PROGS(BUILD_CC, $CC gcc cc)])
11857 + AC_ARG_WITH(build-cflags,
11858 + [ --with-build-cflags=XXX the build C compiler-flags],
11859 + [BUILD_CFLAGS="$withval"])
11860 + AC_ARG_WITH(build-cppflags,
11861 + [ --with-build-cppflags=XXX the build C preprocessor-flags],
11862 + [BUILD_CPPFLAGS="$withval"])
11863 + AC_ARG_WITH(build-ldflags,
11864 + [ --with-build-ldflags=XXX the build linker-flags],
11865 + [BUILD_LDFLAGS="$withval"])
11866 + AC_ARG_WITH(build-libs,
11867 + [ --with-build-libs=XXX the build libraries],
11868 + [BUILD_LIBS="$withval"])
11870 +AC_SUBST(BUILD_CC)
11871 +AC_SUBST(BUILD_CFLAGS)
11872 +AC_SUBST(BUILD_CPPFLAGS)
11873 +AC_SUBST(BUILD_LDFLAGS)
11874 +AC_SUBST(BUILD_LIBS)
11876 +###############################################################################
11877 CF_HELP_MESSAGE(Options to Specify the Libraries Built/Used:)
11879 ### Options to allow the user to specify the set of libraries which are used.
11880 @@ -247,19 +228,12 @@
11882 AC_SUBST(cf_list_models)dnl the complete list of models ("normal debug")
11884 -AC_MSG_CHECKING(if you want to build libraries with libtool)
11885 -AC_ARG_WITH(libtool,
11886 - [ --with-libtool generate libraries with libtool],
11887 - [with_libtool=$withval],
11888 - [with_libtool=no])
11889 -AC_MSG_RESULT($with_libtool)
11890 -if test "$with_libtool" = "yes"; then
11891 - cf_list_models="$cf_list_models libtool"
11892 - test -z "$LIBTOOL" && LIBTOOL=libtool
11894 +if test "$with_libtool" != "no" ; then
11896 +cf_list_models="$cf_list_models libtool"
11903 AC_MSG_CHECKING(if you want to build shared libraries)
11904 AC_ARG_WITH(shared,
11905 @@ -293,19 +267,21 @@
11906 AC_MSG_RESULT($with_profile)
11907 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
11911 ###############################################################################
11913 AC_MSG_CHECKING(for specified models)
11914 test -z "$cf_list_models" && cf_list_models=normal
11915 dnl If we use libtool to generate libraries, then it must be the only
11916 dnl specified model.
11917 -test "$with_libtool" = "yes" && cf_list_models=libtool
11918 +test "$with_libtool" != "no" && cf_list_models=libtool
11919 AC_MSG_RESULT($cf_list_models)
11921 ### Use the first model as the default, and save its suffix for use in building
11922 ### up test-applications.
11923 AC_MSG_CHECKING(for default model)
11924 -DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
11925 +DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
11926 AC_MSG_RESULT($DFT_LWR_MODEL)
11928 CF_UPPER(DFT_UPR_MODEL,$DFT_LWR_MODEL)dnl
11929 @@ -337,25 +313,8 @@
11930 AC_MSG_RESULT($with_termlib)
11932 ### Checks for special libraries, must be done up-front.
11933 -AC_MSG_CHECKING(if you want to link with dbmalloc for testing)
11934 -AC_ARG_WITH(dbmalloc,
11935 - [ --with-dbmalloc test: use Conor Cahill's dbmalloc library],
11936 - [with_dbmalloc=$withval],
11937 - [with_dbmalloc=no])
11938 -AC_MSG_RESULT($with_dbmalloc)
11939 -if test "$with_dbmalloc" = yes ; then
11940 - AC_CHECK_LIB(dbmalloc,debug_malloc)
11943 -AC_MSG_CHECKING(if you want to link with dmalloc for testing)
11944 -AC_ARG_WITH(dmalloc,
11945 - [ --with-dmalloc test: use Gray Watson's dmalloc library],
11946 - [with_dmalloc=$withval],
11947 - [with_dmalloc=no])
11948 -AC_MSG_RESULT($with_dmalloc)
11949 -if test "$with_dmalloc" = yes ; then
11950 - AC_CHECK_LIB(dmalloc,dmalloc_debug)
11956 AC_MSG_CHECKING(if you want to link with the gpm mouse library)
11957 @@ -373,6 +332,8 @@
11958 ],AC_MSG_WARN(Cannot link with gpm library - read the FAQ))
11963 dnl Not all ports of gcc support the -g option
11965 if test X"$CC_G_OPT" = X"" ; then
11966 @@ -458,7 +419,7 @@
11967 [with_fallback=$withval],
11969 AC_MSG_RESULT($with_fallback)
11970 -FALLBACK_LIST=`echo $with_fallback|sed -e 's/,/ /g'`
11971 +FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
11972 AC_SUBST(FALLBACK_LIST)
11975 @@ -522,7 +483,7 @@
11977 if test "$with_termcap" != "yes" ; then
11978 if test "$use_database" = no ; then
11979 - if test -z $with_fallback ; then
11980 + if test -z "$with_fallback" ; then
11981 AC_ERROR(You have disabled the database w/o specifying fallbacks)
11984 @@ -604,7 +565,7 @@
11985 if test "$with_broken_linker" = yes ; then
11986 AC_DEFINE(BROKEN_LINKER)
11988 -elif test $DFT_LWR_MODEL = shared ; then
11989 +elif test "$DFT_LWR_MODEL" = shared ; then
11990 case $cf_cv_system_name in #(vi
11992 AC_DEFINE(BROKEN_LINKER)
11993 @@ -669,6 +630,7 @@
11994 AC_DEFINE(HAVE_CURSES_VERSION)
11995 AC_DEFINE(HAVE_HAS_KEY)
11996 AC_DEFINE(HAVE_RESIZETERM)
11997 + AC_DEFINE(HAVE_RESIZE_TERM)
11998 AC_DEFINE(HAVE_USE_DEFAULT_COLORS)
11999 AC_DEFINE(HAVE_WRESIZE)
12000 AC_DEFINE(NCURSES_EXT_FUNCS)
12001 @@ -807,7 +769,19 @@
12002 ### use option --enable-widec to turn on use of wide-character support
12003 NCURSES_CH_T=chtype
12007 NCURSES_MBSTATE_T=0
12011 +# Check to define _XOPEN_SOURCE "automatically"
12014 +# use these variables to work around a defect in gcc's fixincludes.
12015 +NCURSES_OK_WCHAR_T=
12016 +NCURSES_OK_WINT_T=
12018 AC_MSG_CHECKING(if you want experimental wide-character code)
12019 AC_ARG_ENABLE(widec,
12020 [ --enable-widec compile with experimental wide-char/UTF-8 code],
12021 @@ -817,24 +791,31 @@
12022 if test "$with_widec" = yes ; then
12023 LIB_SUFFIX="w${LIB_SUFFIX}"
12024 AC_DEFINE(USE_WIDEC_SUPPORT)
12025 - CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12026 + CF_PREDEFINE(_XOPEN_SOURCE,500)
12027 + CF_PREDEFINE(_XOPEN_SOURCE_EXTENDED)
12028 # with_overwrite=no
12029 NCURSES_CH_T=cchar_t
12030 - AC_CHECK_FUNC(putwc)
12031 -if test "$ac_cv_func_putwc" != yes ; then
12033 - if test "$cf_cv_libutf8" = yes ; then
12034 - NCURSES_LIBUTF8=1
12038 - if test $cf_cv_mbstate_t = yes ; then
12039 - NCURSES_MBSTATE_T=1
12040 + AC_CHECK_FUNCS(putwc btowc wctob mbtowc wctomb)
12041 + if test "$ac_cv_func_putwc" != yes ; then
12043 + if test "$cf_cv_libutf8" = yes ; then
12044 + NCURSES_LIBUTF8=1
12047 + CF_WCHAR_TYPE(mbstate_t, NCURSES_MBSTATE_T)
12048 + CF_WCHAR_TYPE(wchar_t, NCURSES_WCHAR_T, NCURSES_OK_WCHAR_T)
12049 + CF_WCHAR_TYPE(wint_t, NCURSES_WINT_T, NCURSES_OK_WINT_T)
12051 AC_SUBST(NCURSES_CH_T)
12052 AC_SUBST(NCURSES_LIBUTF8)
12054 +AC_SUBST(NEED_WCHAR_H)
12055 AC_SUBST(NCURSES_MBSTATE_T)
12056 +AC_SUBST(NCURSES_WCHAR_T)
12057 +AC_SUBST(NCURSES_WINT_T)
12059 +AC_SUBST(NCURSES_OK_WCHAR_T)
12060 +AC_SUBST(NCURSES_OK_WINT_T)
12062 AC_MSG_CHECKING(for terminal capabilities file)
12064 @@ -922,7 +903,6 @@
12067 ### Checks for header files.
12072 @@ -1027,8 +1007,10 @@
12073 CF_STRIP_G_OPT(CXXFLAGS)
12076 -dnl Check for C++ compiler characteristics (and ensure that it's there!)
12077 -CF_BOOL_DECL(cf_cv_cc_bool_type)
12078 +# Just in case, check if the C compiler has a bool type.
12079 +CF_BOOL_DECL(cv_cv_cc_bool_type)
12081 +# Check for C++ compiler characteristics (and ensure that it's there!)
12082 if test -n "$CXX" ; then
12085 @@ -1105,6 +1087,26 @@
12089 +# If the C compiler did not declare bool, and we did not determine that the C++
12090 +# compiler does not declare bool, turn on an ifdef in curses.h that makes the
12091 +# ncurses library use the same type as C++ bool. Note that this allows one to
12092 +# specify the type of bool in a configure-script option and postpone
12093 +# integration with the C++ compiler provided that the types are compatible.
12095 +if test $cv_cv_cc_bool_type = 1
12097 + # oops: C has a bool. Unlikely, but C++ could differ.
12099 +elif test $cf_cv_builtin_bool = 0
12101 + # C++ has no bool
12104 + # this is the normal case
12105 + USE_CXX_BOOL='!defined(__cplusplus)'
12107 +AC_SUBST(USE_CXX_BOOL)
12109 CF_HELP_MESSAGE(Ada95 Binding Options:)
12111 dnl Check for availability of GNU Ada Translator (GNAT).
12112 @@ -1169,22 +1171,6 @@
12116 -### It's not possible to appease gcc 2.6.3's conversion-warnings if we're
12117 -### using a 'char' for bools. gcc 2.7.0's conversion-warnings are broken too
12118 -### badly to consider using for development purposes, but 2.5.8 is okay.
12119 -if test -n "$with_warnings"; then
12120 - case $GCC_VERSION in
12122 - if test "$cf_cv_type_of_bool" != "char"; then
12123 - EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
12127 - EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
12132 ### Construct the library-subsets, if any, from this set of keywords:
12133 ### none, base, ext_funcs, termlib.
12134 AC_MSG_CHECKING(for library subsets)
12135 @@ -1236,17 +1222,21 @@
12136 AC_MSG_RESULT($DFT_OBJ_SUBDIR)
12138 # libtool thinks it can make c++ shared libraries (perhaps only g++)
12139 +if test "$cf_with_cxx" = yes ; then
12140 AC_MSG_CHECKING(c++ library-dependency suffix)
12141 -if test "$with_libtool" = "yes"; then
12142 +if test "$with_libtool" != "no"; then
12143 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
12145 CF_LIB_SUFFIX(normal,CXX_LIB_SUFFIX)dnl we normally make a static library
12147 AC_MSG_RESULT($CXX_LIB_SUFFIX)
12148 AC_SUBST(CXX_LIB_SUFFIX)
12151 TINFO_LIST="$SHLIB_LIST"
12152 -test "$with_termlib" = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"
12153 +if test "$with_libtool" = no ; then
12154 + test "$with_termlib" = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"
12157 AC_MSG_CHECKING(where we will install curses.h)
12158 test "$with_overwrite" = no && \
12159 @@ -1280,6 +1270,9 @@
12160 PROG_DEPS="$TEST_DEPS"
12161 PROG_ARGS="$TEST_ARGS"
12163 +### predefined stuff for the test programs
12164 +AC_DEFINE(HAVE_SLK_COLOR)
12166 ### Construct the list of subdirectories for which we'll customize makefiles
12167 ### with the appropriate compile-rules.
12169 @@ -1289,15 +1282,15 @@
12170 AC_DEFINE_UNQUOTED(NCURSES_PATHSEP,'$PATHSEP')
12172 ### Now that we're done running tests, add the compiler-warnings, if any
12173 -CFLAGS="$CFLAGS $EXTRA_CFLAGS"
12174 +CF_ADD_CFLAGS($EXTRA_CFLAGS)
12176 ################################################################################
12177 +test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
12179 include/MKterm.h.awk \
12180 include/curses.head:include/curses.h.in \
12181 include/termcap.h \
12183 - misc/run_tic.sh:misc/run_tic.in \
12187 @@ -1329,7 +1322,7 @@
12188 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
12189 cf_cv_system_name="$cf_cv_system_name"
12190 cf_with_cxx_binding="$cf_with_cxx_binding"
12195 ${MAKE-make} preinstall
12196 diff -urNd -urNd ncurses-5.3/dist.mk ncurses-5.3.20030906.orig/dist.mk
12197 --- ncurses-5.3/dist.mk Sat Oct 12 18:27:36 2002
12198 +++ ncurses-5.3.20030906.orig/dist.mk Fri Sep 12 16:42:59 2003
12200 -# $Id: dist.mk,v 1.327 2002/10/12 23:27:36 tom Exp $
12201 +# $Id: dist.mk,v 1.376 2003/09/06 20:16:49 tom Exp $
12202 # Makefile for creating ncurses distributions.
12204 # This only needs to be used directly as a makefile by developers, but
12206 # These define the major/minor/patch versions of ncurses.
12209 -NCURSES_PATCH = 20021012
12210 +NCURSES_PATCH = 20030906
12212 # We don't append the patch to the version, since this only applies to releases
12213 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
12215 @echo 's/<\/B>/<\/STRONG>/g' >> subst.tmp
12216 @echo 's/<I>/<EM>/g' >> subst.tmp
12217 @echo 's/<\/I>/<\/EM>/g' >> subst.tmp
12218 - @sort < subst.tmp | uniq > subst.sed
12219 + @misc/csort < subst.tmp | uniq > subst.sed
12220 @echo '/<\/TITLE>/a\' >> subst.sed
12221 @echo '<link rev=made href="mailto:bug-ncurses@gnu.org">\' >> subst.sed
12222 @echo '<meta http-equiv="Content-Type" content="text\/html; charset=iso-8859-1">' >> subst.sed
12224 @sed -e "\%./doc/html/man/%d" < MANIFEST > MANIFEST.tmp
12225 @find ./doc/html/man -type f -print >> MANIFEST.tmp
12226 @chmod u+w MANIFEST
12227 - @sort -u < MANIFEST.tmp > MANIFEST
12228 + @misc/csort -u < MANIFEST.tmp > MANIFEST
12229 @rm -f MANIFEST.tmp
12232 @@ -110,7 +110,7 @@
12233 (cd ./Ada95/gen ; make html) ;\
12234 sed -e "\%./doc/html/ada/%d" < MANIFEST > MANIFEST.tmp ;\
12235 find ./doc/html/ada -type f -print >> MANIFEST.tmp ;\
12236 - sort -u < MANIFEST.tmp > MANIFEST ;\
12237 + misc/csort -u < MANIFEST.tmp > MANIFEST ;\
12238 rm -f MANIFEST.tmp ;\
12241 @@ -128,7 +128,7 @@
12245 - find . -type f -print |sort | fgrep -v .lsm |fgrep -v .spec >$@
12246 + find . -type f -print |misc/csort | fgrep -v .lsm |fgrep -v .spec >$@
12250 diff -urNd -urNd ncurses-5.3/doc/html/announce.html ncurses-5.3.20030906.orig/doc/html/announce.html
12251 --- ncurses-5.3/doc/html/announce.html Sat Oct 12 18:35:53 2002
12252 +++ ncurses-5.3.20030906.orig/doc/html/announce.html Tue May 13 20:08:22 2003
12254 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
12256 - $Id: announce.html,v 1.41 2002/10/12 23:35:53 tom Exp $
12257 + $Id: announce.html,v 1.42 2002/10/19 21:47:00 tom Exp $
12261 -<TITLE>Announcing ncurses 5.3 Pre-Release</TITLE>
12262 +<TITLE>Announcing ncurses 5.3</TITLE>
12263 <link rev=made href="mailto:bug-ncurses@gnu.org">
12264 +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
12270 The ncurses distribution is available via anonymous FTP at
12271 the GNU distribution site
12272 -<A HREF="ftp://ftp.gnu.org/pub/gnu/ncurses">ftp://ftp.gnu.org/pub/gnu/ncurses</A>.
12273 +<A HREF="ftp://ftp.gnu.org/gnu/ncurses/">ftp://ftp.gnu.org/gnu/ncurses/</A> .
12274 <br>It is also available at
12275 -<A HREF="ftp://invisible-island.net/ncurses">ftp://invisible-island.net/ncurses</A>.
12276 +<A HREF="ftp://invisible-island.net/ncurses/">ftp://invisible-island.net/ncurses/</A> .
12278 <H1>Release Notes</H1>
12280 @@ -317,61 +318,61 @@
12282 <DD> Curses Development Kit
12284 -<A HREF="http://invisible-island.net/cdk/cdk.html">http://invisible-island.net/cdk</A>.
12285 +<A HREF="http://invisible-island.net/cdk/">http://invisible-island.net/cdk/</A>
12287 -<A HREF="http://www.vexus.ca/CDK.html">http://www.vexus.ca/CDK.html</a>
12288 +<A HREF="http://www.vexus.ca/products/CDK/">http://www.vexus.ca/products/CDK/</a>
12290 <DD> directory-editor
12292 -<A HREF="http://invisible-island.net/ded/ded.html">http://invisible-island.net/ded</A>.
12293 +<A HREF="http://invisible-island.net/ded/">http://invisible-island.net/ded/</A>
12295 <DD> the underlying application used in Slackware's setup, and the basis
12296 for similar applications on GNU/Linux.
12298 -<A HREF="http://invisible-island.net/dialog/dialog.html">http://invisible-island.net/dialog</A>.
12299 +<A HREF="http://invisible-island.net/dialog/">http://invisible-island.net/dialog/</A>
12301 <DD> the character-screen WWW browser
12303 -<A HREF="http://lynx.isc.org/release/">http://lynx.isc.org/release</A>.
12304 +<A HREF="http://lynx.isc.org/release/">http://lynx.isc.org/release/</A>
12305 <DT> Midnight Commander
12308 -<A HREF="www.gnome.org/mc/">www.gnome.org/mc/</A>.
12309 +<A HREF="http://www.ibiblio.org/mc/">http://www.ibiblio.org/mc/</A>
12313 -<A HREF="http://www.mutt.org">http://www.mutt.org</A>.
12314 +<A HREF="http://www.mutt.org/">http://www.mutt.org/</A>
12316 <DD> file-transfer utility
12318 -<A HREF="http://www.ncftp.com">http://www.ncftp.com</A>.
12319 +<A HREF="http://www.ncftp.com/">http://www.ncftp.com/</A>
12321 <DD> New vi versions 1.50 are able to use ncurses versions 1.9.7 and later.
12323 -<A HREF="http://www.bostic.com/vi/">http://www.bostic.com/vi/</A>.
12324 +<A HREF="http://www.bostic.com/vi/">http://www.bostic.com/vi/</A>
12326 <DD> newsreader, supporting color, MIME
12328 -<A HREF="http://www.tin.org">http://www.tin.org</A>.
12329 +<A HREF="http://www.tin.org/">http://www.tin.org/</A>
12331 <DD> tape archive utility
12333 -<A HREF="http://members.iinet.net.au/~yusuf/taper/">http://members.iinet.net.au/~yusuf/taper/</A>.
12334 +<A HREF="http://taper.e-survey.net.au/">http://taper.e-survey.net.au/</A>
12336 <DD> Volks-Hypertext browser for the Jargon File
12338 -<A HREF="http://www.bg.debian.org/Packages/unstable/text/vh.html">http://www.bg.debian.org/Packages/unstable/text/vh.html</A>.
12339 +<A HREF="http://www.debian.org/Packages/unstable/text/vh.html">http://www.debian.org/Packages/unstable/text/vh.html</A>
12341 as well as some that use ncurses for the terminfo support alone:
12344 <DD> terminal emulator
12346 -<A HREF="http://www.pp.clinet.fi/~walker/minicom.html">http://www.pp.clinet.fi/~walker/minicom.html</A>.
12347 +<A HREF="http://www.netsonic.fi/~walker/minicom.html">http://www.netsonic.fi/~walker/minicom.html</A>
12351 -<A HREF="http://invisible-island.net/vile/vile.html">http://invisible-island.net/vile</A>.
12352 +<A HREF="http://invisible-island.net/vile/">http://invisible-island.net/vile/</A>
12356 @@ -382,7 +383,7 @@
12358 The original developers of ncurses are <A
12359 HREF="mailto:zmbenhal@netcom.com">Zeyd Ben-Halim</A> and
12360 -<A HREF="http://www.ccil.org/~esr/home.html">Eric S. Raymond</A>.
12361 +<A HREF="http://www.tuxedo.org/~esr/">Eric S. Raymond</A>.
12362 Ongoing work is being done by
12363 <A HREF="mailto:dickey@herndon4.his.com">Thomas Dickey</A>
12365 @@ -404,7 +405,7 @@
12366 testing of this package.<P>
12368 Beta versions of ncurses and patches to the current release are made available at
12369 -<A HREF="ftp://invisible-island.net/ncurses">ftp://invisible-island.net/ncurses</A>.
12370 +<A HREF="ftp://invisible-island.net/ncurses/">ftp://invisible-island.net/ncurses/</A> .
12372 <H2>Future Plans</H2>
12374 @@ -418,12 +419,12 @@
12376 The distribution includes and uses a version of the terminfo-format
12377 terminal description file maintained by Eric Raymond.
12378 -<A HREF="http://earthspace.net/~esr/terminfo">http://earthspace.net/~esr/terminfo</A>.<P>
12379 +<A HREF="http://www.tuxedo.org/~esr/terminfo/">http://www.tuxedo.org/~esr/terminfo/</A> .<P>
12381 You can find lots of information on terminal-related topics
12382 not covered in the terminfo file at
12383 <A HREF="http://www.cs.utk.edu/~shuford/terminal_index.html">Richard Shuford's
12385 +archive</A> .
12389 diff -urNd -urNd ncurses-5.3/doc/html/man/captoinfo.1m.html ncurses-5.3.20030906.orig/doc/html/man/captoinfo.1m.html
12390 --- ncurses-5.3/doc/html/man/captoinfo.1m.html Sat Jun 22 16:25:15 2002
12391 +++ ncurses-5.3.20030906.orig/doc/html/man/captoinfo.1m.html Sun Jul 20 14:02:08 2003
12395 ****************************************************************************
12396 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
12397 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
12399 * Permission is hereby granted, free of charge, to any person obtaining a *
12400 * copy of this software and associated documentation files (the *
12402 * sale, use or other dealings in this Software without prior written *
12404 ****************************************************************************
12405 - * @Id: captoinfo.1m,v 1.16 2000/08/13 01:56:49 tom Exp @
12406 + * @Id: captoinfo.1m,v 1.17 2003/05/11 00:32:53 tom Exp @
12410 @@ -192,7 +192,7 @@
12411 mode. You can use other <EM>tic</EM> options such as <STRONG>-f</STRONG> and <STRONG>-x</STRONG>.
12413 The trace option isn't identical to SVr4's. Under SVr4,
12414 - instead of following the -v with a trace level n, you
12415 + instead of following the <STRONG>-v</STRONG> with a trace level n, you
12419 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_addch.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_addch.3x.html
12420 --- ncurses-5.3/doc/html/man/curs_addch.3x.html Sat Aug 31 16:59:20 2002
12421 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_addch.3x.html Sun Jul 20 14:02:08 2003
12425 ****************************************************************************
12426 - * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
12427 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
12429 * Permission is hereby granted, free of charge, to any person obtaining a *
12430 * copy of this software and associated documentation files (the *
12432 * sale, use or other dealings in this Software without prior written *
12434 ****************************************************************************
12435 - * @Id: curs_addch.3x,v 1.20 2002/08/10 22:12:36 tom Exp @
12436 + * @Id: curs_addch.3x,v 1.21 2003/05/10 20:33:49 jmc Exp @
12441 sor one character left; at the left edge of a window it
12442 does nothing. Newline does a <STRONG>clrtoeol</STRONG>, then moves the
12443 cursor to the window left margin on the next line,
12444 - scrolling the window if on the last line). Tabs are con-
12445 + scrolling the window if on the last line. Tabs are con-
12446 sidered to be at every eighth column. The tab interval
12447 may be altered by setting the <STRONG>TABSIZE</STRONG> variable.
12450 passed to <STRONG>addch</STRONG> or related functions by logical-ORing them
12451 into the character. (Thus, text, including attributes,
12452 can be copied from one place to another using <STRONG>inch</STRONG> and
12453 - <STRONG>addch</STRONG>.). See the <STRONG><A HREF="curs_attr.3x.html">curs_attr(3x)</A></STRONG> page for values of prede-
12454 + <STRONG>addch</STRONG>.) See the <STRONG><A HREF="curs_attr.3x.html">curs_attr(3x)</A></STRONG> page for values of prede-
12455 fined video attribute constants that can be usefully OR'ed
12458 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_beep.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_beep.3x.html
12459 --- ncurses-5.3/doc/html/man/curs_beep.3x.html Sat Jun 22 16:25:17 2002
12460 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_beep.3x.html Sun Jul 20 14:02:08 2003
12462 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12464 ****************************************************************************
12465 - * Copyright (c) 1998 Free Software Foundation, Inc. *
12466 + * Copyright (c) 1998,2003 Free Software Foundation, Inc. *
12468 * Permission is hereby granted, free of charge, to any person obtaining a *
12469 * copy of this software and associated documentation files (the *
12471 * sale, use or other dealings in this Software without prior written *
12473 ****************************************************************************
12474 - * @Id: curs_beep.3x,v 1.7 1998/03/11 21:12:53 juergen Exp @
12475 + * @Id: curs_beep.3x,v 1.8 2003/05/10 20:33:49 jmc Exp @
12479 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_deleteln.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_deleteln.3x.html
12480 --- ncurses-5.3/doc/html/man/curs_deleteln.3x.html Sat Jun 22 16:25:19 2002
12481 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_deleteln.3x.html Sun Jul 20 14:02:08 2003
12483 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12485 ****************************************************************************
12486 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
12487 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
12489 * Permission is hereby granted, free of charge, to any person obtaining a *
12490 * copy of this software and associated documentation files (the *
12492 * sale, use or other dealings in this Software without prior written *
12494 ****************************************************************************
12495 - * @Id: curs_deleteln.3x,v 1.7 2000/11/11 20:43:20 Bernhard.Rosenkraenzer Exp @
12496 + * @Id: curs_deleteln.3x,v 1.8 2003/05/10 20:33:49 jmc Exp @
12501 and move the remaining lines up. The bottom <EM>n</EM> lines are
12502 cleared. The current cursor position remains the same.
12504 - The <STRONG>insertln</STRONG> and <STRONG>winsertln</STRONG> routines, insert a blank line
12505 + The <STRONG>insertln</STRONG> and <STRONG>winsertln</STRONG> routines insert a blank line
12506 above the current line and the bottom line is lost.
12509 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_extend.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_extend.3x.html
12510 --- ncurses-5.3/doc/html/man/curs_extend.3x.html Sat Jun 22 16:25:19 2002
12511 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_extend.3x.html Sun Jul 20 14:02:08 2003
12513 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12515 ****************************************************************************
12516 - * Copyright (c) 1999-2000,2002 Free Software Foundation, Inc. *
12517 + * Copyright (c) 1999-2002,2003 Free Software Foundation, Inc. *
12519 * Permission is hereby granted, free of charge, to any person obtaining a *
12520 * copy of this software and associated documentation files (the *
12523 ****************************************************************************
12524 * Author: Thomas E. Dickey <dickey@clark.net> 1999
12525 - * @Id: curs_extend.3x,v 1.9 2002/02/16 22:39:04 tom Exp @
12526 + * @Id: curs_extend.3x,v 1.11 2003/05/11 00:32:53 tom Exp @
12530 @@ -70,10 +70,10 @@
12531 standard names which may be compiled into the terminfo
12532 description, i.e., via the terminfo or termcap interfaces.
12533 Normally these names are available for use, since the
12534 - essential descision is made by using the <STRONG>-x</STRONG> option of <EM>tic</EM>
12535 + essential decision is made by using the <STRONG>-x</STRONG> option of <EM>tic</EM>
12536 to compile extended terminal definitions. However you can
12537 disable this feature to ensure compatiblity with other
12538 - implementations of curses
12539 + implementations of curses.
12543 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_get_wch.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_get_wch.3x.html
12544 --- ncurses-5.3/doc/html/man/curs_get_wch.3x.html Sat Jun 22 16:25:19 2002
12545 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_get_wch.3x.html Sun Jul 20 14:02:08 2003
12547 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12549 ****************************************************************************
12550 - * Copyright (c) 2002 Free Software Foundation, Inc. *
12551 + * Copyright (c) 2002,2003 Free Software Foundation, Inc. *
12553 * Permission is hereby granted, free of charge, to any person obtaining a *
12554 * copy of this software and associated documentation files (the *
12556 * sale, use or other dealings in this Software without prior written *
12558 ****************************************************************************
12559 - * @Id: curs_get_wch.3x,v 1.3 2002/05/18 21:48:53 tom Exp @
12560 + * @Id: curs_get_wch.3x,v 1.5 2003/05/10 20:33:49 jmc Exp @
12564 @@ -52,10 +52,10 @@
12565 <H2>SYNOPSIS</H2><PRE>
12566 <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
12568 - <STRONG>int</STRONG> <STRONG>get_wch(win_t</STRONG> <STRONG>*</STRONG><EM>wch</EM><STRONG>);</STRONG>
12569 - <STRONG>int</STRONG> <STRONG>wget_wch(WINDOW</STRONG> <STRONG>*</STRONG><EM>win</EM><STRONG>,</STRONG> <STRONG>win_t</STRONG> <STRONG>*</STRONG><EM>wch</EM><STRONG>);</STRONG>
12570 - <STRONG>int</STRONG> <STRONG>mvget_wch(int</STRONG> <EM>y</EM><STRONG>,</STRONG> <STRONG>int</STRONG> <EM>x</EM><STRONG>,</STRONG> <STRONG>win_t</STRONG> <STRONG>*</STRONG><EM>wch</EM><STRONG>);</STRONG>
12571 - <STRONG>int</STRONG> <STRONG>mvwget_wch(WINDOW</STRONG> <STRONG>*</STRONG><EM>win</EM><STRONG>,</STRONG> <STRONG>int</STRONG> <EM>y</EM><STRONG>,</STRONG> <STRONG>int</STRONG> <EM>x</EM><STRONG>,</STRONG> <STRONG>win_t</STRONG> <STRONG>*</STRONG><EM>wch</EM><STRONG>);</STRONG>
12572 + <STRONG>int</STRONG> <STRONG>get_wch(wint_t</STRONG> <STRONG>*</STRONG><EM>wch</EM><STRONG>);</STRONG>
12573 + <STRONG>int</STRONG> <STRONG>wget_wch(WINDOW</STRONG> <STRONG>*</STRONG><EM>win</EM><STRONG>,</STRONG> <STRONG>wint_t</STRONG> <STRONG>*</STRONG><EM>wch</EM><STRONG>);</STRONG>
12574 + <STRONG>int</STRONG> <STRONG>mvget_wch(int</STRONG> <EM>y</EM><STRONG>,</STRONG> <STRONG>int</STRONG> <EM>x</EM><STRONG>,</STRONG> <STRONG>wint_t</STRONG> <STRONG>*</STRONG><EM>wch</EM><STRONG>);</STRONG>
12575 + <STRONG>int</STRONG> <STRONG>mvwget_wch(WINDOW</STRONG> <STRONG>*</STRONG><EM>win</EM><STRONG>,</STRONG> <STRONG>int</STRONG> <EM>y</EM><STRONG>,</STRONG> <STRONG>int</STRONG> <EM>x</EM><STRONG>,</STRONG> <STRONG>wint_t</STRONG> <STRONG>*</STRONG><EM>wch</EM><STRONG>);</STRONG>
12576 <STRONG>int</STRONG> <STRONG>unget_wch(const</STRONG> <STRONG>wchar_t</STRONG> <EM>wch</EM><STRONG>);</STRONG>
12579 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_getcchar.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_getcchar.3x.html
12580 --- ncurses-5.3/doc/html/man/curs_getcchar.3x.html Sat Jun 22 16:25:20 2002
12581 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_getcchar.3x.html Sun Jul 20 14:02:08 2003
12583 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12585 ****************************************************************************
12586 - * Copyright (c) 2001,2002 Free Software Foundation, Inc. *
12587 + * Copyright (c) 2001-2002,2003 Free Software Foundation, Inc. *
12589 * Permission is hereby granted, free of charge, to any person obtaining a *
12590 * copy of this software and associated documentation files (the *
12592 * sale, use or other dealings in this Software without prior written *
12594 ****************************************************************************
12595 - * @Id: curs_getcchar.3x,v 1.6 2002/03/24 01:08:55 tom Exp @
12596 + * @Id: curs_getcchar.3x,v 1.7 2003/05/10 20:33:49 jmc Exp @
12600 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_getch.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_getch.3x.html
12601 --- ncurses-5.3/doc/html/man/curs_getch.3x.html Sat Jun 22 16:25:20 2002
12602 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_getch.3x.html Sun Jul 20 14:02:08 2003
12606 ****************************************************************************
12607 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
12608 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
12610 * Permission is hereby granted, free of charge, to any person obtaining a *
12611 * copy of this software and associated documentation files (the *
12613 * sale, use or other dealings in this Software without prior written *
12615 ****************************************************************************
12616 - * @Id: curs_getch.3x,v 1.21 2002/03/17 14:36:21 tom Exp @
12617 + * @Id: curs_getch.3x,v 1.22 2003/05/10 20:33:49 jmc Exp @
12622 token for that function key is returned instead of the raw
12623 characters. Possible function keys are defined in
12624 <STRONG><curses.h></STRONG> as macros with values outside the range of
12625 - 8-bit characters whose names begin with <STRONG>KEY_.</STRONG> Thus, a
12626 + 8-bit characters whose names begin with <STRONG>KEY_</STRONG>. Thus, a
12627 variable intended to hold the return value of a function
12628 key must be of short size or larger.
12630 @@ -114,103 +114,103 @@
12631 that not all of these are necessarily supported on any
12632 particular terminal.
12634 - <EM>Name</EM> <EM>Key</EM> <EM>name</EM>
12635 + <EM>Name</EM> <EM>Key</EM> <EM>name</EM>
12637 - KEY_BREAK Break key
12638 - KEY_DOWN The four arrow keys ...
12642 - KEY_HOME Home key (upward+left arrow)
12643 - KEY_BACKSPACE Backspace
12644 - KEY_F0 Function keys; space for 64 keys
12646 - KEY_F(<EM>n</EM>) For 0 <= <EM>n</EM> <= 63
12647 - KEY_DL Delete line
12648 - KEY_IL Insert line
12649 - KEY_DC Delete character
12650 - KEY_IC Insert char or enter insert mode
12651 - KEY_EIC Exit insert char mode
12652 - KEY_CLEAR Clear screen
12653 - KEY_EOS Clear to end of screen
12654 - KEY_EOL Clear to end of line
12655 - KEY_SF Scroll 1 line forward
12656 - KEY_SR Scroll 1 line backward (reverse)
12657 - KEY_NPAGE Next page
12658 - KEY_PPAGE Previous page
12660 - KEY_CTAB Clear tab
12661 - KEY_CATAB Clear all tabs
12662 - KEY_ENTER Enter or send
12663 - KEY_SRESET Soft (partial) reset
12664 - KEY_RESET Reset or hard reset
12665 - KEY_PRINT Print or copy
12666 - KEY_LL Home down or bottom (lower left).
12667 - KEY_A1 Upper left of keypad
12668 - KEY_A3 Upper right of keypad
12669 - KEY_B2 Center of keypad
12670 - KEY_C1 Lower left of keypad
12671 - KEY_C3 Lower right of keypad
12672 - KEY_BTAB Back tab key
12673 - KEY_BEG Beg(inning) key
12674 - KEY_CANCEL Cancel key
12675 + KEY_BREAK Break key
12676 + KEY_DOWN The four arrow keys ...
12680 + KEY_HOME Home key (upward+left arrow)
12681 + KEY_BACKSPACE Backspace
12682 + KEY_F0 Function keys; space for 64 keys
12684 + KEY_F(<EM>n</EM>) For 0 <= <EM>n</EM> <= 63
12685 + KEY_DL Delete line
12686 + KEY_IL Insert line
12687 + KEY_DC Delete character
12688 + KEY_IC Insert char or enter insert mode
12689 + KEY_EIC Exit insert char mode
12690 + KEY_CLEAR Clear screen
12691 + KEY_EOS Clear to end of screen
12692 + KEY_EOL Clear to end of line
12693 + KEY_SF Scroll 1 line forward
12694 + KEY_SR Scroll 1 line backward (reverse)
12695 + KEY_NPAGE Next page
12696 + KEY_PPAGE Previous page
12698 + KEY_CTAB Clear tab
12699 + KEY_CATAB Clear all tabs
12700 + KEY_ENTER Enter or send
12701 + KEY_SRESET Soft (partial) reset
12702 + KEY_RESET Reset or hard reset
12703 + KEY_PRINT Print or copy
12704 + KEY_LL Home down or bottom (lower left)
12705 + KEY_A1 Upper left of keypad
12706 + KEY_A3 Upper right of keypad
12707 + KEY_B2 Center of keypad
12708 + KEY_C1 Lower left of keypad
12709 + KEY_C3 Lower right of keypad
12710 + KEY_BTAB Back tab key
12711 + KEY_BEG Beg(inning) key
12712 + KEY_CANCEL Cancel key
12714 - KEY_CLOSE Close key
12715 - KEY_COMMAND Cmd (command) key
12716 - KEY_COPY Copy key
12717 - KEY_CREATE Create key
12719 - KEY_EXIT Exit key
12720 - KEY_FIND Find key
12721 - KEY_HELP Help key
12722 - KEY_MARK Mark key
12723 - KEY_MESSAGE Message key
12724 - KEY_MOUSE Mouse event read
12725 - KEY_MOVE Move key
12726 - KEY_NEXT Next object key
12727 - KEY_OPEN Open key
12728 - KEY_OPTIONS Options key
12729 - KEY_PREVIOUS Previous object key
12730 - KEY_REDO Redo key
12731 - KEY_REFERENCE Ref(erence) key
12732 - KEY_REFRESH Refresh key
12733 - KEY_REPLACE Replace key
12734 - KEY_RESIZE Screen resized
12735 - KEY_RESTART Restart key
12736 - KEY_RESUME Resume key
12737 - KEY_SAVE Save key
12738 - KEY_SBEG Shifted beginning key
12739 - KEY_SCANCEL Shifted cancel key
12740 - KEY_SCOMMAND Shifted command key
12741 - KEY_SCOPY Shifted copy key
12742 - KEY_SCREATE Shifted create key
12743 - KEY_SDC Shifted delete char key
12744 - KEY_SDL Shifted delete line key
12745 - KEY_SELECT Select key
12746 - KEY_SEND Shifted end key
12747 - KEY_SEOL Shifted clear line key
12748 - KEY_SEXIT Shifted exit key
12749 - KEY_SFIND Shifted find key
12750 - KEY_SHELP Shifted help key
12751 - KEY_SHOME Shifted home key
12752 - KEY_SIC Shifted input key
12753 - KEY_SLEFT Shifted left arrow key
12754 - KEY_SMESSAGE Shifted message key
12755 - KEY_SMOVE Shifted move key
12756 - KEY_SNEXT Shifted next key
12757 - KEY_SOPTIONS Shifted options key
12758 - KEY_SPREVIOUS Shifted prev key
12759 - KEY_SPRINT Shifted print key
12760 - KEY_SREDO Shifted redo key
12761 - KEY_SREPLACE Shifted replace key
12762 - KEY_SRIGHT Shifted right arrow
12763 - KEY_SRSUME Shifted resume key
12764 - KEY_SSAVE Shifted save key
12765 - KEY_SSUSPEND Shifted suspend key
12766 - KEY_SUNDO Shifted undo key
12767 + KEY_CLOSE Close key
12768 + KEY_COMMAND Cmd (command) key
12769 + KEY_COPY Copy key
12770 + KEY_CREATE Create key
12772 + KEY_EXIT Exit key
12773 + KEY_FIND Find key
12774 + KEY_HELP Help key
12775 + KEY_MARK Mark key
12776 + KEY_MESSAGE Message key
12777 + KEY_MOUSE Mouse event read
12778 + KEY_MOVE Move key
12779 + KEY_NEXT Next object key
12780 + KEY_OPEN Open key
12781 + KEY_OPTIONS Options key
12782 + KEY_PREVIOUS Previous object key
12783 + KEY_REDO Redo key
12784 + KEY_REFERENCE Ref(erence) key
12785 + KEY_REFRESH Refresh key
12786 + KEY_REPLACE Replace key
12787 + KEY_RESIZE Screen resized
12788 + KEY_RESTART Restart key
12789 + KEY_RESUME Resume key
12790 + KEY_SAVE Save key
12791 + KEY_SBEG Shifted beginning key
12792 + KEY_SCANCEL Shifted cancel key
12793 + KEY_SCOMMAND Shifted command key
12794 + KEY_SCOPY Shifted copy key
12795 + KEY_SCREATE Shifted create key
12796 + KEY_SDC Shifted delete char key
12797 + KEY_SDL Shifted delete line key
12798 + KEY_SELECT Select key
12799 + KEY_SEND Shifted end key
12800 + KEY_SEOL Shifted clear line key
12801 + KEY_SEXIT Shifted exit key
12802 + KEY_SFIND Shifted find key
12803 + KEY_SHELP Shifted help key
12804 + KEY_SHOME Shifted home key
12805 + KEY_SIC Shifted input key
12806 + KEY_SLEFT Shifted left arrow key
12807 + KEY_SMESSAGE Shifted message key
12808 + KEY_SMOVE Shifted move key
12809 + KEY_SNEXT Shifted next key
12810 + KEY_SOPTIONS Shifted options key
12811 + KEY_SPREVIOUS Shifted prev key
12812 + KEY_SPRINT Shifted print key
12813 + KEY_SREDO Shifted redo key
12814 + KEY_SREPLACE Shifted replace key
12815 + KEY_SRIGHT Shifted right arrow
12816 + KEY_SRSUME Shifted resume key
12817 + KEY_SSAVE Shifted save key
12818 + KEY_SSUSPEND Shifted suspend key
12819 + KEY_SUNDO Shifted undo key
12821 - KEY_SUSPEND Suspend key
12822 - KEY_UNDO Undo key
12823 + KEY_SUSPEND Suspend key
12824 + KEY_UNDO Undo key
12826 Keypad is arranged like this:
12828 @@ -247,7 +247,7 @@
12829 according to whether they treat these control keys spe-
12830 cially (and ignore the terminfo), or use the terminfo def-
12831 initions. <STRONG>Ncurses</STRONG> uses the terminfo definition. If it
12832 - says that KEY_ENTER is control/M, <STRONG>getch</STRONG>, will return
12833 + says that KEY_ENTER is control/M, <STRONG>getch</STRONG> will return
12834 KEY_ENTER when you press control/M.
12836 When using <STRONG>getch</STRONG>, <STRONG>wgetch</STRONG>, <STRONG>mvgetch</STRONG>, or <STRONG>mvwgetch</STRONG>, nocbreak
12837 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_getstr.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_getstr.3x.html
12838 --- ncurses-5.3/doc/html/man/curs_getstr.3x.html Sat Jun 22 16:37:28 2002
12839 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_getstr.3x.html Sun Jul 20 14:02:08 2003
12841 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12843 ****************************************************************************
12844 - * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
12845 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
12847 * Permission is hereby granted, free of charge, to any person obtaining a *
12848 * copy of this software and associated documentation files (the *
12850 * sale, use or other dealings in this Software without prior written *
12852 ****************************************************************************
12853 - * @Id: curs_getstr.3x,v 1.11 2002/04/13 22:14:30 tom Exp @
12854 + * @Id: curs_getstr.3x,v 1.12 2003/05/10 20:33:49 jmc Exp @
12858 @@ -109,7 +109,7 @@
12859 SVr3 and early SVr4 curses implementations did not reject
12860 function keys; the SVr4.0 documentation claimed that "spe-
12861 cial keys" (such as function keys, "home" key, "clear"
12862 - key, <EM>etc</EM>.) are interpreted" without giving details. It
12863 + key, <EM>etc</EM>.) are "interpreted", without giving details. It
12864 lied. In fact, the `character' value appended to the
12865 string by those implementations was predictable but not
12866 useful (being, in fact, the low-order eight bits of the
12867 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_getyx.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_getyx.3x.html
12868 --- ncurses-5.3/doc/html/man/curs_getyx.3x.html Sat Oct 12 18:27:50 2002
12869 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_getyx.3x.html Sun Jul 20 14:02:08 2003
12871 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12873 ****************************************************************************
12874 - * Copyright (c) 1998,2002 Free Software Foundation, Inc. *
12875 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
12877 * Permission is hereby granted, free of charge, to any person obtaining a *
12878 * copy of this software and associated documentation files (the *
12880 * sale, use or other dealings in this Software without prior written *
12882 ****************************************************************************
12883 - * @Id: curs_getyx.3x,v 1.8 2002/09/21 19:00:38 tom Exp @
12884 + * @Id: curs_getyx.3x,v 1.10 2003/05/10 20:33:49 jmc Exp @
12891 <H2>RETURN VALUE</H2><PRE>
12892 - The return values of these macros are undefined (<EM>i</EM>.<EM>e</EM>.,
12893 + The return values of these macros are undefined (i.e.,
12894 they should not be used as the right-hand side of assign-
12897 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_initscr.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_initscr.3x.html
12898 --- ncurses-5.3/doc/html/man/curs_initscr.3x.html Sat Jul 27 19:39:31 2002
12899 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_initscr.3x.html Sun Jul 20 14:02:08 2003
12901 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12903 ****************************************************************************
12904 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
12905 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
12907 * Permission is hereby granted, free of charge, to any person obtaining a *
12908 * copy of this software and associated documentation files (the *
12910 * sale, use or other dealings in this Software without prior written *
12912 ****************************************************************************
12913 - * @Id: curs_initscr.3x,v 1.11 2002/07/20 14:51:04 tom Exp @
12914 + * @Id: curs_initscr.3x,v 1.12 2003/05/10 20:33:49 jmc Exp @
12918 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_inopts.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_inopts.3x.html
12919 --- ncurses-5.3/doc/html/man/curs_inopts.3x.html Sat Aug 31 16:59:27 2002
12920 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_inopts.3x.html Sun Jul 20 14:02:08 2003
12922 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12924 ****************************************************************************
12925 - * Copyright (c) 1998,2001 Free Software Foundation, Inc. *
12926 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
12928 * Permission is hereby granted, free of charge, to any person obtaining a *
12929 * copy of this software and associated documentation files (the *
12931 * sale, use or other dealings in this Software without prior written *
12933 ****************************************************************************
12934 - * @Id: curs_inopts.3x,v 1.9 2002/08/10 22:29:49 tom Exp @
12935 + * @Id: curs_inopts.3x,v 1.10 2003/05/10 20:33:49 jmc Exp @
12939 @@ -172,9 +172,9 @@
12941 The <STRONG>timeout</STRONG> and <STRONG>wtimeout</STRONG> routines set blocking or non-
12942 blocking read for a given window. If <EM>delay</EM> is negative,
12943 - blocking read is used (<EM>i</EM>.<EM>e</EM>., waits indefinitely for
12944 + blocking read is used (i.e., waits indefinitely for
12945 input). If <EM>delay</EM> is zero, then non-blocking read is used
12946 - (<EM>i</EM>.<EM>e</EM>., read returns <STRONG>ERR</STRONG> if no input is waiting). If <EM>delay</EM>
12947 + (i.e., read returns <STRONG>ERR</STRONG> if no input is waiting). If <EM>delay</EM>
12948 is positive, then read blocks for <EM>delay</EM> milliseconds, and
12949 returns <STRONG>ERR</STRONG> if there is still no input. Hence, these rou-
12950 tines provide the same functionality as <STRONG>nodelay</STRONG>, plus the
12951 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_insch.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_insch.3x.html
12952 --- ncurses-5.3/doc/html/man/curs_insch.3x.html Sat Jun 22 16:25:23 2002
12953 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_insch.3x.html Sun Jul 20 14:02:08 2003
12955 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12957 ****************************************************************************
12958 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
12959 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
12961 * Permission is hereby granted, free of charge, to any person obtaining a *
12962 * copy of this software and associated documentation files (the *
12964 * sale, use or other dealings in this Software without prior written *
12966 ****************************************************************************
12967 - * @Id: curs_insch.3x,v 1.7 2000/07/01 19:57:21 tom Exp @
12968 + * @Id: curs_insch.3x,v 1.8 2003/05/10 20:33:49 jmc Exp @
12975 <H2>DESCRIPTION</H2><PRE>
12976 - These routines, insert the character <EM>ch</EM> before the charac-
12977 + These routines insert the character <EM>ch</EM> before the charac-
12978 ter under the cursor. All characters to the right of the
12979 cursor are moved one space to the right, with the possi-
12980 bility of the rightmost character on the line being lost.
12981 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_mouse.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_mouse.3x.html
12982 --- ncurses-5.3/doc/html/man/curs_mouse.3x.html Sat Jul 27 19:39:34 2002
12983 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_mouse.3x.html Sun Jul 20 14:02:08 2003
12987 ****************************************************************************
12988 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
12989 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
12991 * Permission is hereby granted, free of charge, to any person obtaining a *
12992 * copy of this software and associated documentation files (the *
12994 * sale, use or other dealings in this Software without prior written *
12996 ****************************************************************************
12997 - * @Id: curs_mouse.3x,v 1.20 2002/07/20 14:52:14 tom Exp @
12998 + * @Id: curs_mouse.3x,v 1.22 2003/05/10 20:33:49 jmc Exp @
13002 @@ -213,29 +213,36 @@
13003 than xterm and there is no gpm daemon running on your
13004 machine, mouse events will not be visible to <STRONG><A HREF="ncurses.3x.html">ncurses(3x)</A></STRONG>
13005 (and the <STRONG>wmousemask</STRONG> function will always return <STRONG>0</STRONG>).
13006 + If the terminfo entry contains a <STRONG>XM</STRONG> string, this is used
13007 + in the xterm mouse driver to control the way the terminal
13008 + is initialized for mouse operation. The default, if <STRONG>XM</STRONG> is
13009 + not found, corresponds to private mode 1000 of xterm:
13011 + \E[?1000%?%p1%{1}%=%th%el%;
13013 The z member in the event structure is not presently used.
13014 - It is intended for use with touch screens (which may be
13015 + It is intended for use with touch screens (which may be
13016 pressure-sensitive) or with 3D-mice/trackballs/power
13022 - Mouse events under xterm will not in fact be ignored dur-
13023 - ing cooked mode, if they have been enabled by <STRONG>wmousemask</STRONG>.
13024 - Instead, the xterm mouse report sequence will appear in
13025 + Mouse events under xterm will not in fact be ignored dur-
13026 + ing cooked mode, if they have been enabled by <STRONG>wmousemask</STRONG>.
13027 + Instead, the xterm mouse report sequence will appear in
13030 Mouse events under xterm will not be detected correctly in
13031 - a window with its keypad bit off, since they are inter-
13032 - preted as a variety of function key. Your terminfo
13033 - description must have <STRONG>kmous</STRONG> set to "\E[M" (the beginning
13034 + a window with its keypad bit off, since they are inter-
13035 + preted as a variety of function key. Your terminfo
13036 + description must have <STRONG>kmous</STRONG> set to "\E[M" (the beginning
13037 of the response from xterm for mouse clicks).
13039 - Because there are no standard terminal responses that
13040 - would serve to identify terminals which support the xterm
13041 - mouse protocol, <STRONG>ncurses</STRONG> assumes that if your $TERM envi-
13042 - ronment variable contains "xterm", or <STRONG>kmous</STRONG> is defined in
13043 + Because there are no standard terminal responses that
13044 + would serve to identify terminals which support the xterm
13045 + mouse protocol, <STRONG>ncurses</STRONG> assumes that if your $TERM envi-
13046 + ronment variable contains "xterm", or <STRONG>kmous</STRONG> is defined in
13047 the terminal description, then the terminal may send mouse
13050 @@ -246,13 +253,6 @@
13064 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_outopts.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_outopts.3x.html
13065 --- ncurses-5.3/doc/html/man/curs_outopts.3x.html Sat Jun 22 16:25:25 2002
13066 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_outopts.3x.html Sun Jul 20 14:02:08 2003
13068 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
13070 ****************************************************************************
13071 - * Copyright (c) 1998,2001 Free Software Foundation, Inc. *
13072 + * Copyright (c) 1998-2001,2003 Free Software Foundation, Inc. *
13074 * Permission is hereby granted, free of charge, to any person obtaining a *
13075 * copy of this software and associated documentation files (the *
13077 * sale, use or other dealings in this Software without prior written *
13079 ****************************************************************************
13080 - * @Id: curs_outopts.3x,v 1.17 2001/10/14 00:50:30 tom Exp @
13081 + * @Id: curs_outopts.3x,v 1.18 2003/05/10 20:33:49 jmc Exp @
13085 @@ -100,7 +100,7 @@
13087 If <STRONG>immedok</STRONG> is called with <STRONG>TRUE</STRONG> <STRONG>as</STRONG> <STRONG>argument</STRONG>, any change in
13088 the window image, such as the ones caused by <STRONG>waddch,</STRONG>
13089 - <STRONG>wclrtobot,</STRONG> <STRONG>wscrl</STRONG>, <EM>etc</EM>., automatically cause a call to <STRONG>wre-</STRONG>
13090 + <STRONG>wclrtobot,</STRONG> <STRONG>wscrl</STRONG>, etc., automatically cause a call to <STRONG>wre-</STRONG>
13091 <STRONG>fresh</STRONG>. However, it may degrade performance considerably,
13092 due to repeated calls to <STRONG>wrefresh</STRONG>. It is disabled by
13094 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_pad.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_pad.3x.html
13095 --- ncurses-5.3/doc/html/man/curs_pad.3x.html Sat Jun 22 16:25:25 2002
13096 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_pad.3x.html Sun Jul 20 14:02:08 2003
13098 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
13100 ****************************************************************************
13101 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
13102 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
13104 * Permission is hereby granted, free of charge, to any person obtaining a *
13105 * copy of this software and associated documentation files (the *
13107 * sale, use or other dealings in this Software without prior written *
13109 ****************************************************************************
13110 - * @Id: curs_pad.3x,v 1.9 2000/07/04 22:38:13 tom Exp @
13111 + * @Id: curs_pad.3x,v 1.10 2003/05/10 20:33:49 jmc Exp @
13116 sarily associated with a particular part of the screen.
13117 Pads can be used when a large window is needed, and only a
13118 part of the window will be on the screen at one time.
13119 - Automatic refreshes of pads (<EM>e</EM>.<EM>g</EM>., from scrolling or echo-
13120 + Automatic refreshes of pads (e.g., from scrolling or echo-
13121 ing of input) do not occur. It is not legal to call <STRONG>wre-</STRONG>
13122 <STRONG>fresh</STRONG> with a <EM>pad</EM> as an argument; the routines <STRONG>prefresh</STRONG> or
13123 <STRONG>pnoutrefresh</STRONG> should be called instead. Note that these
13124 @@ -106,7 +106,7 @@
13125 The <STRONG>pechochar</STRONG> routine is functionally equivalent to a call
13126 to <STRONG>addch</STRONG> followed by a call to <STRONG>refresh</STRONG>, a call to <STRONG>waddch</STRONG>
13127 followed by a call to <STRONG>wrefresh</STRONG>, or a call to <STRONG>waddch</STRONG> fol-
13128 - lowed by a call to <STRONG>prefresh.</STRONG> The knowledge that only a
13129 + lowed by a call to <STRONG>prefresh</STRONG>. The knowledge that only a
13130 single character is being output is taken into considera-
13131 tion and, for non-control characters, a considerable per-
13132 formance gain might be seen by using these routines
13133 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_print.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_print.3x.html
13134 --- ncurses-5.3/doc/html/man/curs_print.3x.html Sat Jun 22 16:25:26 2002
13135 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_print.3x.html Sun Jul 20 14:02:08 2003
13137 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
13139 ****************************************************************************
13140 - * Copyright (c) 1998,2002 Free Software Foundation, Inc. *
13141 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
13143 * Permission is hereby granted, free of charge, to any person obtaining a *
13144 * copy of this software and associated documentation files (the *
13146 * sale, use or other dealings in this Software without prior written *
13148 ****************************************************************************
13149 - * @Id: curs_print.3x,v 1.5 2002/02/16 22:39:04 tom Exp @
13150 + * @Id: curs_print.3x,v 1.6 2003/05/10 20:33:49 jmc Exp @
13154 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_printw.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_printw.3x.html
13155 --- ncurses-5.3/doc/html/man/curs_printw.3x.html Sat Jul 27 19:39:35 2002
13156 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_printw.3x.html Tue May 13 20:08:22 2003
13158 * sale, use or other dealings in this Software without prior written *
13160 ****************************************************************************
13161 - * @Id: curs_printw.3x,v 1.12 2002/07/20 15:01:43 tom Exp @
13162 + * @Id: curs_printw.3x,v 1.13 2002/11/16 22:28:57 tom Exp @
13166 @@ -51,45 +51,48 @@
13167 <H2>SYNOPSIS</H2><PRE>
13168 <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
13170 - <STRONG>int</STRONG> <STRONG>printw(char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>...);</STRONG>
13171 - <STRONG>int</STRONG> <STRONG>wprintw(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>...);</STRONG>
13172 - <STRONG>int</STRONG> <STRONG>mvprintw(int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x,</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>...);</STRONG>
13173 - <STRONG>int</STRONG> <STRONG>mvwprintw(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x,</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>...);</STRONG>
13174 - <STRONG>int</STRONG> <STRONG>vwprintw(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>va_list</STRONG> <STRONG>varglist);</STRONG>
13175 - <STRONG>int</STRONG> <STRONG>vw_printw(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>va_list</STRONG> <STRONG>varglist);</STRONG>
13176 + <STRONG>int</STRONG> <STRONG>printw(const</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>...);</STRONG>
13177 + <STRONG>int</STRONG> <STRONG>wprintw(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>const</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>...);</STRONG>
13178 + <STRONG>int</STRONG> <STRONG>mvprintw(int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x,</STRONG> <STRONG>const</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>...);</STRONG>
13179 + <STRONG>int</STRONG> <STRONG>mvwprintw(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x,</STRONG> <STRONG>const</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG>
13180 + <STRONG>...);</STRONG>
13181 + <STRONG>int</STRONG> <STRONG>vwprintw(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>const</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>va_list</STRONG> <STRONG>var-</STRONG>
13182 + <STRONG>glist);</STRONG>
13183 + <STRONG>int</STRONG> <STRONG>vw_printw(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>const</STRONG> <STRONG>char</STRONG> <STRONG>*fmt,</STRONG> <STRONG>va_list</STRONG> <STRONG>var-</STRONG>
13184 + <STRONG>glist);</STRONG>
13188 <H2>DESCRIPTION</H2><PRE>
13189 - The <STRONG>printw</STRONG>, <STRONG>wprintw</STRONG>, <STRONG>mvprintw</STRONG> and <STRONG>mvwprintw</STRONG> routines are
13190 - analogous to <STRONG>printf</STRONG> [see <STRONG><A HREF="printf.3S.html">printf(3S)</A></STRONG>]. In effect, the
13191 + The <STRONG>printw</STRONG>, <STRONG>wprintw</STRONG>, <STRONG>mvprintw</STRONG> and <STRONG>mvwprintw</STRONG> routines are
13192 + analogous to <STRONG>printf</STRONG> [see <STRONG><A HREF="printf.3S.html">printf(3S)</A></STRONG>]. In effect, the
13193 string that would be output by <STRONG>printf</STRONG> is output instead as
13194 though <STRONG>waddstr</STRONG> were used on the given window.
13196 - The <STRONG>vwprintw</STRONG> and <STRONG>wv_printw</STRONG> routines are analogous to
13197 - <STRONG>vprintf</STRONG> [see <STRONG><A HREF="printf.3S.html">printf(3S)</A></STRONG>] and perform a <STRONG>wprintw</STRONG> using a
13198 - variable argument list. The third argument is a <STRONG>va_list</STRONG>,
13199 - a pointer to a list of arguments, as defined in
13200 + The <STRONG>vwprintw</STRONG> and <STRONG>wv_printw</STRONG> routines are analogous to
13201 + <STRONG>vprintf</STRONG> [see <STRONG><A HREF="printf.3S.html">printf(3S)</A></STRONG>] and perform a <STRONG>wprintw</STRONG> using a
13202 + variable argument list. The third argument is a <STRONG>va_list</STRONG>,
13203 + a pointer to a list of arguments, as defined in
13204 <STRONG><stdarg.h></STRONG>.
13208 <H2>RETURN VALUE</H2><PRE>
13209 - Routines that return an integer return <STRONG>ERR</STRONG> upon failure
13210 - and <STRONG>OK</STRONG> (SVr4 only specifies "an integer value other than
13211 + Routines that return an integer return <STRONG>ERR</STRONG> upon failure
13212 + and <STRONG>OK</STRONG> (SVr4 only specifies "an integer value other than
13213 <STRONG>ERR</STRONG>") upon successful completion.
13217 <H2>PORTABILITY</H2><PRE>
13218 - The XSI Curses standard, Issue 4 describes these func-
13219 - tions. The function <STRONG>vwprintw</STRONG> is marked TO BE WITHDRAWN,
13220 - and is to be replaced by a function <STRONG>vw_printw</STRONG> using the
13221 + The XSI Curses standard, Issue 4 describes these func-
13222 + tions. The function <STRONG>vwprintw</STRONG> is marked TO BE WITHDRAWN,
13223 + and is to be replaced by a function <STRONG>vw_printw</STRONG> using the
13224 <STRONG><stdarg.h></STRONG> interface. The Single Unix Specification, Ver-
13225 - sion 2 states that <STRONG>vw_printw</STRONG> is preferred to <STRONG>vwprintw</STRONG>
13226 - since the latter requires including <STRONG><varargs.h></STRONG>, which
13227 - cannot be used in the same file as <STRONG><stdarg.h></STRONG>. This
13228 - implementation uses <STRONG><stdarg.h></STRONG> for both, because that
13229 + sion 2 states that <STRONG>vw_printw</STRONG> is preferred to <STRONG>vwprintw</STRONG>
13230 + since the latter requires including <STRONG><varargs.h></STRONG>, which
13231 + cannot be used in the same file as <STRONG><stdarg.h></STRONG>. This
13232 + implementation uses <STRONG><stdarg.h></STRONG> for both, because that
13233 header is included in <STRONG><curses.h</STRONG>>.
13246 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_scroll.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_scroll.3x.html
13247 --- ncurses-5.3/doc/html/man/curs_scroll.3x.html Sat Jun 22 16:25:27 2002
13248 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_scroll.3x.html Sun Jul 20 14:02:08 2003
13250 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
13252 ****************************************************************************
13253 - * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
13254 + * Copyright (c) 1998-2001,2003 Free Software Foundation, Inc. *
13256 * Permission is hereby granted, free of charge, to any person obtaining a *
13257 * copy of this software and associated documentation files (the *
13259 * sale, use or other dealings in this Software without prior written *
13261 ****************************************************************************
13262 - * @Id: curs_scroll.3x,v 1.9 2001/10/14 00:51:56 tom Exp @
13263 + * @Id: curs_scroll.3x,v 1.10 2003/05/10 20:33:49 jmc Exp @
13267 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_slk.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_slk.3x.html
13268 --- ncurses-5.3/doc/html/man/curs_slk.3x.html Sat Jun 22 16:25:27 2002
13269 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_slk.3x.html Sun Jul 20 14:02:08 2003
13271 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
13273 ****************************************************************************
13274 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
13275 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
13277 * Permission is hereby granted, free of charge, to any person obtaining a *
13278 * copy of this software and associated documentation files (the *
13280 * sale, use or other dealings in this Software without prior written *
13282 ****************************************************************************
13283 - * @Id: curs_slk.3x,v 1.11 2001/03/03 21:05:41 Todd.C.Miller Exp @
13284 + * @Id: curs_slk.3x,v 1.12 2003/05/10 20:33:49 jmc Exp @
13288 @@ -115,7 +115,7 @@
13289 The <STRONG>slk_clear</STRONG> routine clears the soft labels from the
13292 - The <STRONG>slk_restore</STRONG> routine, restores the soft labels to the
13293 + The <STRONG>slk_restore</STRONG> routine restores the soft labels to the
13294 screen after a <STRONG>slk_clear</STRONG> has been performed.
13296 The <STRONG>slk_touch</STRONG> routine forces all the soft labels to be
13297 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_termcap.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_termcap.3x.html
13298 --- ncurses-5.3/doc/html/man/curs_termcap.3x.html Sat Jun 22 16:25:28 2002
13299 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_termcap.3x.html Sun Jul 20 14:02:08 2003
13301 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
13303 ****************************************************************************
13304 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
13305 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
13307 * Permission is hereby granted, free of charge, to any person obtaining a *
13308 * copy of this software and associated documentation files (the *
13310 * sale, use or other dealings in this Software without prior written *
13312 ****************************************************************************
13313 - * @Id: curs_termcap.3x,v 1.16 2002/02/16 19:26:41 tom Exp @
13314 + * @Id: curs_termcap.3x,v 1.18 2003/02/08 22:25:47 tom Exp @
13318 @@ -136,32 +136,86 @@
13319 will put out a literal "50" rather than busy-waiting for
13320 50 milliseconds. Cope with it.
13322 + Note that termcap has nothing analogous to terminfo's <STRONG>sgr</STRONG>
13323 + string. One consequence of this is that termcap applica-
13324 + tions assume me (terminfo <STRONG>sgr0</STRONG>) does not reset the alter-
13325 + nate character set. This implementation checks for, and
13326 + modifies the data shown to the termcap interface to accom-
13327 + modate termcap's limitation in this respect.
13331 <H2>PORTABILITY</H2><PRE>
13332 - The XSI Curses standard, Issue 4 describes these func-
13333 - tions. However, they are marked TO BE WITHDRAWN and may
13334 + The XSI Curses standard, Issue 4 describes these func-
13335 + tions. However, they are marked TO BE WITHDRAWN and may
13336 be removed in future versions.
13338 - Neither the XSI Curses standard nor the SVr4 man pages
13339 - documented the return values of <STRONG>tgetent</STRONG> correctly, though
13340 - all three were in fact returned ever since SVr1. In par-
13341 - ticular, an omission in the XSI Curses documentation has
13342 - been misinterpreted to mean that <STRONG>tgetent</STRONG> returns <STRONG>OK</STRONG> or
13343 + Neither the XSI Curses standard nor the SVr4 man pages
13344 + documented the return values of <STRONG>tgetent</STRONG> correctly, though
13345 + all three were in fact returned ever since SVr1. In par-
13346 + ticular, an omission in the XSI Curses documentation has
13347 + been misinterpreted to mean that <STRONG>tgetent</STRONG> returns <STRONG>OK</STRONG> or
13348 <STRONG>ERR</STRONG>. Because the purpose of these functions is to provide
13349 - compatibility with the <EM>termcap</EM> library, that is a defect
13350 + compatibility with the <EM>termcap</EM> library, that is a defect
13351 in XCurses, Issue 4, Version 2 rather than in ncurses.
13353 - External variables are provided for support of certain
13354 - termcap applications. However, termcap applications' use
13355 + External variables are provided for support of certain
13356 + termcap applications. However, termcap applications' use
13357 of those variables is poorly documented, e.g., not distin-
13358 - guishing between input and output. In particular, some
13359 + guishing between input and output. In particular, some
13360 applications are reported to declare and/or modify <STRONG>ospeed</STRONG>.
13364 <H2>SEE ALSO</H2><PRE>
13365 <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>, <STRONG><A HREF="terminfo.5.html">terminfo(5)</A></STRONG>, <STRONG><A HREF="putc.3S.html">putc(3S)</A></STRONG>.
13416 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_terminfo.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_terminfo.3x.html
13417 --- ncurses-5.3/doc/html/man/curs_terminfo.3x.html Sat Jul 27 19:39:37 2002
13418 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_terminfo.3x.html Sun Jul 20 14:02:08 2003
13420 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
13422 ****************************************************************************
13423 - * Copyright (c) 1999-2000,2002 Free Software Foundation, Inc. *
13424 + * Copyright (c) 1999-2002,2003 Free Software Foundation, Inc. *
13426 * Permission is hereby granted, free of charge, to any person obtaining a *
13427 * copy of this software and associated documentation files (the *
13429 * sale, use or other dealings in this Software without prior written *
13431 ****************************************************************************
13432 - * @Id: curs_terminfo.3x,v 1.16 2002/07/20 16:05:19 tom Exp @
13433 + * @Id: curs_terminfo.3x,v 1.17 2003/05/10 20:22:01 tom Exp @
13437 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_util.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_util.3x.html
13438 --- ncurses-5.3/doc/html/man/curs_util.3x.html Sat Oct 12 18:27:58 2002
13439 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_util.3x.html Tue May 13 20:08:22 2003
13441 * sale, use or other dealings in this Software without prior written *
13443 ****************************************************************************
13444 - * @Id: curs_util.3x,v 1.9 2002/09/01 19:44:37 tom Exp @
13445 + * @Id: curs_util.3x,v 1.10 2002/12/21 22:21:37 tom Exp @
13449 @@ -110,17 +110,18 @@
13450 The <STRONG>delay_output</STRONG> routine inserts an <EM>ms</EM> millisecond pause
13451 in output. This routine should not be used extensively
13452 because padding characters are used rather than a CPU
13454 + pause. If no padding character is specified, this uses
13455 + <STRONG>napms</STRONG> to perform the delay.
13457 - The <STRONG>flushinp</STRONG> routine throws away any typeahead that has
13458 - been typed by the user and has not yet been read by the
13459 + The <STRONG>flushinp</STRONG> routine throws away any typeahead that has
13460 + been typed by the user and has not yet been read by the
13465 <H2>RETURN VALUE</H2><PRE>
13466 - Except for <STRONG>flushinp</STRONG>, routines that return an integer
13467 - return <STRONG>ERR</STRONG> upon failure and <STRONG>OK</STRONG> (SVr4 specifies only "an
13468 + Except for <STRONG>flushinp</STRONG>, routines that return an integer
13469 + return <STRONG>ERR</STRONG> upon failure and <STRONG>OK</STRONG> (SVr4 specifies only "an
13470 integer value other than <STRONG>ERR</STRONG>") upon successful completion.
13472 <STRONG>flushinp</STRONG> always returns <STRONG>OK</STRONG>.
13473 @@ -130,22 +131,21 @@
13476 <H2>PORTABILITY</H2><PRE>
13477 - The XSI Curses standard, Issue 4 describes these func-
13478 - tions. It states that <STRONG>unctrl</STRONG> and <STRONG>wunctrl</STRONG> will return a
13479 - null pointer if unsuccessful, but does not define any
13480 + The XSI Curses standard, Issue 4 describes these func-
13481 + tions. It states that <STRONG>unctrl</STRONG> and <STRONG>wunctrl</STRONG> will return a
13482 + null pointer if unsuccessful, but does not define any
13485 The SVr4 documentation describes the action of <STRONG>filter</STRONG> only
13486 - in the vaguest terms. The description here is adapted
13487 - from the XSI Curses standard (which erroneously fails to
13488 + in the vaguest terms. The description here is adapted
13489 + from the XSI Curses standard (which erroneously fails to
13490 describe the disabling of <STRONG>cuu</STRONG>).
13494 <H2>SEE ALSO</H2><PRE>
13495 - <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>, <STRONG><A HREF="curs_initscr.3x.html">curs_initscr(3x)</A></STRONG>, <STRONG><A HREF="curs_scr_dump.3x.html">curs_scr_dump(3x)</A></STRONG>.
13498 + <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>, <STRONG><A HREF="curs_initscr.3x.html">curs_initscr(3x)</A></STRONG>, <STRONG><A HREF="curs_kernel.3x.html">curs_kernel(3x)</A></STRONG>,
13499 + <STRONG><A HREF="curs_scr_dump.3x.html">curs_scr_dump(3x)</A></STRONG>.
13503 diff -urNd -urNd ncurses-5.3/doc/html/man/curs_window.3x.html ncurses-5.3.20030906.orig/doc/html/man/curs_window.3x.html
13504 --- ncurses-5.3/doc/html/man/curs_window.3x.html Sat Jun 22 16:25:29 2002
13505 +++ ncurses-5.3.20030906.orig/doc/html/man/curs_window.3x.html Sun Jul 20 14:02:08 2003
13507 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
13509 ****************************************************************************
13510 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
13511 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
13513 * Permission is hereby granted, free of charge, to any person obtaining a *
13514 * copy of this software and associated documentation files (the *
13516 * sale, use or other dealings in this Software without prior written *
13518 ****************************************************************************
13519 - * @Id: curs_window.3x,v 1.9 2000/07/01 20:08:37 tom Exp @
13520 + * @Id: curs_window.3x,v 1.10 2003/05/10 20:33:49 jmc Exp @
13524 diff -urNd -urNd ncurses-5.3/doc/html/man/define_key.3x.html ncurses-5.3.20030906.orig/doc/html/man/define_key.3x.html
13525 --- ncurses-5.3/doc/html/man/define_key.3x.html Sat Jun 22 16:25:29 2002
13526 +++ ncurses-5.3.20030906.orig/doc/html/man/define_key.3x.html Sun Jul 20 14:02:08 2003
13528 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
13530 ****************************************************************************
13531 - * Copyright (c) 1998,2002 Free Software Foundation, Inc. *
13532 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
13534 * Permission is hereby granted, free of charge, to any person obtaining a *
13535 * copy of this software and associated documentation files (the *
13538 ****************************************************************************
13539 * Author: Thomas E. Dickey <dickey@clark.net> 1997
13540 - * @Id: define_key.3x,v 1.8 2002/02/16 22:39:52 tom Exp @
13541 + * @Id: define_key.3x,v 1.9 2003/05/17 23:25:11 tom Exp @
13546 <H2>SYNOPSIS</H2><PRE>
13547 <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
13549 - <STRONG>int</STRONG> <STRONG>define_key(char</STRONG> <STRONG>*definition,</STRONG> <STRONG>int</STRONG> <STRONG>keycode);</STRONG>
13550 + <STRONG>int</STRONG> <STRONG>define_key(const</STRONG> <STRONG>char</STRONG> <STRONG>*definition,</STRONG> <STRONG>int</STRONG> <STRONG>keycode);</STRONG>
13554 diff -urNd -urNd ncurses-5.3/doc/html/man/form_field.3x.html ncurses-5.3.20030906.orig/doc/html/man/form_field.3x.html
13555 --- ncurses-5.3/doc/html/man/form_field.3x.html Sat Jun 22 16:25:31 2002
13556 +++ ncurses-5.3.20030906.orig/doc/html/man/form_field.3x.html Sun Jul 20 14:02:08 2003
13560 ****************************************************************************
13561 - * Copyright (c) 1998 Free Software Foundation, Inc. *
13562 + * Copyright (c) 1998,2003 Free Software Foundation, Inc. *
13564 * Permission is hereby granted, free of charge, to any person obtaining a *
13565 * copy of this software and associated documentation files (the *
13567 * sale, use or other dealings in this Software without prior written *
13569 ****************************************************************************
13570 - * @Id: form_field.3x,v 1.5 1998/11/29 01:05:52 Rick.Ohnemus Exp @
13571 + * @Id: form_field.3x,v 1.6 2003/05/10 20:33:49 jmc Exp @
13576 The function <STRONG>field_count</STRONG> returns the count of fields in
13579 - The function <STRONG>move_field</STRONG> move the given field (which must
13580 + The function <STRONG>move_field</STRONG> moves the given field (which must
13581 be disconnected) to a specified location on the screen.
13584 diff -urNd -urNd ncurses-5.3/doc/html/man/form_field_buffer.3x.html ncurses-5.3.20030906.orig/doc/html/man/form_field_buffer.3x.html
13585 --- ncurses-5.3/doc/html/man/form_field_buffer.3x.html Sat Jun 22 16:25:31 2002
13586 +++ ncurses-5.3.20030906.orig/doc/html/man/form_field_buffer.3x.html Sun Jul 20 14:02:08 2003
13590 ****************************************************************************
13591 - * Copyright (c) 1998,2002 Free Software Foundation, Inc. *
13592 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
13594 * Permission is hereby granted, free of charge, to any person obtaining a *
13595 * copy of this software and associated documentation files (the *
13597 * sale, use or other dealings in this Software without prior written *
13599 ****************************************************************************
13600 - * @Id: form_field_buffer.3x,v 1.9 2002/01/19 22:48:23 tom Exp @
13601 + * @Id: form_field_buffer.3x,v 1.10 2003/05/10 20:22:01 tom Exp @
13605 diff -urNd -urNd ncurses-5.3/doc/html/man/form_field_just.3x.html ncurses-5.3.20030906.orig/doc/html/man/form_field_just.3x.html
13606 --- ncurses-5.3/doc/html/man/form_field_just.3x.html Sat Jun 22 16:25:32 2002
13607 +++ ncurses-5.3.20030906.orig/doc/html/man/form_field_just.3x.html Sun Jul 20 14:02:08 2003
13611 ****************************************************************************
13612 - * Copyright (c) 1998,2002 Free Software Foundation, Inc. *
13613 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
13615 * Permission is hereby granted, free of charge, to any person obtaining a *
13616 * copy of this software and associated documentation files (the *
13618 * sale, use or other dealings in this Software without prior written *
13620 ****************************************************************************
13621 - * @Id: form_field_just.3x,v 1.6 2002/01/19 22:48:41 tom Exp @
13622 + * @Id: form_field_just.3x,v 1.7 2003/05/10 20:33:49 jmc Exp @
13627 The function <STRONG>field_just</STRONG> returns one of: NO_JUSTIFICATION,
13628 JUSTIFY_RIGHT, JUSTIFY_LEFT, or JUSTIFY_CENTER.
13630 - The function <STRONG>set_field_just</STRONG> return one of the following:
13631 + The function <STRONG>set_field_just</STRONG> returns one of the following:
13633 <STRONG>E_OK</STRONG> The routine succeeded.
13635 diff -urNd -urNd ncurses-5.3/doc/html/man/form_field_new.3x.html ncurses-5.3.20030906.orig/doc/html/man/form_field_new.3x.html
13636 --- ncurses-5.3/doc/html/man/form_field_new.3x.html Sat Jun 22 16:25:32 2002
13637 +++ ncurses-5.3.20030906.orig/doc/html/man/form_field_new.3x.html Sun Jul 20 14:02:08 2003
13641 ****************************************************************************
13642 - * Copyright (c) 1998,2002 Free Software Foundation, Inc. *
13643 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
13645 * Permission is hereby granted, free of charge, to any person obtaining a *
13646 * copy of this software and associated documentation files (the *
13648 * sale, use or other dealings in this Software without prior written *
13650 ****************************************************************************
13651 - * @Id: form_field_new.3x,v 1.11 2002/02/16 22:39:52 tom Exp @
13652 + * @Id: form_field_new.3x,v 1.12 2003/05/10 20:33:49 jmc Exp @
13656 @@ -115,8 +115,8 @@
13658 It may be unwise to count on the set of attributes copied
13659 by <STRONG><A HREF="dup_field.3x.html">dup_field(3x)</A></STRONG> being portable; the System V forms
13660 - library documents are not very explicit on what gets
13661 - copied and was not.
13662 + library documents are not very explicit about what gets
13663 + copied and what doesn't.
13667 diff -urNd -urNd ncurses-5.3/doc/html/man/form_field_opts.3x.html ncurses-5.3.20030906.orig/doc/html/man/form_field_opts.3x.html
13668 --- ncurses-5.3/doc/html/man/form_field_opts.3x.html Sat Jun 22 16:25:32 2002
13669 +++ ncurses-5.3.20030906.orig/doc/html/man/form_field_opts.3x.html Sun Jul 20 14:02:08 2003
13673 ****************************************************************************
13674 - * Copyright (c) 1998 Free Software Foundation, Inc. *
13675 + * Copyright (c) 1998,2003 Free Software Foundation, Inc. *
13677 * Permission is hereby granted, free of charge, to any person obtaining a *
13678 * copy of this software and associated documentation files (the *
13680 * sale, use or other dealings in this Software without prior written *
13682 ****************************************************************************
13683 - * @Id: form_field_opts.3x,v 1.7 1998/11/29 01:06:54 Rick.Ohnemus Exp @
13684 + * @Id: form_field_opts.3x,v 1.8 2003/05/10 20:33:49 jmc Exp @
13691 The field is displayed. If this option is off, dis-
13692 - play of the field is suppressed,
13693 + play of the field is suppressed.
13696 The field is visited during processing. If this
13698 at the first position.
13701 - Skip to the next field when this one fills
13702 + Skip to the next field when this one fills.
13706 diff -urNd -urNd ncurses-5.3/doc/html/man/form_field_validation.3x.html ncurses-5.3.20030906.orig/doc/html/man/form_field_validation.3x.html
13707 --- ncurses-5.3/doc/html/man/form_field_validation.3x.html Sat Jun 22 16:25:33 2002
13708 +++ ncurses-5.3.20030906.orig/doc/html/man/form_field_validation.3x.html Sun Jul 20 14:02:08 2003
13710 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
13712 ****************************************************************************
13713 - * Copyright (c) 1998,2002 Free Software Foundation, Inc. *
13714 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
13716 * Permission is hereby granted, free of charge, to any person obtaining a *
13717 * copy of this software and associated documentation files (the *
13719 * sale, use or other dealings in this Software without prior written *
13721 ****************************************************************************
13722 - * @Id: form_field_validation.3x,v 1.12 2002/02/16 22:39:52 tom Exp @
13723 + * @Id: form_field_validation.3x,v 1.14 2003/05/10 20:33:49 jmc Exp @
13727 @@ -53,12 +53,20 @@
13728 FIELDTYPE *field_type(const FIELD *field);
13729 void *field_arg(const FIELD *field);
13731 + FIELDTYPE *TYPE_ALNUM;
13732 + FIELDTYPE *TYPE_ALPHA;
13733 + FIELDTYPE *TYPE_ENUM;
13734 + FIELDTYPE *TYPE_INTEGER;
13735 + FIELDTYPE *TYPE_NUMERIC;
13736 + FIELDTYPE *TYPE_REGEXP;
13737 + FIELDTYPE *TYPE_IPV4;
13741 <H2>DESCRIPTION</H2><PRE>
13742 The function <STRONG>set_field_type</STRONG> declares a data type for a
13743 given form field. This is the type checked by validation
13744 - functions. The types are as follows:
13745 + functions. The predefined types are as follows:
13748 Alphanumeric data. Requires a third <STRONG>int</STRONG> argument, a
13750 than one list elements with that prefix). Please
13751 notice that the string list is not copied, only a
13752 reference to it is stored in the field. So you should
13753 - avoid to use a list that lives in automatic variables
13754 + avoid using a list that lives in automatic variables
13759 Requires a third <STRONG>int</STRONG> argument controlling the preci-
13760 sion, a fourth <STRONG>long</STRONG> argument constraining minimum
13761 value, and a fifth <STRONG>long</STRONG> constraining maximum value.
13762 - If the maximum value is less or equal the minimum
13763 - value, the range is simply ignored. On return the
13764 - field buffer is formatted according to the <STRONG>printf</STRONG>
13765 + If the maximum value is less than or equal to the
13766 + minimum value, the range is simply ignored. On return
13767 + the field buffer is formatted according to the <STRONG>printf</STRONG>
13768 format specification ".*ld", where the '*' is
13769 replaced by the precision argument. For details of
13770 the precision handling see <STRONG>printf's</STRONG> man-page.
13771 @@ -98,47 +106,48 @@
13772 Requires a third <STRONG>int</STRONG> argument controlling the preci-
13773 sion, a fourth <STRONG>double</STRONG> argument constraining minimum
13774 value, and a fifth <STRONG>double</STRONG> constraining maximum value.
13775 - If your system supports locale's, the decimal point
13776 + If your system supports locales, the decimal point
13777 character to be used must be the one specified by
13778 - your locale. If the maximum value is less or equal
13779 - the minimum value, the range is simply ignored. On
13780 - return the field buffer is formatted according to the
13781 - <STRONG>printf</STRONG> format specification ".*f", where the '*' is
13782 - replaced by the precision argument. For details of
13783 - the precision handling see <STRONG>printf's</STRONG> man-page.
13784 + your locale. If the maximum value is less than or
13785 + equal to the minimum value, the range is simply
13786 + ignored. On return the field buffer is formatted
13787 + according to the <STRONG>printf</STRONG> format specification ".*f",
13788 + where the '*' is replaced by the precision argument.
13789 + For details of the precision handling see <STRONG>printf's</STRONG>
13793 - Regular expression data. Requires a regular expres-
13794 - sion <STRONG>(char</STRONG> <STRONG>*)</STRONG> third argument; the data is valid if
13795 - the regular expression matches it. Regular expres-
13796 - sions are in the format of <STRONG><A HREF="regcomp.3x.html">regcomp(3x)</A></STRONG> and
13797 - <STRONG><A HREF="regexec.3x.html">regexec(3x)</A></STRONG>. Please notice that the regular expres-
13798 - sion must match the whole field. If you have for
13799 - example an eight character wide field, a regular
13800 - expression "^[0-9]*$" always means that you have to
13801 - fill all eight positions with digits. If you want to
13802 - allow fewer digits, you may use for example "^[0-9]*
13803 + Regular expression data. Requires a regular expres-
13804 + sion <STRONG>(char</STRONG> <STRONG>*)</STRONG> third argument; the data is valid if
13805 + the regular expression matches it. Regular expres-
13806 + sions are in the format of <STRONG><A HREF="regcomp.3x.html">regcomp(3x)</A></STRONG> and
13807 + <STRONG><A HREF="regexec.3x.html">regexec(3x)</A></STRONG>. Please notice that the regular expres-
13808 + sion must match the whole field. If you have for
13809 + example an eight character wide field, a regular
13810 + expression "^[0-9]*$" always means that you have to
13811 + fill all eight positions with digits. If you want to
13812 + allow fewer digits, you may use for example "^[0-9]*
13813 *$" which is good for trailing spaces (up to an empty
13814 - field), or "^ *[0-9]* *$" which is good for leading
13815 + field), or "^ *[0-9]* *$" which is good for leading
13816 and trailing spaces around the digits.
13819 An Internet Protocol Version 4 address. This requires
13820 - no additional argument. It is checked whether or not
13821 - the buffer has the form a.b.c.d, where a,b,c and d
13822 + no additional argument. It is checked whether or not
13823 + the buffer has the form a.b.c.d, where a,b,c and d
13824 are numbers between 0 and 255. Trailing blanks in the
13825 - buffer are ignored. The address itself is not vali-
13826 + buffer are ignored. The address itself is not vali-
13827 dated. Please note that this is an ncurses extension.
13828 - This field type may not be available in other curses
13829 + This field type may not be available in other curses
13832 - It is possible to set up new programmer-defined field
13833 - types. See the <STRONG><A HREF="form_fieldtype.3x.html">form_fieldtype(3x)</A></STRONG> manual page.
13834 + It is possible to set up new programmer-defined field
13835 + types. See the <STRONG><A HREF="form_fieldtype.3x.html">form_fieldtype(3x)</A></STRONG> manual page.
13839 <H2>RETURN VALUE</H2><PRE>
13840 - The functions <STRONG>field_type</STRONG> and <STRONG>field_arg</STRONG> return <STRONG>NULL</STRONG> on
13841 + The functions <STRONG>field_type</STRONG> and <STRONG>field_arg</STRONG> return <STRONG>NULL</STRONG> on
13842 error. The function <STRONG>set_field_type</STRONG> returns one of the fol-
13845 @@ -148,6 +157,7 @@
13846 System error occurred (see <STRONG>errno</STRONG>).
13851 <H2>SEE ALSO</H2><PRE>
13852 <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>, <STRONG><A HREF="form.3x.html">form(3x)</A></STRONG>.
13853 @@ -161,26 +171,17 @@
13856 <H2>PORTABILITY</H2><PRE>
13857 - These routines emulate the System V forms library. They
13858 + These routines emulate the System V forms library. They
13859 were not supported on Version 7 or BSD versions.
13863 <H2>AUTHORS</H2><PRE>
13864 - Juergen Pfeifer. Manual pages and adaptation for new
13865 + Juergen Pfeifer. Manual pages and adaptation for new
13866 curses by Eric S. Raymond.
13882 diff -urNd -urNd ncurses-5.3/doc/html/man/form_fieldtype.3x.html ncurses-5.3.20030906.orig/doc/html/man/form_fieldtype.3x.html
13883 --- ncurses-5.3/doc/html/man/form_fieldtype.3x.html Sat Jun 22 16:25:33 2002
13884 +++ ncurses-5.3.20030906.orig/doc/html/man/form_fieldtype.3x.html Sun Jul 20 14:02:08 2003
13888 ****************************************************************************
13889 - * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
13890 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
13892 * Permission is hereby granted, free of charge, to any person obtaining a *
13893 * copy of this software and associated documentation files (the *
13895 * sale, use or other dealings in this Software without prior written *
13897 ****************************************************************************
13898 - * @Id: form_fieldtype.3x,v 1.9 2001/08/04 20:36:25 William.Setzer Exp @
13899 + * @Id: form_fieldtype.3x,v 1.12 2003/05/10 20:33:49 jmc Exp @
13903 @@ -72,11 +72,11 @@
13904 The function <STRONG>new_fieldtype</STRONG> creates a new field type usable
13905 for data validation. You supply it with <EM>field</EM><STRONG>_</STRONG><EM>check</EM>, a
13906 predicate to check the validity of an entered data string
13907 - whenever the user attempt to leave a field. The (FIELD *)
13908 - argument is passed in so the validation predicate can see
13909 - the field's buffer, sizes and other attributes; the second
13910 - argument is an argument-block structure, about which more
13912 + whenever the user attempts to leave a field. The (FIELD
13913 + *) argument is passed in so the validation predicate can
13914 + see the field's buffer, sizes and other attributes; the
13915 + second argument is an argument-block structure, about
13916 + which more below.
13918 You also supply <STRONG>new_fieldtype</STRONG> with <EM>char</EM><STRONG>_</STRONG><EM>check</EM>, a function
13919 to validate input characters as they are entered; it will
13920 @@ -86,20 +86,24 @@
13921 The function <STRONG>free_fieldtype</STRONG> frees the space allocated for
13922 a given validation type.
13924 - The function <STRONG>set_fieldtype</STRONG> associates three storage-man-
13925 - agement functions with a field type. The <EM>mak</EM><STRONG>_</STRONG><EM>arg</EM> function
13926 - is automatically applied to the list of arguments you give
13927 - <STRONG>set_field_type</STRONG> when attaching validation to a field; its
13928 - job is to bundle these into an allocated argument-block
13929 - object which can later be passed to validation predicated.
13930 - The other two hook arguments should copy and free argu-
13931 - ment-block structures. They will be used by the forms-
13932 - driver code. You must supply the <EM>mak</EM><STRONG>_</STRONG><EM>arg</EM> function, the
13933 - other two are optional, you may supply NULL for them. In
13934 - this case it is assumed, that <EM>mak</EM><STRONG>_</STRONG><EM>arg</EM> doesn't allocate
13935 + The function <STRONG>set_fieldtype_arg</STRONG> associates three storage-
13936 + management functions with a field type. The <EM>make</EM><STRONG>_</STRONG><EM>arg</EM>
13937 + function is automatically applied to the list of arguments
13938 + you give <STRONG>set_field_type</STRONG> when attaching validation to a
13939 + field; its job is to bundle these into an allocated argu-
13940 + ment-block object which can later be passed to validation
13941 + predicated. The other two hook arguments should copy and
13942 + free argument-block structures. They will be used by the
13943 + forms-driver code. You must supply the <EM>make</EM><STRONG>_</STRONG><EM>arg</EM> function,
13944 + the other two are optional, you may supply NULL for them.
13945 + In this case it is assumed that <EM>make</EM><STRONG>_</STRONG><EM>arg</EM> does not allocate
13946 memory but simply loads the argument into a single scalar
13949 + The function <STRONG>link_fieldtype</STRONG> creates a new field type from
13950 + the two given types. They are connected by an logical
13953 The form driver requests <STRONG>REQ_NEXT_CHOICE</STRONG> and
13954 <STRONG>REQ_PREV_CHOICE</STRONG> assume that the possible values of a field
13955 form an ordered set, and provide the forms user with a way
13956 @@ -158,10 +162,6 @@
13967 diff -urNd -urNd ncurses-5.3/doc/html/man/infocmp.1m.html ncurses-5.3.20030906.orig/doc/html/man/infocmp.1m.html
13968 --- ncurses-5.3/doc/html/man/infocmp.1m.html Sat Oct 12 18:28:05 2002
13969 +++ ncurses-5.3.20030906.orig/doc/html/man/infocmp.1m.html Sun Jul 20 14:02:08 2003
13973 ****************************************************************************
13974 - * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
13975 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
13977 * Permission is hereby granted, free of charge, to any person obtaining a *
13978 * copy of this software and associated documentation files (the *
13980 * sale, use or other dealings in this Software without prior written *
13982 ****************************************************************************
13983 - * @Id: infocmp.1m,v 1.30 2002/10/05 21:22:21 tom Exp @
13984 + * @Id: infocmp.1m,v 1.33 2003/05/11 00:32:53 tom Exp @
13988 @@ -313,8 +313,8 @@
13990 An SGR0 designates an empty highlight sequence
13991 (equivalent to {SGR:NORMAL}).
13993 - l Set output format to terminfo.
13995 + <STRONG>-l</STRONG> Set output format to terminfo.
13997 <STRONG>-p</STRONG> Ignore padding specifications when comparing strings.
13999 @@ -387,13 +387,13 @@
14001 The <STRONG>-r</STRONG> option's notion of `termcap' capabilities is System
14002 V Release 4's. Actual BSD curses versions will have a
14003 - more restricted set. To see only the 4.4BSD set, use -r
14005 + more restricted set. To see only the 4.4BSD set, use <STRONG>-r</STRONG>
14006 + <STRONG>-RBSD</STRONG>.
14011 - The -F option of <STRONG><A HREF="infocmp.1m.html">infocmp(1m)</A></STRONG> should be a <STRONG><A HREF="toe.1m.html">toe(1m)</A></STRONG> mode.
14012 + The <STRONG>-F</STRONG> option of <STRONG><A HREF="infocmp.1m.html">infocmp(1m)</A></STRONG> should be a <STRONG><A HREF="toe.1m.html">toe(1m)</A></STRONG> mode.
14016 diff -urNd -urNd ncurses-5.3/doc/html/man/infotocap.1m.html ncurses-5.3.20030906.orig/doc/html/man/infotocap.1m.html
14017 --- ncurses-5.3/doc/html/man/infotocap.1m.html Sat Jun 22 16:25:36 2002
14018 +++ ncurses-5.3.20030906.orig/doc/html/man/infotocap.1m.html Sun Jul 20 14:02:08 2003
14022 ****************************************************************************
14023 - * Copyright (c) 1999,2000 Free Software Foundation, Inc. *
14024 + * Copyright (c) 1999-2000,2003 Free Software Foundation, Inc. *
14026 * Permission is hereby granted, free of charge, to any person obtaining a *
14027 * copy of this software and associated documentation files (the *
14029 * sale, use or other dealings in this Software without prior written *
14031 ****************************************************************************
14032 - * @Id: infotocap.1m,v 1.3 2000/08/13 01:56:03 tom Exp @
14033 + * @Id: infotocap.1m,v 1.4 2003/05/11 00:32:53 tom Exp @
14037 diff -urNd -urNd ncurses-5.3/doc/html/man/key_defined.3x.html ncurses-5.3.20030906.orig/doc/html/man/key_defined.3x.html
14038 --- ncurses-5.3/doc/html/man/key_defined.3x.html Wed Dec 31 18:00:00 1969
14039 +++ ncurses-5.3.20030906.orig/doc/html/man/key_defined.3x.html Sun Jul 20 14:02:08 2003
14041 +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
14043 + ****************************************************************************
14044 + * Copyright (c) 2003 Free Software Foundation, Inc. *
14046 + * Permission is hereby granted, free of charge, to any person obtaining a *
14047 + * copy of this software and associated documentation files (the *
14048 + * "Software"), to deal in the Software without restriction, including *
14049 + * without limitation the rights to use, copy, modify, merge, publish, *
14050 + * distribute, distribute with modifications, sublicense, and/or sell *
14051 + * copies of the Software, and to permit persons to whom the Software is *
14052 + * furnished to do so, subject to the following conditions: *
14054 + * The above copyright notice and this permission notice shall be included *
14055 + * in all copies or substantial portions of the Software. *
14057 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
14058 + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
14059 + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
14060 + * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
14061 + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
14062 + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
14063 + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
14065 + * Except as contained in this notice, the name(s) of the above copyright *
14066 + * holders shall not be used in advertising or otherwise to promote the *
14067 + * sale, use or other dealings in this Software without prior written *
14068 + * authorization. *
14069 + ****************************************************************************
14070 + * Author: Thomas E. Dickey 2003
14071 + * @Id: key_defined.3x,v 1.2 2003/05/17 23:24:45 tom Exp @
14075 +<TITLE>key_defined 3x</TITLE>
14076 +<link rev=made href="mailto:bug-ncurses@gnu.org">
14077 +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
14080 +<H1>key_defined 3x</H1>
14083 +<!-- Manpage converted by man2html 3.0.1 -->
14086 +<H2>NAME</H2><PRE>
14087 + <STRONG>define_key</STRONG> - define a keycode
14091 +<H2>SYNOPSIS</H2><PRE>
14092 + <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
14094 + <STRONG>int</STRONG> <STRONG>key_defined(const</STRONG> <STRONG>char</STRONG> <STRONG>*definition);</STRONG>
14098 +<H2>DESCRIPTION</H2><PRE>
14099 + This is an extension to the curses library. It permits an
14100 + application to determine if a string is currently bound to
14105 +<H2>RETURN VALUE</H2><PRE>
14106 + If the string is bound to a keycode, its value (greater
14107 + than zero) is returned. If no keycode is bound, zero is
14108 + returned. If the string conflicts with longer strings
14109 + which are bound to keys, -1 is returned.
14113 +<H2>PORTABILITY</H2><PRE>
14114 + These routines are specific to ncurses. They were not
14115 + supported on Version 7, BSD or System V implementations.
14116 + It is recommended that any code depending on them be con-
14117 + ditioned using NCURSES_VERSION.
14121 +<H2>SEE ALSO</H2><PRE>
14122 + <STRONG><A HREF="define_key.3x.html">define_key(3x)</A></STRONG>.
14126 +<H2>AUTHOR</H2><PRE>
14155 +Man(1) output converted with
14156 +<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
14160 diff -urNd -urNd ncurses-5.3/doc/html/man/keybound.3x.html ncurses-5.3.20030906.orig/doc/html/man/keybound.3x.html
14161 --- ncurses-5.3/doc/html/man/keybound.3x.html Sat Jun 22 16:25:36 2002
14162 +++ ncurses-5.3.20030906.orig/doc/html/man/keybound.3x.html Sun Jul 20 14:02:08 2003
14164 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
14166 ****************************************************************************
14167 - * Copyright (c) 1999,2002 Free Software Foundation, Inc. *
14168 + * Copyright (c) 1999-2002,2003 Free Software Foundation, Inc. *
14170 * Permission is hereby granted, free of charge, to any person obtaining a *
14171 * copy of this software and associated documentation files (the *
14174 ****************************************************************************
14175 * Author: Thomas E. Dickey <dickey@clark.net> 1999
14176 - * @Id: keybound.3x,v 1.3 2002/02/16 22:30:36 tom Exp @
14177 + * @Id: keybound.3x,v 1.4 2003/03/08 19:08:33 tom Exp @
14181 @@ -63,10 +63,12 @@
14184 <H2>RETURN VALUE</H2><PRE>
14185 - The keycode must be greater than zero, else NULL is
14186 - returned. If it does not correspond to a defined key,
14187 - then NULL is returned. Otherwise, the function returns a
14188 - string, which must be freed by the caller.
14189 + The <EM>keycode</EM> parameter must be greater than zero, else NULL
14190 + is returned. If it does not correspond to a defined key,
14191 + then NULL is returned. The <EM>count</EM> parameter is used to
14192 + allow the application to iterate through multiple defini-
14193 + tions, counting from zero. When successful, the function
14194 + returns a string which must be freed by the caller.
14207 diff -urNd -urNd ncurses-5.3/doc/html/man/menu_driver.3x.html ncurses-5.3.20030906.orig/doc/html/man/menu_driver.3x.html
14208 --- ncurses-5.3/doc/html/man/menu_driver.3x.html Sat Jun 22 16:25:37 2002
14209 +++ ncurses-5.3.20030906.orig/doc/html/man/menu_driver.3x.html Sun Jul 20 14:02:08 2003
14211 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
14213 ****************************************************************************
14214 - * Copyright (c) 1998,2002 Free Software Foundation, Inc. *
14215 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
14217 * Permission is hereby granted, free of charge, to any person obtaining a *
14218 * copy of this software and associated documentation files (the *
14220 * sale, use or other dealings in this Software without prior written *
14222 ****************************************************************************
14223 - * @Id: menu_driver.3x,v 1.10 2002/02/16 22:40:59 tom Exp @
14224 + * @Id: menu_driver.3x,v 1.11 2003/05/10 20:22:01 tom Exp @
14228 diff -urNd -urNd ncurses-5.3/doc/html/man/menu_pattern.3x.html ncurses-5.3.20030906.orig/doc/html/man/menu_pattern.3x.html
14229 --- ncurses-5.3/doc/html/man/menu_pattern.3x.html Sat Jun 22 16:25:39 2002
14230 +++ ncurses-5.3.20030906.orig/doc/html/man/menu_pattern.3x.html Sun Jul 20 14:02:08 2003
14232 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
14234 ****************************************************************************
14235 - * Copyright (c) 1998,2002 Free Software Foundation, Inc. *
14236 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
14238 * Permission is hereby granted, free of charge, to any person obtaining a *
14239 * copy of this software and associated documentation files (the *
14241 * sale, use or other dealings in this Software without prior written *
14243 ****************************************************************************
14244 - * @Id: menu_pattern.3x,v 1.7 2002/02/16 22:40:59 tom Exp @
14245 + * @Id: menu_pattern.3x,v 1.8 2003/05/10 20:22:01 tom Exp @
14249 diff -urNd -urNd ncurses-5.3/doc/html/man/ncurses.3x.html ncurses-5.3.20030906.orig/doc/html/man/ncurses.3x.html
14250 --- ncurses-5.3/doc/html/man/ncurses.3x.html Sat Aug 31 16:59:48 2002
14251 +++ ncurses-5.3.20030906.orig/doc/html/man/ncurses.3x.html Sun Jul 20 14:02:08 2003
14255 ****************************************************************************
14256 - * Copyright (c) 1998,1999,2001,2002 Free Software Foundation, Inc. *
14257 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
14259 * Permission is hereby granted, free of charge, to any person obtaining a *
14260 * copy of this software and associated documentation files (the *
14262 * sale, use or other dealings in this Software without prior written *
14264 ****************************************************************************
14265 - * @Id: ncurses.3x,v 1.63 2002/08/10 21:56:07 tom Exp @
14266 + * @Id: ncurses.3x,v 1.66 2003/05/11 00:32:53 tom Exp @
14270 @@ -354,6 +354,7 @@
14271 is_linetouched <STRONG><A HREF="curs_touch.3x.html">curs_touch(3x)</A></STRONG>
14272 is_wintouched <STRONG><A HREF="curs_touch.3x.html">curs_touch(3x)</A></STRONG>
14273 isendwin <STRONG><A HREF="curs_initscr.3x.html">curs_initscr(3x)</A></STRONG>
14274 + key_defined <STRONG><A HREF="key_defined.3x.html">key_defined(3x)</A></STRONG>*
14275 key_name <STRONG><A HREF="curs_util.3x.html">curs_util(3x)</A></STRONG>
14276 keybound <STRONG><A HREF="keybound.3x.html">keybound(3x)</A></STRONG>*
14277 keyname <STRONG><A HREF="curs_util.3x.html">curs_util(3x)</A></STRONG>
14278 @@ -369,8 +370,8 @@
14279 mouseinterval <STRONG><A HREF="curs_mouse.3x.html">curs_mouse(3x)</A></STRONG>*
14280 mousemask <STRONG><A HREF="curs_mouse.3x.html">curs_mouse(3x)</A></STRONG>*
14281 move <STRONG><A HREF="curs_move.3x.html">curs_move(3x)</A></STRONG>
14282 - mvadd_wch <STRONG><A HREF="curs_add_wch.3x.html">curs_add_wch(3x)</A></STRONG>
14284 + mvadd_wch <STRONG><A HREF="curs_add_wch.3x.html">curs_add_wch(3x)</A></STRONG>
14285 mvadd_wchnstr <STRONG><A HREF="curs_add_wchstr.3x.html">curs_add_wchstr(3x)</A></STRONG>
14286 mvadd_wchstr <STRONG><A HREF="curs_add_wchstr.3x.html">curs_add_wchstr(3x)</A></STRONG>
14287 mvaddch <STRONG><A HREF="curs_addch.3x.html">curs_addch(3x)</A></STRONG>
14288 @@ -423,8 +424,8 @@
14289 mvwaddstr <STRONG><A HREF="curs_addstr.3x.html">curs_addstr(3x)</A></STRONG>
14290 mvwaddwstr <STRONG><A HREF="curs_addwstr.3x.html">curs_addwstr(3x)</A></STRONG>
14291 mvwchgat <STRONG><A HREF="curs_attr.3x.html">curs_attr(3x)</A></STRONG>
14292 - mvwdelch <STRONG><A HREF="curs_delch.3x.html">curs_delch(3x)</A></STRONG>
14294 + mvwdelch <STRONG><A HREF="curs_delch.3x.html">curs_delch(3x)</A></STRONG>
14295 mvwget_wch <STRONG><A HREF="curs_get_wch.3x.html">curs_get_wch(3x)</A></STRONG>
14296 mvwget_wstr <STRONG><A HREF="curs_get_wstr.3x.html">curs_get_wstr(3x)</A></STRONG>
14297 mvwgetch <STRONG><A HREF="curs_getch.3x.html">curs_getch(3x)</A></STRONG>
14298 @@ -477,8 +478,8 @@
14299 putwin <STRONG><A HREF="curs_util.3x.html">curs_util(3x)</A></STRONG>
14300 qiflush <STRONG><A HREF="curs_inopts.3x.html">curs_inopts(3x)</A></STRONG>
14301 raw <STRONG><A HREF="curs_inopts.3x.html">curs_inopts(3x)</A></STRONG>
14302 - redrawwin <STRONG><A HREF="curs_refresh.3x.html">curs_refresh(3x)</A></STRONG>
14304 + redrawwin <STRONG><A HREF="curs_refresh.3x.html">curs_refresh(3x)</A></STRONG>
14305 refresh <STRONG><A HREF="curs_refresh.3x.html">curs_refresh(3x)</A></STRONG>
14306 reset_prog_mode <STRONG><A HREF="curs_kernel.3x.html">curs_kernel(3x)</A></STRONG>
14307 reset_shell_mode <STRONG><A HREF="curs_kernel.3x.html">curs_kernel(3x)</A></STRONG>
14308 @@ -531,8 +532,8 @@
14309 tgetflag <STRONG><A HREF="curs_termcap.3x.html">curs_termcap(3x)</A></STRONG>
14310 tgetnum <STRONG><A HREF="curs_termcap.3x.html">curs_termcap(3x)</A></STRONG>
14311 tgetstr <STRONG><A HREF="curs_termcap.3x.html">curs_termcap(3x)</A></STRONG>
14312 - tgoto <STRONG><A HREF="curs_termcap.3x.html">curs_termcap(3x)</A></STRONG>
14314 + tgoto <STRONG><A HREF="curs_termcap.3x.html">curs_termcap(3x)</A></STRONG>
14315 tigetflag <STRONG><A HREF="curs_terminfo.3x.html">curs_terminfo(3x)</A></STRONG>
14316 tigetnum <STRONG><A HREF="curs_terminfo.3x.html">curs_terminfo(3x)</A></STRONG>
14317 tigetstr <STRONG><A HREF="curs_terminfo.3x.html">curs_terminfo(3x)</A></STRONG>
14318 @@ -585,8 +586,8 @@
14319 wbkgrndset <STRONG><A HREF="curs_bkgrnd.3x.html">curs_bkgrnd(3x)</A></STRONG>
14320 wborder <STRONG><A HREF="curs_border.3x.html">curs_border(3x)</A></STRONG>
14321 wborder_set <STRONG><A HREF="curs_border_set.3x.html">curs_border_set(3x)</A></STRONG>
14322 - wchgat <STRONG><A HREF="curs_attr.3x.html">curs_attr(3x)</A></STRONG>
14324 + wchgat <STRONG><A HREF="curs_attr.3x.html">curs_attr(3x)</A></STRONG>
14325 wclear <STRONG><A HREF="curs_clear.3x.html">curs_clear(3x)</A></STRONG>
14326 wclrtobot <STRONG><A HREF="curs_clear.3x.html">curs_clear(3x)</A></STRONG>
14327 wclrtoeol <STRONG><A HREF="curs_clear.3x.html">curs_clear(3x)</A></STRONG>
14328 @@ -639,8 +640,8 @@
14329 wstandout <STRONG><A HREF="curs_attr.3x.html">curs_attr(3x)</A></STRONG>
14330 wsyncdown <STRONG><A HREF="curs_window.3x.html">curs_window(3x)</A></STRONG>
14331 wsyncup <STRONG><A HREF="curs_window.3x.html">curs_window(3x)</A></STRONG>
14332 - wtimeout <STRONG><A HREF="curs_inopts.3x.html">curs_inopts(3x)</A></STRONG>
14334 + wtimeout <STRONG><A HREF="curs_inopts.3x.html">curs_inopts(3x)</A></STRONG>
14335 wtouchln <STRONG><A HREF="curs_touch.3x.html">curs_touch(3x)</A></STRONG>
14336 wunctrl <STRONG><A HREF="curs_util.3x.html">curs_util(3x)</A></STRONG>
14337 wvline <STRONG><A HREF="curs_border.3x.html">curs_border(3x)</A></STRONG>
14338 @@ -655,9 +656,9 @@
14341 All macros return the value of the <STRONG>w</STRONG> version, except
14342 - <STRONG>setscrreg</STRONG>, <STRONG>wsetscrreg</STRONG>, <STRONG>getyx</STRONG>, <STRONG>getbegyx</STRONG>, <STRONG>getmaxyx</STRONG>. The
14343 + <STRONG>setscrreg</STRONG>, <STRONG>wsetscrreg</STRONG>, <STRONG>getyx</STRONG>, <STRONG>getbegyx</STRONG>, and <STRONG>getmaxyx</STRONG>. The
14344 return values of <STRONG>setscrreg</STRONG>, <STRONG>wsetscrreg</STRONG>, <STRONG>getyx</STRONG>, <STRONG>getbegyx</STRONG>,
14345 - and <STRONG>getmaxyx</STRONG> are undefined (<EM>i</EM>.<EM>e</EM>., these should not be used
14346 + and <STRONG>getmaxyx</STRONG> are undefined (i.e., these should not be used
14347 as the right-hand side of assignment statements).
14349 Routines that return pointers return <STRONG>NULL</STRONG> on error.
14350 @@ -674,7 +675,7 @@
14351 The debugging library checks this environment symbol
14352 when the application has redirected output to a file.
14353 The symbol's numeric value is used for the baudrate.
14354 - If no value is found <STRONG>ncurses</STRONG> uses 9600. This allows
14355 + If no value is found, <STRONG>ncurses</STRONG> uses 9600. This allows
14356 testers to construct repeatable test-cases that take
14357 into account costs that depend on baudrate.
14359 @@ -698,7 +699,6 @@
14360 host which does not honor NAWS (Negotiations About
14361 Window Size), or because you are temporarily running
14364 Either COLUMNS or LINES symbols may be specified
14365 independently. This is mainly useful to circumvent
14366 legacy misfeatures of terminal descriptions, e.g.,
14367 @@ -838,7 +838,7 @@
14368 The complete list of directories in order follows:
14370 - the last directory to which <STRONG>ncurses</STRONG> wrote, if any,
14371 - is searched first.
14372 + is searched first
14374 - the directory specified by the TERMINFO symbol
14376 @@ -910,8 +910,8 @@
14377 The <STRONG>ncurses</STRONG> library extends the fixed set of function key
14378 capabilities of terminals by allowing the application
14379 designer to define additional key sequences at runtime.
14380 - See the <STRONG><A HREF="define_key.3x.html">define_key(3x)</A></STRONG> and <STRONG><A HREF="keyok.3x.html">keyok(3x)</A></STRONG> manual pages for
14382 + See the <STRONG><A HREF="define_key.3x.html">define_key(3x)</A></STRONG> <STRONG><A HREF="key_defined.3x.html">key_defined(3x)</A></STRONG>, and <STRONG><A HREF="keyok.3x.html">keyok(3x)</A></STRONG>
14383 + manual pages for details.
14385 The <STRONG>ncurses</STRONG> library can exploit the capabilities of
14386 terminals which implement the ISO-6429 SGR 39 and SGR 49
14387 diff -urNd -urNd ncurses-5.3/doc/html/man/panel.3x.html ncurses-5.3.20030906.orig/doc/html/man/panel.3x.html
14388 --- ncurses-5.3/doc/html/man/panel.3x.html Sat Jun 22 16:25:43 2002
14389 +++ ncurses-5.3.20030906.orig/doc/html/man/panel.3x.html Sun Jul 20 14:02:08 2003
14391 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
14393 ****************************************************************************
14394 - * Copyright (c) 1998 Free Software Foundation, Inc. *
14395 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
14397 * Permission is hereby granted, free of charge, to any person obtaining a *
14398 * copy of this software and associated documentation files (the *
14400 * sale, use or other dealings in this Software without prior written *
14402 ****************************************************************************
14403 - * @Id: panel.3x,v 1.10 2000/08/13 01:56:47 tom Exp @
14404 + * @Id: panel.3x,v 1.11 2003/05/17 22:44:09 jmc Exp @
14411 A window is associated with every panel. The panel rou-
14412 - tines enable you to create, move, hides, and show panels,
14413 + tines enable you to create, move, hide, and show panels,
14414 as well as position a panel at any desired location in the
14417 diff -urNd -urNd ncurses-5.3/doc/html/man/term.5.html ncurses-5.3.20030906.orig/doc/html/man/term.5.html
14418 --- ncurses-5.3/doc/html/man/term.5.html Sat Aug 31 16:59:49 2002
14419 +++ ncurses-5.3.20030906.orig/doc/html/man/term.5.html Sun Jul 20 14:02:08 2003
14421 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
14423 ****************************************************************************
14424 - * Copyright (c) 1998,2002 Free Software Foundation, Inc. *
14425 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
14427 * Permission is hereby granted, free of charge, to any person obtaining a *
14428 * copy of this software and associated documentation files (the *
14430 * sale, use or other dealings in this Software without prior written *
14432 ****************************************************************************
14433 - * @Id: term.5,v 1.14 2002/08/10 21:59:37 tom Exp @
14434 + * @Id: term.5,v 1.15 2003/05/10 20:33:49 jmc Exp @
14438 diff -urNd -urNd ncurses-5.3/doc/html/man/term.7.html ncurses-5.3.20030906.orig/doc/html/man/term.7.html
14439 --- ncurses-5.3/doc/html/man/term.7.html Sat Jun 22 16:25:44 2002
14440 +++ ncurses-5.3.20030906.orig/doc/html/man/term.7.html Sun Jul 20 14:02:08 2003
14442 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
14444 ****************************************************************************
14445 - * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
14446 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
14448 * Permission is hereby granted, free of charge, to any person obtaining a *
14449 * copy of this software and associated documentation files (the *
14451 * sale, use or other dealings in this Software without prior written *
14453 ****************************************************************************
14454 - * @Id: term.7,v 1.13 2002/04/20 16:50:47 tom Exp @
14455 + * @Id: term.7,v 1.14 2003/05/10 20:33:49 jmc Exp @
14459 @@ -126,10 +126,10 @@
14460 ters or digits. You need to avoid using punctuation char-
14461 acters in root names, because they are used and inter-
14462 preted as filenames and shell meta-characters (such as !,
14463 - $, *, ? etc.) embedded in them may cause odd and unhelpful
14464 - behavior. The slash (/), or any other character that may
14465 - be interpreted by anyone's file system (\, $, [, ]), is
14466 - especially dangerous (terminfo is platform-independent,
14467 + $, *, ?, etc.) embedded in them may cause odd and unhelp-
14468 + ful behavior. The slash (/), or any other character that
14469 + may be interpreted by anyone's file system (\, $, [, ]),
14470 + is especially dangerous (terminfo is platform-independent,
14471 and choosing names with special characters could someday
14472 make life difficult for users of a future port). The dot
14473 (.) character is relatively safe as long as there is at
14474 @@ -169,23 +169,23 @@
14475 another that has this suffix and uses magic cookies
14476 to support multiple attributes.
14478 - -am Enable auto-margin (right-margin wraparound)
14479 + -am Enable auto-margin (right-margin wraparound).
14481 - -m Mono mode - suppress color support
14482 + -m Mono mode - suppress color support.
14484 -na No arrow keys - termcap ignores arrow keys which are
14485 actually there on the terminal, so the user can use
14486 the arrow keys locally.
14488 - -nam No auto-margin - suppress am capability
14489 + -nam No auto-margin - suppress am capability.
14491 - -nl No labels - suppress soft labels
14492 + -nl No labels - suppress soft labels.
14494 - -nsl No status line - suppress status line
14495 + -nsl No status line - suppress status line.
14497 -pp Has a printer port which is used.
14499 - -rv Terminal in reverse video mode (black on white)
14500 + -rv Terminal in reverse video mode (black on white).
14502 -s Enable status line.
14504 @@ -223,10 +223,10 @@
14505 compiled terminal capability data base
14508 - tty line initialization (AT&T-like UNIXes).
14509 + tty line initialization (AT&T-like UNIXes)
14512 - tty line initialization (BSD-like UNIXes).
14513 + tty line initialization (BSD-like UNIXes)
14517 diff -urNd -urNd ncurses-5.3/doc/html/man/terminfo.5.html ncurses-5.3.20030906.orig/doc/html/man/terminfo.5.html
14518 --- ncurses-5.3/doc/html/man/terminfo.5.html Sat Aug 31 16:59:51 2002
14519 +++ ncurses-5.3.20030906.orig/doc/html/man/terminfo.5.html Tue May 13 20:08:22 2003
14521 ****************************************************************************
14522 * @Id: terminfo.head,v 1.10 2002/08/17 23:37:10 tom Exp @
14523 * Head of terminfo man page ends here
14524 - * @Id: terminfo.tail,v 1.35 2002/04/20 16:49:33 tom Exp @
14525 + * @Id: terminfo.tail,v 1.38 2003/01/05 22:47:05 tom Exp @
14526 * Beginning of terminfo.tail file
14529 @@ -1221,38 +1221,75 @@
14530 The parameter mechanism uses a stack and special <STRONG>%</STRONG> codes
14531 to manipulate it. Typically a sequence will push one of
14532 the parameters onto the stack and then print it in some
14533 - format. Often more complex operations are necessary.
14534 + format. Print (e.g., "%d") is a special case. Other
14535 + operations, including "%t" pop their operand from the
14536 + stack. It is noted that more complex operations are often
14537 + necessary, e.g., in the <STRONG>sgr</STRONG> string.
14539 The <STRONG>%</STRONG> encodings have the following meanings:
14542 - %<EM>[[</EM>:<EM>]flags][width[.precision]][</EM>doxXs<EM>]</EM>
14543 - as in <STRONG>printf</STRONG>, flags are [-+#] and space
14544 - %c print pop() like %c in printf()
14545 - %s print pop() like %s in printf()
14547 - %p[1-9] push <EM>i</EM>'th parm
14548 - %P[a-z] set dynamic variable [a-z] to pop()
14549 - %g[a-z] get dynamic variable [a-z] and push it
14550 - %P[A-Z] set static variable [a-z] to pop()
14551 - %g[A-Z] get static variable [a-z] and push it
14552 - %'<EM>c</EM>' char constant <EM>c</EM>
14553 - %{<EM>nn</EM>} integer constant <EM>nn</EM>
14554 - %l push strlen(pop)
14558 - arithmetic (%m is mod): push(pop() op pop())
14559 - %& %| %^ bit operations: push(pop() op pop())
14560 - %= %> %< logical operations: push(pop() op pop())
14561 - %A, %O logical and & or operations (for conditionals)
14562 - %! %~ unary operations push(op pop())
14563 - %i add 1 to first two parameters (for ANSI terminals)
14564 + %<EM>[[</EM>:<EM>]flags][width[.precision]][</EM>doxXs<EM>]</EM>
14565 + as in <STRONG>printf</STRONG>, flags are [-+#] and space
14567 - %? expr %t thenpart %e elsepart %;
14568 - if-then-else, %e elsepart is optional.
14569 - else-if's are possible a la Algol 68:
14570 - %? c1 %t b1 %e c2 %t b2 %e c3 %t b3 %e c4 %t b4 %e %;
14571 - ci are conditions, bi are bodies.
14572 + %c print pop() like %c in <STRONG>printf</STRONG>
14574 + %s print pop() like %s in <STRONG>printf</STRONG>
14577 + push <EM>i</EM>'th parameter
14580 + set dynamic variable [a-z] to pop()
14584 + get dynamic variable [a-z] and push it
14587 + set static variable [a-z] to pop()
14590 + get static variable [a-z] and push it
14592 + The terms "static" and "dynamic" are misleading.
14593 + Historically, these are simply two different sets of
14594 + variables, whose values are not reset between calls
14595 + to <STRONG>tparm</STRONG>. However, that fact is not documented in
14596 + other implementations. Relying on it will adversely
14597 + impact portability to other implementations.
14599 + %'<EM>c</EM>' char constant <EM>c</EM>
14602 + integer constant <EM>nn</EM>
14604 + %l push strlen(pop)
14607 + arithmetic (%m is mod): push(pop() op pop())
14610 + bit operations: push(pop() op pop())
14613 + logical operations: push(pop() op pop())
14616 + logical and & or operations (for conditionals)
14619 + unary operations push(op pop())
14621 + %i add 1 to first two parameters (for ANSI terminals)
14623 + %? <EM>expr</EM> %t <EM>thenpart</EM> %e <EM>elsepart</EM> %;
14624 + if-then-else, %e <EM>elsepart</EM> is optional. else-if's are
14625 + possible a la Algol 68:
14626 + %? c1 %t b1 %e c2 %t b2 %e c3 %t b3 %e c4 %t b4 %e %;
14627 + ci are conditions, bi are bodies.
14629 Binary operations are in postfix form with the operands in
14630 the usual order. That is, to get x-5 one would use
14631 @@ -1531,6 +1568,7 @@
14633 <STRONG>tparm</STRONG> <STRONG>parameter</STRONG> <STRONG>attribute</STRONG> <STRONG>escape</STRONG> <STRONG>sequence</STRONG>
14637 p1 standout \E[0;1;7m
14638 p2 underline \E[0;4m
14639 @@ -1568,7 +1606,6 @@
14640 ;5 if p4 %?%p4%|%t;5%;
14641 ;7 if p1 or p3 %?%p1%p3%|%t;7%;
14642 ;8 if p7 %?%p7%|%t;8%;
14645 ^N or ^O if p9 ^N, else ^O %?%p9%t^N%e^O%;
14647 @@ -1622,170 +1659,168 @@
14648 <STRONG>rmkx</STRONG>. Otherwise the keypad is assumed to always transmit.
14649 The codes sent by the left arrow, right arrow, up arrow,
14650 down arrow, and home keys can be given as <STRONG>kcub1,</STRONG> <STRONG>kcuf1,</STRONG>
14651 - <STRONG>kcuu1,</STRONG> <STRONG>kcud1,</STRONG> and <STRONG>khome</STRONG> respectively. If there are
14652 - function keys such as f0, f1, ..., f10, the codes they
14653 - send can be given as <STRONG>kf0,</STRONG> <STRONG>kf1,</STRONG> <STRONG>...,</STRONG> <STRONG>kf10</STRONG>. If these keys
14654 - have labels other than the default f0 through f10, the
14655 - labels can be given as <STRONG>lf0,</STRONG> <STRONG>lf1,</STRONG> <STRONG>...,</STRONG> <STRONG>lf10</STRONG>. The codes
14656 - transmitted by certain other special keys can be given:
14657 - <STRONG>kll</STRONG> (home down), <STRONG>kbs</STRONG> (backspace), <STRONG>ktbc</STRONG> (clear all tabs),
14658 - <STRONG>kctab</STRONG> (clear the tab stop in this column), <STRONG>kclr</STRONG> (clear
14659 - screen or erase key), <STRONG>kdch1</STRONG> (delete character), <STRONG>kdl1</STRONG>
14660 - (delete line), <STRONG>krmir</STRONG> (exit insert mode), <STRONG>kel</STRONG> (clear to end
14661 - of line), <STRONG>ked</STRONG> (clear to end of screen), <STRONG>kich1</STRONG> (insert
14662 - character or enter insert mode), <STRONG>kil1</STRONG> (insert line), <STRONG>knp</STRONG>
14663 - (next page), <STRONG>kpp</STRONG> (previous page), <STRONG>kind</STRONG> (scroll for-
14664 - ward/down), <STRONG>kri</STRONG> (scroll backward/up), <STRONG>khts</STRONG> (set a tab stop
14665 - in this column). In addition, if the keypad has a 3 by 3
14666 - array of keys including the four arrow keys, the other
14667 - five keys can be given as <STRONG>ka1</STRONG>, <STRONG>ka3</STRONG>, <STRONG>kb2</STRONG>, <STRONG>kc1</STRONG>, and <STRONG>kc3</STRONG>.
14668 - These keys are useful when the effects of a 3 by 3 direc-
14669 - tional pad are needed.
14671 - Strings to program function keys can be given as <STRONG>pfkey</STRONG>,
14672 - <STRONG>pfloc</STRONG>, and <STRONG>pfx</STRONG>. A string to program screen labels should
14673 - be specified as <STRONG>pln</STRONG>. Each of these strings takes two
14674 - parameters: the function key number to program (from 0 to
14675 - 10) and the string to program it with. Function key num-
14676 - bers out of this range may program undefined keys in a
14677 - terminal dependent manner. The difference between the
14678 - capabilities is that <STRONG>pfkey</STRONG> causes pressing the given key
14679 - to be the same as the user typing the given string; <STRONG>pfloc</STRONG>
14680 + <STRONG>kcuu1,</STRONG> <STRONG>kcud1,</STRONG> and <STRONG>khome</STRONG> respectively. If there are func-
14681 + tion keys such as f0, f1, ..., f10, the codes they send
14682 + can be given as <STRONG>kf0,</STRONG> <STRONG>kf1,</STRONG> <STRONG>...,</STRONG> <STRONG>kf10</STRONG>. If these keys have
14683 + labels other than the default f0 through f10, the labels
14684 + can be given as <STRONG>lf0,</STRONG> <STRONG>lf1,</STRONG> <STRONG>...,</STRONG> <STRONG>lf10</STRONG>. The codes transmit-
14685 + ted by certain other special keys can be given: <STRONG>kll</STRONG> (home
14686 + down), <STRONG>kbs</STRONG> (backspace), <STRONG>ktbc</STRONG> (clear all tabs), <STRONG>kctab</STRONG>
14687 + (clear the tab stop in this column), <STRONG>kclr</STRONG> (clear screen or
14688 + erase key), <STRONG>kdch1</STRONG> (delete character), <STRONG>kdl1</STRONG> (delete line),
14689 + <STRONG>krmir</STRONG> (exit insert mode), <STRONG>kel</STRONG> (clear to end of line), <STRONG>ked</STRONG>
14690 + (clear to end of screen), <STRONG>kich1</STRONG> (insert character or enter
14691 + insert mode), <STRONG>kil1</STRONG> (insert line), <STRONG>knp</STRONG> (next page), <STRONG>kpp</STRONG>
14692 + (previous page), <STRONG>kind</STRONG> (scroll forward/down), <STRONG>kri</STRONG> (scroll
14693 + backward/up), <STRONG>khts</STRONG> (set a tab stop in this column). In
14694 + addition, if the keypad has a 3 by 3 array of keys includ-
14695 + ing the four arrow keys, the other five keys can be given
14696 + as <STRONG>ka1</STRONG>, <STRONG>ka3</STRONG>, <STRONG>kb2</STRONG>, <STRONG>kc1</STRONG>, and <STRONG>kc3</STRONG>. These keys are useful
14697 + when the effects of a 3 by 3 directional pad are needed.
14698 + Strings to program function keys can be given as <STRONG>pfkey</STRONG>,
14699 + <STRONG>pfloc</STRONG>, and <STRONG>pfx</STRONG>. A string to program screen labels should
14700 + be specified as <STRONG>pln</STRONG>. Each of these strings takes two
14701 + parameters: the function key number to program (from 0 to
14702 + 10) and the string to program it with. Function key num-
14703 + bers out of this range may program undefined keys in a
14704 + terminal dependent manner. The difference between the
14705 + capabilities is that <STRONG>pfkey</STRONG> causes pressing the given key
14706 + to be the same as the user typing the given string; <STRONG>pfloc</STRONG>
14707 causes the string to be executed by the terminal in local;
14708 - and <STRONG>pfx</STRONG> causes the string to be transmitted to the com-
14709 + and <STRONG>pfx</STRONG> causes the string to be transmitted to the com-
14712 The capabilities <STRONG>nlab</STRONG>, <STRONG>lw</STRONG> and <STRONG>lh</STRONG> define the number of pro-
14713 - grammable screen labels and their width and height. If
14714 - there are commands to turn the labels on and off, give
14715 - them in <STRONG>smln</STRONG> and <STRONG>rmln</STRONG>. <STRONG>smln</STRONG> is normally output after one
14716 + grammable screen labels and their width and height. If
14717 + there are commands to turn the labels on and off, give
14718 + them in <STRONG>smln</STRONG> and <STRONG>rmln</STRONG>. <STRONG>smln</STRONG> is normally output after one
14719 or more pln sequences to make sure that the change becomes
14723 <STRONG>Tabs</STRONG> <STRONG>and</STRONG> <STRONG>Initialization</STRONG>
14724 - If the terminal has hardware tabs, the command to advance
14725 - to the next tab stop can be given as <STRONG>ht</STRONG> (usually control
14726 - I). A ``back-tab'' command which moves leftward to the
14727 + If the terminal has hardware tabs, the command to advance
14728 + to the next tab stop can be given as <STRONG>ht</STRONG> (usually control
14729 + I). A ``back-tab'' command which moves leftward to the
14730 preceding tab stop can be given as <STRONG>cbt</STRONG>. By convention, if
14731 - the teletype modes indicate that tabs are being expanded
14732 - by the computer rather than being sent to the terminal,
14733 - programs should not use <STRONG>ht</STRONG> or <STRONG>cbt</STRONG> even if they are pre-
14734 - sent, since the user may not have the tab stops properly
14735 - set. If the terminal has hardware tabs which are ini-
14736 + the teletype modes indicate that tabs are being expanded
14737 + by the computer rather than being sent to the terminal,
14738 + programs should not use <STRONG>ht</STRONG> or <STRONG>cbt</STRONG> even if they are pre-
14739 + sent, since the user may not have the tab stops properly
14740 + set. If the terminal has hardware tabs which are ini-
14741 tially set every <EM>n</EM> spaces when the terminal is powered up,
14742 - the numeric parameter <STRONG>it</STRONG> is given, showing the number of
14743 - spaces the tabs are set to. This is normally used by the
14744 - <EM>tset</EM> command to determine whether to set the mode for
14745 - hardware tab expansion, and whether to set the tab stops.
14746 - If the terminal has tab stops that can be saved in non-
14747 - volatile memory, the terminfo description can assume that
14748 + the numeric parameter <STRONG>it</STRONG> is given, showing the number of
14749 + spaces the tabs are set to. This is normally used by the
14750 + <EM>tset</EM> command to determine whether to set the mode for
14751 + hardware tab expansion, and whether to set the tab stops.
14752 + If the terminal has tab stops that can be saved in non-
14753 + volatile memory, the terminfo description can assume that
14754 they are properly set.
14756 - Other capabilities include <STRONG>is1</STRONG>, <STRONG>is2</STRONG>, and <STRONG>is3</STRONG>, initializa-
14757 - tion strings for the terminal, <STRONG>iprog</STRONG>, the path name of a
14758 - program to be run to initialize the terminal, and <STRONG>if</STRONG>, the
14759 - name of a file containing long initialization strings.
14760 - These strings are expected to set the terminal into modes
14761 - consistent with the rest of the terminfo description.
14762 + Other capabilities include <STRONG>is1</STRONG>, <STRONG>is2</STRONG>, and <STRONG>is3</STRONG>, initializa-
14763 + tion strings for the terminal, <STRONG>iprog</STRONG>, the path name of a
14764 + program to be run to initialize the terminal, and <STRONG>if</STRONG>, the
14765 + name of a file containing long initialization strings.
14766 + These strings are expected to set the terminal into modes
14767 + consistent with the rest of the terminfo description.
14768 They are normally sent to the terminal, by the <EM>init</EM> option
14769 - of the <EM>tput</EM> program, each time the user logs in. They
14770 - will be printed in the following order: run the program
14771 - <STRONG>iprog</STRONG>; output <STRONG>is1</STRONG>; <STRONG>is2</STRONG>; set the margins using <STRONG>mgc</STRONG>, <STRONG>smgl</STRONG>
14772 - and <STRONG>smgr</STRONG>; set tabs using <STRONG>tbc</STRONG> and <STRONG>hts</STRONG>; print the file <STRONG>if</STRONG>;
14773 + of the <EM>tput</EM> program, each time the user logs in. They
14774 + will be printed in the following order: run the program
14775 + <STRONG>iprog</STRONG>; output <STRONG>is1</STRONG>; <STRONG>is2</STRONG>; set the margins using <STRONG>mgc</STRONG>, <STRONG>smgl</STRONG>
14776 + and <STRONG>smgr</STRONG>; set tabs using <STRONG>tbc</STRONG> and <STRONG>hts</STRONG>; print the file <STRONG>if</STRONG>;
14777 and finally output <STRONG>is3</STRONG>.
14779 - Most initialization is done with <STRONG>is2</STRONG>. Special terminal
14780 + Most initialization is done with <STRONG>is2</STRONG>. Special terminal
14781 modes can be set up without duplicating strings by putting
14782 - the common sequences in <STRONG>is2</STRONG> and special cases in <STRONG>is1</STRONG> and
14783 - <STRONG>is3</STRONG>. A pair of sequences that does a harder reset from a
14784 - totally unknown state can be analogously given as <STRONG>rs1</STRONG>,
14785 - <STRONG>rs2</STRONG>, <STRONG>rf</STRONG>, and <STRONG>rs3</STRONG>, analogous to <STRONG>is2</STRONG> and <STRONG>if</STRONG>. These strings
14786 - are output by the <EM>reset</EM> program, which is used when the
14787 - terminal gets into a wedged state. Commands are normally
14788 - placed in <STRONG>rs1</STRONG>, <STRONG>rs2</STRONG> <STRONG>rs3</STRONG> and <STRONG>rf</STRONG> only if they produce annoy-
14789 - ing effects on the screen and are not necessary when log-
14790 - ging in. For example, the command to set the vt100 into
14791 - 80-column mode would normally be part of <STRONG>is2</STRONG>, but it
14792 - causes an annoying glitch of the screen and is not nor-
14793 - mally needed since the terminal is usually already in 80
14794 + the common sequences in <STRONG>is2</STRONG> and special cases in <STRONG>is1</STRONG> and
14795 + <STRONG>is3</STRONG>. A pair of sequences that does a harder reset from a
14796 + totally unknown state can be analogously given as <STRONG>rs1</STRONG>,
14797 + <STRONG>rs2</STRONG>, <STRONG>rf</STRONG>, and <STRONG>rs3</STRONG>, analogous to <STRONG>is2</STRONG> and <STRONG>if</STRONG>. These strings
14798 + are output by the <EM>reset</EM> program, which is used when the
14799 + terminal gets into a wedged state. Commands are normally
14800 + placed in <STRONG>rs1</STRONG>, <STRONG>rs2</STRONG> <STRONG>rs3</STRONG> and <STRONG>rf</STRONG> only if they produce annoy-
14801 + ing effects on the screen and are not necessary when log-
14802 + ging in. For example, the command to set the vt100 into
14803 + 80-column mode would normally be part of <STRONG>is2</STRONG>, but it
14804 + causes an annoying glitch of the screen and is not nor-
14805 + mally needed since the terminal is usually already in 80
14808 If there are commands to set and clear tab stops, they can
14809 - be given as <STRONG>tbc</STRONG> (clear all tab stops) and <STRONG>hts</STRONG> (set a tab
14810 - stop in the current column of every row). If a more com-
14811 - plex sequence is needed to set the tabs than can be
14812 - described by this, the sequence can be placed in <STRONG>is2</STRONG> or
14813 + be given as <STRONG>tbc</STRONG> (clear all tab stops) and <STRONG>hts</STRONG> (set a tab
14814 + stop in the current column of every row). If a more com-
14815 + plex sequence is needed to set the tabs than can be
14816 + described by this, the sequence can be placed in <STRONG>is2</STRONG> or
14817 <STRONG>if</STRONG>.
14819 <STRONG>Delays</STRONG> <STRONG>and</STRONG> <STRONG>Padding</STRONG>
14820 - Many older and slower terminals don't support either
14821 + Many older and slower terminals don't support either
14822 XON/XOFF or DTR handshaking, including hard copy terminals
14823 - and some very archaic CRTs (including, for example, DEC
14824 - VT100s). These may require padding characters after cer-
14825 + and some very archaic CRTs (including, for example, DEC
14826 + VT100s). These may require padding characters after cer-
14827 tain cursor motions and screen changes.
14829 If the terminal uses xon/xoff handshaking for flow control
14830 - (that is, it automatically emits ^S back to the host when
14831 + (that is, it automatically emits ^S back to the host when
14832 its input buffers are close to full), set <STRONG>xon</STRONG>. This capa-
14833 - bility suppresses the emission of padding. You can also
14834 - set it for memory-mapped console devices effectively that
14835 - don't have a speed limit. Padding information should
14836 - still be included so that routines can make better deci-
14837 + bility suppresses the emission of padding. You can also
14838 + set it for memory-mapped console devices effectively that
14839 + don't have a speed limit. Padding information should
14840 + still be included so that routines can make better deci-
14841 sions about relative costs, but actual pad characters will
14842 not be transmitted.
14844 - If <STRONG>pb</STRONG> (padding baud rate) is given, padding is suppressed
14845 - at baud rates below the value of <STRONG>pb</STRONG>. If the entry has no
14846 - padding baud rate, then whether padding is emitted or not
14847 + If <STRONG>pb</STRONG> (padding baud rate) is given, padding is suppressed
14848 + at baud rates below the value of <STRONG>pb</STRONG>. If the entry has no
14849 + padding baud rate, then whether padding is emitted or not
14850 is completely controlled by <STRONG>xon</STRONG>.
14852 - If the terminal requires other than a null (zero) charac-
14853 - ter as a pad, then this can be given as <STRONG>pad</STRONG>. Only the
14854 + If the terminal requires other than a null (zero) charac-
14855 + ter as a pad, then this can be given as <STRONG>pad</STRONG>. Only the
14856 first character of the <STRONG>pad</STRONG> string is used.
14859 <STRONG>Status</STRONG> <STRONG>Lines</STRONG>
14860 - Some terminals have an extra `status line' which is not
14861 - normally used by software (and thus not counted in the
14862 + Some terminals have an extra `status line' which is not
14863 + normally used by software (and thus not counted in the
14864 terminal's <STRONG>lines</STRONG> capability).
14866 - The simplest case is a status line which is cursor-
14867 - addressable but not part of the main scrolling region on
14868 - the screen; the Heathkit H19 has a status line of this
14869 - kind, as would a 24-line VT100 with a 23-line scrolling
14870 - region set up on initialization. This situation is indi-
14871 + The simplest case is a status line which is cursor-
14872 + addressable but not part of the main scrolling region on
14873 + the screen; the Heathkit H19 has a status line of this
14874 + kind, as would a 24-line VT100 with a 23-line scrolling
14875 + region set up on initialization. This situation is indi-
14876 cated by the <STRONG>hs</STRONG> capability.
14878 Some terminals with status lines need special sequences to
14879 - access the status line. These may be expressed as a
14880 + access the status line. These may be expressed as a
14881 string with single parameter <STRONG>tsl</STRONG> which takes the cursor to
14882 - a given zero-origin column on the status line. The capa-
14883 + a given zero-origin column on the status line. The capa-
14884 bility <STRONG>fsl</STRONG> must return to the main-screen cursor positions
14885 - before the last <STRONG>tsl</STRONG>. You may need to embed the string
14886 - values of <STRONG>sc</STRONG> (save cursor) and <STRONG>rc</STRONG> (restore cursor) in <STRONG>tsl</STRONG>
14887 + before the last <STRONG>tsl</STRONG>. You may need to embed the string
14888 + values of <STRONG>sc</STRONG> (save cursor) and <STRONG>rc</STRONG> (restore cursor) in <STRONG>tsl</STRONG>
14889 and <STRONG>fsl</STRONG> to accomplish this.
14891 - The status line is normally assumed to be the same width
14892 - as the width of the terminal. If this is untrue, you can
14893 + The status line is normally assumed to be the same width
14894 + as the width of the terminal. If this is untrue, you can
14895 specify it with the numeric capability <STRONG>wsl</STRONG>.
14897 - A command to erase or blank the status line may be speci-
14898 + A command to erase or blank the status line may be speci-
14899 fied as <STRONG>dsl</STRONG>.
14901 - The boolean capability <STRONG>eslok</STRONG> specifies that escape
14902 + The boolean capability <STRONG>eslok</STRONG> specifies that escape
14903 sequences, tabs, etc., work ordinarily in the status line.
14905 - The <STRONG>ncurses</STRONG> implementation does not yet use any of these
14906 - capabilities. They are documented here in case they ever
14907 + The <STRONG>ncurses</STRONG> implementation does not yet use any of these
14908 + capabilities. They are documented here in case they ever
14912 <STRONG>Line</STRONG> <STRONG>Graphics</STRONG>
14913 - Many terminals have alternate character sets useful for
14914 - forms-drawing. Terminfo and <STRONG>curses</STRONG> build in support for
14915 - the drawing characters supported by the VT100, with some
14916 - characters from the AT&T 4410v1 added. This alternate
14917 + Many terminals have alternate character sets useful for
14918 + forms-drawing. Terminfo and <STRONG>curses</STRONG> build in support for
14919 + the drawing characters supported by the VT100, with some
14920 + characters from the AT&T 4410v1 added. This alternate
14921 character set may be specified by the <STRONG>acsc</STRONG> capability.
14923 <STRONG>Glyph</STRONG> <STRONG>ACS</STRONG> <STRONG>Ascii</STRONG> <STRONG>VT100</STRONG>
14924 @@ -1803,6 +1838,7 @@
14925 greater-than-or-equal-to ACS_GEQUAL > z
14926 greek pi ACS_PI * {
14927 horizontal line ACS_HLINE - q
14929 lantern symbol ACS_LANTERN # i
14930 large plus or crossover ACS_PLUS + n
14931 less-than-or-equal-to ACS_LEQUAL < y
14932 @@ -1823,59 +1859,59 @@
14933 upper right corner ACS_URCORNER + k
14934 vertical line ACS_VLINE | x
14936 - The best way to define a new device's graphics set is to
14937 - add a column to a copy of this table for your terminal,
14938 - giving the character which (when emitted between
14939 - <STRONG>smacs</STRONG>/<STRONG>rmacs</STRONG> switches) will be rendered as the correspond-
14940 - ing graphic. Then read off the VT100/your terminal char-
14941 - acter pairs right to left in sequence; these become the
14942 + The best way to define a new device's graphics set is to
14943 + add a column to a copy of this table for your terminal,
14944 + giving the character which (when emitted between
14945 + <STRONG>smacs</STRONG>/<STRONG>rmacs</STRONG> switches) will be rendered as the correspond-
14946 + ing graphic. Then read off the VT100/your terminal char-
14947 + acter pairs right to left in sequence; these become the
14951 <STRONG>Color</STRONG> <STRONG>Handling</STRONG>
14952 - Most color terminals are either `Tektronix-like' or `HP-
14953 - like'. Tektronix-like terminals have a predefined set of
14954 - N colors (where N usually 8), and can set character-cell
14955 + Most color terminals are either `Tektronix-like' or `HP-
14956 + like'. Tektronix-like terminals have a predefined set of
14957 + N colors (where N usually 8), and can set character-cell
14958 foreground and background characters independently, mixing
14959 - them into N * N color-pairs. On HP-like terminals, the
14960 + them into N * N color-pairs. On HP-like terminals, the
14961 use must set each color pair up separately (foreground and
14962 - background are not independently settable). Up to M
14963 - color-pairs may be set up from 2*M different colors.
14964 + background are not independently settable). Up to M
14965 + color-pairs may be set up from 2*M different colors.
14966 ANSI-compatible terminals are Tektronix-like.
14968 Some basic color capabilities are independent of the color
14969 method. The numeric capabilities <STRONG>colors</STRONG> and <STRONG>pairs</STRONG> specify
14970 - the maximum numbers of colors and color-pairs that can be
14971 - displayed simultaneously. The <STRONG>op</STRONG> (original pair) string
14972 - resets foreground and background colors to their default
14973 - values for the terminal. The <STRONG>oc</STRONG> string resets all colors
14974 - or color-pairs to their default values for the terminal.
14975 - Some terminals (including many PC terminal emulators)
14976 - erase screen areas with the current background color
14977 - rather than the power-up default background; these should
14978 + the maximum numbers of colors and color-pairs that can be
14979 + displayed simultaneously. The <STRONG>op</STRONG> (original pair) string
14980 + resets foreground and background colors to their default
14981 + values for the terminal. The <STRONG>oc</STRONG> string resets all colors
14982 + or color-pairs to their default values for the terminal.
14983 + Some terminals (including many PC terminal emulators)
14984 + erase screen areas with the current background color
14985 + rather than the power-up default background; these should
14986 have the boolean capability <STRONG>bce</STRONG>.
14988 - To change the current foreground or background color on a
14989 - Tektronix-type terminal, use <STRONG>setaf</STRONG> (set ANSI foreground)
14990 - and <STRONG>setab</STRONG> (set ANSI background) or <STRONG>setf</STRONG> (set foreground)
14991 - and <STRONG>setb</STRONG> (set background). These take one parameter, the
14992 + To change the current foreground or background color on a
14993 + Tektronix-type terminal, use <STRONG>setaf</STRONG> (set ANSI foreground)
14994 + and <STRONG>setab</STRONG> (set ANSI background) or <STRONG>setf</STRONG> (set foreground)
14995 + and <STRONG>setb</STRONG> (set background). These take one parameter, the
14996 color number. The SVr4 documentation describes only
14997 - <STRONG>setaf</STRONG>/<STRONG>setab</STRONG>; the XPG4 draft says that "If the terminal
14998 + <STRONG>setaf</STRONG>/<STRONG>setab</STRONG>; the XPG4 draft says that "If the terminal
14999 supports ANSI escape sequences to set background and fore-
15000 - ground, they should be coded as <STRONG>setaf</STRONG> and <STRONG>setab</STRONG>, respec-
15001 - tively. If the terminal supports other escape sequences
15002 - to set background and foreground, they should be coded as
15003 - <STRONG>setf</STRONG> and <STRONG>setb</STRONG>, respectively. The <EM>vidputs()</EM> function and
15004 - the refresh functions use <STRONG>setaf</STRONG> and <STRONG>setab</STRONG> if they are
15005 + ground, they should be coded as <STRONG>setaf</STRONG> and <STRONG>setab</STRONG>, respec-
15006 + tively. If the terminal supports other escape sequences
15007 + to set background and foreground, they should be coded as
15008 + <STRONG>setf</STRONG> and <STRONG>setb</STRONG>, respectively. The <EM>vidputs()</EM> function and
15009 + the refresh functions use <STRONG>setaf</STRONG> and <STRONG>setab</STRONG> if they are
15012 - The <STRONG>setaf</STRONG>/<STRONG>setab</STRONG> and <STRONG>setf</STRONG>/<STRONG>setb</STRONG> capabilities take a single
15013 - numeric argument each. Argument values 0-7 are portably
15014 - defined as follows (the middle column is the symbolic
15015 - #define available in the header for the <STRONG>curses</STRONG> or <STRONG>ncurses</STRONG>
15016 - libraries). The terminal hardware is free to map these as
15017 - it likes, but the RGB values indicate normal locations in
15019 + The <STRONG>setaf</STRONG>/<STRONG>setab</STRONG> and <STRONG>setf</STRONG>/<STRONG>setb</STRONG> capabilities take a single
15020 + numeric argument each. Argument values 0-7 of <STRONG>setaf</STRONG>/<STRONG>setab</STRONG>
15021 + are portably defined as follows (the middle column is the
15022 + symbolic #define available in the header for the <STRONG>curses</STRONG> or
15023 + <STRONG>ncurses</STRONG> libraries). The terminal hardware is free to map
15024 + these as it likes, but the RGB values indicate normal
15025 + locations in color space.
15027 <STRONG>Color</STRONG> <STRONG>#define</STRONG> <STRONG>Value</STRONG> <STRONG>RGB</STRONG>
15028 black <STRONG>COLOR_BLACK</STRONG> 0 0, 0, 0
15029 @@ -1887,6 +1923,21 @@
15030 cyan <STRONG>COLOR_CYAN</STRONG> 6 0,max,max
15031 white <STRONG>COLOR_WHITE</STRONG> 7 max,max,max
15033 + The argument values of <STRONG>setf</STRONG>/<STRONG>setb</STRONG> historically correspond
15034 + to a different mapping, i.e.,
15035 + <STRONG>Color</STRONG> <STRONG>#define</STRONG> <STRONG>Value</STRONG> <STRONG>RGB</STRONG>
15036 + black <STRONG>COLOR_BLACK</STRONG> 0 0, 0, 0
15037 + blue <STRONG>COLOR_BLUE</STRONG> 1 0,0,max
15038 + green <STRONG>COLOR_GREEN</STRONG> 2 0,max,0
15039 + cyan <STRONG>COLOR_CYAN</STRONG> 3 0,max,max
15040 + red <STRONG>COLOR_RED</STRONG> 4 max,0,0
15041 + magenta <STRONG>COLOR_MAGENTA</STRONG> 5 max,0,max
15042 + yellow <STRONG>COLOR_YELLOW</STRONG> 6 max,max,0
15043 + white <STRONG>COLOR_WHITE</STRONG> 7 max,max,max
15044 + It is important to not confuse the two sets of color capa-
15045 + bilities; otherwise red/blue will be interchanged on the
15048 On an HP-like terminal, use <STRONG>scp</STRONG> with a color-pair number
15049 parameter to set which color pair is current.
15051 @@ -2005,7 +2056,6 @@
15052 text, including <STRONG>mc4</STRONG>, is transparently passed to the
15053 printer while an <STRONG>mc5p</STRONG> is in effect.
15056 <STRONG>Glitches</STRONG> <STRONG>and</STRONG> <STRONG>Braindamage</STRONG>
15057 Hazeltine terminals, which do not allow `~' characters to
15058 be displayed should indicate <STRONG>hz</STRONG>.
15059 @@ -2055,6 +2105,7 @@
15060 A capability can be canceled by placing <STRONG>xx@</STRONG> to the left of
15061 the use reference that imports it, where <EM>xx</EM> is the capa-
15062 bility. For example, the entry
15064 2621-nl, smkx@, rmkx@, use=2621,
15066 defines a 2621-nl that does not have the <STRONG>smkx</STRONG> or <STRONG>rmkx</STRONG>
15067 @@ -2222,12 +2273,12 @@
15073 <H2>SEE ALSO</H2><PRE>
15074 <STRONG><A HREF="tic.1m.html">tic(1m)</A></STRONG>, <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>, <STRONG><A HREF="printf.3S.html">printf(3S)</A></STRONG>, <STRONG><A HREF="term.5.html">term(5)</A></STRONG>.
15079 <H2>AUTHORS</H2><PRE>
15080 Zeyd M. Ben-Halim, Eric S. Raymond, Thomas E. Dickey.
15081 @@ -2235,6 +2286,9 @@
15091 diff -urNd -urNd ncurses-5.3/doc/html/man/tic.1m.html ncurses-5.3.20030906.orig/doc/html/man/tic.1m.html
15092 --- ncurses-5.3/doc/html/man/tic.1m.html Sat Oct 12 18:28:15 2002
15093 +++ ncurses-5.3.20030906.orig/doc/html/man/tic.1m.html Sun Jul 20 14:02:08 2003
15095 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
15097 ****************************************************************************
15098 - * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
15099 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
15101 * Permission is hereby granted, free of charge, to any person obtaining a *
15102 * copy of this software and associated documentation files (the *
15104 * sale, use or other dealings in this Software without prior written *
15106 ****************************************************************************
15107 - * @Id: tic.1m,v 1.33 2002/10/05 20:06:13 tom Exp @
15108 + * @Id: tic.1m,v 1.35 2003/05/11 00:32:53 tom Exp @
15113 entries as user-defined names.
15115 <STRONG>-C</STRONG> Force source translation to termcap format. Note:
15116 - this differs from the -C option of <STRONG><A HREF="infocmp.1m.html">infocmp(1m)</A></STRONG> in
15117 + this differs from the <STRONG>-C</STRONG> option of <STRONG><A HREF="infocmp.1m.html">infocmp(1m)</A></STRONG> in
15118 that it does not merely translate capability names,
15119 but also translates terminfo strings to termcap
15120 format. Capabilities that are not translatable are
15121 @@ -110,7 +110,7 @@
15122 it. The option value is interpreted as a file con-
15123 taining the list if it contains a '/'. (Note:
15124 depending on how tic was compiled, this option may
15125 - require -I or -C.)
15126 + require <STRONG>-I</STRONG> or <STRONG>-C</STRONG>.)
15128 <STRONG>-f</STRONG> Display complex terminfo strings which contain
15129 if/then/else/endif expressions indented for read-
15130 @@ -277,7 +277,7 @@
15132 The <STRONG>-C</STRONG>, <STRONG>-G</STRONG>, <STRONG>-I</STRONG>, <STRONG>-N</STRONG>, <STRONG>-R</STRONG>, <STRONG>-T</STRONG>, <STRONG>-V</STRONG>, <STRONG>-a</STRONG>, <STRONG>-e</STRONG>, <STRONG>-f</STRONG>, <STRONG>-g</STRONG>, <STRONG>-o</STRONG>, <STRONG>-r</STRONG>,
15133 <STRONG>-s</STRONG>, <STRONG>-t</STRONG> and <STRONG>-x</STRONG> options are not supported under SVr4. The
15134 - SVr4 -c mode does not report bad use links.
15135 + SVr4 <STRONG>-c</STRONG> mode does not report bad use links.
15137 System V does not compile entries to or read entries from
15138 your <EM>$HOME/.terminfo</EM> directory unless TERMINFO is explic-
15139 diff -urNd -urNd ncurses-5.3/doc/html/man/toe.1m.html ncurses-5.3.20030906.orig/doc/html/man/toe.1m.html
15140 --- ncurses-5.3/doc/html/man/toe.1m.html Sat Jun 22 16:25:46 2002
15141 +++ ncurses-5.3.20030906.orig/doc/html/man/toe.1m.html Sun Jul 20 14:02:08 2003
15143 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
15145 ****************************************************************************
15146 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
15147 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
15149 * Permission is hereby granted, free of charge, to any person obtaining a *
15150 * copy of this software and associated documentation files (the *
15152 * sale, use or other dealings in this Software without prior written *
15154 ****************************************************************************
15155 - * @Id: toe.1m,v 1.10 2000/08/19 18:51:05 tom Exp @
15156 + * @Id: toe.1m,v 1.12 2003/05/11 00:32:53 tom Exp @
15161 primary name with descriptions. File arguments specify
15162 the directories to be scanned; if no such arguments are
15163 given, your default terminfo directory is scanned. If you
15164 - also specify the -h option, a directory header will be
15165 + also specify the <STRONG>-h</STRONG> option, a directory header will be
15166 issued as each directory is entered.
15168 There are other options intended for use by terminfo file
15169 diff -urNd -urNd ncurses-5.3/doc/html/man/tput.1.html ncurses-5.3.20030906.orig/doc/html/man/tput.1.html
15170 --- ncurses-5.3/doc/html/man/tput.1.html Sat Oct 12 18:28:16 2002
15171 +++ ncurses-5.3.20030906.orig/doc/html/man/tput.1.html Sun Jul 20 14:02:08 2003
15175 ****************************************************************************
15176 - * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
15177 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
15179 * Permission is hereby granted, free of charge, to any person obtaining a *
15180 * copy of this software and associated documentation files (the *
15182 * sale, use or other dealings in this Software without prior written *
15184 ****************************************************************************
15185 - * @Id: tput.1,v 1.18 2002/10/12 13:53:20 tom Exp @
15186 + * @Id: tput.1,v 1.20 2003/05/11 00:32:53 tom Exp @
15190 diff -urNd -urNd ncurses-5.3/doc/html/man/tset.1.html ncurses-5.3.20030906.orig/doc/html/man/tset.1.html
15191 --- ncurses-5.3/doc/html/man/tset.1.html Sat Jun 22 16:25:47 2002
15192 +++ ncurses-5.3.20030906.orig/doc/html/man/tset.1.html Sun Jul 20 14:02:08 2003
15194 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
15196 ****************************************************************************
15197 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
15198 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
15200 * Permission is hereby granted, free of charge, to any person obtaining a *
15201 * copy of this software and associated documentation files (the *
15203 * sale, use or other dealings in this Software without prior written *
15205 ****************************************************************************
15206 - * @Id: tset.1,v 1.12 2000/09/09 20:33:07 tom Exp @
15207 + * @Id: tset.1,v 1.13 2003/05/11 00:32:53 tom Exp @
15212 4. The default terminal type, ``unknown''.
15214 If the terminal type was not specified on the command-
15215 - line, the -m option mappings are then applied (see below
15216 + line, the <STRONG>-m</STRONG> option mappings are then applied (see below
15217 for more information). Then, if the terminal type begins
15218 with a question mark (``?''), the user is prompted for
15219 confirmation of the terminal type. An empty response con-
15220 @@ -108,36 +108,36 @@
15222 The options are as follows:
15224 - -q The terminal type is displayed to the standard out-
15225 + <STRONG>-q</STRONG> The terminal type is displayed to the standard out-
15226 put, and the terminal is not initialized in any way.
15227 The option `-' by itself is equivalent but archaic.
15229 - -e Set the erase character to <EM>ch</EM>.
15230 + <STRONG>-e</STRONG> Set the erase character to <EM>ch</EM>.
15232 - -I Do not send the terminal or tab initialization
15233 + <STRONG>-I</STRONG> Do not send the terminal or tab initialization
15234 strings to the terminal.
15236 - -Q Don't display any values for the erase, interrupt and
15237 + <STRONG>-Q</STRONG> Don't display any values for the erase, interrupt and
15238 line kill characters.
15240 <STRONG>-V</STRONG> reports the version of ncurses which was used in this
15241 program, and exits.
15243 - -i Set the interrupt character to <EM>ch</EM>.
15244 + <STRONG>-i</STRONG> Set the interrupt character to <EM>ch</EM>.
15246 - -k Set the line kill character to <EM>ch</EM>.
15247 + <STRONG>-k</STRONG> Set the line kill character to <EM>ch</EM>.
15249 - -m Specify a mapping from a port type to a terminal.
15250 + <STRONG>-m</STRONG> Specify a mapping from a port type to a terminal.
15251 See below for more information.
15253 - -r Print the terminal type to the standard error output.
15254 + <STRONG>-r</STRONG> Print the terminal type to the standard error output.
15256 - -s Print the sequence of shell commands to initialize
15257 + <STRONG>-s</STRONG> Print the sequence of shell commands to initialize
15258 the environment variable <STRONG>TERM</STRONG> to the standard output.
15259 See the section below on setting the environment for
15262 - The arguments for the -e, -i, and -k options may either be
15263 + The arguments for the <STRONG>-e</STRONG>, <STRONG>-i</STRONG>, and <STRONG>-k</STRONG> options may either be
15264 entered as actual characters or by using the `hat' nota-
15265 tion, i.e. control-h may be specified as ``^H'' or ``^h''.
15267 @@ -146,9 +146,9 @@
15268 <H2>SETTING THE ENVIRONMENT</H2><PRE>
15269 It is often desirable to enter the terminal type and
15270 information about the terminal's capabilities into the
15271 - shell's environment. This is done using the -s option.
15272 + shell's environment. This is done using the <STRONG>-s</STRONG> option.
15274 - When the -s option is specified, the commands to enter the
15275 + When the <STRONG>-s</STRONG> option is specified, the commands to enter the
15276 information into the shell's environment are written to
15277 the standard output. If the <STRONG>SHELL</STRONG> environmental variable
15278 ends in ``csh'', the commands are for <STRONG>csh</STRONG>, otherwise, they
15279 @@ -171,12 +171,12 @@
15280 often desirable to provide information about the type of
15281 terminal used on such ports.
15283 - The purpose of the -m option is to map from some set of
15284 + The purpose of the <STRONG>-m</STRONG> option is to map from some set of
15285 conditions to a terminal type, that is, to tell <STRONG>tset</STRONG> ``If
15286 I'm on this port at a particular speed, guess that I'm on
15287 that kind of terminal''.
15289 - The argument to the -m option consists of an optional port
15290 + The argument to the <STRONG>-m</STRONG> option consists of an optional port
15291 type, an optional operator, an optional baud rate specifi-
15292 cation, an optional colon (``:'') character and a terminal
15293 type. The port type is a string (delimited by either the
15294 @@ -189,7 +189,7 @@
15295 terminal). The terminal type is a string.
15297 If the terminal type is not specified on the command line,
15298 - the -m mappings are applied to the terminal type. If the
15299 + the <STRONG>-m</STRONG> mappings are applied to the terminal type. If the
15300 port type and baud rate match the mapping, the terminal
15301 type specified in the mapping replaces the current type.
15302 If more than one mapping is specified, the first applica-
15303 @@ -213,9 +213,9 @@
15304 user will be queried on a default port as to whether they
15305 are actually using an xterm terminal.
15307 - No whitespace characters are permitted in the -m option
15308 + No whitespace characters are permitted in the <STRONG>-m</STRONG> option
15309 argument. Also, to avoid problems with meta-characters,
15310 - it is suggested that the entire -m option argument be
15311 + it is suggested that the entire <STRONG>-m</STRONG> option argument be
15312 placed within single quote characters, and that <STRONG>csh</STRONG> users
15313 insert a backslash character (``\'') before any exclama-
15314 tion marks (``!'').
15315 @@ -238,8 +238,8 @@
15316 important use). This implementation behaves like 4.4BSD
15317 tset, with a few exceptions specified here.
15319 - The -S option of BSD tset no longer works; it prints an
15320 - error message to stderr and dies. The -s option only sets
15321 + The <STRONG>-S</STRONG> option of BSD tset no longer works; it prints an
15322 + error message to stderr and dies. The <STRONG>-s</STRONG> option only sets
15323 <STRONG>TERM</STRONG>, not <STRONG>TERMCAP</STRONG>. Both these changes are because the
15324 <STRONG>TERMCAP</STRONG> variable is no longer supported under terminfo-
15325 based <STRONG>ncurses</STRONG>, which makes <STRONG>tset</STRONG> <STRONG>-S</STRONG> useless (we made it die
15326 @@ -250,28 +250,28 @@
15327 ning with an upper-case letter) set the terminal to use
15328 upper-case only. This feature has been omitted.
15330 - The -A, -E, -h, -u and -v options were deleted from the
15331 - <STRONG>tset</STRONG> utility in 4.4BSD. None of them were documented in
15332 - 4.3BSD and all are of limited utility at best. The -a, -d,
15333 - and -p options are similarly not documented or useful, but
15334 - were retained as they appear to be in widespread use. It
15335 - is strongly recommended that any usage of these three
15336 - options be changed to use the -m option instead. The -n
15337 - option remains, but has no effect. The -adnp options are
15338 - therefore omitted from the usage summary above.
15339 + The <STRONG>-A</STRONG>, <STRONG>-E</STRONG>, <STRONG>-h</STRONG>, <STRONG>-u</STRONG> and <STRONG>-v</STRONG> options were deleted from the
15340 + <STRONG>tset</STRONG> utility in 4.4BSD. None of them were documented in
15341 + 4.3BSD and all are of limited utility at best. The <STRONG>-a</STRONG>, -,
15343 + options are similarly not documented or useful, but were
15344 + retained as they appear to be in widespread use. It is
15345 + strongly recommended that any usage of these three options
15346 + be changed to use the <STRONG>-m</STRONG> option instead. The -n option
15347 + remains, but has no effect. The <STRONG>-adnp</STRONG> options are there-
15348 + fore omitted from the usage summary above.
15350 - It is still permissible to specify the -e, -i, and -k
15351 - options without arguments, although it is strongly recom-
15352 - mended that such usage be fixed to explicitly specify the
15353 + It is still permissible to specify the <STRONG>-e</STRONG>, <STRONG>-i</STRONG>, and <STRONG>-k</STRONG>
15354 + options without arguments, although it is strongly recom-
15355 + mended that such usage be fixed to explicitly specify the
15358 - As of 4.4BSD, executing <STRONG>tset</STRONG> as <STRONG>reset</STRONG> no longer implies
15359 - the -Q option. Also, the interaction between the - option
15360 + As of 4.4BSD, executing <STRONG>tset</STRONG> as <STRONG>reset</STRONG> no longer implies
15361 + the <STRONG>-Q</STRONG> option. Also, the interaction between the - option
15362 and the <EM>terminal</EM> argument in some historic implementations
15363 of <STRONG>tset</STRONG> has been removed.
15368 <H2>ENVIRONMENT</H2><PRE>
15369 The <STRONG>tset</STRONG> command uses the <STRONG>SHELL</STRONG> and <STRONG>TERM</STRONG> environment vari-
15370 @@ -281,7 +281,7 @@
15372 <H2>FILES</H2><PRE>
15374 - system port name to terminal type mapping database
15375 + system port name to terminal type mapping database
15376 (BSD versions only).
15378 /usr/share/terminfo
15379 diff -urNd -urNd ncurses-5.3/form/Makefile.in ncurses-5.3.20030906.orig/form/Makefile.in
15380 --- ncurses-5.3/form/Makefile.in Sat Jan 19 19:49:17 2002
15381 +++ ncurses-5.3.20030906.orig/form/Makefile.in Fri Sep 12 16:42:40 2003
15383 -# $Id: Makefile.in,v 1.36 2002/01/20 01:49:17 tom Exp $
15384 +# $Id: Makefile.in,v 1.39 2003/08/23 23:25:01 tom Exp $
15385 ##############################################################################
15386 -# Copyright (c) 1998,1999,2000,2001,2002 Free Software Foundation, Inc. #
15387 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
15389 # Permission is hereby granted, free of charge, to any person obtaining a #
15390 # copy of this software and associated documentation files (the "Software"), #
15392 includedir = @includedir@
15394 LIBTOOL = @LIBTOOL@
15395 +LIBTOOL_CLEAN = @LIB_CLEAN@
15396 +LIBTOOL_COMPILE = @LIB_COMPILE@
15397 +LIBTOOL_LINK = @LIB_LINK@
15398 +LIBTOOL_INSTALL = @LIB_INSTALL@
15399 +LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
15401 INSTALL = @INSTALL@
15402 INSTALL_LIB = @INSTALL@ @INSTALL_LIB@
15405 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
15407 -LINK = $(LIBTOOL) $(CC)
15408 +LINK = $(LIBTOOL_LINK) $(CC)
15409 LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
15411 SHLIB_DIRS = -L../lib
15413 REL_VERSION = @cf_cv_rel_version@
15414 ABI_VERSION = @cf_cv_abi_version@
15417 +RANLIB = @LIB_PREP@
15419 IMPORT_LIB = @IMPORT_LIB@
15420 SHARED_LIB = @SHARED_LIB@
15421 diff -urNd -urNd ncurses-5.3/form/form.h ncurses-5.3.20030906.orig/form/form.h
15422 --- ncurses-5.3/form/form.h Sat Jul 13 06:35:08 2002
15423 +++ ncurses-5.3.20030906.orig/form/form.h Tue May 13 20:08:22 2003
15425 /****************************************************************************
15426 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
15427 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
15429 * Permission is hereby granted, free of charge, to any person obtaining a *
15430 * copy of this software and associated documentation files (the *
15432 * Contact: http://www.familiepfeifer.de/Contact.aspx?Lang=en *
15433 ****************************************************************************/
15435 +/* $Id: form.h,v 0.15 2003/05/03 21:59:32 tom Exp $ */
15440 @@ -208,7 +210,7 @@
15441 #define REQ_DEL_CHAR (KEY_MAX + 34) /* delete char at cursor */
15442 #define REQ_DEL_PREV (KEY_MAX + 35) /* delete char before cursor */
15443 #define REQ_DEL_LINE (KEY_MAX + 36) /* delete line at cursor */
15444 -#define REQ_DEL_WORD (KEY_MAX + 37) /* delete line at cursor */
15445 +#define REQ_DEL_WORD (KEY_MAX + 37) /* delete word at cursor */
15446 #define REQ_CLR_EOL (KEY_MAX + 38) /* clear to end of line */
15447 #define REQ_CLR_EOF (KEY_MAX + 39) /* clear to end of field */
15448 #define REQ_CLR_FIELD (KEY_MAX + 40) /* clear entire field */
15449 diff -urNd -urNd ncurses-5.3/form/frm_driver.c ncurses-5.3.20030906.orig/form/frm_driver.c
15450 --- ncurses-5.3/form/frm_driver.c Sat Jul 6 10:33:27 2002
15451 +++ ncurses-5.3.20030906.orig/form/frm_driver.c Tue May 13 20:08:22 2003
15453 ****************************************************************************/
15454 #include "form.priv.h"
15456 -MODULE_ID("$Id: frm_driver.c,v 1.39 2002/07/06 15:33:27 juergen Exp $")
15457 +MODULE_ID("$Id: frm_driver.c,v 1.42 2003/05/03 23:05:21 tom Exp $")
15459 /*----------------------------------------------------------------------------
15460 This is the core module of the form library. It contains the majority
15462 all the functions in this module depends on some others in the module,
15463 so it makes no sense to split them into separate files because they
15464 will always be linked together. The only acceptable concern is turnaround
15465 - time for this module, but now we have all Pentiums or Riscs, so what!
15466 + time for this module, but now we have all Pentiums or RISCs, so what!
15468 The driver routines are grouped into nine generic categories:
15470 @@ -55,10 +55,10 @@
15471 c) Intra-Field Navigation ( all functions prefixed by IFN_ )
15472 The current position in the current field is changed.
15473 d) Vertical Scrolling ( all functions prefixed by VSC_ )
15474 - Esseantially this is a specialization of Intra-Field navigation.
15475 + Essentially this is a specialization of Intra-Field navigation.
15476 It has to check for a multi-line field.
15477 e) Horizontal Scrolling ( all functions prefixed by HSC_ )
15478 - Esseantially this is a specialization of Intra-Field navigation.
15479 + Essentially this is a specialization of Intra-Field navigation.
15480 It has to check for a single-line field.
15481 f) Field Editing ( all functions prefixed by FE_ )
15482 The content of the current field is changed
15483 @@ -79,11 +79,11 @@
15486 Some options that may effect compatibility in behavior to SVr4 forms,
15487 -but they are here to allow a more intuitive and user friendly behaviour of
15488 +but they are here to allow a more intuitive and user friendly behavior of
15489 our form implementation. This doesn't affect the API, so we feel it is
15492 -The initial implementation tries to stay very close with the behaviour
15493 +The initial implementation tries to stay very close with the behavior
15494 of the original SVr4 implementation, although in some areas it is quite
15495 clear that this isn't the most appropriate way. As far as possible this
15496 sources will allow you to build a forms lib that behaves quite similar
15498 Perhaps at some time we will make this configurable at runtime.
15501 -/* Implement a more user-friendly previous/next word behaviour */
15502 +/* Implement a more user-friendly previous/next word behavior */
15503 #define FRIENDLY_PREV_NEXT_WORD (1)
15504 -/* Fix the wrong behaviour for forms with all fields inactive */
15505 +/* Fix the wrong behavior for forms with all fields inactive */
15506 #define FIX_FORM_INACTIVE_BUG (1)
15507 /* Allow dynamic field growth also when navigating past the end */
15508 #define GROW_IF_NAVIGATE (1)
15509 @@ -918,7 +918,7 @@
15511 | Description : Propagate the Synchronize_Field function to all linked
15512 | fields. The first error that occurs in the sequence
15513 -| of updates is the returnvalue.
15514 +| of updates is the return value.
15516 | Return Values : E_OK - success
15517 | E_BAD_ARGUMENT - invalid field pointer
15518 @@ -1012,7 +1012,7 @@
15520 | Description : If a fields options have changed, this routine is
15521 | called to propagate these changes to the screen and
15522 -| to really change the behaviour of the field.
15523 +| to really change the behavior of the field.
15525 | Return Values : E_OK - success
15526 | E_BAD_ARGUMENT - invalid field pointer
15527 @@ -1089,7 +1089,7 @@
15528 (!single_line_field && (field->drows < field->maxgrow)))
15530 field->status |= _MAY_GROW;
15531 - /* a field with justification now changes its behaviour,
15532 + /* a field with justification now changes its behavior,
15533 so we must redisplay it */
15534 if (single_line_field &&
15535 (field->just != NO_JUSTIFICATION) &&
15536 @@ -2141,7 +2141,7 @@
15537 int res = E_REQUEST_DENIED;
15539 /* We have to deal here with the specific case of the overloaded
15540 - behaviour of New_Line and Delete_Previous requests.
15541 + behavior of New_Line and Delete_Previous requests.
15542 They may end up in navigational requests if we are on the first
15543 character in a field. But navigation is also allowed on non-
15545 @@ -2205,6 +2205,7 @@
15547 if (!(form->opts & O_NL_OVERLOAD))
15548 return(E_REQUEST_DENIED);
15549 + wmove(form->w,form->currow,form->curcol);
15550 wclrtoeol(form->w);
15551 /* we have to set this here, although it is also
15552 handled in the generic routine. The reason is,
15553 @@ -2221,6 +2222,7 @@
15554 a single-line field */
15555 return(E_SYSTEM_ERROR);
15557 + wmove(form->w,form->currow,form->curcol);
15558 wclrtoeol(form->w);
15561 @@ -2248,6 +2250,7 @@
15563 bp= Address_Of_Current_Position_In_Buffer(form);
15564 t = After_End_Of_Data(bp,field->dcols - form->curcol);
15565 + wmove(form->w,form->currow,form->curcol);
15566 wclrtoeol(form->w);
15569 @@ -2338,6 +2341,7 @@
15570 +--------------------------------------------------------------------------*/
15571 static int FE_Delete_Character(FORM * form)
15573 + wmove(form->w,form->currow,form->curcol);
15577 @@ -2378,6 +2382,7 @@
15578 if ((int)(this_end-this_line) >
15579 (field->cols-(int)(prev_end-prev_line)))
15580 return E_REQUEST_DENIED;
15581 + wmove(form->w,form->currow,form->curcol);
15582 wdeleteln(form->w);
15583 Adjust_Cursor_Position(form,prev_end);
15584 wmove(form->w,form->currow,form->curcol);
15585 @@ -2455,20 +2460,22 @@
15586 +--------------------------------------------------------------------------*/
15587 static int FE_Clear_To_End_Of_Line(FORM * form)
15589 + wmove(form->w,form->currow,form->curcol);
15590 wclrtoeol(form->w);
15594 /*---------------------------------------------------------------------------
15595 | Facility : libnform
15596 -| Function : static int FE_Clear_To_End_Of_Form(FORM * form)
15597 +| Function : static int FE_Clear_To_End_Of_Field(FORM * form)
15599 -| Description : Clear to end of form.
15600 +| Description : Clear to end of field.
15602 | Return Values : E_OK - success
15603 +--------------------------------------------------------------------------*/
15604 -static int FE_Clear_To_End_Of_Form(FORM * form)
15605 +static int FE_Clear_To_End_Of_Field(FORM * form)
15607 + wmove(form->w,form->currow,form->curcol);
15608 wclrtobot(form->w);
15611 @@ -3053,7 +3060,7 @@
15612 | int (* const fct) (FORM *),
15615 -| Description : Generic behaviour for changing the current field, the
15616 +| Description : Generic behavior for changing the current field, the
15617 | field is left and a new field is entered. So the field
15618 | must be validated and the field init/term hooks must
15620 @@ -3366,7 +3373,7 @@
15621 | int (* const fct) (FORM *),
15624 -| Description : Generic behaviour for changing a page. This means
15625 +| Description : Generic behavior for changing a page. This means
15626 | that the field is left and a new field is entered.
15627 | So the field must be validated and the field init/term
15628 | hooks must be called. Because also the page is changed,
15629 @@ -3598,7 +3605,7 @@
15630 { REQ_DEL_LINE |ID_FE ,FE_Delete_Line},
15631 { REQ_DEL_WORD |ID_FE ,FE_Delete_Word},
15632 { REQ_CLR_EOL |ID_FE ,FE_Clear_To_End_Of_Line},
15633 - { REQ_CLR_EOF |ID_FE ,FE_Clear_To_End_Of_Form},
15634 + { REQ_CLR_EOF |ID_FE ,FE_Clear_To_End_Of_Field},
15635 { REQ_CLR_FIELD |ID_FE ,FE_Clear_Field},
15637 { REQ_OVL_MODE |ID_EM ,EM_Overlay_Mode},
15638 diff -urNd -urNd ncurses-5.3/include/MKkey_defs.sh ncurses-5.3.20030906.orig/include/MKkey_defs.sh
15639 --- ncurses-5.3/include/MKkey_defs.sh Sat Sep 28 18:32:16 2002
15640 +++ ncurses-5.3.20030906.orig/include/MKkey_defs.sh Tue May 13 20:08:22 2003
15643 -# $Id: MKkey_defs.sh,v 1.10 2002/09/28 23:32:16 tom Exp $
15644 +# $Id: MKkey_defs.sh,v 1.11 2003/01/11 22:20:40 tom Exp $
15645 ##############################################################################
15646 -# Copyright (c) 2001,2002 Free Software Foundation, Inc. #
15647 +# Copyright (c) 2001-2002,2003 Free Software Foundation, Inc. #
15649 # Permission is hereby granted, free of charge, to any person obtaining a #
15650 # copy of this software and associated documentation files (the "Software"), #
15651 @@ -49,10 +49,10 @@
15652 if sort -k 6 $DATA >$data 2>/dev/null
15655 - sed -e 's/[ ]\+/ /g' < $DATA |sort -n -k 6 >$data
15656 + sed -e 's/[ ][ ]*/ /g' < $DATA |sort -n -k 6 >$data
15658 # SunOS (and SVr4, marked as obsolete but still recognized)
15659 - sed -e 's/[ ]\+/ /g' < $DATA |sort -n +5 >$data
15660 + sed -e 's/[ ][ ]*/ /g' < $DATA |sort -n +5 >$data
15663 # add keys that we generate automatically:
15664 diff -urNd -urNd ncurses-5.3/include/curses.h.in ncurses-5.3.20030906.orig/include/curses.h.in
15665 --- ncurses-5.3/include/curses.h.in Sat Sep 28 10:08:06 2002
15666 +++ ncurses-5.3.20030906.orig/include/curses.h.in Sun Jul 20 14:02:08 2003
15668 /****************************************************************************
15669 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
15670 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
15672 * Permission is hereby granted, free of charge, to any person obtaining a *
15673 * copy of this software and associated documentation files (the *
15675 * and: Thomas E. Dickey 1996-on *
15676 ****************************************************************************/
15678 -/* $Id: curses.h.in,v 1.134 2002/09/28 15:08:06 tom Exp $ */
15679 +/* $Id: curses.h.in,v 1.145 2003/06/15 23:42:18 tom Exp $ */
15681 #ifndef __NCURSES_H
15682 #define __NCURSES_H
15683 @@ -125,7 +125,7 @@
15685 typedef @cf_cv_type_of_bool@ NCURSES_BOOL;
15687 -#if (!defined(__cplusplus) || !@cf_cv_builtin_bool@) && (!@cf_cv_cc_bool_type@)
15688 +#if @USE_CXX_BOOL@ /* !__cplusplus, etc. */
15690 #if @cf_cv_header_stdbool_h@
15691 #include <stdbool.h>
15692 @@ -136,7 +136,7 @@
15693 #if @cf_cv_header_stdbool_h@
15694 #define bool NCURSES_BOOL
15696 -typedef @cf_cv_type_of_bool@ bool;
15697 +typedef NCURSES_BOOL bool;
15700 #endif /* !__cplusplus, etc. */
15701 @@ -189,45 +189,47 @@
15702 extern NCURSES_EXPORT_VAR(chtype) acs_map[];
15705 +#define NCURSES_ACS(c) (acs_map[(unsigned char)c])
15707 /* VT100 symbols begin here */
15708 -#define ACS_ULCORNER (acs_map['l']) /* upper left corner */
15709 -#define ACS_LLCORNER (acs_map['m']) /* lower left corner */
15710 -#define ACS_URCORNER (acs_map['k']) /* upper right corner */
15711 -#define ACS_LRCORNER (acs_map['j']) /* lower right corner */
15712 -#define ACS_LTEE (acs_map['t']) /* tee pointing right */
15713 -#define ACS_RTEE (acs_map['u']) /* tee pointing left */
15714 -#define ACS_BTEE (acs_map['v']) /* tee pointing up */
15715 -#define ACS_TTEE (acs_map['w']) /* tee pointing down */
15716 -#define ACS_HLINE (acs_map['q']) /* horizontal line */
15717 -#define ACS_VLINE (acs_map['x']) /* vertical line */
15718 -#define ACS_PLUS (acs_map['n']) /* large plus or crossover */
15719 -#define ACS_S1 (acs_map['o']) /* scan line 1 */
15720 -#define ACS_S9 (acs_map['s']) /* scan line 9 */
15721 -#define ACS_DIAMOND (acs_map['`']) /* diamond */
15722 -#define ACS_CKBOARD (acs_map['a']) /* checker board (stipple) */
15723 -#define ACS_DEGREE (acs_map['f']) /* degree symbol */
15724 -#define ACS_PLMINUS (acs_map['g']) /* plus/minus */
15725 -#define ACS_BULLET (acs_map['~']) /* bullet */
15726 +#define ACS_ULCORNER NCURSES_ACS('l') /* upper left corner */
15727 +#define ACS_LLCORNER NCURSES_ACS('m') /* lower left corner */
15728 +#define ACS_URCORNER NCURSES_ACS('k') /* upper right corner */
15729 +#define ACS_LRCORNER NCURSES_ACS('j') /* lower right corner */
15730 +#define ACS_LTEE NCURSES_ACS('t') /* tee pointing right */
15731 +#define ACS_RTEE NCURSES_ACS('u') /* tee pointing left */
15732 +#define ACS_BTEE NCURSES_ACS('v') /* tee pointing up */
15733 +#define ACS_TTEE NCURSES_ACS('w') /* tee pointing down */
15734 +#define ACS_HLINE NCURSES_ACS('q') /* horizontal line */
15735 +#define ACS_VLINE NCURSES_ACS('x') /* vertical line */
15736 +#define ACS_PLUS NCURSES_ACS('n') /* large plus or crossover */
15737 +#define ACS_S1 NCURSES_ACS('o') /* scan line 1 */
15738 +#define ACS_S9 NCURSES_ACS('s') /* scan line 9 */
15739 +#define ACS_DIAMOND NCURSES_ACS('`') /* diamond */
15740 +#define ACS_CKBOARD NCURSES_ACS('a') /* checker board (stipple) */
15741 +#define ACS_DEGREE NCURSES_ACS('f') /* degree symbol */
15742 +#define ACS_PLMINUS NCURSES_ACS('g') /* plus/minus */
15743 +#define ACS_BULLET NCURSES_ACS('~') /* bullet */
15744 /* Teletype 5410v1 symbols begin here */
15745 -#define ACS_LARROW (acs_map[',']) /* arrow pointing left */
15746 -#define ACS_RARROW (acs_map['+']) /* arrow pointing right */
15747 -#define ACS_DARROW (acs_map['.']) /* arrow pointing down */
15748 -#define ACS_UARROW (acs_map['-']) /* arrow pointing up */
15749 -#define ACS_BOARD (acs_map['h']) /* board of squares */
15750 -#define ACS_LANTERN (acs_map['i']) /* lantern symbol */
15751 -#define ACS_BLOCK (acs_map['0']) /* solid square block */
15752 +#define ACS_LARROW NCURSES_ACS(',') /* arrow pointing left */
15753 +#define ACS_RARROW NCURSES_ACS('+') /* arrow pointing right */
15754 +#define ACS_DARROW NCURSES_ACS('.') /* arrow pointing down */
15755 +#define ACS_UARROW NCURSES_ACS('-') /* arrow pointing up */
15756 +#define ACS_BOARD NCURSES_ACS('h') /* board of squares */
15757 +#define ACS_LANTERN NCURSES_ACS('i') /* lantern symbol */
15758 +#define ACS_BLOCK NCURSES_ACS('0') /* solid square block */
15760 * These aren't documented, but a lot of System Vs have them anyway
15761 * (you can spot pprryyzz{{||}} in a lot of AT&T terminfo strings).
15762 * The ACS_names may not match AT&T's, our source didn't know them.
15764 -#define ACS_S3 (acs_map['p']) /* scan line 3 */
15765 -#define ACS_S7 (acs_map['r']) /* scan line 7 */
15766 -#define ACS_LEQUAL (acs_map['y']) /* less/equal */
15767 -#define ACS_GEQUAL (acs_map['z']) /* greater/equal */
15768 -#define ACS_PI (acs_map['{']) /* Pi */
15769 -#define ACS_NEQUAL (acs_map['|']) /* not equal */
15770 -#define ACS_STERLING (acs_map['}']) /* UK pound sign */
15771 +#define ACS_S3 NCURSES_ACS('p') /* scan line 3 */
15772 +#define ACS_S7 NCURSES_ACS('r') /* scan line 7 */
15773 +#define ACS_LEQUAL NCURSES_ACS('y') /* less/equal */
15774 +#define ACS_GEQUAL NCURSES_ACS('z') /* greater/equal */
15775 +#define ACS_PI NCURSES_ACS('{') /* Pi */
15776 +#define ACS_NEQUAL NCURSES_ACS('|') /* not equal */
15777 +#define ACS_STERLING NCURSES_ACS('}') /* UK pound sign */
15780 * Line drawing ACS names are of the form ACS_trbl, where t is the top, r
15781 @@ -286,20 +288,19 @@
15784 #include <libutf8.h>
15789 -#if @NCURSES_MBSTATE_T@
15790 +#if @NEED_WCHAR_H@
15791 #include <wchar.h> /* ...to get mbstate_t, etc. */
15795 -typedef unsigned long wchar_t;
15796 -#endif /* _WCHAR_T */
15798 -typedef long int wint_t;
15799 -#endif /* _WINT_T */
15800 +#if @NCURSES_WCHAR_T@
15801 +typedef unsigned short wchar_t@NCURSES_OK_WCHAR_T@;
15804 +#if @NCURSES_WINT_T@
15805 +typedef unsigned int wint_t@NCURSES_OK_WCHAR_T@;
15808 #define CCHARW_MAX 5
15810 @@ -388,7 +389,8 @@
15811 extern NCURSES_EXPORT(char *) keybound (int, int);
15812 extern NCURSES_EXPORT(const char *) curses_version (void);
15813 extern NCURSES_EXPORT(int) assume_default_colors (int, int);
15814 -extern NCURSES_EXPORT(int) define_key (char *, int);
15815 +extern NCURSES_EXPORT(int) define_key (const char *, int);
15816 +extern NCURSES_EXPORT(int) key_defined (const char *);
15817 extern NCURSES_EXPORT(int) keyok (int, bool);
15818 extern NCURSES_EXPORT(int) resize_term (int, int);
15819 extern NCURSES_EXPORT(int) resizeterm (int, int);
15820 @@ -451,24 +453,14 @@
15821 * GCC (and some other compilers) define '__attribute__'; we're using this
15822 * macro to alert the compiler to flag inconsistencies in printf/scanf-like
15823 * function calls. Just in case '__attribute__' isn't defined, make a dummy.
15824 - * G++ doesn't accept it anyway.
15825 + * Old versions of G++ do not accept it anyway, at least not consistently with
15828 -#if !defined(__GNUC__) && !defined(__attribute__)
15829 +#if !(defined(__GNUC__) || defined(__GNUG__) || defined(__attribute__))
15830 #define __attribute__(p) /* nothing */
15834 - * For g++, turn off our macros that use __attribute__ (g++ recognizes some
15835 - * of them, but not at the same version levels as gcc).
15837 -#ifdef __cplusplus
15838 -#undef GCC_NORETURN
15845 * We cannot define these in ncurses_cfg.h, since they require parameters to be
15846 * passed (that's non-portable).
15848 @@ -609,7 +601,7 @@
15849 extern NCURSES_EXPORT(int) mvinsnstr (int, int, const char *, int); /* generated */
15850 extern NCURSES_EXPORT(int) mvinsstr (int, int, const char *); /* generated */
15851 extern NCURSES_EXPORT(int) mvinstr (int, int, char *); /* generated */
15852 -extern NCURSES_EXPORT(int) mvprintw (int,int, NCURSES_CONST char *,...) /* implemented */
15853 +extern NCURSES_EXPORT(int) mvprintw (int,int, const char *,...) /* implemented */
15854 GCC_PRINTFLIKE(3,4);
15855 extern NCURSES_EXPORT(int) mvscanw (int,int, NCURSES_CONST char *,...) /* implemented */
15856 GCC_SCANFLIKE(3,4);
15857 @@ -634,7 +626,7 @@
15858 extern NCURSES_EXPORT(int) mvwinsnstr (WINDOW *, int, int, const char *, int); /* generated */
15859 extern NCURSES_EXPORT(int) mvwinsstr (WINDOW *, int, int, const char *); /* generated */
15860 extern NCURSES_EXPORT(int) mvwinstr (WINDOW *, int, int, char *); /* generated */
15861 -extern NCURSES_EXPORT(int) mvwprintw (WINDOW*,int,int, NCURSES_CONST char *,...) /* implemented */
15862 +extern NCURSES_EXPORT(int) mvwprintw (WINDOW*,int,int, const char *,...) /* implemented */
15863 GCC_PRINTFLIKE(4,5);
15864 extern NCURSES_EXPORT(int) mvwscanw (WINDOW *,int,int, NCURSES_CONST char *,...) /* implemented */
15865 GCC_SCANFLIKE(4,5);
15866 @@ -658,7 +650,7 @@
15867 extern NCURSES_EXPORT(int) pechochar (WINDOW *, const chtype); /* implemented */
15868 extern NCURSES_EXPORT(int) pnoutrefresh (WINDOW*,int,int,int,int,int,int);/* implemented */
15869 extern NCURSES_EXPORT(int) prefresh (WINDOW *,int,int,int,int,int,int); /* implemented */
15870 -extern NCURSES_EXPORT(int) printw (NCURSES_CONST char *,...) /* implemented */
15871 +extern NCURSES_EXPORT(int) printw (const char *,...) /* implemented */
15872 GCC_PRINTFLIKE(1,2);
15873 extern NCURSES_EXPORT(int) putp (const char *); /* implemented */
15874 extern NCURSES_EXPORT(int) putwin (WINDOW *, FILE *); /* implemented */
15875 @@ -720,8 +712,8 @@
15876 extern NCURSES_EXPORT(int) vidattr (chtype); /* implemented */
15877 extern NCURSES_EXPORT(int) vidputs (chtype, int (*)(int)); /* implemented */
15878 extern NCURSES_EXPORT(int) vline (chtype, int); /* generated */
15879 -extern NCURSES_EXPORT(int) vwprintw (WINDOW *, NCURSES_CONST char *,va_list); /* implemented */
15880 -extern NCURSES_EXPORT(int) vw_printw (WINDOW *, NCURSES_CONST char *,va_list); /* generated */
15881 +extern NCURSES_EXPORT(int) vwprintw (WINDOW *, const char *,va_list); /* implemented */
15882 +extern NCURSES_EXPORT(int) vw_printw (WINDOW *, const char *,va_list); /* generated */
15883 extern NCURSES_EXPORT(int) vwscanw (WINDOW *, NCURSES_CONST char *,va_list); /* implemented */
15884 extern NCURSES_EXPORT(int) vw_scanw (WINDOW *, NCURSES_CONST char *,va_list); /* generated */
15885 extern NCURSES_EXPORT(int) waddch (WINDOW *, const chtype); /* implemented */
15886 @@ -765,7 +757,7 @@
15887 extern NCURSES_EXPORT(int) winstr (WINDOW *, char *); /* generated */
15888 extern NCURSES_EXPORT(int) wmove (WINDOW *,int,int); /* implemented */
15889 extern NCURSES_EXPORT(int) wnoutrefresh (WINDOW *); /* implemented */
15890 -extern NCURSES_EXPORT(int) wprintw (WINDOW *, NCURSES_CONST char *,...) /* implemented */
15891 +extern NCURSES_EXPORT(int) wprintw (WINDOW *, const char *,...) /* implemented */
15892 GCC_PRINTFLIKE(2,3);
15893 extern NCURSES_EXPORT(int) wredrawln (WINDOW *,int,int); /* implemented */
15894 extern NCURSES_EXPORT(int) wrefresh (WINDOW *); /* implemented */
15895 @@ -831,10 +823,11 @@
15896 #define nocrmode() nocbreak()
15899 -#define getyx(win,y,x) (y = (win)?(win)->_cury:ERR, x = (win)?(win)->_curx:ERR)
15900 -#define getbegyx(win,y,x) (y = (win)?(win)->_begy:ERR, x = (win)?(win)->_begx:ERR)
15901 -#define getmaxyx(win,y,x) (y = (win)?((win)->_maxy + 1):ERR, x = (win)?((win)->_maxx + 1):ERR)
15902 -#define getparyx(win,y,x) (y = (win)?(win)->_pary:ERR, x = (win)?(win)->_parx:ERR)
15903 +#define getyx(win,y,x) (y = getcury(win), x = getcurx(win))
15904 +#define getbegyx(win,y,x) (y = getbegy(win), x = getbegx(win))
15905 +#define getmaxyx(win,y,x) (y = getmaxy(win), x = getmaxx(win))
15906 +#define getparyx(win,y,x) (y = getpary(win), x = getparx(win))
15908 #define getsyx(y,x) do { if(newscr->_leaveok) (y)=(x)=-1; \
15909 else getyx(newscr,(y),(x)); \
15911 diff -urNd -urNd ncurses-5.3/include/curses.tail ncurses-5.3.20030906.orig/include/curses.tail
15912 --- ncurses-5.3/include/curses.tail Sat Oct 12 10:46:02 2002
15913 +++ ncurses-5.3.20030906.orig/include/curses.tail Tue May 13 20:08:22 2003
15915 -/* $Id: curses.tail,v 1.7 2002/10/12 15:46:02 tom Exp $ */
15916 +/* $Id: curses.tail,v 1.8 2002/11/02 20:26:26 tom Exp $ */
15918 /* mouse interface */
15919 #define NCURSES_MOUSE_VERSION 1
15920 @@ -121,10 +121,6 @@
15921 #define OPTIMIZE_ALL 0xff /* enable all optimizations (dflt) */
15924 -#ifndef NCURSES_WGETCH_EVENTS
15930 /* these names conflict with STL */
15931 diff -urNd -urNd ncurses-5.3/include/curses.wide ncurses-5.3.20030906.orig/include/curses.wide
15932 --- ncurses-5.3/include/curses.wide Sat Aug 31 12:48:53 2002
15933 +++ ncurses-5.3.20030906.orig/include/curses.wide Sun Jul 20 14:02:08 2003
15936 #ifdef _XOPEN_SOURCE_EXTENDED
15938 -/* $Id: curses.wide,v 1.25 2002/08/31 17:48:53 tom Exp $ */
15939 +/* $Id: curses.wide,v 1.27 2003/06/07 21:59:37 tom Exp $ */
15941 extern NCURSES_EXPORT_VAR(cchar_t *) _nc_wacs;
15943 -#define WACS_BSSB (&_nc_wacs['l'])
15944 -#define WACS_SSBB (&_nc_wacs['m'])
15945 -#define WACS_BBSS (&_nc_wacs['k'])
15946 -#define WACS_SBBS (&_nc_wacs['j'])
15947 -#define WACS_SBSS (&_nc_wacs['u'])
15948 -#define WACS_SSSB (&_nc_wacs['t'])
15949 -#define WACS_SSBS (&_nc_wacs['v'])
15950 -#define WACS_BSSS (&_nc_wacs['w'])
15951 -#define WACS_BSBS (&_nc_wacs['q'])
15952 -#define WACS_SBSB (&_nc_wacs['x'])
15953 -#define WACS_SSSS (&_nc_wacs['n'])
15954 +#define NCURSES_WACS(c) (&_nc_wacs[(unsigned char)c])
15956 +#define WACS_BSSB NCURSES_WACS('l')
15957 +#define WACS_SSBB NCURSES_WACS('m')
15958 +#define WACS_BBSS NCURSES_WACS('k')
15959 +#define WACS_SBBS NCURSES_WACS('j')
15960 +#define WACS_SBSS NCURSES_WACS('u')
15961 +#define WACS_SSSB NCURSES_WACS('t')
15962 +#define WACS_SSBS NCURSES_WACS('v')
15963 +#define WACS_BSSS NCURSES_WACS('w')
15964 +#define WACS_BSBS NCURSES_WACS('q')
15965 +#define WACS_SBSB NCURSES_WACS('x')
15966 +#define WACS_SSSS NCURSES_WACS('n')
15968 #define WACS_ULCORNER WACS_BSSB
15969 #define WACS_LLCORNER WACS_SSBB
15970 @@ -29,31 +31,31 @@
15971 #define WACS_VLINE WACS_SBSB
15972 #define WACS_PLUS WACS_SSSS
15974 -#define WACS_S1 (&_nc_wacs['o']) /* scan line 1 */
15975 -#define WACS_S9 (&_nc_wacs['s']) /* scan line 9 */
15976 -#define WACS_DIAMOND (&_nc_wacs['`']) /* diamond */
15977 -#define WACS_CKBOARD (&_nc_wacs['a']) /* checker board */
15978 -#define WACS_DEGREE (&_nc_wacs['f']) /* degree symbol */
15979 -#define WACS_PLMINUS (&_nc_wacs['g']) /* plus/minus */
15980 -#define WACS_BULLET (&_nc_wacs['~']) /* bullet */
15981 +#define WACS_S1 NCURSES_WACS('o') /* scan line 1 */
15982 +#define WACS_S9 NCURSES_WACS('s') /* scan line 9 */
15983 +#define WACS_DIAMOND NCURSES_WACS('`') /* diamond */
15984 +#define WACS_CKBOARD NCURSES_WACS('a') /* checker board */
15985 +#define WACS_DEGREE NCURSES_WACS('f') /* degree symbol */
15986 +#define WACS_PLMINUS NCURSES_WACS('g') /* plus/minus */
15987 +#define WACS_BULLET NCURSES_WACS('~') /* bullet */
15989 /* Teletype 5410v1 symbols */
15990 -#define WACS_LARROW (&_nc_wacs[',']) /* arrow left */
15991 -#define WACS_RARROW (&_nc_wacs['+']) /* arrow right */
15992 -#define WACS_DARROW (&_nc_wacs['.']) /* arrow down */
15993 -#define WACS_UARROW (&_nc_wacs['-']) /* arrow up */
15994 -#define WACS_BOARD (&_nc_wacs['h']) /* board of squares */
15995 -#define WACS_LANTERN (&_nc_wacs['i']) /* lantern symbol */
15996 -#define WACS_BLOCK (&_nc_wacs['0']) /* solid square block */
15997 +#define WACS_LARROW NCURSES_WACS(',') /* arrow left */
15998 +#define WACS_RARROW NCURSES_WACS('+') /* arrow right */
15999 +#define WACS_DARROW NCURSES_WACS('.') /* arrow down */
16000 +#define WACS_UARROW NCURSES_WACS('-') /* arrow up */
16001 +#define WACS_BOARD NCURSES_WACS('h') /* board of squares */
16002 +#define WACS_LANTERN NCURSES_WACS('i') /* lantern symbol */
16003 +#define WACS_BLOCK NCURSES_WACS('0') /* solid square block */
16005 /* ncurses extensions */
16006 -#define WACS_S3 (&_nc_wacs['p']) /* scan line 3 */
16007 -#define WACS_S7 (&_nc_wacs['r']) /* scan line 7 */
16008 -#define WACS_LEQUAL (&_nc_wacs['y']) /* less/equal */
16009 -#define WACS_GEQUAL (&_nc_wacs['z']) /* greater/equal */
16010 -#define WACS_PI (&_nc_wacs['{']) /* Pi */
16011 -#define WACS_NEQUAL (&_nc_wacs['|']) /* not equal */
16012 -#define WACS_STERLING (&_nc_wacs['}']) /* UK pound sign */
16013 +#define WACS_S3 NCURSES_WACS('p') /* scan line 3 */
16014 +#define WACS_S7 NCURSES_WACS('r') /* scan line 7 */
16015 +#define WACS_LEQUAL NCURSES_WACS('y') /* less/equal */
16016 +#define WACS_GEQUAL NCURSES_WACS('z') /* greater/equal */
16017 +#define WACS_PI NCURSES_WACS('{') /* Pi */
16018 +#define WACS_NEQUAL NCURSES_WACS('|') /* not equal */
16019 +#define WACS_STERLING NCURSES_WACS('}') /* UK pound sign */
16022 * Function prototypes for wide-character operations.
16023 @@ -129,7 +131,7 @@
16024 extern NCURSES_EXPORT(int) mvwvline_set (WINDOW *, int,int, const cchar_t *,int); /* generated:WIDEC */
16025 extern NCURSES_EXPORT(int) pecho_wchar (WINDOW *, const cchar_t *); /* missing */
16026 extern NCURSES_EXPORT(int) setcchar (cchar_t *, const wchar_t *, const attr_t, short, const void *); /* implemented */
16027 -extern NCURSES_EXPORT(int) slk_wset (int, const wchar_t *, int); /* missing */
16028 +extern NCURSES_EXPORT(int) slk_wset (int, const wchar_t *, int); /* implemented */
16029 extern NCURSES_EXPORT(attr_t) term_attrs (void); /* implemented */
16030 extern NCURSES_EXPORT(int) unget_wch (const wchar_t); /* implemented */
16031 extern NCURSES_EXPORT(int) vid_attr (attr_t, short, void *); /* implemented */
16032 diff -urNd -urNd ncurses-5.3/include/ncurses_defs ncurses-5.3.20030906.orig/include/ncurses_defs
16033 --- ncurses-5.3/include/ncurses_defs Sat Aug 24 18:13:43 2002
16034 +++ ncurses-5.3.20030906.orig/include/ncurses_defs Sun Jul 20 14:02:09 2003
16036 -# $Id: ncurses_defs,v 1.15 2002/08/24 23:13:43 tom Exp $
16037 +# $Id: ncurses_defs,v 1.18 2003/07/05 15:14:30 tom Exp $
16038 ##############################################################################
16039 -# Copyright (c) 2000-2001,2002 Free Software Foundation, Inc. #
16040 +# Copyright (c) 2000-2002,2003 Free Software Foundation, Inc. #
16042 # Permission is hereby granted, free of charge, to any person obtaining a #
16043 # copy of this software and associated documentation files (the "Software"), #
16045 GCC_UNUSED /* nothing */
16055 HAVE_LONG_FILE_NAMES
16065 HAVE_REGEXPR_H_FUNCS
16066 HAVE_REGEXP_H_FUNCS
16076 @@ -121,6 +125,8 @@
16085 @@ -160,6 +166,7 @@
16086 USE_STRSTREAM_VSCAN
16087 USE_STRSTREAM_VSCAN_CAST
16093 diff -urNd -urNd ncurses-5.3/include/ncurses_dll.h ncurses-5.3.20030906.orig/include/ncurses_dll.h
16094 --- ncurses-5.3/include/ncurses_dll.h Sat Dec 8 19:36:34 2001
16095 +++ ncurses-5.3.20030906.orig/include/ncurses_dll.h Sun Jul 20 14:02:09 2003
16097 -/* $Id: ncurses_dll.h,v 1.2 2001/12/09 01:36:34 tom Exp $ */
16098 +/* $Id: ncurses_dll.h,v 1.4 2003/07/19 18:44:32 Charles.Wilson Exp $ */
16100 #ifndef NCURSES_DLL_H_incl
16101 #define NCURSES_DLL_H_incl 1
16103 -#undef NCURSES_DLL /* cygwin dll not implemented */
16104 -#define NCURSES_STATIC /* cygwin dll not implemented */
16105 +/* no longer needed on cygwin or mingw, thanks to auto-import */
16106 +/* but this structure may be useful at some point for an MSVC build */
16107 +/* so, for now unconditionally define the important flags */
16108 +/* "the right way" for proper static and dll+auto-import behavior */
16109 +#undef NCURSES_DLL
16110 +#define NCURSES_STATIC
16112 #if defined(__CYGWIN__)
16113 # if defined(NCURSES_DLL)
16116 # undef NCURSES_IMPEXP
16117 # undef NCURSES_API
16118 -# undef NCURSES_EXPORT(type)
16119 -# undef NCURSES_EXPORT_VAR(type)
16120 +# undef NCURSES_EXPORT
16121 +# undef NCURSES_EXPORT_VAR
16122 # if defined(NCURSES_DLL)
16123 /* building a DLL */
16124 # define NCURSES_IMPEXP __declspec(dllexport)
16125 diff -urNd -urNd ncurses-5.3/include/tic.h ncurses-5.3.20030906.orig/include/tic.h
16126 --- ncurses-5.3/include/tic.h Sat Oct 12 10:46:15 2002
16127 +++ ncurses-5.3.20030906.orig/include/tic.h Fri Sep 12 16:41:41 2003
16129 /****************************************************************************
16130 - * Copyright (c) 1998-2000,2001 Free Software Foundation, Inc. *
16131 + * Copyright (c) 1998-2001,2003 Free Software Foundation, Inc. *
16133 * Permission is hereby granted, free of charge, to any person obtaining a *
16134 * copy of this software and associated documentation files (the *
16136 ****************************************************************************/
16139 - * $Id: tic.h,v 1.42 2002/10/12 15:46:15 tom Exp $
16140 + * $Id: tic.h,v 1.45 2003/08/02 23:54:19 tom Exp $
16141 * tic.h - Global variables and structures for the terminfo
16144 @@ -203,8 +203,6 @@
16145 const char *source;
16148 -extern NCURSES_EXPORT_VAR(int) _nc_tparm_err;
16150 extern NCURSES_EXPORT_VAR(const struct name_table_entry * const) _nc_info_hash_table[];
16151 extern NCURSES_EXPORT_VAR(const struct name_table_entry * const) _nc_cap_hash_table[];
16153 @@ -217,7 +215,7 @@
16154 #define NOTFOUND ((struct name_table_entry *) 0)
16156 /* out-of-band values for representing absent capabilities */
16157 -#define ABSENT_BOOLEAN (-1) /* 255 */
16158 +#define ABSENT_BOOLEAN (char)(-1) /* 255 */
16159 #define ABSENT_NUMERIC (-1)
16160 #define ABSENT_STRING (char *)0
16162 @@ -241,6 +239,7 @@
16166 +extern NCURSES_EXPORT(unsigned) _nc_pathlast (const char *);
16167 extern NCURSES_EXPORT(char *) _nc_basename (char *);
16168 extern NCURSES_EXPORT(char *) _nc_rootname (char *);
16170 @@ -284,6 +283,13 @@
16171 extern NCURSES_EXPORT(char *) _nc_captoinfo (const char *, const char *, int const);
16172 extern NCURSES_EXPORT(char *) _nc_infotocap (const char *, const char *, int const);
16175 +#define NUM_PARM 9
16177 +extern NCURSES_EXPORT_VAR(int) _nc_tparm_err;
16179 +extern NCURSES_EXPORT(int) _nc_tparm_analyze(const char *string, char *p_is_s[NUM_PARM], int *popcount);
16182 extern NCURSES_EXPORT_VAR(int) _nc_nulls_sent; /* Add one for every null sent */
16184 diff -urNd -urNd ncurses-5.3/man/MKterminfo.sh ncurses-5.3.20030906.orig/man/MKterminfo.sh
16185 --- ncurses-5.3/man/MKterminfo.sh Sat Jun 29 15:04:28 2002
16186 +++ ncurses-5.3.20030906.orig/man/MKterminfo.sh Tue May 13 20:08:22 2003
16189 -# $Id: MKterminfo.sh,v 1.10 2002/06/29 20:04:28 tom Exp $
16190 +# $Id: MKterminfo.sh,v 1.12 2003/01/11 21:42:12 tom Exp $
16192 # MKterminfo.sh -- generate terminfo.5 from Caps tabular data
16194 #***************************************************************************
16195 -# Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
16196 +# Copyright (c) 1998,2002,2003 Free Software Foundation, Inc. *
16198 # Permission is hereby granted, free of charge, to any person obtaining a *
16199 # copy of this software and associated documentation files (the *
16200 @@ -69,11 +69,11 @@
16210 -s/ [A-Z0-9_()\-]\+ [0-9\-]\+ [Y\-][B\-][C\-][G\-][EK\-]\** / T{
\ 5/
16211 +s/ [A-Z0-9_()\-][A-Z0-9_()\-]* [0-9\-][0-9\-]* [Y\-][B\-][C\-][G\-][EK\-]\** / T{
\ 5/
16215 diff -urNd -urNd ncurses-5.3/man/captoinfo.1m ncurses-5.3.20030906.orig/man/captoinfo.1m
16216 --- ncurses-5.3/man/captoinfo.1m Sat Aug 12 20:56:49 2000
16217 +++ ncurses-5.3.20030906.orig/man/captoinfo.1m Tue May 13 20:08:22 2003
16220 .\"***************************************************************************
16221 -.\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
16222 +.\" Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
16224 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16225 .\" copy of this software and associated documentation files (the *
16226 @@ -27,14 +27,14 @@
16227 .\" authorization. *
16228 .\"***************************************************************************
16230 -.\" $Id: captoinfo.1m,v 1.16 2000/08/13 01:56:49 tom Exp $
16231 +.\" $Id: captoinfo.1m,v 1.17 2003/05/11 00:32:53 tom Exp $
16232 .TH captoinfo 1M ""
16236 \fBcaptoinfo\fR - convert a \fItermcap\fR description into a \fIterminfo\fR description
16238 -\fBcaptoinfo\fR [\fB-v\fR\fIn\fR \fIwidth\fR] [\fB-V\fR] [\fB-1\fR] [\fB-w\fR \fIwidth\fR] \fIfile\fR . . .
16239 +\fBcaptoinfo\fR [\fB\-v\fR\fIn\fR \fIwidth\fR] [\fB\-V\fR] [\fB\-1\fR] [\fB\-w\fR \fIwidth\fR] \fIfile\fR . . .
16241 \fBcaptoinfo\fR looks in \fIfile\fR for \fBtermcap\fR descriptions. For each
16242 one found, an equivalent \fBterminfo\fR description is written to standard
16243 @@ -47,18 +47,18 @@
16244 extracted from that file. If the environment variable \fBTERMCAP\fR is not
16245 set, then the file \fB\*d\fR is read.
16249 print out tracing information on standard error as the program runs.
16253 print out the version of the program in use on standard error and exit.
16257 cause the fields to print out one to a line. Otherwise, the fields
16258 will be printed several to a line to a maximum width of 60
16263 change the output to \fIwidth\fR characters.
16266 @@ -172,11 +172,11 @@
16267 capabilities \fBmeml\fR (memory lock) and \fBmemu\fR (memory unlock).
16268 These will be discarded with a warning message.
16270 -This utility is actually a link to \fItic\fR(1M), running in \fI-I\fR mode.
16271 -You can use other \fItic\fR options such as \fB-f\fR and \fB-x\fR.
16272 +This utility is actually a link to \fItic\fR(1M), running in \fI\-I\fR mode.
16273 +You can use other \fItic\fR options such as \fB\-f\fR and \fB\-x\fR.
16275 The trace option isn't identical to SVr4's. Under SVr4, instead of following
16276 -the -v with a trace level n, you repeat it n times.
16277 +the \fB\-v\fR with a trace level n, you repeat it n times.
16279 \fBcurses\fR(3X), \fB@INFOCMP@\fR(1M), \fBterminfo\fR(\*n)
16281 diff -urNd -urNd ncurses-5.3/man/curs_addch.3x ncurses-5.3.20030906.orig/man/curs_addch.3x
16282 --- ncurses-5.3/man/curs_addch.3x Sat Aug 10 17:12:36 2002
16283 +++ ncurses-5.3.20030906.orig/man/curs_addch.3x Tue May 13 20:08:22 2003
16286 .\"***************************************************************************
16287 -.\" Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
16288 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
16290 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16291 .\" copy of this software and associated documentation files (the *
16293 .\" authorization. *
16294 .\"***************************************************************************
16296 -.\" $Id: curs_addch.3x,v 1.20 2002/08/10 22:12:36 tom Exp $
16297 +.\" $Id: curs_addch.3x,v 1.21 2003/05/10 20:33:49 jmc Exp $
16298 .TH curs_addch 3X ""
16300 \fBaddch\fR, \fBwaddch\fR, \fBmvaddch\fR, \fBmvwaddch\fR,
16302 edge of a window it does nothing.
16303 Newline does a \fBclrtoeol\fR,
16304 then moves the cursor to the window left margin on the next line,
16305 -scrolling the window if on the last line).
16306 +scrolling the window if on the last line.
16307 Tabs are considered to be at every eighth column.
16308 The tab interval may be altered by setting the \fBTABSIZE\fR variable.
16311 Video attributes can be combined with a character argument passed to
16312 \fBaddch\fR or related functions by logical-ORing them into the character.
16313 (Thus, text, including attributes, can be copied from one place to another
16314 -using \fBinch\fR and \fBaddch\fR.). See the \fBcurs_attr\fR(3X) page for
16315 +using \fBinch\fR and \fBaddch\fR.) See the \fBcurs_attr\fR(3X) page for
16316 values of predefined video attribute constants that can be usefully OR'ed
16319 diff -urNd -urNd ncurses-5.3/man/curs_beep.3x ncurses-5.3.20030906.orig/man/curs_beep.3x
16320 --- ncurses-5.3/man/curs_beep.3x Wed Mar 11 15:12:53 1998
16321 +++ ncurses-5.3.20030906.orig/man/curs_beep.3x Tue May 13 20:08:22 2003
16323 .\"***************************************************************************
16324 -.\" Copyright (c) 1998 Free Software Foundation, Inc. *
16325 +.\" Copyright (c) 1998,2003 Free Software Foundation, Inc. *
16327 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16328 .\" copy of this software and associated documentation files (the *
16330 .\" authorization. *
16331 .\"***************************************************************************
16333 -.\" $Id: curs_beep.3x,v 1.7 1998/03/11 21:12:53 juergen Exp $
16334 +.\" $Id: curs_beep.3x,v 1.8 2003/05/10 20:33:49 jmc Exp $
16335 .TH curs_beep 3X ""
16337 \fBbeep\fR, \fBflash\fR - \fBcurses\fR bell and screen flash routines
16339 alert is possible, nothing happens. Nearly all terminals have an audible alert
16340 (bell or beep), but only some can flash the screen.
16342 -These routines return \fBOK\fR if they succeed in beeping or flashing,
16343 +These routines return \fBOK\fR if they succeed in beeping or flashing,
16344 \fBERR\fR otherwise.
16346 SVr4's beep and flash routines always returned \fBOK\fR, so it was not
16347 diff -urNd -urNd ncurses-5.3/man/curs_deleteln.3x ncurses-5.3.20030906.orig/man/curs_deleteln.3x
16348 --- ncurses-5.3/man/curs_deleteln.3x Sat Nov 11 14:43:20 2000
16349 +++ ncurses-5.3.20030906.orig/man/curs_deleteln.3x Tue May 13 20:08:22 2003
16351 .\"***************************************************************************
16352 -.\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
16353 +.\" Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
16355 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16356 .\" copy of this software and associated documentation files (the *
16358 .\" authorization. *
16359 .\"***************************************************************************
16361 -.\" $Id: curs_deleteln.3x,v 1.7 2000/11/11 20:43:20 Bernhard.Rosenkraenzer Exp $
16362 +.\" $Id: curs_deleteln.3x,v 1.8 2003/05/10 20:33:49 jmc Exp $
16363 .TH curs_deleteln 3X ""
16367 with the one under the cursor), and move the remaining lines up. The bottom
16368 \fIn\fR lines are cleared. The current cursor position remains the same.
16370 -The \fBinsertln\fR and \fBwinsertln\fR routines, insert a blank line above the
16371 +The \fBinsertln\fR and \fBwinsertln\fR routines insert a blank line above the
16372 current line and the bottom line is lost.
16374 All routines return the integer \fBERR\fR upon failure and an \fBOK\fR (SVr4
16375 diff -urNd -urNd ncurses-5.3/man/curs_extend.3x ncurses-5.3.20030906.orig/man/curs_extend.3x
16376 --- ncurses-5.3/man/curs_extend.3x Sat Feb 16 16:39:04 2002
16377 +++ ncurses-5.3.20030906.orig/man/curs_extend.3x Tue May 13 20:08:22 2003
16379 .\"***************************************************************************
16380 -.\" Copyright (c) 1999-2000,2002 Free Software Foundation, Inc. *
16381 +.\" Copyright (c) 1999-2002,2003 Free Software Foundation, Inc. *
16383 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16384 .\" copy of this software and associated documentation files (the *
16387 .\" Author: Thomas E. Dickey <dickey@clark.net> 1999
16389 -.\" $Id: curs_extend.3x,v 1.9 2002/02/16 22:39:04 tom Exp $
16390 +.\" $Id: curs_extend.3x,v 1.11 2003/05/11 00:32:53 tom Exp $
16391 .TH curs_extend 3X ""
16393 \fBcurses_version\fP,
16394 @@ -55,11 +55,11 @@
16395 is able to use user-defined or nonstandard names
16396 which may be compiled into the terminfo
16397 description, i.e., via the terminfo or termcap interfaces.
16398 -Normally these names are available for use, since the essential descision
16399 -is made by using the \fB-x\fP option of \fItic\fP to compile
16400 +Normally these names are available for use, since the essential decision
16401 +is made by using the \fB\-x\fP option of \fItic\fP to compile
16402 extended terminal definitions.
16403 However you can disable this feature
16404 -to ensure compatiblity with other implementations of curses
16405 +to ensure compatiblity with other implementations of curses.
16407 These routines are specific to ncurses. They were not supported on
16408 Version 7, BSD or System V implementations. It is recommended that
16409 diff -urNd -urNd ncurses-5.3/man/curs_get_wch.3x ncurses-5.3.20030906.orig/man/curs_get_wch.3x
16410 --- ncurses-5.3/man/curs_get_wch.3x Sat May 18 16:48:53 2002
16411 +++ ncurses-5.3.20030906.orig/man/curs_get_wch.3x Tue May 13 20:08:22 2003
16413 .\"***************************************************************************
16414 -.\" Copyright (c) 2002 Free Software Foundation, Inc. *
16415 +.\" Copyright (c) 2002,2003 Free Software Foundation, Inc. *
16417 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16418 .\" copy of this software and associated documentation files (the *
16420 .\" authorization. *
16421 .\"***************************************************************************
16423 -.\" $Id: curs_get_wch.3x,v 1.3 2002/05/18 21:48:53 tom Exp $
16424 +.\" $Id: curs_get_wch.3x,v 1.5 2003/05/10 20:33:49 jmc Exp $
16425 .TH curs_get_wch 3X ""
16428 @@ -37,13 +37,13 @@
16430 \fB#include <curses.h>\fR
16432 -\fBint get_wch(win_t *\fR\fIwch\fR\fB);\fR
16433 +\fBint get_wch(wint_t *\fR\fIwch\fR\fB);\fR
16435 -\fBint wget_wch(WINDOW *\fR\fIwin\fR\fB, win_t *\fR\fIwch\fR\fB);\fR
16436 +\fBint wget_wch(WINDOW *\fR\fIwin\fR\fB, wint_t *\fR\fIwch\fR\fB);\fR
16438 -\fBint mvget_wch(int \fR\fIy\fR\fB, int \fR\fIx\fR\fB, win_t *\fR\fIwch\fR\fB);\fR
16439 +\fBint mvget_wch(int \fR\fIy\fR\fB, int \fR\fIx\fR\fB, wint_t *\fR\fIwch\fR\fB);\fR
16441 -\fBint mvwget_wch(WINDOW *\fR\fIwin\fR\fB, int \fR\fIy\fR\fB, int \fR\fIx\fR\fB, win_t *\fR\fIwch\fR\fB);\fR
16442 +\fBint mvwget_wch(WINDOW *\fR\fIwin\fR\fB, int \fR\fIy\fR\fB, int \fR\fIx\fR\fB, wint_t *\fR\fIwch\fR\fB);\fR
16444 \fBint unget_wch(const wchar_t \fR\fIwch\fR\fB);\fR
16446 @@ -130,7 +130,7 @@
16447 Depending on the state of the tty driver when each character
16448 is typed, the program may produce undesirable results.
16450 -All functions except \fBwget_wch\fR and \fBunget_wch\fR
16451 +All functions except \fBwget_wch\fR and \fBunget_wch\fR
16455 diff -urNd -urNd ncurses-5.3/man/curs_get_wstr.3x ncurses-5.3.20030906.orig/man/curs_get_wstr.3x
16456 --- ncurses-5.3/man/curs_get_wstr.3x Sat May 18 16:48:15 2002
16457 +++ ncurses-5.3.20030906.orig/man/curs_get_wstr.3x Sun Jul 20 14:02:09 2003
16459 .\"***************************************************************************
16460 -.\" Copyright (c) 2002 Free Software Foundation, Inc. *
16461 +.\" Copyright (c) 2002,2003 Free Software Foundation, Inc. *
16463 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16464 .\" copy of this software and associated documentation files (the *
16466 .\" authorization. *
16467 .\"***************************************************************************
16469 -.\" $Id: curs_get_wstr.3x,v 1.2 2002/05/18 21:48:15 tom Exp $
16470 +.\" $Id: curs_get_wstr.3x,v 1.3 2003/07/05 11:15:28 tom Exp $
16471 .TH curs_get_wstr 3X ""
16474 @@ -151,6 +151,9 @@
16475 In the latter case,
16476 an ERR return without other data is treated as an end-of-file condition,
16477 and the returned array contains a \fBWEOF\fR followed by a null \fBwchar_t\fR.
16479 +X/Open curses documents these functions to pass an array of \fBwchar_t\fR,
16480 +but all of the vendors implement this using \fBwint_t\fR.
16484 diff -urNd -urNd ncurses-5.3/man/curs_getcchar.3x ncurses-5.3.20030906.orig/man/curs_getcchar.3x
16485 --- ncurses-5.3/man/curs_getcchar.3x Sat Mar 23 19:08:55 2002
16486 +++ ncurses-5.3.20030906.orig/man/curs_getcchar.3x Tue May 13 20:08:22 2003
16488 .\"***************************************************************************
16489 -.\" Copyright (c) 2001,2002 Free Software Foundation, Inc. *
16490 +.\" Copyright (c) 2001-2002,2003 Free Software Foundation, Inc. *
16492 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16493 .\" copy of this software and associated documentation files (the *
16495 .\" authorization. *
16496 .\"***************************************************************************
16498 -.\" $Id: curs_getcchar.3x,v 1.6 2002/03/24 01:08:55 tom Exp $
16499 +.\" $Id: curs_getcchar.3x,v 1.7 2003/05/10 20:33:49 jmc Exp $
16500 .TH curs_getcchar 3X ""
16503 @@ -108,7 +108,7 @@
16504 The string must be L'\\0' terminated,
16505 contain at most one character with strictly positive width,
16506 which must be the first,
16507 -and contain no characters of negative width.
16508 +and contain no characters of negative width.
16511 The \fIopts\fP argument is reserved for future use.
16512 diff -urNd -urNd ncurses-5.3/man/curs_getch.3x ncurses-5.3.20030906.orig/man/curs_getch.3x
16513 --- ncurses-5.3/man/curs_getch.3x Sun Mar 17 08:36:21 2002
16514 +++ ncurses-5.3.20030906.orig/man/curs_getch.3x Tue May 13 20:08:22 2003
16517 .\"***************************************************************************
16518 -.\" Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
16519 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
16521 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16522 .\" copy of this software and associated documentation files (the *
16524 .\" authorization. *
16525 .\"***************************************************************************
16527 -.\" $Id: curs_getch.3x,v 1.21 2002/03/17 14:36:21 tom Exp $
16528 +.\" $Id: curs_getch.3x,v 1.22 2003/05/10 20:33:49 jmc Exp $
16529 .TH curs_getch 3X ""
16533 that function key is returned instead of the raw characters.
16535 keys are defined in \fB<curses.h>\fR as macros with values outside the range
16536 -of 8-bit characters whose names begin with \fBKEY_.\fR Thus, a variable
16537 +of 8-bit characters whose names begin with \fBKEY_\fR. Thus, a variable
16538 intended to hold the return value of a function key must be of short size or
16541 @@ -143,7 +143,7 @@
16542 KEY_SRESET/Soft (partial) reset
16543 KEY_RESET/Reset or hard reset
16544 KEY_PRINT/Print or copy
16545 -KEY_LL/Home down or bottom (lower left).
16546 +KEY_LL/Home down or bottom (lower left)
16547 KEY_A1/Upper left of keypad
16548 KEY_A3/Upper right of keypad
16549 KEY_B2/Center of keypad
16550 @@ -238,7 +238,7 @@
16551 treat these control keys specially (and ignore the terminfo), or
16552 use the terminfo definitions.
16553 \fBNcurses\fR uses the terminfo definition.
16554 -If it says that KEY_ENTER is control/M, \fBgetch\fR, will return KEY_ENTER
16555 +If it says that KEY_ENTER is control/M, \fBgetch\fR will return KEY_ENTER
16556 when you press control/M.
16558 When using \fBgetch\fR, \fBwgetch\fR, \fBmvgetch\fR, or
16559 diff -urNd -urNd ncurses-5.3/man/curs_getstr.3x ncurses-5.3.20030906.orig/man/curs_getstr.3x
16560 --- ncurses-5.3/man/curs_getstr.3x Sat Apr 13 17:14:30 2002
16561 +++ ncurses-5.3.20030906.orig/man/curs_getstr.3x Tue May 13 20:08:22 2003
16563 .\"***************************************************************************
16564 -.\" Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
16565 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
16567 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16568 .\" copy of this software and associated documentation files (the *
16570 .\" authorization. *
16571 .\"***************************************************************************
16573 -.\" $Id: curs_getstr.3x,v 1.11 2002/04/13 22:14:30 tom Exp $
16574 +.\" $Id: curs_getstr.3x,v 1.12 2003/05/10 20:33:49 jmc Exp $
16575 .TH curs_getstr 3X ""
16580 SVr3 and early SVr4 curses implementations did not reject function keys;
16581 the SVr4.0 documentation claimed that "special keys" (such as function
16582 -keys, "home" key, "clear" key, \fIetc\fR.) are interpreted" without
16583 +keys, "home" key, "clear" key, \fIetc\fR.) are "interpreted", without
16584 giving details. It lied. In fact, the `character' value appended to the
16585 string by those implementations was predictable but not useful
16586 (being, in fact, the low-order eight bits of the key's KEY_ value).
16587 diff -urNd -urNd ncurses-5.3/man/curs_getyx.3x ncurses-5.3.20030906.orig/man/curs_getyx.3x
16588 --- ncurses-5.3/man/curs_getyx.3x Sat Sep 21 14:00:38 2002
16589 +++ ncurses-5.3.20030906.orig/man/curs_getyx.3x Tue May 13 20:08:22 2003
16591 .\"***************************************************************************
16592 -.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
16593 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
16595 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16596 .\" copy of this software and associated documentation files (the *
16598 .\" authorization. *
16599 .\"***************************************************************************
16601 -.\" $Id: curs_getyx.3x,v 1.8 2002/09/21 19:00:38 tom Exp $
16602 +.\" $Id: curs_getyx.3x,v 1.10 2003/05/10 20:33:49 jmc Exp $
16603 .TH curs_getyx 3X ""
16617 Like \fBgetyx\fR, the \fBgetbegyx\fR and \fBgetmaxyx\fR macros store
16618 the current beginning coordinates and size of the specified window.
16620 -The return values of these macros are undefined (\fIi\fR.\fIe\fR.,
16621 +The return values of these macros are undefined (i.e.,
16622 they should not be used as the right-hand side of assignment statements).
16624 All of these interfaces are macros.
16625 diff -urNd -urNd ncurses-5.3/man/curs_initscr.3x ncurses-5.3.20030906.orig/man/curs_initscr.3x
16626 --- ncurses-5.3/man/curs_initscr.3x Sat Jul 20 09:51:04 2002
16627 +++ ncurses-5.3.20030906.orig/man/curs_initscr.3x Tue May 13 20:08:22 2003
16629 .\"***************************************************************************
16630 -.\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
16631 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
16633 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16634 .\" copy of this software and associated documentation files (the *
16636 .\" authorization. *
16637 .\"***************************************************************************
16639 -.\" $Id: curs_initscr.3x,v 1.11 2002/07/20 14:51:04 tom Exp $
16640 +.\" $Id: curs_initscr.3x,v 1.12 2003/05/10 20:33:49 jmc Exp $
16641 .TH curs_initscr 3X ""
16644 @@ -111,7 +111,7 @@
16646 Old versions of curses, e.g., BSD 4.4, may have returned a null pointer
16647 from \fBinitscr\fR when an error is detected, rather than exiting.
16648 -It is safe but redundant to check the return value of \fBinitscr\fR
16649 +It is safe but redundant to check the return value of \fBinitscr\fR
16652 \fBcurses\fR(3X), \fBcurs_kernel\fR(3X), \fBcurs_refresh\fR(3X),
16653 diff -urNd -urNd ncurses-5.3/man/curs_inopts.3x ncurses-5.3.20030906.orig/man/curs_inopts.3x
16654 --- ncurses-5.3/man/curs_inopts.3x Sat Aug 10 17:29:49 2002
16655 +++ ncurses-5.3.20030906.orig/man/curs_inopts.3x Tue May 13 20:08:22 2003
16657 .\"***************************************************************************
16658 -.\" Copyright (c) 1998,2001 Free Software Foundation, Inc. *
16659 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
16661 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16662 .\" copy of this software and associated documentation files (the *
16664 .\" authorization. *
16665 .\"***************************************************************************
16667 -.\" $Id: curs_inopts.3x,v 1.9 2002/08/10 22:29:49 tom Exp $
16668 +.\" $Id: curs_inopts.3x,v 1.10 2003/05/10 20:33:49 jmc Exp $
16669 .TH curs_inopts 3X ""
16671 \fBcbreak\fR, \fBnocbreak\fR, \fBecho\fR,
16672 @@ -163,9 +163,9 @@
16674 The \fBtimeout\fR and \fBwtimeout\fR routines set blocking or
16675 non-blocking read for a given window. If \fIdelay\fR is negative,
16676 -blocking read is used (\fIi\fR.\fIe\fR., waits indefinitely for
16677 +blocking read is used (i.e., waits indefinitely for
16678 input). If \fIdelay\fR is zero, then non-blocking read is used
16679 -(\fIi\fR.\fIe\fR., read returns \fBERR\fR if no input is waiting). If
16680 +(i.e., read returns \fBERR\fR if no input is waiting). If
16681 \fIdelay\fR is positive, then read blocks for \fIdelay\fR
16682 milliseconds, and returns \fBERR\fR if there is still no input.
16683 Hence, these routines provide the same functionality as \fBnodelay\fR,
16684 @@ -193,7 +193,7 @@
16685 AT&T curses implementations, in that the echo bit is cleared when curses
16686 initializes the terminal state. BSD curses differed from this slightly; it
16687 left the echo bit on at initialization, but the BSD \fBraw\fR call turned it
16688 -off as a side-effect. For best portability, set echo or noecho explicitly
16689 +off as a side-effect. For best portability, set echo or noecho explicitly
16690 just after initialization, even if your program remains in cooked mode.
16692 Note that \fBecho\fR, \fBnoecho\fR, \fBhalfdelay\fR, \fBintrflush\fR,
16693 diff -urNd -urNd ncurses-5.3/man/curs_insch.3x ncurses-5.3.20030906.orig/man/curs_insch.3x
16694 --- ncurses-5.3/man/curs_insch.3x Sat Jul 1 14:57:21 2000
16695 +++ ncurses-5.3.20030906.orig/man/curs_insch.3x Tue May 13 20:08:22 2003
16697 .\"***************************************************************************
16698 -.\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
16699 +.\" Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
16701 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16702 .\" copy of this software and associated documentation files (the *
16704 .\" authorization. *
16705 .\"***************************************************************************
16707 -.\" $Id: curs_insch.3x,v 1.7 2000/07/01 19:57:21 tom Exp $
16708 +.\" $Id: curs_insch.3x,v 1.8 2003/05/10 20:33:49 jmc Exp $
16709 .TH curs_insch 3X ""
16713 \fBint mvwinsch(WINDOW *win, int y, int x, chtype ch);\fR
16716 -These routines, insert the character \fIch\fR before the character under the
16717 +These routines insert the character \fIch\fR before the character under the
16718 cursor. All characters to the right of the cursor are moved one space to the
16719 right, with the possibility of the rightmost character on the line being lost.
16720 The insertion operation does not change the cursor position.
16721 diff -urNd -urNd ncurses-5.3/man/curs_mouse.3x ncurses-5.3.20030906.orig/man/curs_mouse.3x
16722 --- ncurses-5.3/man/curs_mouse.3x Sat Jul 20 09:52:14 2002
16723 +++ ncurses-5.3.20030906.orig/man/curs_mouse.3x Tue May 13 20:08:22 2003
16726 .\"***************************************************************************
16727 -.\" Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
16728 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
16730 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16731 .\" copy of this software and associated documentation files (the *
16733 .\" authorization. *
16734 .\"***************************************************************************
16736 -.\" $Id: curs_mouse.3x,v 1.20 2002/07/20 14:52:14 tom Exp $
16737 +.\" $Id: curs_mouse.3x,v 1.22 2003/05/10 20:33:49 jmc Exp $
16738 .TH curs_mouse 3X ""
16740 \fBgetmouse\fR, \fBungetmouse\fR,
16741 @@ -149,8 +149,8 @@
16742 to screen-relative coordinates due to the mechanism to reserve lines on top
16743 or bottom of the screen for other purposes (ripoff() call, see also slk_...
16745 -If the parameter \fBto_screen\fR is \fBTRUE\fR, the pointers
16746 -\fBpY, pX\fR must reference the coordinates of a location inside the window
16747 +If the parameter \fBto_screen\fR is \fBTRUE\fR, the pointers
16748 +\fBpY, pX\fR must reference the coordinates of a location inside the window
16750 They are converted to screen-relative coordinates and returned
16751 through the pointers.
16752 @@ -168,7 +168,7 @@
16753 Please notice, that the referenced coordinates
16754 are only replaced by the converted coordinates if the transformation was
16758 The \fBmouseinterval\fR function sets the maximum time (in thousands of a
16759 second) that can elapse between press and release events for them to
16760 be recognized as a click.
16761 @@ -209,6 +209,14 @@
16762 \fBncurses\fR(3X) (and the \fBwmousemask\fR function will always
16765 +If the terminfo entry contains a \fBXM\fR string,
16766 +this is used in the xterm mouse driver to control the
16767 +way the terminal is initialized for mouse operation.
16768 +The default, if \fBXM\fR is not found,
16769 +corresponds to private mode 1000 of xterm:
16771 + \\E[?1000%?%p1%{1}%=%th%el%;
16773 The z member in the event structure is not presently used.
16775 for use with touch screens (which may be pressure-sensitive) or with
16776 diff -urNd -urNd ncurses-5.3/man/curs_outopts.3x ncurses-5.3.20030906.orig/man/curs_outopts.3x
16777 --- ncurses-5.3/man/curs_outopts.3x Sat Oct 13 19:50:30 2001
16778 +++ ncurses-5.3.20030906.orig/man/curs_outopts.3x Tue May 13 20:08:22 2003
16780 .\"***************************************************************************
16781 -.\" Copyright (c) 1998,2001 Free Software Foundation, Inc. *
16782 +.\" Copyright (c) 1998-2001,2003 Free Software Foundation, Inc. *
16784 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16785 .\" copy of this software and associated documentation files (the *
16787 .\" authorization. *
16788 .\"***************************************************************************
16790 -.\" $Id: curs_outopts.3x,v 1.17 2001/10/14 00:50:30 tom Exp $
16791 +.\" $Id: curs_outopts.3x,v 1.18 2003/05/10 20:33:49 jmc Exp $
16792 .TH curs_outopts 3X ""
16794 \fBclearok\fR, \fBidlok\fR, \fBidcok\fR, \fBimmedok\fR,
16797 If \fBimmedok\fR is called with \fBTRUE as argument\fR, any change
16798 in the window image, such as the ones caused by \fBwaddch, wclrtobot, wscrl\fR,
16799 -\fIetc\fR., automatically cause a call to \fBwrefresh\fR.
16800 +etc., automatically cause a call to \fBwrefresh\fR.
16802 degrade performance considerably, due to repeated calls to \fBwrefresh\fR.
16803 It is disabled by default.
16804 @@ -165,7 +165,7 @@
16805 This will not work under
16808 -Earlier System V curses implementations specified that with \fBscrollok\fR
16809 +Earlier System V curses implementations specified that with \fBscrollok\fR
16810 enabled, any window modification triggering a scroll also forced a physical
16812 XSI Curses does not require this, and \fBncurses\fR avoids doing
16813 diff -urNd -urNd ncurses-5.3/man/curs_pad.3x ncurses-5.3.20030906.orig/man/curs_pad.3x
16814 --- ncurses-5.3/man/curs_pad.3x Tue Jul 4 17:38:13 2000
16815 +++ ncurses-5.3.20030906.orig/man/curs_pad.3x Tue May 13 20:08:22 2003
16817 .\"***************************************************************************
16818 -.\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
16819 +.\" Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
16821 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16822 .\" copy of this software and associated documentation files (the *
16824 .\" authorization. *
16825 .\"***************************************************************************
16827 -.\" $Id: curs_pad.3x,v 1.9 2000/07/04 22:38:13 tom Exp $
16828 +.\" $Id: curs_pad.3x,v 1.10 2003/05/10 20:33:49 jmc Exp $
16831 \fBnewpad\fR, \fBsubpad\fR, \fBprefresh\fR,
16833 screen size, and is not necessarily associated with a particular part of the
16834 screen. Pads can be used when a large window is needed, and only a part of the
16835 window will be on the screen at one time. Automatic refreshes of pads
16836 -(\fIe\fR.\fIg\fR., from scrolling or echoing of input) do not occur. It is not
16837 +(e.g., from scrolling or echoing of input) do not occur. It is not
16838 legal to call \fBwrefresh\fR with a \fIpad\fR as an argument; the routines
16839 \fBprefresh\fR or \fBpnoutrefresh\fR should be called instead. Note that these
16840 routines require additional parameters to specify the part of the pad to be
16842 The \fBpechochar\fR routine is functionally equivalent to a call to \fBaddch\fR
16843 followed by a call to \fBrefresh\fR, a call to \fBwaddch\fR followed by a call
16844 to \fBwrefresh\fR, or a call to \fBwaddch\fR followed by a call to
16845 -\fBprefresh.\fR The knowledge that only a single character is being output is
16846 +\fBprefresh\fR. The knowledge that only a single character is being output is
16847 taken into consideration and, for non-control characters, a considerable
16848 performance gain might be seen by using these routines instead of their
16849 equivalents. In the case of \fBpechochar\fR, the last location of the pad on
16853 Routines that return pointers return \fBNULL\fR on error, and set \fBerrno\fR
16857 Note that \fBpechochar\fR may be a macro.
16859 diff -urNd -urNd ncurses-5.3/man/curs_print.3x ncurses-5.3.20030906.orig/man/curs_print.3x
16860 --- ncurses-5.3/man/curs_print.3x Sat Feb 16 16:39:04 2002
16861 +++ ncurses-5.3.20030906.orig/man/curs_print.3x Tue May 13 20:08:22 2003
16863 .\"***************************************************************************
16864 -.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
16865 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
16867 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16868 .\" copy of this software and associated documentation files (the *
16870 .\" authorization. *
16871 .\"***************************************************************************
16873 -.\" $Id: curs_print.3x,v 1.5 2002/02/16 22:39:04 tom Exp $
16874 +.\" $Id: curs_print.3x,v 1.6 2003/05/10 20:33:49 jmc Exp $
16875 .TH curs_print 3X ""
16877 \fBmcprint\fR - ship binary data to printer
16879 rule of thumb is to sleep for a second after shipping each 80-character line.
16882 -The \fBmcprint\fR function returns \fBERR\fR if the write operation aborted
16883 +The \fBmcprint\fR function returns \fBERR\fR if the write operation aborted
16884 for some reason. In this case, errno will contain either an error associated
16885 with \fBwrite(2)\fR or one of the following:
16887 diff -urNd -urNd ncurses-5.3/man/curs_printw.3x ncurses-5.3.20030906.orig/man/curs_printw.3x
16888 --- ncurses-5.3/man/curs_printw.3x Sat Jul 20 10:01:43 2002
16889 +++ ncurses-5.3.20030906.orig/man/curs_printw.3x Tue May 13 20:08:22 2003
16891 .\" authorization. *
16892 .\"***************************************************************************
16894 -.\" $Id: curs_printw.3x,v 1.12 2002/07/20 15:01:43 tom Exp $
16895 +.\" $Id: curs_printw.3x,v 1.13 2002/11/16 22:28:57 tom Exp $
16896 .TH curs_printw 3X ""
16899 @@ -37,17 +37,17 @@
16901 \fB#include <curses.h>\fR
16903 -\fBint printw(char *fmt, ...);\fR
16904 +\fBint printw(const char *fmt, ...);\fR
16906 -\fBint wprintw(WINDOW *win, char *fmt, ...);\fR
16907 +\fBint wprintw(WINDOW *win, const char *fmt, ...);\fR
16909 -\fBint mvprintw(int y, int x, char *fmt, ...);\fR
16910 +\fBint mvprintw(int y, int x, const char *fmt, ...);\fR
16912 -\fBint mvwprintw(WINDOW *win, int y, int x, char *fmt, ...);\fR
16913 +\fBint mvwprintw(WINDOW *win, int y, int x, const char *fmt, ...);\fR
16915 -\fBint vwprintw(WINDOW *win, char *fmt, va_list varglist);\fR
16916 +\fBint vwprintw(WINDOW *win, const char *fmt, va_list varglist);\fR
16918 -\fBint vw_printw(WINDOW *win, char *fmt, va_list varglist);\fR
16919 +\fBint vw_printw(WINDOW *win, const char *fmt, va_list varglist);\fR
16922 The \fBprintw\fR, \fBwprintw\fR, \fBmvprintw\fR and \fBmvwprintw\fR
16923 diff -urNd -urNd ncurses-5.3/man/curs_scroll.3x ncurses-5.3.20030906.orig/man/curs_scroll.3x
16924 --- ncurses-5.3/man/curs_scroll.3x Sat Oct 13 19:51:56 2001
16925 +++ ncurses-5.3.20030906.orig/man/curs_scroll.3x Tue May 13 20:08:22 2003
16927 .\"***************************************************************************
16928 -.\" Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
16929 +.\" Copyright (c) 1998-2001,2003 Free Software Foundation, Inc. *
16931 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16932 .\" copy of this software and associated documentation files (the *
16934 .\" authorization. *
16935 .\"***************************************************************************
16937 -.\" $Id: curs_scroll.3x,v 1.9 2001/10/14 00:51:56 tom Exp $
16938 +.\" $Id: curs_scroll.3x,v 1.10 2003/05/10 20:33:49 jmc Exp $
16939 .TH curs_scroll 3X ""
16941 \fBscroll\fR, \fBscrl\fR, \fBwscrl\fR - scroll a \fBcurses\fR window
16942 @@ -61,12 +61,12 @@
16944 Note that \fBscrl\fR and \fBscroll\fR may be macros.
16946 -The SVr4 documentation says that the optimization of physically scrolling
16947 +The SVr4 documentation says that the optimization of physically scrolling
16948 immediately if the scroll region is the entire screen "is" performed, not
16949 "may be" performed.
16950 This implementation deliberately does not guarantee
16951 that this will occur, to leave open the possibility of smarter
16952 -optimization of multiple scroll actions on the next update.
16953 +optimization of multiple scroll actions on the next update.
16955 Neither the SVr4 nor the XSI documentation specify whether the current
16957 diff -urNd -urNd ncurses-5.3/man/curs_slk.3x ncurses-5.3.20030906.orig/man/curs_slk.3x
16958 --- ncurses-5.3/man/curs_slk.3x Sat Mar 3 15:05:41 2001
16959 +++ ncurses-5.3.20030906.orig/man/curs_slk.3x Tue May 13 20:08:22 2003
16961 .\"***************************************************************************
16962 -.\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
16963 +.\" Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
16965 .\" Permission is hereby granted, free of charge, to any person obtaining a *
16966 .\" copy of this software and associated documentation files (the *
16968 .\" authorization. *
16969 .\"***************************************************************************
16971 -.\" $Id: curs_slk.3x,v 1.11 2001/03/03 21:05:41 Todd.C.Miller Exp $
16972 +.\" $Id: curs_slk.3x,v 1.12 2003/05/10 20:33:49 jmc Exp $
16975 \fBslk_init\fR, \fBslk_set\fR, \fBslk_refresh\fR,
16977 many terminals. For those terminals that do not have soft labels,
16978 \fBcurses\fR takes over the bottom line of \fBstdscr\fR, reducing the size of
16979 \fBstdscr\fR and the variable \fBLINES\fR. \fBcurses\fR standardizes on eight
16980 -labels of up to eight characters each. In addition to this, the ncurses
16981 +labels of up to eight characters each. In addition to this, the ncurses
16982 implementation supports a mode where it simulates 12 labels of up to five
16983 characters each. This is most common for todays PC like enduser devices.
16984 Please note that ncurses simulates this mode by taking over up to two lines at
16985 @@ -94,10 +94,10 @@
16986 identify the key numbers easily.
16988 The \fBslk_set\fR routine requires \fIlabnum\fR to be a label number,
16989 -from \fB1\fR to \fB8\fR (resp. \fB12\fR); \fIlabel\fR must be the string
16990 +from \fB1\fR to \fB8\fR (resp. \fB12\fR); \fIlabel\fR must be the string
16991 to be put on the label, up to eight (resp. five) characters in length.
16992 A null string or a null pointer sets up a blank label. \fIfmt\fR is either
16993 -\fB0\fR, \fB1\fR, or \fB2\fR, indicating whether the label is to be
16994 +\fB0\fR, \fB1\fR, or \fB2\fR, indicating whether the label is to be
16995 left-justified, centered, or right-justified, respectively, within the
16998 @@ -109,7 +109,7 @@
17000 The \fBslk_clear\fR routine clears the soft labels from the screen.
17002 -The \fBslk_restore\fR routine, restores the soft labels to the screen
17003 +The \fBslk_restore\fR routine restores the soft labels to the screen
17004 after a \fBslk_clear\fR has been performed.
17006 The \fBslk_touch\fR routine forces all the soft labels to be output
17007 @@ -118,7 +118,7 @@
17008 The \fBslk_attron\fR, \fBslk_attrset\fR, \fBslk_attroff\fR and \fBslk_attr\fR
17009 routines correspond to \fBattron\fR, \fBattrset\fR, \fBattroff\fR and \fBattr_get\fR.
17010 They have an effect only if soft labels are simulated on the bottom line of
17011 -the screen. The default highlight for soft keys is A_STANDOUT (as in
17012 +the screen. The default highlight for soft keys is A_STANDOUT (as in
17013 System V curses, which does not document this fact).
17015 The \fBslk_color\fR routine corresponds to \fBcolor_set\fR. It has an effect only
17016 diff -urNd -urNd ncurses-5.3/man/curs_termcap.3x ncurses-5.3.20030906.orig/man/curs_termcap.3x
17017 --- ncurses-5.3/man/curs_termcap.3x Sat Feb 16 13:26:41 2002
17018 +++ ncurses-5.3.20030906.orig/man/curs_termcap.3x Tue May 13 20:08:22 2003
17020 .\"***************************************************************************
17021 -.\" Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
17022 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
17024 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17025 .\" copy of this software and associated documentation files (the *
17027 .\" authorization. *
17028 .\"***************************************************************************
17030 -.\" $Id: curs_termcap.3x,v 1.16 2002/02/16 19:26:41 tom Exp $
17031 +.\" $Id: curs_termcap.3x,v 1.18 2003/02/08 22:25:47 tom Exp $
17032 .TH curs_termcap 3X ""
17035 @@ -130,6 +130,12 @@
17036 Because terminfo conventions for representing padding in string capabilities
17037 differ from termcap's, \fBtputs("50");\fR will put out a literal "50" rather
17038 than busy-waiting for 50 milliseconds. Cope with it.
17040 +Note that termcap has nothing analogous to terminfo's \fBsgr\fR string.
17041 +One consequence of this is that termcap applications assume \fRme\fR
17042 +(terminfo \fBsgr0\fR) does not reset the alternate character set.
17043 +This implementation checks for, and modifies the data shown to the
17044 +termcap interface to accommodate termcap's limitation in this respect.
17046 The XSI Curses standard, Issue 4 describes these functions. However, they
17047 are marked TO BE WITHDRAWN and may be removed in future versions.
17048 diff -urNd -urNd ncurses-5.3/man/curs_terminfo.3x ncurses-5.3.20030906.orig/man/curs_terminfo.3x
17049 --- ncurses-5.3/man/curs_terminfo.3x Sat Jul 20 11:05:19 2002
17050 +++ ncurses-5.3.20030906.orig/man/curs_terminfo.3x Tue May 13 20:08:22 2003
17052 .\"***************************************************************************
17053 -.\" Copyright (c) 1999-2000,2002 Free Software Foundation, Inc. *
17054 +.\" Copyright (c) 1999-2002,2003 Free Software Foundation, Inc. *
17056 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17057 .\" copy of this software and associated documentation files (the *
17059 .\" authorization. *
17060 .\"***************************************************************************
17062 -.\" $Id: curs_terminfo.3x,v 1.16 2002/07/20 16:05:19 tom Exp $
17063 +.\" $Id: curs_terminfo.3x,v 1.17 2003/05/10 20:22:01 tom Exp $
17064 .TH curs_terminfo 3X ""
17067 @@ -108,7 +108,7 @@
17069 The header files \fBcurses.h\fR and \fBterm.h\fR should be included (in this
17070 order) to get the definitions for these strings, numbers, and flags.
17071 -Parameterized strings should be passed through \fBtparm\fR to instantiate them.
17072 +Parameterized strings should be passed through \fBtparm\fR to instantiate them.
17073 All \fBterminfo\fR strings [including the output of \fBtparm\fR] should be printed
17074 with \fBtputs\fR or \fBputp\fR. Call the \fBreset_shell_mode\fR to restore the
17075 tty modes before exiting [see \fBcurs_kernel\fR(3X)]. Programs which use
17076 @@ -280,7 +280,7 @@
17077 actual terminal state, and that an application should touch and refresh
17078 the window before resuming normal curses calls.
17079 Both ncurses and System V Release 4 curses implement \fBmvcur\fR using
17080 -the SCREEN data allocated in either \fBinitscr\fR or \fBnewterm\fR.
17081 +the SCREEN data allocated in either \fBinitscr\fR or \fBnewterm\fR.
17082 So though it is documented as a terminfo function,
17083 \fBmvcur\fR is really a curses function which is not well specified.
17085 diff -urNd -urNd ncurses-5.3/man/curs_util.3x ncurses-5.3.20030906.orig/man/curs_util.3x
17086 --- ncurses-5.3/man/curs_util.3x Sun Sep 1 14:44:37 2002
17087 +++ ncurses-5.3.20030906.orig/man/curs_util.3x Sun Jul 20 14:02:09 2003
17089 .\"***************************************************************************
17090 -.\" Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
17091 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
17093 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17094 .\" copy of this software and associated documentation files (the *
17096 .\" authorization. *
17097 .\"***************************************************************************
17099 -.\" $Id: curs_util.3x,v 1.9 2002/09/01 19:44:37 tom Exp $
17100 +.\" $Id: curs_util.3x,v 1.11 2003/07/19 19:59:56 tom Exp $
17101 .TH curs_util 3X ""
17103 \fBdelay_output\fR,
17106 \fBchar *unctrl(chtype c);\fR
17108 -\fBchar *wunctrl(wchar_t w);\fR
17109 +\fBchar *wunctrl(cchar_t *c);\fR
17111 \fBchar *keyname(int c);\fR
17113 @@ -105,6 +105,7 @@
17114 The \fBdelay_output\fR routine inserts an \fIms\fR millisecond pause
17115 in output. This routine should not be used extensively because
17116 padding characters are used rather than a CPU pause.
17117 +If no padding character is specified, this uses \fBnapms\fR to perform the delay.
17119 The \fBflushinp\fR routine throws away any typeahead that has been typed by the
17120 user and has not yet been read by the program.
17121 @@ -125,7 +126,10 @@
17122 terms. The description here is adapted from the XSI Curses standard (which
17123 erroneously fails to describe the disabling of \fBcuu\fR).
17125 -\fBcurses\fR(3X), \fBcurs_initscr\fR(3X), \fBcurs_scr_dump\fR(3X).
17127 +\fBcurs_initscr\fR(3X),
17128 +\fBcurs_kernel\fR(3X),
17129 +\fBcurs_scr_dump\fR(3X).
17131 .\"# The following sets edit modes for GNU EMACS
17132 .\"# Local Variables:
17133 diff -urNd -urNd ncurses-5.3/man/curs_window.3x ncurses-5.3.20030906.orig/man/curs_window.3x
17134 --- ncurses-5.3/man/curs_window.3x Sat Jul 1 15:08:37 2000
17135 +++ ncurses-5.3.20030906.orig/man/curs_window.3x Tue May 13 20:08:22 2003
17137 .\"***************************************************************************
17138 -.\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
17139 +.\" Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
17141 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17142 .\" copy of this software and associated documentation files (the *
17144 .\" authorization. *
17145 .\"***************************************************************************
17147 -.\" $Id: curs_window.3x,v 1.9 2000/07/01 20:08:37 tom Exp $
17148 +.\" $Id: curs_window.3x,v 1.10 2003/05/10 20:33:49 jmc Exp $
17149 .TH curs_window 3X ""
17152 @@ -142,7 +142,7 @@
17153 incompletely implemented, and not well tested.
17155 The System V curses documentation is very unclear about what \fBwsyncup\fR
17156 -and \fBwsyncdown\fR actually do. It seems to imply that they are only
17157 +and \fBwsyncdown\fR actually do. It seems to imply that they are only
17158 supposed to touch exactly those lines that are affected by ancestor changes.
17159 The language here, and the behavior of the \fBcurses\fR implementation,
17160 is patterned on the XPG4 curses standard. The weaker XPG4 spec may result
17161 diff -urNd -urNd ncurses-5.3/man/define_key.3x ncurses-5.3.20030906.orig/man/define_key.3x
17162 --- ncurses-5.3/man/define_key.3x Sat Feb 16 16:39:52 2002
17163 +++ ncurses-5.3.20030906.orig/man/define_key.3x Sun Jul 20 14:02:08 2003
17165 .\"***************************************************************************
17166 -.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
17167 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
17169 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17170 .\" copy of this software and associated documentation files (the *
17171 @@ -28,14 +28,14 @@
17173 .\" Author: Thomas E. Dickey <dickey@clark.net> 1997
17175 -.\" $Id: define_key.3x,v 1.8 2002/02/16 22:39:52 tom Exp $
17176 +.\" $Id: define_key.3x,v 1.9 2003/05/17 23:25:11 tom Exp $
17177 .TH define_key 3X ""
17179 \fBdefine_key\fP \- define a keycode
17181 \fB#include <curses.h>\fP
17183 -\fBint define_key(char *definition, int keycode);\fP
17184 +\fBint define_key(const char *definition, int keycode);\fP
17186 This is an extension to the curses library.
17187 It permits an application to define keycodes with their corresponding control
17188 diff -urNd -urNd ncurses-5.3/man/form_field.3x ncurses-5.3.20030906.orig/man/form_field.3x
17189 --- ncurses-5.3/man/form_field.3x Sat Nov 28 19:05:52 1998
17190 +++ ncurses-5.3.20030906.orig/man/form_field.3x Tue May 13 20:08:22 2003
17193 .\"***************************************************************************
17194 -.\" Copyright (c) 1998 Free Software Foundation, Inc. *
17195 +.\" Copyright (c) 1998,2003 Free Software Foundation, Inc. *
17197 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17198 .\" copy of this software and associated documentation files (the *
17200 .\" authorization. *
17201 .\"***************************************************************************
17203 -.\" $Id: form_field.3x,v 1.5 1998/11/29 01:05:52 Rick.Ohnemus Exp $
17204 +.\" $Id: form_field.3x,v 1.6 2003/05/10 20:33:49 jmc Exp $
17205 .TH form_field 3X ""
17207 \fBform_field\fR - make and break connections between fields and forms
17210 The function \fBfield_count\fR returns the count of fields in \fIform\fR.
17212 -The function \fBmove_field\fR move the given field (which must be disconnected)
17213 +The function \fBmove_field\fR moves the given field (which must be disconnected)
17214 to a specified location on the screen.
17216 The function \fBform_fields\fR returns \fBNULL\fR on error.
17217 diff -urNd -urNd ncurses-5.3/man/form_field_buffer.3x ncurses-5.3.20030906.orig/man/form_field_buffer.3x
17218 --- ncurses-5.3/man/form_field_buffer.3x Sat Jan 19 16:48:23 2002
17219 +++ ncurses-5.3.20030906.orig/man/form_field_buffer.3x Tue May 13 20:08:22 2003
17222 .\"***************************************************************************
17223 -.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
17224 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
17226 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17227 .\" copy of this software and associated documentation files (the *
17229 .\" authorization. *
17230 .\"***************************************************************************
17232 -.\" $Id: form_field_buffer.3x,v 1.9 2002/01/19 22:48:23 tom Exp $
17233 +.\" $Id: form_field_buffer.3x,v 1.10 2003/05/10 20:22:01 tom Exp $
17234 .TH form_field_buffer 3X ""
17236 \fBform_field_buffer\fR - field buffer control
17238 numbered buffers may be allocated by applications through the \fBnbuf\fR
17239 argument of (see \fBform_field_new\fR(3X)) but are not manipulated by the forms
17240 library. The function \fBfield_buffer\fR returns the address of the buffer.
17241 -Please note that this buffer has always the length of the buffer, that means
17242 +Please note that this buffer has always the length of the buffer, that means
17243 that it may typically contain trailing spaces. If you entered leading spaces
17244 the buffer may also contain them. If you want the raw data, you must write your
17245 own routine that copies the value out of the buffer and removes the leading
17246 diff -urNd -urNd ncurses-5.3/man/form_field_just.3x ncurses-5.3.20030906.orig/man/form_field_just.3x
17247 --- ncurses-5.3/man/form_field_just.3x Sat Jan 19 16:48:41 2002
17248 +++ ncurses-5.3.20030906.orig/man/form_field_just.3x Tue May 13 20:08:22 2003
17251 .\"***************************************************************************
17252 -.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
17253 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
17255 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17256 .\" copy of this software and associated documentation files (the *
17258 .\" authorization. *
17259 .\"***************************************************************************
17261 -.\" $Id: form_field_just.3x,v 1.6 2002/01/19 22:48:41 tom Exp $
17262 +.\" $Id: form_field_just.3x,v 1.7 2003/05/10 20:33:49 jmc Exp $
17263 .TH form_field_just 3X ""
17265 \fBform_field_just\fR - retrieve field characteristics
17267 The function \fBfield_just\fR returns one of: NO_JUSTIFICATION,
17268 JUSTIFY_RIGHT, JUSTIFY_LEFT, or JUSTIFY_CENTER.
17270 -The function \fBset_field_just\fR return one of the following:
17271 +The function \fBset_field_just\fR returns one of the following:
17274 The routine succeeded.
17275 diff -urNd -urNd ncurses-5.3/man/form_field_new.3x ncurses-5.3.20030906.orig/man/form_field_new.3x
17276 --- ncurses-5.3/man/form_field_new.3x Sat Feb 16 16:39:52 2002
17277 +++ ncurses-5.3.20030906.orig/man/form_field_new.3x Tue May 13 20:08:22 2003
17280 .\"***************************************************************************
17281 -.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
17282 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
17284 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17285 .\" copy of this software and associated documentation files (the *
17287 .\" authorization. *
17288 .\"***************************************************************************
17290 -.\" $Id: form_field_new.3x,v 1.11 2002/02/16 22:39:52 tom Exp $
17291 +.\" $Id: form_field_new.3x,v 1.12 2003/05/10 20:33:49 jmc Exp $
17292 .TH form_field_new 3X ""
17294 \fBform_field_new\fR - create and destroy form fields
17297 It may be unwise to count on the set of attributes copied by
17298 \fBdup_field\fR(3X) being portable; the System V forms library documents are
17299 -not very explicit on what gets copied and was not.
17300 +not very explicit about what gets copied and what doesn't.
17302 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
17304 diff -urNd -urNd ncurses-5.3/man/form_field_opts.3x ncurses-5.3.20030906.orig/man/form_field_opts.3x
17305 --- ncurses-5.3/man/form_field_opts.3x Sat Nov 28 19:06:54 1998
17306 +++ ncurses-5.3.20030906.orig/man/form_field_opts.3x Tue May 13 20:08:22 2003
17309 .\"***************************************************************************
17310 -.\" Copyright (c) 1998 Free Software Foundation, Inc. *
17311 +.\" Copyright (c) 1998,2003 Free Software Foundation, Inc. *
17313 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17314 .\" copy of this software and associated documentation files (the *
17316 .\" authorization. *
17317 .\"***************************************************************************
17319 -.\" $Id: form_field_opts.3x,v 1.7 1998/11/29 01:06:54 Rick.Ohnemus Exp $
17320 +.\" $Id: form_field_opts.3x,v 1.8 2003/05/10 20:33:49 jmc Exp $
17321 .TH form_field_opts 3X ""
17323 \fBform_field_opts\fR - set and get field options
17327 The field is displayed. If this option is off, display of the field is
17332 The field is visited during processing. If this option is off, the field will
17334 The field is cleared whenever a character is entered at the first position.
17337 -Skip to the next field when this one fills
17338 +Skip to the next field when this one fills.
17341 Allow a blank field.
17342 diff -urNd -urNd ncurses-5.3/man/form_field_validation.3x ncurses-5.3.20030906.orig/man/form_field_validation.3x
17343 --- ncurses-5.3/man/form_field_validation.3x Sat Feb 16 16:39:52 2002
17344 +++ ncurses-5.3.20030906.orig/man/form_field_validation.3x Tue May 13 20:08:22 2003
17346 .\"***************************************************************************
17347 -.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
17348 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
17350 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17351 .\" copy of this software and associated documentation files (the *
17352 @@ -26,10 +26,10 @@
17353 .\" authorization. *
17354 .\"***************************************************************************
17356 -.\" $Id: form_field_validation.3x,v 1.12 2002/02/16 22:39:52 tom Exp $
17357 +.\" $Id: form_field_validation.3x,v 1.14 2003/05/10 20:33:49 jmc Exp $
17358 .TH form_field_validation 3X ""
17360 -\fBform_field_validation\fR - data type validation for fields
17361 +\fBform_field_validation\fR - data type validation for fields
17363 \fB#include <form.h>\fR
17365 @@ -38,10 +38,25 @@
17366 FIELDTYPE *field_type(const FIELD *field);
17368 void *field_arg(const FIELD *field);
17370 +FIELDTYPE *TYPE_ALNUM;
17372 +FIELDTYPE *TYPE_ALPHA;
17374 +FIELDTYPE *TYPE_ENUM;
17376 +FIELDTYPE *TYPE_INTEGER;
17378 +FIELDTYPE *TYPE_NUMERIC;
17380 +FIELDTYPE *TYPE_REGEXP;
17382 +FIELDTYPE *TYPE_IPV4;
17385 The function \fBset_field_type\fR declares a data type for a given form field.
17386 -This is the type checked by validation functions. The types are as follows:
17387 +This is the type checked by validation functions.
17388 +The predefined types are as follows:
17391 Alphanumeric data. Requires a third \fBint\fR argument, a minimum field width.
17392 @@ -56,27 +71,29 @@
17393 match must be a unique one (if this flag is off, a prefix matches the first
17394 of any set of more than one list elements with that prefix). Please notice
17395 that the string list is not copied, only a reference to it is stored in the
17396 -field. So you should avoid to use a list that lives in automatic variables
17397 +field. So you should avoid using a list that lives in automatic variables
17401 Integer data, parsable to an integer by \fBatoi(3)\fR. Requires a third
17402 -\fBint\fR argument controlling the precision, a fourth \fBlong\fR argument
17403 +\fBint\fR argument controlling the precision, a fourth \fBlong\fR argument
17404 constraining minimum value, and a fifth \fBlong\fR constraining maximum value.
17405 -If the maximum value is less or equal the minimum value, the range is simply
17406 -ignored. On return the field buffer is formatted according to the \fBprintf\fR
17407 -format specification ".*ld", where the '*' is replaced by the precision argument.
17408 +If the maximum value is less than or equal to the minimum value, the range is
17409 +simply ignored. On return the field buffer is formatted according to the
17410 +\fBprintf\fR format specification ".*ld", where the '*' is replaced by the
17411 +precision argument.
17412 For details of the precision handling see \fBprintf's\fR man-page.
17415 Numeric data (may have a decimal-point part). Requires a third
17416 \fBint\fR argument controlling the precision, a fourth \fBdouble\fR
17417 -argument constraining minimum value, and a fifth \fBdouble\fR constraining
17418 -maximum value. If your system supports locale's, the decimal point character
17419 +argument constraining minimum value, and a fifth \fBdouble\fR constraining
17420 +maximum value. If your system supports locales, the decimal point character
17421 to be used must be the one specified by your locale.
17422 -If the maximum value is less or equal the minimum value, the range is simply
17423 -ignored. On return the field buffer is formatted according to the \fBprintf\fR
17424 -format specification ".*f", where the '*' is replaced by the precision argument.
17425 +If the maximum value is less than or equal to the minimum value, the range is
17426 +simply ignored. On return the field buffer is formatted according to the
17427 +\fBprintf\fR format specification ".*f", where the '*' is replaced by the
17428 +precision argument.
17429 For details of the precision handling see \fBprintf's\fR man-page.
17433 numbers between 0 and 255. Trailing blanks in the buffer are ignored. The address
17434 itself is not validated. Please note that this is an ncurses extension. This
17435 field type may not be available in other curses implementations.
17438 It is possible to set up new programmer-defined field types. See the
17439 \fBform_fieldtype\fR(3X) manual page.
17441 diff -urNd -urNd ncurses-5.3/man/form_fieldtype.3x ncurses-5.3.20030906.orig/man/form_fieldtype.3x
17442 --- ncurses-5.3/man/form_fieldtype.3x Sat Aug 4 15:36:25 2001
17443 +++ ncurses-5.3.20030906.orig/man/form_fieldtype.3x Tue May 13 20:08:22 2003
17446 .\"***************************************************************************
17447 -.\" Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
17448 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
17450 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17451 .\" copy of this software and associated documentation files (the *
17453 .\" authorization. *
17454 .\"***************************************************************************
17456 -.\" $Id: form_fieldtype.3x,v 1.9 2001/08/04 20:36:25 William.Setzer Exp $
17457 +.\" $Id: form_fieldtype.3x,v 1.12 2003/05/10 20:33:49 jmc Exp $
17458 .TH form_fieldtype 3X ""
17460 \fBform_fieldtype\fR - define validation-field types
17463 The function \fBnew_fieldtype\fR creates a new field type usable for data
17464 validation. You supply it with \fIfield_check\fR, a predicate to check the
17465 -validity of an entered data string whenever the user attempt to leave a field.
17466 +validity of an entered data string whenever the user attempts to leave a field.
17467 The (FIELD *) argument is passed in so the validation predicate can see the
17468 field's buffer, sizes and other attributes; the second argument is an
17469 argument-block structure, about which more below.
17470 @@ -69,22 +69,31 @@
17471 The function \fBfree_fieldtype\fR frees the space allocated for a given
17474 -The function \fBset_fieldtype\fR associates three storage-management functions
17475 -with a field type. The \fImak_arg\fR function is automatically applied to the
17476 +The function \fBset_fieldtype_arg\fR associates three storage-management functions
17477 +with a field type.
17478 +The \fImake_arg\fR function is automatically applied to the
17479 list of arguments you give \fBset_field_type\fR when attaching validation
17480 to a field; its job is to bundle these into an allocated argument-block
17481 -object which can later be passed to validation predicated. The other two
17482 -hook arguments should copy and free argument-block structures. They will
17483 -be used by the forms-driver code. You must supply the \fImak_arg\fR function,
17484 -the other two are optional, you may supply NULL for them. In this case it
17485 -is assumed, that \fImak_arg\fR doesn't allocate memory but simply loads the
17486 +object which can later be passed to validation predicated.
17487 +The other two hook arguments should copy and free argument-block structures.
17488 +They will be used by the forms-driver code.
17489 +You must supply the \fImake_arg\fR function,
17490 +the other two are optional, you may supply NULL for them.
17491 +In this case it is assumed
17492 +that \fImake_arg\fR does not allocate memory but simply loads the
17493 argument into a single scalar value.
17495 +The function \fBlink_fieldtype\fR creates
17496 +a new field type from the two given types.
17497 +They are connected by an logical 'OR'.
17499 The form driver requests \fBREQ_NEXT_CHOICE\fR and \fBREQ_PREV_CHOICE\fR assume
17500 that the possible values of a field form an ordered set, and provide the forms
17501 -user with a way to move through the set. The \fBset_fieldtype_choice\fR
17502 +user with a way to move through the set.
17503 +The \fBset_fieldtype_choice\fR
17504 function allows forms programmers to define successor and predecessor functions
17505 -for the field type. These functions take the field pointer and an
17506 +for the field type.
17507 +These functions take the field pointer and an
17508 argument-block structure as arguments.
17510 The pointer-valued routines return NULL on error.
17511 diff -urNd -urNd ncurses-5.3/man/infocmp.1m ncurses-5.3.20030906.orig/man/infocmp.1m
17512 --- ncurses-5.3/man/infocmp.1m Sat Oct 5 16:22:21 2002
17513 +++ ncurses-5.3.20030906.orig/man/infocmp.1m Tue May 13 20:08:22 2003
17516 .\"***************************************************************************
17517 -.\" Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
17518 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
17520 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17521 .\" copy of this software and associated documentation files (the *
17522 @@ -27,14 +27,14 @@
17523 .\" authorization. *
17524 .\"***************************************************************************
17526 -.\" $Id: infocmp.1m,v 1.30 2002/10/05 21:22:21 tom Exp $
17527 +.\" $Id: infocmp.1m,v 1.33 2003/05/11 00:32:53 tom Exp $
17532 \fBinfocmp\fR - compare or print out \fIterminfo\fR descriptions
17534 -\fBinfocmp\fR [\fB-\
17535 +\fBinfocmp\fR [\fB\-\
17543 - [\fB-v\fR \fIn\fR] [\fB-s d\fR| \fBi\fR| \fBl\fR| \fBc\fR] [\fB-R \fR\fBsubset\fR]
17544 + [\fB\-v\fR \fIn\fR] [\fB\-s d\fR| \fBi\fR| \fBl\fR| \fBc\fR] [\fB\-R \fR\fBsubset\fR]
17546 - [\fB-w\fR\ \fIwidth\fR] [\fB-A\fR\ \fIdirectory\fR] [\fB-B\fR\ \fIdirectory\fR]
17547 + [\fB\-w\fR\ \fIwidth\fR] [\fB\-A\fR\ \fIdirectory\fR] [\fB\-B\fR\ \fIdirectory\fR]
17549 [\fItermname\fR...]
17553 .SS Default Options
17554 If no options are specified and zero or one \fItermnames\fR are specified, the
17555 -\fB-I\fR option will be assumed. If more than one \fItermname\fR is specified,
17556 -the \fB-d\fR option will be assumed.
17557 -.SS Comparison Options [-d] [-c] [-n]
17558 +\fB\-I\fR option will be assumed. If more than one \fItermname\fR is specified,
17559 +the \fB\-d\fR option will be assumed.
17560 +.SS Comparison Options [\-d] [\-c] [\-n]
17561 \fBinfocmp\fR compares the \fBterminfo\fR description of the first terminal
17562 \fItermname\fR with each of the descriptions given by the entries for the other
17563 terminal's \fItermnames\fR. If a capability is defined for only one of the
17564 @@ -82,35 +82,35 @@
17565 \fBF\fR for boolean variables, \fB-1\fR for integer variables, and \fBNULL\fR
17566 for string variables.
17568 -The \fB-d\fR option produces a list of each capability that is different
17569 +The \fB\-d\fR option produces a list of each capability that is different
17570 between two entries. This option is useful to show the difference between two
17571 entries, created by different people, for the same or similar terminals.
17573 -The \fB-c\fR option produces a list of each capability that is common between
17574 +The \fB\-c\fR option produces a list of each capability that is common between
17575 two entries. Capabilities that are not set are ignored. This option can be
17576 -used as a quick check to see if the \fB-u\fR option is worth using.
17577 +used as a quick check to see if the \fB\-u\fR option is worth using.
17579 -The \fB-n\fR option produces a list of each capability that is in neither
17580 +The \fB\-n\fR option produces a list of each capability that is in neither
17581 entry. If no \fItermnames\fR are given, the environment variable \fBTERM\fR
17582 will be used for both of the \fItermnames\fR. This can be used as a quick
17583 check to see if anything was left out of a description.
17584 -.SS Source Listing Options [-I] [-L] [-C] [-r]
17585 -The \fB-I\fR, \fB-L\fR, and \fB-C\fR options will produce a source listing for
17586 +.SS Source Listing Options [\-I] [\-L] [\-C] [\-r]
17587 +The \fB\-I\fR, \fB\-L\fR, and \fB\-C\fR options will produce a source listing for
17588 each terminal named.
17593 -\fB-I\fR/use the \fBterminfo\fR names
17594 -\fB-L\fR/use the long C variable name listed in <\fBterm.h\fR>
17595 -\fB-C\fR/use the \fBtermcap\fR names
17596 -\fB-r\fR/when using \fB-C\fR, put out all capabilities in \fBtermcap\fR form
17597 +\fB\-I\fR/use the \fBterminfo\fR names
17598 +\fB\-L\fR/use the long C variable name listed in <\fBterm.h\fR>
17599 +\fB\-C\fR/use the \fBtermcap\fR names
17600 +\fB\-r\fR/when using \fB\-C\fR, put out all capabilities in \fBtermcap\fR form
17603 If no \fItermnames\fR are given, the environment variable \fBTERM\fR will be
17604 used for the terminal name.
17606 -The source produced by the \fB-C\fR option may be used directly as a
17607 +The source produced by the \fB\-C\fR option may be used directly as a
17608 \fBtermcap\fR entry, but not all parameterized strings can be changed to
17609 the \fBtermcap\fR format. \fBinfocmp\fR will attempt to convert most of the
17610 parameterized information, and anything not converted will be plainly marked in
17611 @@ -123,7 +123,7 @@
17612 All \fBtermcap\fR variables no longer supported by \fBterminfo\fR, but which
17613 are derivable from other \fBterminfo\fR variables, will be output. Not all
17614 \fBterminfo\fR capabilities will be translated; only those variables which were
17615 -part of \fBtermcap\fR will normally be output. Specifying the \fB-r\fR option
17616 +part of \fBtermcap\fR will normally be output. Specifying the \fB\-r\fR option
17617 will take off this restriction, allowing all capabilities to be output in
17618 \fItermcap\fR form.
17620 @@ -151,8 +151,8 @@
17621 \fB%p1%?%'x'%>%t%p1%'y'%+%;/%>xy\fR/concept
17622 \fB%p2\fR is printed before \fB%p1/%r\fR/hp
17624 -.SS Use= Option [-u]
17625 -The \fB-u\fR option produces a \fBterminfo\fR source description of the first
17626 +.SS Use= Option [\-u]
17627 +The \fB\-u\fR option produces a \fBterminfo\fR source description of the first
17628 terminal \fItermname\fR which is relative to the sum of the descriptions given
17629 by the entries for the other terminals \fItermnames\fR. It does this by
17630 analyzing the differences between the first \fItermname\fR and the other
17631 @@ -187,29 +187,29 @@
17632 the compilation time, is specifying extra \fBuse=\fR fields that are
17633 superfluous. \fBinfocmp\fR will flag any other \fItermname use=\fR fields that
17635 -.SS Changing Databases [-A \fIdirectory\fR] [-B \fIdirectory\fR]
17636 +.SS Changing Databases [\-A \fIdirectory\fR] [\-B \fIdirectory\fR]
17637 The location of the compiled \fBterminfo\fR database is taken from the
17638 environment variable \fBTERMINFO\fR . If the variable is not defined, or the
17639 terminal is not found in that location, the system \fBterminfo\fR database,
17640 -in \fB@TERMINFO@\fR, will be used. The options \fB-A\fR
17641 -and \fB-B\fR may be used to override this location. The \fB-A\fR option will
17642 -set \fBTERMINFO\fR for the first \fItermname\fR and the \fB-B\fR option will
17643 +in \fB@TERMINFO@\fR, will be used. The options \fB\-A\fR
17644 +and \fB\-B\fR may be used to override this location. The \fB\-A\fR option will
17645 +set \fBTERMINFO\fR for the first \fItermname\fR and the \fB\-B\fR option will
17646 set \fBTERMINFO\fR for the other \fItermnames\fR. With this, it is possible to
17647 compare descriptions for a terminal with the same name located in two different
17648 databases. This is useful for comparing descriptions for the same terminal
17649 created by different people.
17654 causes the fields to be printed out one to a line. Otherwise,
17655 the fields will be printed several to a line to a maximum width
17660 tells \fBinfocmp\fP to retain commented-out capabilities rather than discarding
17661 them. Capabilities are commented by prefixing them with a period.
17665 Dump the capabilities of the given terminal as tables, needed in
17666 the C initializer for a
17667 TERMTYPE structure (the terminal capability structure in the \fB<term.h>\fR).
17668 @@ -218,17 +218,17 @@
17669 The tables are all declared static, and are named according to the type
17670 and the name of the corresponding terminal entry.
17672 -Before ncurses 5.0, the split between the \fB\-e\fP and \fB\-E\fP
17673 +Before ncurses 5.0, the split between the \fB\-e\fP and \fB\-E\fP
17674 options was not needed; but support for extended names required making
17675 the arrays of terminal capabilities separate from the TERMTYPE structure.
17679 Dump the capabilities of the given terminal as a C initializer for a
17680 TERMTYPE structure (the terminal capability structure in the \fB<term.h>\fR).
17681 This option is useful for preparing versions of the curses library hardwired
17682 for a given terminal type.
17686 compare terminfo files. This assumes that two following arguments are
17687 filenames. The files are searched for pairwise matches between
17688 entries, with two entries considered to match if any of their names do.
17689 @@ -237,21 +237,21 @@
17690 with exactly one match it includes a difference report. Normally,
17691 to reduce the volume of the report, use references are
17692 not resolved before looking for differences, but resolution can be forced
17693 -by also specifying \fB-r\fR.
17694 +by also specifying \fB\-r\fR.
17698 Display complex terminfo strings which contain if/then/else/endif expressions
17699 indented for readability.
17703 Display constant literals in decimal form
17704 rather than their character equivalents.
17708 Display constant character literals in quoted form
17709 rather than their decimal equivalents.
17713 Analyze the initialization (\fBis1\fR, \fBis2\fR, \fBis3\fR), and reset
17714 (\fBrs1\fR, \fBrs2\fR, \fBrs3\fR), strings in the entry. For each string, the
17715 code tries to analyze it into actions in terms of the other capabilities in the
17716 @@ -302,17 +302,17 @@
17718 An SGR0 designates an empty highlight sequence (equivalent to {SGR:NORMAL}).
17722 Set output format to terminfo.
17726 Ignore padding specifications when comparing strings.
17730 Make the comparison listing shorter by omitting subheadings, and using
17731 "-" for absent capabilities, "@" for canceled rather than "NULL".
17733 -\fB-R\fR\fIsubset\fR
17734 +\fB\-R\fR\fIsubset\fR
17735 Restrict output to a given subset. This option is for use with archaic
17736 versions of terminfo like those on SVr1, Ultrix, or HP/UX that do not support
17737 the full set of SVR4/XSI Curses terminfo; and variants such as AIX
17738 @@ -321,8 +321,8 @@
17739 details. You can also choose the subset "BSD" which selects only capabilities
17740 with termcap equivalents recognized by 4.4BSD.
17742 -\fB-s \fR\fI[d|i|l|c]\fR
17743 -The \fB-s\fR option sorts the fields within each type according to the argument
17744 +\fB\-s \fR\fI[d|i|l|c]\fR
17745 +The \fB\-s\fR option sorts the fields within each type according to the argument
17749 @@ -340,30 +340,30 @@
17750 sort by the \fItermcap\fR name.
17753 -If the \fB-s\fR option is not given, the fields printed out will be
17754 +If the \fB\-s\fR option is not given, the fields printed out will be
17755 sorted alphabetically by the \fBterminfo\fR name within each type,
17756 -except in the case of the \fB-C\fR or the \fB-L\fR options, which cause the
17757 +except in the case of the \fB\-C\fR or the \fB\-L\fR options, which cause the
17758 sorting to be done by the \fBtermcap\fR name or the long C variable
17759 name, respectively.
17763 eliminates size-restrictions on the generated text.
17764 This is mainly useful for testing and analysis, since the compiled
17765 descriptions are limited (e.g., 1023 for termcap, 4096 for terminfo).
17769 tells \fBtic\fP to discard commented-out capabilities.
17770 Normally when translating from terminfo to termcap,
17771 untranslatable capabilities are commented-out.
17775 reports the version of ncurses which was used in this program, and exits.
17779 prints out tracing information on standard error as the program runs.
17780 Higher values of n induce greater verbosity.
17782 -\fB-w\fR \fIwidth\fR
17783 +\fB\-w\fR \fIwidth\fR
17784 changes the output to \fIwidth\fR characters.
17787 @@ -371,28 +371,28 @@
17788 Compiled terminal description database.
17821 options are not supported in SVr4 curses.
17823 -The \fB-r\fR option's notion of `termcap' capabilities is System V Release 4's.
17824 +The \fB\-r\fR option's notion of `termcap' capabilities is System V Release 4's.
17825 Actual BSD curses versions will have a more restricted set. To see only the
17826 -4.4BSD set, use -r -RBSD.
17827 +4.4BSD set, use \fB\-r\fR \fB\-RBSD\fR.
17829 -The -F option of \fBinfocmp\fR(1M) should be a \fBtoe\fR(1M) mode.
17830 +The \fB\-F\fR option of \fBinfocmp\fR(1M) should be a \fBtoe\fR(1M) mode.
17832 \fBinfocmp\fR(1M), \fBcaptoinfo\fR(1M), \fBinfotocap\fR(1M),
17833 \fBtic\fR(1M), \fBtoe\fR(1M),
17834 diff -urNd -urNd ncurses-5.3/man/infotocap.1m ncurses-5.3.20030906.orig/man/infotocap.1m
17835 --- ncurses-5.3/man/infotocap.1m Sat Aug 12 20:56:03 2000
17836 +++ ncurses-5.3.20030906.orig/man/infotocap.1m Tue May 13 20:08:22 2003
17839 .\"***************************************************************************
17840 -.\" Copyright (c) 1999,2000 Free Software Foundation, Inc. *
17841 +.\" Copyright (c) 1999-2000,2003 Free Software Foundation, Inc. *
17843 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17844 .\" copy of this software and associated documentation files (the *
17845 @@ -27,40 +27,40 @@
17846 .\" authorization. *
17847 .\"***************************************************************************
17849 -.\" $Id: infotocap.1m,v 1.3 2000/08/13 01:56:03 tom Exp $
17850 +.\" $Id: infotocap.1m,v 1.4 2003/05/11 00:32:53 tom Exp $
17851 .TH infotocap 1M ""
17855 \fBinfotocap\fR - convert a \fIterminfo\fR description into a \fItermcap\fR description
17857 -\fBinfotocap\fR [\fB-v\fR\fIn\fR \fIwidth\fR] [\fB-V\fR] [\fB-1\fR] [\fB-w\fR \fIwidth\fR] \fIfile\fR . . .
17858 +\fBinfotocap\fR [\fB\-v\fR\fIn\fR \fIwidth\fR] [\fB\-V\fR] [\fB\-1\fR] [\fB\-w\fR \fIwidth\fR] \fIfile\fR . . .
17860 \fBinfotocap\fR looks in \fIfile\fR for \fBterminfo\fR descriptions. For each
17861 one found, an equivalent \fBtermcap\fR description is written to standard
17862 output. Terminfo \fBuse\fR capabilities are translated directly to termcap
17863 \fBtc\fR capabilities.
17867 print out tracing information on standard error as the program runs.
17871 print out the version of the program in use on standard error and exit.
17875 cause the fields to print out one to a line. Otherwise, the fields
17876 will be printed several to a line to a maximum width of 60
17881 change the output to \fIwidth\fR characters.
17885 Compiled terminal description database.
17887 -This utility is actually a link to \fItic\fR(1M), running in \fI-C\fR mode.
17888 -You can use other \fItic\fR options such as \fB-f\fR and \fB-x\fR.
17889 +This utility is actually a link to \fItic\fR(1M), running in \fI\-C\fR mode.
17890 +You can use other \fItic\fR options such as \fB\-f\fR and \fB\-x\fR.
17894 diff -urNd -urNd ncurses-5.3/man/key_defined.3x ncurses-5.3.20030906.orig/man/key_defined.3x
17895 --- ncurses-5.3/man/key_defined.3x Wed Dec 31 18:00:00 1969
17896 +++ ncurses-5.3.20030906.orig/man/key_defined.3x Sun Jul 20 14:02:08 2003
17898 +.\"***************************************************************************
17899 +.\" Copyright (c) 2003 Free Software Foundation, Inc. *
17901 +.\" Permission is hereby granted, free of charge, to any person obtaining a *
17902 +.\" copy of this software and associated documentation files (the *
17903 +.\" "Software"), to deal in the Software without restriction, including *
17904 +.\" without limitation the rights to use, copy, modify, merge, publish, *
17905 +.\" distribute, distribute with modifications, sublicense, and/or sell *
17906 +.\" copies of the Software, and to permit persons to whom the Software is *
17907 +.\" furnished to do so, subject to the following conditions: *
17909 +.\" The above copyright notice and this permission notice shall be included *
17910 +.\" in all copies or substantial portions of the Software. *
17912 +.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17913 +.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
17914 +.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
17915 +.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
17916 +.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
17917 +.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
17918 +.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
17920 +.\" Except as contained in this notice, the name(s) of the above copyright *
17921 +.\" holders shall not be used in advertising or otherwise to promote the *
17922 +.\" sale, use or other dealings in this Software without prior written *
17923 +.\" authorization. *
17924 +.\"***************************************************************************
17926 +.\" Author: Thomas E. Dickey 2003
17928 +.\" $Id: key_defined.3x,v 1.2 2003/05/17 23:24:45 tom Exp $
17929 +.TH key_defined 3X ""
17931 +\fBdefine_key\fP \- define a keycode
17933 +\fB#include <curses.h>\fP
17935 +\fBint key_defined(const char *definition);\fP
17937 +This is an extension to the curses library.
17938 +It permits an application to determine if a string is currently bound
17941 +If the string is bound to a keycode, its value (greater than zero) is returned.
17942 +If no keycode is bound, zero is returned.
17943 +If the string conflicts with longer strings which are bound to keys, -1 is returned.
17945 +These routines are specific to ncurses. They were not supported on
17946 +Version 7, BSD or System V implementations. It is recommended that
17947 +any code depending on them be conditioned using NCURSES_VERSION.
17949 +\fBdefine_key\fR(3X).
17953 +.\"# The following sets edit modes for GNU EMACS
17954 +.\"# Local Variables:
17956 +.\"# fill-column:79
17958 diff -urNd -urNd ncurses-5.3/man/keybound.3x ncurses-5.3.20030906.orig/man/keybound.3x
17959 --- ncurses-5.3/man/keybound.3x Sat Feb 16 16:30:36 2002
17960 +++ ncurses-5.3.20030906.orig/man/keybound.3x Tue May 13 20:08:22 2003
17962 .\"***************************************************************************
17963 -.\" Copyright (c) 1999,2002 Free Software Foundation, Inc. *
17964 +.\" Copyright (c) 1999-2002,2003 Free Software Foundation, Inc. *
17966 .\" Permission is hereby granted, free of charge, to any person obtaining a *
17967 .\" copy of this software and associated documentation files (the *
17970 .\" Author: Thomas E. Dickey <dickey@clark.net> 1999
17972 -.\" $Id: keybound.3x,v 1.3 2002/02/16 22:30:36 tom Exp $
17973 +.\" $Id: keybound.3x,v 1.4 2003/03/08 19:08:33 tom Exp $
17976 \fBkeybound\fP \- return definition of keycode
17978 It permits an application to determine the string which is defined
17979 in the terminfo for specific keycodes.
17981 -The keycode must be greater than zero, else NULL is returned.
17982 +The \fIkeycode\fP parameter must be greater than zero, else NULL is returned.
17983 If it does not correspond to a defined key, then NULL is returned.
17984 -Otherwise, the function returns a string, which must be freed by the caller.
17985 +The \fIcount\fP parameter is used to allow the application to iterate
17986 +through multiple definitions, counting from zero.
17988 +the function returns a string which must be freed by the caller.
17990 These routines are specific to ncurses. They were not supported on
17991 Version 7, BSD or System V implementations. It is recommended that
17992 diff -urNd -urNd ncurses-5.3/man/make_sed.sh ncurses-5.3.20030906.orig/man/make_sed.sh
17993 --- ncurses-5.3/man/make_sed.sh Wed Feb 11 06:13:48 1998
17994 +++ ncurses-5.3.20030906.orig/man/make_sed.sh Tue May 13 20:08:22 2003
17997 -# $Id: make_sed.sh,v 1.5 1998/02/11 12:13:48 tom Exp $
17998 +# $Id: make_sed.sh,v 1.6 2003/01/11 22:23:11 tom Exp $
17999 ##############################################################################
18000 -# Copyright (c) 1998 Free Software Foundation, Inc. #
18001 +# Copyright (c) 1998,2003 Free Software Foundation, Inc. #
18003 # Permission is hereby granted, free of charge, to any person obtaining a #
18004 # copy of this software and associated documentation files (the "Software"), #
18006 rm -f $UPPER $SCRIPT $RESULT
18007 trap "rm -f $COL.* $INPUT $UPPER $SCRIPT $RESULT" 0 1 2 5 15
18009 -sed -e 's/[ ]\+/ /g' >$INPUT
18010 +sed -e 's/[ ][ ]*/ /g' >$INPUT
18014 diff -urNd -urNd ncurses-5.3/man/man_db.renames ncurses-5.3.20030906.orig/man/man_db.renames
18015 --- ncurses-5.3/man/man_db.renames Sat Apr 13 16:49:08 2002
18016 +++ ncurses-5.3.20030906.orig/man/man_db.renames Sun Jul 20 14:02:08 2003
18018 -# $Id: man_db.renames,v 0.31 2002/04/13 21:49:08 tom Exp $
18019 +# $Id: man_db.renames,v 0.32 2003/05/31 17:27:11 tom Exp $
18020 # Manual-page renamings for the man_db program
18024 infotocap.1m infotocap.1
18025 keybound.3x keybound.3ncurses
18026 keyok.3x keyok.3ncurses
18027 +key_defined.3x key_defined.3ncurses
18029 menu_attributes.3x attributes.3menu
18030 menu_cursor.3x cursor.3menu
18031 diff -urNd -urNd ncurses-5.3/man/manlinks.sed ncurses-5.3.20030906.orig/man/manlinks.sed
18032 --- ncurses-5.3/man/manlinks.sed Sat Sep 21 14:02:03 2002
18033 +++ ncurses-5.3.20030906.orig/man/manlinks.sed Sun Jul 20 14:02:08 2003
18035 -# $Id: manlinks.sed,v 1.10 2002/09/21 19:02:03 tom Exp $
18036 +# $Id: manlinks.sed,v 1.11 2003/05/24 18:57:33 tom Exp $
18037 ##############################################################################
18038 -# Copyright (c) 2000,2002 Free Software Foundation, Inc. #
18039 +# Copyright (c) 2000-2002,2003 Free Software Foundation, Inc. #
18041 # Permission is hereby granted, free of charge, to any person obtaining a #
18042 # copy of this software and associated documentation files (the "Software"), #
18044 # Given a manpage (nroff) as input, writes a list of the names that are
18045 # listed in the "NAME" section, i.e., the names that we would like to use
18046 # as aliases for the manpage -T.Dickey
18048 +# eliminate formatting controls that get in the way
18052 @@ -36,11 +38,18 @@
18057 +# eliminate unnecessary whitespace, convert multiple blanks to single space
18062 +# convert ".SH" into a more manageable form
18063 s/\.SH[ ][ ]*/.SH_(/
18066 +# change "\-" to "-", eliminate text after "-", and split the remaining lines
18067 +# at each space, making a list of names:
18068 /^\.SH_(NAME/,/^\.SH_(SYNOPSIS/{
18071 @@ -54,16 +63,39 @@
18076 +# in ".SH SYNOPSIS"
18077 +# remove any line that does not contain a '(', since we only want functions.
18078 +# then strip off return-type of each function.
18079 +# finally, remove the parameter list, which begins with a '('.
18080 /^\.SH_(SYNOPSIS/,/^\.SH_(DESCRIPTION/{
18084 + # .B "int add_wch( const cchar_t *\fIwch\fB );"
18086 + # add_wch( const cchar_t *\fIwch\fB );"
18087 s/^\([^ (]* [^ (]* [*]*\)//g
18088 s/^\([^ (]* [*]*\)//g
18089 + # trim blanks in case we have
18090 + # void (*) (FORM *) field_init(const FORM *form);
18092 + # reduce stuff like
18093 + # void (*)(FORM *) field_init(const FORM *form);
18095 + # field_init(const FORM *form);
18096 + s/^\(([^)]*)\)\(([^)]*)\)*[ ]*//g
18097 + # rename marker temporarily
18100 + # kill lines with ");", and trim off beginning of argument list.
18102 + # rename marker back
18106 +# delete ".SH DESCRIPTION" and following lines
18107 /^\.SH_(DESCRIPTION/,${
18111 +# delete any remaining directives
18113 diff -urNd -urNd ncurses-5.3/man/menu_driver.3x ncurses-5.3.20030906.orig/man/menu_driver.3x
18114 --- ncurses-5.3/man/menu_driver.3x Sat Feb 16 16:40:59 2002
18115 +++ ncurses-5.3.20030906.orig/man/menu_driver.3x Tue May 13 20:08:22 2003
18117 .\"***************************************************************************
18118 -.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
18119 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
18121 .\" Permission is hereby granted, free of charge, to any person obtaining a *
18122 .\" copy of this software and associated documentation files (the *
18124 .\" authorization. *
18125 .\"***************************************************************************
18127 -.\" $Id: menu_driver.3x,v 1.10 2002/02/16 22:40:59 tom Exp $
18128 +.\" $Id: menu_driver.3x,v 1.11 2003/05/10 20:22:01 tom Exp $
18129 .TH menu_driver 3X ""
18131 \fBmenu_driver\fR - command-processing loop of the menu system
18132 @@ -115,10 +115,10 @@
18133 is generated and \fBE_UNKNOWN_COMMAND\fR is returned. This return value makes
18134 sense, because a double click usually means that an item-specific action should
18135 be returned. It's exactly the purpose of this return value to signal that an
18136 -application specific command should be executed. If a translation
18137 +application specific command should be executed. If a translation
18138 into a request was done, \fBmenu_driver\fR returns the result of this request.
18139 If you clicked outside the user window or the mouse event couldn't be translated
18140 -into a menu request an \fBE_REQUEST_DENIED\fR is returned.
18141 +into a menu request an \fBE_REQUEST_DENIED\fR is returned.
18143 If the second argument is neither printable ASCII nor one of the above
18144 pre-defined menu requests or KEY_MOUSE, the drive assumes it is an application-specific
18145 diff -urNd -urNd ncurses-5.3/man/menu_pattern.3x ncurses-5.3.20030906.orig/man/menu_pattern.3x
18146 --- ncurses-5.3/man/menu_pattern.3x Sat Feb 16 16:40:59 2002
18147 +++ ncurses-5.3.20030906.orig/man/menu_pattern.3x Tue May 13 20:08:22 2003
18149 .\"***************************************************************************
18150 -.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
18151 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
18153 .\" Permission is hereby granted, free of charge, to any person obtaining a *
18154 .\" copy of this software and associated documentation files (the *
18156 .\" authorization. *
18157 .\"***************************************************************************
18159 -.\" $Id: menu_pattern.3x,v 1.7 2002/02/16 22:40:59 tom Exp $
18160 +.\" $Id: menu_pattern.3x,v 1.8 2003/05/10 20:22:01 tom Exp $
18161 .TH menu_pattern 3X ""
18163 \fBmenu_pattern\fR - get and set a menu's pattern buffer
18166 The function \fBset_menu_pattern\fR sets the pattern buffer for the given menu
18167 and tries to find the first matching item. If it succeeds, that item becomes
18168 -current; if not, the current item does not change.
18169 +current; if not, the current item does not change.
18171 The function \fBmenu_pattern\fR returns the pattern buffer of the given
18173 diff -urNd -urNd ncurses-5.3/man/ncurses.3x ncurses-5.3.20030906.orig/man/ncurses.3x
18174 --- ncurses-5.3/man/ncurses.3x Sat Aug 10 16:56:07 2002
18175 +++ ncurses-5.3.20030906.orig/man/ncurses.3x Tue May 13 20:08:22 2003
18178 .\"***************************************************************************
18179 -.\" Copyright (c) 1998,1999,2001,2002 Free Software Foundation, Inc. *
18180 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
18182 .\" Permission is hereby granted, free of charge, to any person obtaining a *
18183 .\" copy of this software and associated documentation files (the *
18185 .\" authorization. *
18186 .\"***************************************************************************
18188 -.\" $Id: ncurses.3x,v 1.63 2002/08/10 21:56:07 tom Exp $
18189 +.\" $Id: ncurses.3x,v 1.66 2003/05/11 00:32:53 tom Exp $
18193 @@ -322,6 +322,7 @@
18194 is_linetouched/\fBcurs_touch\fR(3X)
18195 is_wintouched/\fBcurs_touch\fR(3X)
18196 isendwin/\fBcurs_initscr\fR(3X)
18197 +key_defined/\fBkey_defined\fR(3X)*
18198 key_name/\fBcurs_util\fR(3X)
18199 keybound/\fBkeybound\fR(3X)*
18200 keyname/\fBcurs_util\fR(3X)
18201 @@ -614,9 +615,9 @@
18202 otherwise noted in the routine descriptions.
18204 All macros return the value of the \fBw\fR version, except \fBsetscrreg\fR,
18205 -\fBwsetscrreg\fR, \fBgetyx\fR, \fBgetbegyx\fR, \fBgetmaxyx\fR. The return
18206 +\fBwsetscrreg\fR, \fBgetyx\fR, \fBgetbegyx\fR, and \fBgetmaxyx\fR. The return
18207 values of \fBsetscrreg\fR, \fBwsetscrreg\fR, \fBgetyx\fR, \fBgetbegyx\fR, and
18208 -\fBgetmaxyx\fR are undefined (\fIi\fR.\fIe\fR., these should not be used as the
18209 +\fBgetmaxyx\fR are undefined (i.e., these should not be used as the
18210 right-hand side of assignment statements).
18212 Routines that return pointers return \fBNULL\fR on error.
18213 @@ -629,7 +630,7 @@
18214 The debugging library checks this environment symbol when the application
18215 has redirected output to a file.
18216 The symbol's numeric value is used for the baudrate.
18217 -If no value is found \fBncurses\fR uses 9600.
18218 +If no value is found, \fBncurses\fR uses 9600.
18219 This allows testers to construct repeatable test-cases
18220 that take into account costs that depend on baudrate.
18222 @@ -784,7 +785,7 @@
18226 -the last directory to which \fBncurses\fR wrote, if any, is searched first.
18227 +the last directory to which \fBncurses\fR wrote, if any, is searched first
18230 the directory specified by the TERMINFO symbol
18231 @@ -828,7 +829,7 @@
18232 \fBterminfo\fR(\*n) and related pages whose names begin "curs_" for detailed routine
18235 -The \fBncurses\fR library can be compiled with an option (\fB-DUSE_GETCAP\fR)
18236 +The \fBncurses\fR library can be compiled with an option (\fB\-DUSE_GETCAP\fR)
18237 that falls back to the old-style /etc/termcap file if the terminal setup code
18238 cannot find a terminfo entry corresponding to \fBTERM\fR. Use of this feature
18239 is not recommended, as it essentially includes an entire termcap compiler in
18240 @@ -848,6 +849,7 @@
18241 of terminals by allowing the application designer to define additional
18242 key sequences at runtime.
18243 See the \fBdefine_key\fR(3X)
18244 +\fBkey_defined\fR(3X),
18245 and \fBkeyok\fR(3X) manual pages for details.
18247 The \fBncurses\fR library can exploit the capabilities of terminals which
18248 diff -urNd -urNd ncurses-5.3/man/panel.3x ncurses-5.3.20030906.orig/man/panel.3x
18249 --- ncurses-5.3/man/panel.3x Sat Aug 12 20:56:47 2000
18250 +++ ncurses-5.3.20030906.orig/man/panel.3x Sun Jul 20 14:02:08 2003
18252 .\"***************************************************************************
18253 -.\" Copyright (c) 1998 Free Software Foundation, Inc. *
18254 +.\" Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
18256 .\" Permission is hereby granted, free of charge, to any person obtaining a *
18257 .\" copy of this software and associated documentation files (the *
18259 .\" authorization. *
18260 .\"***************************************************************************
18262 -.\" $Id: panel.3x,v 1.10 2000/08/13 01:56:47 tom Exp $
18263 +.\" $Id: panel.3x,v 1.11 2003/05/17 22:44:09 jmc Exp $
18270 A window is associated with every panel. The panel routines enable
18271 -you to create, move, hides, and show panels, as well as position a
18272 +you to create, move, hide, and show panels, as well as position a
18273 panel at any desired location in the stack.
18275 Panel routines are a functional layer added to \fBcurses\fR(3X), make only
18276 diff -urNd -urNd ncurses-5.3/man/term.5 ncurses-5.3.20030906.orig/man/term.5
18277 --- ncurses-5.3/man/term.5 Sat Aug 10 16:59:37 2002
18278 +++ ncurses-5.3.20030906.orig/man/term.5 Tue May 13 20:08:22 2003
18280 .\"***************************************************************************
18281 -.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
18282 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
18284 .\" Permission is hereby granted, free of charge, to any person obtaining a *
18285 .\" copy of this software and associated documentation files (the *
18287 .\" authorization. *
18288 .\"***************************************************************************
18290 -.\" $Id: term.5,v 1.14 2002/08/10 21:59:37 tom Exp $
18291 +.\" $Id: term.5,v 1.15 2003/05/10 20:33:49 jmc Exp $
18296 or sign extension are made.
18298 The compiled file is created with the
18301 program, and read by the routine
18303 The file is divided into six parts:
18305 and the second byte contains the most significant 8 bits.
18306 (Thus, the value represented is 256*second+first.)
18307 The value \-1 is represented by the two bytes 0377, 0377; other negative
18308 -values are illegal. This value generally
18309 +values are illegal. This value generally
18310 means that the corresponding capability is missing from this terminal.
18311 Note that this format corresponds to the hardware of the \s-1VAX\s+1
18312 and \s-1PDP\s+1-11 (that is, little-endian machines).
18313 @@ -160,12 +160,12 @@
18314 ADM-3, a popular though rather stupid early terminal:
18319 - cols#80, lines#24,
18320 - bel=^G, clear=\032$<1>, cr=^M, cub1=^H, cud1=^J,
18321 - cuf1=^L, cup=\\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
18325 + cols#80, lines#24,
18326 + bel=^G, clear=\032$<1>, cr=^M, cub1=^H, cud1=^J,
18327 + cuf1=^L, cup=\\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
18331 \s-20000 1a 01 10 00 02 00 03 00 82 00 31 00 61 64 6d 33 ........ ..1.adm3
18332 diff -urNd -urNd ncurses-5.3/man/term.7 ncurses-5.3.20030906.orig/man/term.7
18333 --- ncurses-5.3/man/term.7 Sat Apr 20 11:50:47 2002
18334 +++ ncurses-5.3.20030906.orig/man/term.7 Tue May 13 20:08:22 2003
18336 .\"***************************************************************************
18337 -.\" Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
18338 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
18340 .\" Permission is hereby granted, free of charge, to any person obtaining a *
18341 .\" copy of this software and associated documentation files (the *
18343 .\" authorization. *
18344 .\"***************************************************************************
18346 -.\" $Id: term.7,v 1.13 2002/04/20 16:50:47 tom Exp $
18347 +.\" $Id: term.7,v 1.14 2003/05/10 20:33:49 jmc Exp $
18352 First, choose a root name. The root will consist of a lower-case letter
18353 followed by up to seven lower-case letters or digits. You need to avoid using
18354 punctuation characters in root names, because they are used and interpreted as
18355 -filenames and shell meta-characters (such as !, $, *, ? etc.) embedded in them
18356 +filenames and shell meta-characters (such as !, $, *, ?, etc.) embedded in them
18357 may cause odd and unhelpful behavior. The slash (/), or any other character
18358 that may be interpreted by anyone's file system (\e, $, [, ]), is especially
18359 dangerous (terminfo is platform-independent, and choosing names with special
18360 @@ -136,29 +136,29 @@
18364 -Enable auto-margin (right-margin wraparound)
18365 +Enable auto-margin (right-margin wraparound).
18368 -Mono mode - suppress color support
18369 +Mono mode - suppress color support.
18372 No arrow keys - termcap ignores arrow keys which are actually there on the
18373 terminal, so the user can use the arrow keys locally.
18376 -No auto-margin - suppress am capability
18377 +No auto-margin - suppress am capability.
18380 -No labels - suppress soft labels
18381 +No labels - suppress soft labels.
18384 -No status line - suppress status line
18385 +No status line - suppress status line.
18388 Has a printer port which is used.
18391 -Terminal in reverse video mode (black on white)
18392 +Terminal in reverse video mode (black on white).
18395 Enable status line.
18396 @@ -190,10 +190,10 @@
18397 compiled terminal capability data base
18400 -tty line initialization (AT&T-like UNIXes).
18401 +tty line initialization (AT&T-like UNIXes)
18404 -tty line initialization (BSD-like UNIXes).
18405 +tty line initialization (BSD-like UNIXes)
18407 \fBcurses\fR(3X), \fBterminfo\fR(\*n), \fBterm\fR(\*n).
18409 diff -urNd -urNd ncurses-5.3/man/terminfo.tail ncurses-5.3.20030906.orig/man/terminfo.tail
18410 --- ncurses-5.3/man/terminfo.tail Sat Apr 20 11:49:33 2002
18411 +++ ncurses-5.3.20030906.orig/man/terminfo.tail Tue May 13 20:08:22 2003
18413 -.\" $Id: terminfo.tail,v 1.35 2002/04/20 16:49:33 tom Exp $
18414 +.\" $Id: terminfo.tail,v 1.38 2003/01/05 22:47:05 tom Exp $
18415 .\" Beginning of terminfo.tail file
18418 @@ -311,42 +311,81 @@
18420 Typically a sequence will push one of the
18421 parameters onto the stack and then print it in some format.
18422 -Often more complex operations are necessary.
18423 +Print (e.g., "%d") is a special case.
18424 +Other operations, including "%t" pop their operand from the stack.
18425 +It is noted that more complex operations are often necessary,
18426 +e.g., in the \fBsgr\fP string.
18428 The \fB%\fR encodings have the following meanings:
18433 - \s-1%% outputs `%'
18434 - %\fI[[\fP:\fI]flags][width[.precision]][\fPdoxXs\fI]\fP
18435 - as in \fBprintf\fP, flags are [-+#] and space
18436 - %c print pop() like %c in printf()
18437 - %s print pop() like %s in printf()
18439 - %p[1-9] push \fIi\fP'th parm
18440 - %P[a-z] set dynamic variable [a-z] to pop()
18441 - %g[a-z] get dynamic variable [a-z] and push it
18442 - %P[A-Z] set static variable [a-z] to pop()
18443 - %g[A-Z] get static variable [a-z] and push it
18444 - %'\fIc\fP' char constant \fIc\fP
18445 - %{\fInn\fP} integer constant \fInn\fP
18446 - %l push strlen(pop)
18449 - arithmetic (%m is mod): push(pop() op pop())
18450 - %& %| %^ bit operations: push(pop() op pop())
18451 - %= %> %< logical operations: push(pop() op pop())
18452 - %A, %O logical and & or operations (for conditionals)
18453 - %! %~ unary operations push(op pop())
18454 - %i add 1 to first two parameters (for ANSI terminals)
18456 - %? expr %t thenpart %e elsepart %;
18457 - if-then-else, %e elsepart is optional.
18458 - else-if's are possible a la Algol 68:
18459 - %? c\d1\u %t b\d1\u %e c\d2\u %t b\d2\u %e c\d3\u %t b\d3\u %e c\d4\u %t b\d4\u %e %;
18460 -\s+1 c\di\u are conditions, b\di\u are bodies.
18466 +%\fI[[\fP:\fI]flags][width[.precision]][\fPdoxXs\fI]\fP
18467 +as in \fBprintf\fP, flags are [-+#] and space
18470 +print pop() like %c in \fBprintf\fP
18473 +print pop() like %s in \fBprintf\fP
18476 +push \fIi\fP'th parameter
18479 +set dynamic variable [a-z] to pop()
18482 +get dynamic variable [a-z] and push it
18485 +set static variable [a-z] to pop()
18488 +get static variable [a-z] and push it
18490 +The terms "static" and "dynamic" are misleading.
18491 +Historically, these are simply two different sets of variables,
18492 +whose values are not reset between calls to \fBtparm\fP.
18493 +However, that fact is not documented in other implementations.
18494 +Relying on it will adversely impact portability to other implementations.
18497 +char constant \fIc\fP
18500 +integer constant \fInn\fP
18506 +arithmetic (%m is mod): push(pop() op pop())
18509 +bit operations: push(pop() op pop())
18512 +logical operations: push(pop() op pop())
18515 +logical and & or operations (for conditionals)
18518 +unary operations push(op pop())
18521 +add 1 to first two parameters (for ANSI terminals)
18523 +%? \fIexpr\fP %t \fIthenpart\fP %e \fIelsepart\fP %;
18524 +if-then-else, %e \fIelsepart\fP is optional.
18525 +else-if's are possible a la Algol 68:
18527 +%? c\d1\u %t b\d1\u %e c\d2\u %t b\d2\u %e c\d3\u %t b\d3\u %e c\d4\u %t b\d4\u %e %;
18529 +c\di\u are conditions, b\di\u are bodies.
18531 Binary operations are in postfix form with the operands in the usual order.
18532 That is, to get x-5 one would use "%gx%{5}%-".
18533 @@ -1170,7 +1209,7 @@
18535 The \fBsetaf\fR/\fBsetab\fR and \fBsetf\fR/\fBsetb\fR capabilities take a
18536 single numeric argument each.
18537 -Argument values 0-7 are portably defined as
18538 +Argument values 0-7 of \fBsetaf\fR/\fBsetab\fR are portably defined as
18539 follows (the middle column is the symbolic #define available in the header for
18540 the \fBcurses\fR or \fBncurses\fR libraries).
18541 The terminal hardware is free to
18542 @@ -1192,6 +1231,25 @@
18543 white \fBCOLOR_WHITE\fR 7 max,max,max
18546 +The argument values of \fBsetf\fR/\fBsetb\fR historically correspond to
18547 +a different mapping, i.e.,
18552 +\fBColor #define Value RGB\fR
18553 +black \fBCOLOR_BLACK\fR 0 0, 0, 0
18554 +blue \fBCOLOR_BLUE\fR 1 0,0,max
18555 +green \fBCOLOR_GREEN\fR 2 0,max,0
18556 +cyan \fBCOLOR_CYAN\fR 3 0,max,max
18557 +red \fBCOLOR_RED\ \fR 4 max,0,0
18558 +magenta \fBCOLOR_MAGENTA\fR 5 max,0,max
18559 +yellow \fBCOLOR_YELLOW\fR 6 max,max,0
18560 +white \fBCOLOR_WHITE\fR 7 max,max,max
18562 +It is important to not confuse the two sets of color capabilities;
18563 +otherwise red/blue will be interchanged on the display.
18565 On an HP-like terminal, use \fBscp\fR with a color-pair number parameter to set
18566 which color pair is current.
18568 diff -urNd -urNd ncurses-5.3/man/tic.1m ncurses-5.3.20030906.orig/man/tic.1m
18569 --- ncurses-5.3/man/tic.1m Sat Oct 5 15:06:13 2002
18570 +++ ncurses-5.3.20030906.orig/man/tic.1m Tue May 13 20:08:22 2003
18572 .\"***************************************************************************
18573 -.\" Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
18574 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
18576 .\" Permission is hereby granted, free of charge, to any person obtaining a *
18577 .\" copy of this software and associated documentation files (the *
18579 .\" authorization. *
18580 .\"***************************************************************************
18582 -.\" $Id: tic.1m,v 1.33 2002/10/05 20:06:13 tom Exp $
18583 +.\" $Id: tic.1m,v 1.35 2003/05/11 00:32:53 tom Exp $
18587 @@ -52,11 +52,11 @@
18591 -[\fB-e\fR \fInames\fR]
18592 -[\fB-o\fR \fIdir\fR]
18593 -[\fB-R\fR \fIsubset\fR]
18594 -[\fB-v\fR[\fIn\fR]]
18595 -[\fB-w\fR[\fIn\fR]]
18596 +[\fB\-e\fR \fInames\fR]
18597 +[\fB\-o\fR \fIdir\fR]
18598 +[\fB\-R\fR \fIsubset\fR]
18599 +[\fB\-v\fR[\fIn\fR]]
18600 +[\fB\-w\fR[\fIn\fR]]
18604 @@ -78,31 +78,31 @@
18605 directory first, look at \fI$HOME/.terminfo\fR if TERMINFO is not set, and
18606 finally look in \fI\*d\fR.
18610 restricts the output to a single column
18614 tells \fBtic\fP to retain commented-out capabilities rather than discarding
18615 them. Capabilities are commented by prefixing them with a period.
18616 -This sets the \fB-x\fR option, because it treats the commented-out
18617 +This sets the \fB\-x\fR option, because it treats the commented-out
18618 entries as user-defined names.
18621 -Force source translation to termcap format. Note: this differs from the -C
18623 +Force source translation to termcap format. Note: this differs from the \fB\-C\fR
18624 option of \fIinfocmp\fR(1M) in that it does not merely translate capability
18625 names, but also translates terminfo strings to termcap format. Capabilities
18626 that are not translatable are left in the entry under their terminfo names
18627 but commented out with two preceding dots.
18631 tells \fBtic\fP to only check \fIfile\fR for errors, including syntax problems and
18632 -bad use links. If you specify \fB-C\fR (\fB-I\fR) with this option, the code
18633 +bad use links. If you specify \fB\-C\fR (\fB\-I\fR) with this option, the code
18634 will print warnings about entries which, after use resolution, are more than
18635 1023 (4096) bytes long. Due to a fixed buffer length in older termcap
18636 libraries (and a documented limit in terminfo), these entries may cause core
18639 -\fB-e \fR\fInames\fR
18640 +\fB\-e \fR\fInames\fR
18641 Limit writes and translations to the following comma-separated list of
18643 If any name or alias of a terminal matches one of the names in
18644 @@ -110,32 +110,32 @@
18645 Otherwise no output will be generated for it.
18646 The option value is interpreted as a file containing the list if it
18648 -(Note: depending on how tic was compiled, this option may require -I or -C.)
18649 +(Note: depending on how tic was compiled, this option may require \fB\-I\fR or \fB\-C\fR.)
18653 Display complex terminfo strings which contain if/then/else/endif expressions
18654 indented for readability.
18658 Display constant literals in decimal form
18659 rather than their character equivalents.
18663 Display constant character literals in quoted form
18664 rather than their decimal equivalents.
18668 Force source translation to terminfo format.
18672 Force source translation to terminfo format
18673 using the long C variable names listed in <\fBterm.h\fR>
18676 -Disable smart defaults.
18677 -Normally, when translating from termcap to terminfo, the compiler makes
18679 +Disable smart defaults.
18680 +Normally, when translating from termcap to terminfo, the compiler makes
18681 a number of assumptions about the defaults of string capabilities
18682 -\fBreset1_string\fR, \fBcarriage_return\fR, \fBcursor_left\fR,
18683 +\fBreset1_string\fR, \fBcarriage_return\fR, \fBcursor_left\fR,
18684 \fBcursor_down\fR, \fBscroll_forward\fR, \fBtab\fR, \fBnewline\fR,
18685 \fBkey_backspace\fR, \fBkey_left\fR, and \fBkey_down\fR, then attempts
18686 to use obsolete termcap capabilities to deduce correct values. It also
18687 @@ -143,42 +143,42 @@
18688 This option forces a more literal translation that also preserves the
18689 obsolete capabilities.
18692 +\fB\-o\fR\fIdir\fR
18693 Write compiled entries to given directory. Overrides the TERMINFO environment
18696 -\fB-R\fR\fIsubset\fR
18697 +\fB\-R\fR\fIsubset\fR
18698 Restrict output to a given subset. This option is for use with archaic
18699 versions of terminfo like those on SVr1, Ultrix, or HP/UX that do not support
18700 the full set of SVR4/XSI Curses terminfo; and outright broken ports like AIX 3.x
18701 that have their own extensions incompatible with SVr4/XSI. Available subsets
18702 are "SVr1", "Ultrix", "HP", "BSD" and "AIX"; see \fBterminfo\fR(\*n) for details.
18706 Force entry resolution (so there are no remaining tc capabilities) even
18707 when doing translation to termcap format. This may be needed if you are
18708 preparing a termcap file for a termcap library (such as GNU termcap through
18709 version 1.3 or BSD termcap through 4.3BSD) that does not handle multiple
18710 tc capabilities per entry.
18714 Summarize the compile by showing the directory into which entries
18715 are written, and the number of entries which are compiled.
18719 eliminates size-restrictions on the generated text.
18720 This is mainly useful for testing and analysis, since the compiled
18721 descriptions are limited (e.g., 1023 for termcap, 4096 for terminfo).
18725 tells \fBtic\fP to discard commented-out capabilities.
18726 Normally when translating from terminfo to termcap,
18727 untranslatable capabilities are commented-out.
18731 reports the version of ncurses which was used in this program, and exits.
18735 specifies that (verbose) output be written to standard error trace
18736 information showing \fBtic\fR's progress. The optional integer
18737 \fIn\fR is a number from 1 to 10, inclusive, indicating the desired
18738 @@ -186,10 +186,10 @@
18739 level is 1. If \fIn\fR is specified and greater than 1, the level of
18740 detail is increased.
18744 specifies the width of the output.
18748 Treat unknown capabilities as user-defined.
18749 That is, if you supply a capability name which \fBtic\fP does not recognize,
18750 it will infer its type (boolean, number or string) from the syntax and
18751 @@ -274,25 +274,25 @@
18752 error messages, and can be parsed by GNU Emacs's compile facility.
18788 are not supported under SVr4.
18789 -The SVr4 -c mode does not report bad use links.
18790 +The SVr4 \fB\-c\fR mode does not report bad use links.
18792 System V does not compile entries to or read entries from your
18793 \fI$HOME/.terminfo\fR directory unless TERMINFO is explicitly set to it.
18794 diff -urNd -urNd ncurses-5.3/man/toe.1m ncurses-5.3.20030906.orig/man/toe.1m
18795 --- ncurses-5.3/man/toe.1m Sat Aug 19 13:51:05 2000
18796 +++ ncurses-5.3.20030906.orig/man/toe.1m Tue May 13 20:08:22 2003
18798 .\"***************************************************************************
18799 -.\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
18800 +.\" Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
18802 .\" Permission is hereby granted, free of charge, to any person obtaining a *
18803 .\" copy of this software and associated documentation files (the *
18804 @@ -26,45 +26,45 @@
18805 .\" authorization. *
18806 .\"***************************************************************************
18808 -.\" $Id: toe.1m,v 1.10 2000/08/19 18:51:05 tom Exp $
18809 +.\" $Id: toe.1m,v 1.12 2003/05/11 00:32:53 tom Exp $
18814 \fBtoe\fR - table of (terminfo) entries
18816 -\fBtoe\fR [\fB-v\fR[\fIn\fR]] [\fB-huUV\fR] \fIfile...\fR
18817 +\fBtoe\fR [\fB\-v\fR[\fIn\fR]] [\fB\-huUV\fR] \fIfile...\fR
18821 With no options, \fBtoe\fR lists all available terminal types by primary name
18822 with descriptions. File arguments specify the directories to be scanned; if no
18823 such arguments are given, your default terminfo directory is scanned. If you
18824 -also specify the -h option, a directory header will be issued as each
18825 -directory is entered.
18826 +also specify the \fB\-h\fR option, a directory header will be issued as each
18827 +directory is entered.
18829 There are other options intended for use by terminfo file maintainers:
18831 -\fB-u\fR \fIfile\fR
18832 +\fB\-u\fR \fIfile\fR
18833 says to issue a report on dependencies in the given file. This report condenses
18834 the `use' relation: each line consists of the primary name of a terminal that
18835 has use capabilities, followed by a colon, followed by the
18836 whitespace-separated primary names of all terminals which occur in those use
18837 capabilities, followed by a newline
18839 -\fB-U\fR \fIfile\fR
18840 +\fB\-U\fR \fIfile\fR
18841 says to issue a report on reverse dependencies in the given file. This report
18842 reverses the `use' relation: each line consists of the primary name of a
18843 terminal that occurs in use capabilities, followed by a colon, followed by the
18844 whitespace-separated primary names of all terminals which depend on it,
18845 followed by a newline.
18849 specifies that (verbose) output be written to standard error trace
18850 information showing \fBtoe\fR's progress. The optional integer
18851 \fIn\fR is a number from 1 to 10, interpreted as for \fBtic\fR(1).
18855 reports the version of ncurses which was used in this program, and exits.
18858 diff -urNd -urNd ncurses-5.3/man/tput.1 ncurses-5.3.20030906.orig/man/tput.1
18859 --- ncurses-5.3/man/tput.1 Sat Oct 12 08:53:20 2002
18860 +++ ncurses-5.3.20030906.orig/man/tput.1 Tue May 13 20:08:22 2003
18863 .\"***************************************************************************
18864 -.\" Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
18865 +.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
18867 .\" Permission is hereby granted, free of charge, to any person obtaining a *
18868 .\" copy of this software and associated documentation files (the *
18869 @@ -27,24 +27,24 @@
18870 .\" authorization. *
18871 .\"***************************************************************************
18873 -.\" $Id: tput.1,v 1.18 2002/10/12 13:53:20 tom Exp $
18874 +.\" $Id: tput.1,v 1.20 2003/05/11 00:32:53 tom Exp $
18879 \fBtput\fR, \fBreset\fR - initialize a terminal or query terminfo database
18881 -\fBtput\fR [\fB-T\fR\fItype\fR] \fIcapname\fR [\fIparms\fR ... ]
18882 +\fBtput\fR [\fB\-T\fR\fItype\fR] \fIcapname\fR [\fIparms\fR ... ]
18884 -\fBtput\fR [\fB-T\fR\fItype\fR] \fBinit\fR
18885 +\fBtput\fR [\fB\-T\fR\fItype\fR] \fBinit\fR
18887 -\fBtput\fR [\fB-T\fR\fItype\fR] \fBreset\fR
18888 +\fBtput\fR [\fB\-T\fR\fItype\fR] \fBreset\fR
18890 -\fBtput\fR [\fB-T\fR\fItype\fR] \fBlongname\fR
18891 +\fBtput\fR [\fB\-T\fR\fItype\fR] \fBlongname\fR
18893 -\fBtput -S\fR \fB<<\fR
18894 +\fBtput \-S\fR \fB<<\fR
18900 The \fBtput\fR utility uses the \fBterminfo\fR database to make the
18901 @@ -62,10 +62,10 @@
18902 For a complete list of capabilities
18903 and the \fIcapname\fR associated with each, see \fBterminfo\fR(\*n).
18905 -\fB-T\fR\fItype\fR
18906 +\fB\-T\fR\fItype\fR
18907 indicates the \fItype\fR of terminal. Normally this option is
18908 unnecessary, because the default is taken from the environment
18909 -variable \fBTERM\fR. If \fB-T\fR is specified, then the shell
18910 +variable \fBTERM\fR. If \fB\-T\fR is specified, then the shell
18911 variables \fBLINES\fR and \fBCOLUMNS\fR will be ignored,and the
18912 operating system will not be queried for the actual screen size.
18914 @@ -83,14 +83,14 @@
18915 \fBtput\fR uses a table to decide which to pass as strings.
18916 Normally \fBtput\fR uses \fBtparm\fR (3X) to perform the substitution.
18917 If no parameters are given for the attribute,
18918 -\fBtput\fR writes the string without performing the substitution.
18919 +\fBtput\fR writes the string without performing the substitution.
18923 allows more than one capability per invocation of \fBtput\fR. The
18924 capabilities must be passed to \fBtput\fR from the standard input
18925 instead of from the command line (see example).
18926 Only one \fIcapname\fR is allowed per line.
18927 -The \fB-S\fR option changes the
18928 +The \fB\-S\fR option changes the
18929 meaning of the \fB0\fR and \fB1\fR boolean and string exit codes (see the
18930 EXIT CODES section).
18932 @@ -98,12 +98,12 @@
18933 to decide whether to use \fBtparm\fR (3X),
18934 and how to interpret the parameters.
18938 reports the version of ncurses which was used in this program, and exits.
18941 If the \fBterminfo\fR database is present and an entry for the user's
18942 -terminal exists (see \fB-T\fR\fItype\fR, above), the following will
18943 +terminal exists (see \fB\-T\fR\fItype\fR, above), the following will
18944 occur: (1) if present, the terminal's initialization strings will be
18945 output (\fBis1\fR, \fBis2\fR, \fBis3\fR, \fBif\fR, \fBiprog\fR), (2)
18946 any delays (e.g., newline) specified in the entry will be set in the
18947 @@ -122,7 +122,7 @@
18950 If the \fBterminfo\fR database is present and an entry for the
18951 -user's terminal exists (see \fB-T\fR\fItype\fR above), then the long name
18952 +user's terminal exists (see \fB\-T\fR\fItype\fR above), then the long name
18953 of the terminal will be put out. The long name is the last
18954 name in the first line of the terminal's description in the
18955 \fBterminfo\fR database [see \fBterm\fR(5)].
18956 @@ -139,7 +139,7 @@
18957 the environmental variable \fBTERM\fR has been exported, as
18958 illustrated on the \fBprofile\fR(5) manual page.
18960 -\fBtput -T5620 reset\fR
18961 +\fBtput \-T5620 reset\fR
18962 Reset an AT&T 5620 terminal, overriding the type of
18963 terminal in the environmental variable \fBTERM\fR.
18965 @@ -154,7 +154,7 @@
18967 Print the number of columns for the current terminal.
18969 -\fBtput -T450 cols\fR
18970 +\fBtput \-T450 cols\fR
18971 Print the number of columns for the 450 terminal.
18973 \fBbold=`tput smso` offbold=`tput rmso`\fR
18974 @@ -178,7 +178,7 @@
18975 variable \fBTERM\fR.
18979 +\fBtput \-S <<!\fR
18983 @@ -213,7 +213,7 @@
18984 information, see the "Tabs and Initialization"
18985 section of \fBterminfo\fR(5)
18987 -If the \fB-S\fR option is used,
18988 +If the \fB\-S\fR option is used,
18989 \fBtput\fR checks for errors from each line,
18990 and if any errors are found, will set the exit code to 4 plus the
18991 number of lines with errors.
18992 @@ -221,7 +221,7 @@
18993 No indication of which line failed can be given so
18994 exit code \fB1\fR will never appear. Exit codes \fB2\fR, \fB3\fR, and
18995 \fB4\fR retain their usual interpretation.
18996 -If the \fB-S\fR option is not used,
18997 +If the \fB\-S\fR option is not used,
18998 the exit code depends on the type of \fIcapname\fR:
19001 @@ -241,7 +241,7 @@
19002 whether or not \fIcapname\fR is defined for this terminal \fItype\fR.
19003 To determine if \fIcapname\fR is defined for this terminal \fItype\fR,
19004 the user must test the value written to standard output.
19005 -A value of \fB-1\fR
19006 +A value of \fB\-1\fR
19007 means that \fIcapname\fR is not defined for this terminal \fItype\fR.
19010 @@ -262,17 +262,17 @@
19012 (\fIcapname\fR is a numeric variable that is not specified in the
19013 \fBterminfo\fR(\*n) database for this terminal type, e.g.
19014 -\fBtput -T450 lines\fR and \fBtput -T2621 xmc\fR)
19015 +\fBtput \-T450 lines\fR and \fBtput \-T2621 xmc\fR)
19017 \fB1\fR no error message is printed, see the \fBEXIT CODES\fR section.
19018 \fB2\fR usage error
19019 \fB3\fR unknown terminal \fItype\fR or no \fBterminfo\fR database
19020 \fB4\fR unknown \fBterminfo\fR capability \fIcapname\fR
19021 -\fB>4\fR error occurred in -S
19022 +\fB>4\fR error occurred in \-S
19026 -The \fBlongname\fR and \fB-S\fR options, and the parameter-substitution
19027 +The \fBlongname\fR and \fB\-S\fR options, and the parameter-substitution
19028 features used in the \fBcup\fR example, are not supported in BSD curses or in
19029 AT&T/USL curses before SVr4.
19031 diff -urNd -urNd ncurses-5.3/man/tset.1 ncurses-5.3.20030906.orig/man/tset.1
19032 --- ncurses-5.3/man/tset.1 Sat Sep 9 15:33:07 2000
19033 +++ ncurses-5.3.20030906.orig/man/tset.1 Tue May 13 20:08:22 2003
19035 .\"***************************************************************************
19036 -.\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
19037 +.\" Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
19039 .\" Permission is hereby granted, free of charge, to any person obtaining a *
19040 .\" copy of this software and associated documentation files (the *
19041 @@ -26,14 +26,14 @@
19042 .\" authorization. *
19043 .\"***************************************************************************
19045 -.\" $Id: tset.1,v 1.12 2000/09/09 20:33:07 tom Exp $
19046 +.\" $Id: tset.1,v 1.13 2003/05/11 00:32:53 tom Exp $
19049 \fBtset\fR, \fBreset\fR - terminal initialization
19051 -tset [-IQVqrs] [-] [-e \fIch\fR] [-i \fIch\fR] [-k \fIch\fR] [-m \fImapping\fR] [\fIterminal\fR]
19052 +tset [\-IQVqrs] [\-] [\-e \fIch\fR] [\-i \fIch\fR] [\-k \fIch\fR] [\-m \fImapping\fR] [\fIterminal\fR]
19054 -reset [-IQVqrs] [-] [-e \fIch\fR] [-i \fIch\fR] [-k \fIch\fR] [-m \fImapping\fR] [\fIterminal\fR]
19055 +reset [\-IQVqrs] [\-] [\-e \fIch\fR] [\-i \fIch\fR] [\-k \fIch\fR] [\-m \fImapping\fR] [\fIterminal\fR]
19057 \&\fBTset\fR initializes terminals.
19058 \fBTset\fR first determines the type of terminal that you are using.
19061 4. The default terminal type, ``unknown''.
19063 -If the terminal type was not specified on the command-line, the -m
19064 +If the terminal type was not specified on the command-line, the \fB\-m\fR
19065 option mappings are then applied (see below for more information).
19066 Then, if the terminal type begins with a question mark (``?''), the
19067 user is prompted for confirmation of the terminal type. An empty
19068 @@ -81,50 +81,50 @@
19070 The options are as follows:
19074 The terminal type is displayed to the standard output, and the terminal is
19075 not initialized in any way. The option `-' by itself is equivalent but
19081 Set the erase character to \fIch\fR.
19086 Do not send the terminal or tab initialization strings to the terminal.
19091 Don't display any values for the erase, interrupt and line kill characters.
19095 reports the version of ncurses which was used in this program, and exits.
19100 Set the interrupt character to \fIch\fR.
19105 Set the line kill character to \fIch\fR.
19110 Specify a mapping from a port type to a terminal.
19111 See below for more information.
19116 Print the terminal type to the standard error output.
19121 Print the sequence of shell commands to initialize the environment variable
19122 \fBTERM\fR to the standard output.
19123 See the section below on setting the environment for details.
19125 -The arguments for the -e, -i, and -k
19126 +The arguments for the \fB-e\fR, \fB-i\fR, and \fB-k\fR
19127 options may either be entered as actual characters or by using the `hat'
19128 notation, i.e. control-h may be specified as ``^H'' or ``^h''.
19129 .SH SETTING THE ENVIRONMENT
19130 It is often desirable to enter the terminal type and information about
19131 the terminal's capabilities into the shell's environment.
19132 -This is done using the -s option.
19133 +This is done using the \fB\-s\fR option.
19135 -When the -s option is specified, the commands to enter the information
19136 +When the \fB\-s\fR option is specified, the commands to enter the information
19137 into the shell's environment are written to the standard output. If
19138 the \fBSHELL\fR environmental variable ends in ``csh'', the commands
19139 are for \fBcsh\fR, otherwise, they are for \fBsh\fR.
19140 @@ -132,7 +132,7 @@
19141 \fBnoglob\fR, leaving it unset. The following line in the \fB.login\fR
19142 or \fB.profile\fR files will initialize the environment correctly:
19144 - eval \`tset -s options ... \`
19145 + eval \`tset \-s options ... \`
19147 .SH TERMINAL TYPE MAPPING
19148 When the terminal is not hardwired into the system (or the current
19149 @@ -142,13 +142,13 @@
19150 When \fBtset\fR is used in a startup script it is often desirable to
19151 provide information about the type of terminal used on such ports.
19153 -The purpose of the -m option is to map
19154 +The purpose of the \fB\-m\fR option is to map
19155 from some set of conditions to a terminal type, that is, to
19157 ``If I'm on this port at a particular speed, guess that I'm on that
19158 kind of terminal''.
19160 -The argument to the -m option consists of an optional port type, an
19161 +The argument to the \fB\-m\fR option consists of an optional port type, an
19162 optional operator, an optional baud rate specification, an optional
19163 colon (``:'') character and a terminal type. The port type is a
19164 string (delimited by either the operator or the colon character). The
19165 @@ -159,7 +159,7 @@
19166 of the standard error output (which should be the control terminal).
19167 The terminal type is a string.
19169 -If the terminal type is not specified on the command line, the -m
19170 +If the terminal type is not specified on the command line, the \fB\-m\fR
19171 mappings are applied to the terminal type. If the port type and baud
19172 rate match the mapping, the terminal type specified in the mapping
19173 replaces the current type. If more than one mapping is specified, the
19174 @@ -174,16 +174,16 @@
19176 If no baud rate is specified, the terminal type will match any baud rate.
19177 If no port type is specified, the terminal type will match any port type.
19178 -For example, \fB-m dialup:vt100 -m :?xterm\fR
19179 +For example, \fB\-m dialup:vt100 \-m :?xterm\fR
19180 will cause any dialup port, regardless of baud rate, to match the terminal
19181 type vt100, and any non-dialup port type to match the terminal type ?xterm.
19182 Note, because of the leading question mark, the user will be
19183 queried on a default port as to whether they are actually using an xterm
19186 -No whitespace characters are permitted in the -m option argument.
19187 +No whitespace characters are permitted in the \fB\-m\fR option argument.
19188 Also, to avoid problems with meta-characters, it is suggested that the
19189 -entire -m option argument be placed within single quote characters,
19190 +entire \fB\-m\fR option argument be placed within single quote characters,
19191 and that \fBcsh\fR users insert a backslash character (``\e'') before
19192 any exclamation marks (``!'').
19194 @@ -197,30 +197,33 @@
19195 \fBtset\fR's most important use). This implementation behaves like 4.4BSD
19196 tset, with a few exceptions specified here.
19198 -The -S option of BSD tset no longer works; it prints an error message to stderr
19199 -and dies. The -s option only sets \fBTERM\fR, not \fBTERMCAP\fP. Both these
19200 +The \fB\-S\fR option of BSD tset no longer works; it prints an error message to stderr
19201 +and dies. The \fB\-s\fR option only sets \fBTERM\fR, not \fBTERMCAP\fP. Both these
19202 changes are because the \fBTERMCAP\fR variable is no longer supported under
19203 -terminfo-based \fBncurses\fR, which makes \fBtset -S\fR useless (we made it die
19204 +terminfo-based \fBncurses\fR, which makes \fBtset \-S\fR useless (we made it die
19205 noisily rather than silently induce lossage).
19207 There was an undocumented 4.4BSD feature that invoking tset via a link named
19208 `TSET` (or via any other name beginning with an upper-case letter) set the
19209 terminal to use upper-case only. This feature has been omitted.
19211 -The -A, -E, -h, -u and -v options were deleted from the \fBtset\fR
19212 -utility in 4.4BSD. None of them were documented in 4.3BSD and all are
19213 -of limited utility at best. The -a, -d, and -p options are similarly
19214 +The \fB\-A\fR, \fB\-E\fR, \fB\-h\fR, \fB\-u\fR and \fB\-v\fR
19215 +options were deleted from the \fBtset\fR
19216 +utility in 4.4BSD.
19217 +None of them were documented in 4.3BSD and all are
19218 +of limited utility at best.
19219 +The \fB\-a\fR, -\fB\d\fR, and -\fB\p\fR options are similarly
19220 not documented or useful, but were retained as they appear to be in
19221 widespread use. It is strongly recommended that any usage of these
19222 -three options be changed to use the -m option instead. The
19223 --n option remains, but has no effect. The -adnp options are therefore
19224 +three options be changed to use the \fB\-m\fR option instead. The
19225 +-n option remains, but has no effect. The \fB\-adnp\fR options are therefore
19226 omitted from the usage summary above.
19228 -It is still permissible to specify the -e, -i, and -k options without
19229 +It is still permissible to specify the \fB\-e\fR, \fB\-i\fR, and \fB\-k\fR options without
19230 arguments, although it is strongly recommended that such usage be fixed to
19231 explicitly specify the character.
19233 -As of 4.4BSD, executing \fBtset\fR as \fBreset\fR no longer implies the -Q
19234 +As of 4.4BSD, executing \fBtset\fR as \fBreset\fR no longer implies the \fB\-Q\fR
19235 option. Also, the interaction between the - option and the \fIterminal\fR
19236 argument in some historic implementations of \fBtset\fR has been removed.
19238 @@ -230,7 +233,7 @@
19241 system port name to terminal type mapping database (BSD versions only).
19245 terminal capability database
19247 diff -urNd -urNd ncurses-5.3/menu/Makefile.in ncurses-5.3.20030906.orig/menu/Makefile.in
19248 --- ncurses-5.3/menu/Makefile.in Sat Jan 19 19:49:17 2002
19249 +++ ncurses-5.3.20030906.orig/menu/Makefile.in Fri Sep 12 16:42:40 2003
19251 -# $Id: Makefile.in,v 1.36 2002/01/20 01:49:17 tom Exp $
19252 +# $Id: Makefile.in,v 1.40 2003/08/23 23:25:32 tom Exp $
19253 ##############################################################################
19254 -# Copyright (c) 1998,1999,2000,2001,2002 Free Software Foundation, Inc. #
19255 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
19257 # Permission is hereby granted, free of charge, to any person obtaining a #
19258 # copy of this software and associated documentation files (the "Software"), #
19260 includedir = @includedir@
19262 LIBTOOL = @LIBTOOL@
19263 +LIBTOOL_CLEAN = @LIB_CLEAN@
19264 +LIBTOOL_COMPILE = @LIB_COMPILE@
19265 +LIBTOOL_LINK = @LIB_LINK@
19266 +LIBTOOL_INSTALL = @LIB_INSTALL@
19267 +LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
19269 INSTALL = @INSTALL@
19270 INSTALL_LIB = @INSTALL@ @INSTALL_LIB@
19275 -CPPFLAGS = @CPPFLAGS@ \
19277 +CPPFLAGS = -DHAVE_CONFIG_H @CPPFLAGS@
19279 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
19283 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
19285 -LINK = $(LIBTOOL) $(CC)
19286 +LINK = $(LIBTOOL_LINK) $(CC)
19287 LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
19289 SHLIB_DIRS = -L../lib
19291 REL_VERSION = @cf_cv_rel_version@
19292 ABI_VERSION = @cf_cv_abi_version@
19295 +RANLIB = @LIB_PREP@
19297 IMPORT_LIB = @IMPORT_LIB@
19298 SHARED_LIB = @SHARED_LIB@
19299 diff -urNd -urNd ncurses-5.3/misc/csort ncurses-5.3.20030906.orig/misc/csort
19300 --- ncurses-5.3/misc/csort Wed Dec 31 18:00:00 1969
19301 +++ ncurses-5.3.20030906.orig/misc/csort Tue May 13 20:08:22 2003
19304 +# $Id: csort,v 1.2 2002/10/19 21:42:09 tom Exp $
19305 +##############################################################################
19306 +# Copyright (c) 2002 Free Software Foundation, Inc. #
19308 +# Permission is hereby granted, free of charge, to any person obtaining a #
19309 +# copy of this software and associated documentation files (the "Software"), #
19310 +# to deal in the Software without restriction, including without limitation #
19311 +# the rights to use, copy, modify, merge, publish, distribute, distribute #
19312 +# with modifications, sublicense, and/or sell copies of the Software, and to #
19313 +# permit persons to whom the Software is furnished to do so, subject to the #
19314 +# following conditions: #
19316 +# The above copyright notice and this permission notice shall be included in #
19317 +# all copies or substantial portions of the Software. #
19319 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
19320 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
19321 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
19322 +# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
19323 +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
19324 +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
19325 +# DEALINGS IN THE SOFTWARE. #
19327 +# Except as contained in this notice, the name(s) of the above copyright #
19328 +# holders shall not be used in advertising or otherwise to promote the sale, #
19329 +# use or other dealings in this Software without prior written #
19330 +# authorization. #
19331 +##############################################################################
19333 +# override anything that might cause 'sort' to do the wrong thing...
19334 +LANG=C; export LANG
19335 +LANGUAGE=C; export LANGUAGE
19336 +LC_ALL=C; export LC_ALL
19337 +LC_CTYPE=C; export LC_CTYPE
19339 diff -urNd -urNd ncurses-5.3/misc/emx.src ncurses-5.3.20030906.orig/misc/emx.src
19340 --- ncurses-5.3/misc/emx.src Sat Aug 26 21:16:08 2000
19341 +++ ncurses-5.3.20030906.orig/misc/emx.src Tue May 13 20:08:22 2003
19343 -# $Id: emx.src,v 1.7 2000/08/27 02:16:08 jmcoopr Exp $
19344 +# $Id: emx.src,v 1.8 2003/01/26 01:17:55 tom Exp $
19345 # This is a reformatted copy of the terminfo source for OS/2 EMX from
19346 # Juan Jose Garcia Ripoll <worm@arrakis.es>.
19347 # http://www.arrakis.es/~worm/
19354 # Highlight controls corresponding to the ANSI.SYS standard. *All*
19355 # console drivers for Intel boxes obey these. Does not assume \E[11m will
19356 @@ -103,6 +104,7 @@
19362 # ANSI.SYS color control.
19363 # The DOS 5 manual asserts that these sequences meet the ISO 6429 standard.
19364 @@ -113,8 +115,17 @@
19368 - setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
19369 - setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
19371 +# This is better than klone+color, it doesn't assume white-on-black as the
19372 +# default color pair, but many `ANSI' terminals don't grok the <op> cap.
19373 +ecma+color|color control for ECMA-48-compatible terminals,
19379 + setab=\E[4%p1%dm,
19380 + setaf=\E[3%p1%dm,
19382 #### ANSI/ECMA-48 terminals and terminal emulators
19384 @@ -209,7 +220,9 @@
19385 # no_color_video to inform the application that standout(1), underline(2)
19386 # reverse(4) and invisible(64) don't work with color.
19387 emx-base|DOS special keys,
19394 @@ -293,7 +306,7 @@
19395 # me <-> sgr0 turn off all atributes
19397 # On my terminal, \E[4m looks dim.
19398 -ansi|ANSI.SYS color,
19399 +ansi-emx|ANSI.SYS color,
19403 @@ -319,17 +332,17 @@
19406 os2|OS/2-emx ANSI.SYS,
19425 mono|ANSI.SYS mono,
19427 @@ -353,7 +366,7 @@
19430 # nice colors for Emacs (white on blue, mode line white on cyan)
19431 -ansi-color-2|ANSI.SYS color 2,
19432 +ansi-color-2-emx|ANSI.SYS color 2,
19436 @@ -361,9 +374,9 @@
19442 # nice colors for Emacs (white on black, mode line black on cyan)
19443 -ansi-color-3|ANSI.SYS color 3,
19444 +ansi-color-3-emx|ANSI.SYS color 3,
19448 @@ -371,7 +384,7 @@
19455 #### X terminal emulators
19457 @@ -437,7 +450,7 @@
19458 # xterm's internal mouse-tracking facility; ncurses will interpret the
19459 # following three bytes of mouse status information.
19460 # From: Eric S. Raymond <esr@snark.thyrsus.com> 14 Dec 1995
19461 -xterm|vs100|xterm terminal emulator (X11R6 Window System),
19462 +xterm-r6|xterm terminal emulator (X11R6 Window System),
19466 @@ -488,7 +501,15 @@
19482 @@ -496,6 +517,7 @@
19490 @@ -545,6 +567,7 @@
19492 tsl=\E[?E\E[?%i%dT,
19496 # See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
19497 xterm-nic|xterm with ich/ich1 suppressed for non-curses programs,
19498 @@ -758,7 +781,6 @@
19499 cup=\EE%p1%d;%p2%d;,
19506 @@ -816,10 +838,21 @@
19510 - setab=\Es%i%p1%d; setaf=\Er%i%p1%d;,
19511 + setab=\Es%i%p1%d;,
19512 + setaf=\Er%i%p1%d;,
19519 +###############################################################################
19520 +# Aliases which conflict with terminfo.src
19521 +ansi|ANSI.SYS color,
19523 +ansi-color-2|ANSI.SYS color 2,
19524 + use=ansi-color-2-emx,
19525 +ansi-color-3|ANSI.SYS color 3,
19526 + use=ansi-color-3-emx,
19527 +xterm|vs100|xterm terminal emulator (X11R6 Window System),
19529 diff -urNd -urNd ncurses-5.3/misc/run_tic.in ncurses-5.3.20030906.orig/misc/run_tic.in
19530 --- ncurses-5.3/misc/run_tic.in Sat Oct 13 19:44:33 2001
19531 +++ ncurses-5.3.20030906.orig/misc/run_tic.in Fri Sep 12 16:42:59 2003
19534 ##############################################################################
19535 -# Copyright (c) 1998,2000 Free Software Foundation, Inc. #
19536 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
19538 # Permission is hereby granted, free of charge, to any person obtaining a #
19539 # copy of this software and associated documentation files (the "Software"), #
19542 # Author: Thomas E. Dickey 1996,2000
19544 -# $Id: run_tic.in,v 1.11 2001/10/14 00:44:33 tom Exp $
19545 +# $Id: run_tic.in,v 1.15 2003/09/06 22:31:44 Dan.Kegel Exp $
19546 # This script is used to install terminfo.src using tic. We use a script
19547 # because the path checking is too awkward to do in a makefile.
19549 @@ -62,10 +62,14 @@
19550 # on the host's copy of tic to compile the terminfo database.
19551 if test "$THAT_CC" = "$THIS_CC" ; then
19553 -:*) PATH=../progs:${DESTDIR}$bindir$PATH ;;
19554 -*) PATH=../progs:${DESTDIR}$bindir:$PATH ;;
19555 +:*) PATH=../progs:../lib:${DESTDIR}$bindir$PATH ;;
19556 +*) PATH=../progs:../lib:${DESTDIR}$bindir:$PATH ;;
19559 +SHLIB="sh $srcdir/shlib"
19561 +# Cross-compiling, so don't set PATH or run shlib.
19569 # Construct the name of the old (obsolete) pathname, e.g., /usr/lib/terminfo.
19570 -TICDIR=`echo $TERMINFO | sed -e 's@/share/@/lib/@'`
19571 +TICDIR=`echo $TERMINFO | sed -e 's%/share/%/lib/%'`
19573 # Remove the old terminfo stuff; we don't care if it existed before, and it
19574 # would generate a lot of confusing error messages if we tried to overwrite it.
19575 @@ -91,11 +95,11 @@
19577 # If we're not installing into /usr/share/, we'll have to adjust the location
19578 # of the tabset files in terminfo.src (which are in a parallel directory).
19579 -TABSET=`echo $ticdir | sed -e 's@/terminfo$@/tabset@'`
19580 +TABSET=`echo $ticdir | sed -e 's%/terminfo$%/tabset%'`
19581 if test "x$TABSET" != "x/usr/share/tabset" ; then
19582 echo '** adjusting tabset paths'
19583 TMP=${TMPDIR-/tmp}/$$
19584 - sed -e s:/usr/share/tabset:$TABSET:g $source >$TMP
19585 + sed -e s%/usr/share/tabset%$TABSET%g $source >$TMP
19586 trap "rm -f $TMP" 0 1 2 5 15
19589 @@ -111,7 +115,7 @@
19590 problems for older ncurses applications.
19593 -if ( $srcdir/shlib tic$suffix -s -o $TERMINFO $source )
19594 +if ( $SHLIB tic$suffix -s -o $TERMINFO $source )
19596 echo '** built new '$TERMINFO
19598 @@ -140,13 +144,15 @@
19599 cd ${DESTDIR}$prefix
19600 # Construct a symbolic link that only assumes $ticdir has the
19601 # same $prefix as the other installed directories.
19602 - RELATIVE=`echo $ticdir|sed -e 's:^'$prefix'/::'`
19603 + RELATIVE=`echo $ticdir|sed -e 's%^'$prefix'/%%'`
19604 if test "$RELATIVE" != "$ticdir" ; then
19605 - RELATIVE=../`echo $ticdir|sed -e 's:^'$prefix'/::' -e 's:^/::'`
19606 + RELATIVE=../`echo $ticdir|sed -e 's%^'$prefix'/%%' -e 's%^/%%'`
19608 if ( @LN_S@ $RELATIVE $TICDIR )
19610 - echo '** linked '$TICDIR' for compatibility'
19611 + echo '** sym-linked '$TICDIR' for compatibility'
19613 + echo '** could not sym-link '$TICDIR' for compatibility'
19617 diff -urNd -urNd ncurses-5.3/misc/shlib ncurses-5.3.20030906.orig/misc/shlib
19618 --- ncurses-5.3/misc/shlib Sat May 20 18:01:17 2000
19619 +++ ncurses-5.3.20030906.orig/misc/shlib Sun Jul 20 14:02:09 2003
19622 # Author: Thomas E. Dickey <dickey@clark.net> 1996
19624 -# $Id: shlib,v 1.6 2000/05/20 23:01:17 tom Exp $
19625 +# $Id: shlib,v 1.7 2003/07/19 22:58:14 tom Exp $
19626 # Use this script as a wrapper when running executables linked to shared
19627 # libraries on systems that use the $LD_LIBRARY_PATH variable and don't embed
19628 # the soname's path within the linked executable (such as IRIX), e.g,
19631 export LD_LIBRARY_PATH
19634 +# cygwin doesn't use LD_LIBRARY_PATH, but does use PATH
19635 +if test -n "$PATHEXT" ; then
19636 + PATH=$LD_LIBRARY_PATH:$PATH;
19641 diff -urNd -urNd ncurses-5.3/misc/terminfo.src ncurses-5.3.20030906.orig/misc/terminfo.src
19642 --- ncurses-5.3/misc/terminfo.src Sat Oct 5 13:40:53 2002
19643 +++ ncurses-5.3.20030906.orig/misc/terminfo.src Sun Jul 20 14:02:09 2003
19646 #------------------------------------------------------------------------------
19648 -# $Date: 2002/10/05 18:40:53 $
19649 +# $Date: 2003/07/19 19:44:24 $
19652 # Eric S. Raymond (current maintainer)
19653 @@ -562,7 +562,7 @@
19655 # This completely describes the sequences specified in the DOS 2.1 ANSI.SYS
19656 # documentation (except for the keyboard key reassignment feature, which
19657 -# doen't fit the <pfkey> model well). The klone+acs sequences were valid
19658 +# doesn't fit the <pfkey> model well). The klone+acs sequences were valid
19659 # though undocumented. The <pfkey> capability is untested but should work for
19660 # keys F1-F10 (%p1 values outside this range will yield unpredictable results).
19661 # From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 7 1995
19662 @@ -1468,7 +1468,9 @@
19663 kf1=\2330P, kf10=\2330M, kf2=\2330Q, kf3=\2330W,
19664 kf4=\2330x, kf5=\2330t, kf6=\2330u, kf7=\2330q, kf8=\2330r,
19665 kf9=\2330p, knp=\233/, kpp=\233?, nel=^M^J, rev=\2337m,
19666 - rmso=\2330m, rmul=\2330m, sgr0=\2330m,
19667 + rmso=\2330m, rmul=\2330m,
19668 + sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
19671 # NetBSD "wscons" emulator in vt220 mode
19672 # These are micro-minimal and probably need to be redone for real
19673 @@ -1484,7 +1486,7 @@
19675 rcons|BSD rasterconsole,
19677 -# Color version of above. Color currenly only provided by NetBSD.
19678 +# Color version of above. Color currently only provided by NetBSD.
19679 rcons-color|BSD rasterconsole with ANSI color,
19681 colors#8, pairs#64,
19682 @@ -1809,6 +1811,44 @@
19684 # |___kc1_______K4____|_kc3__K5_|_kent_@8_|
19686 +# Note however, that the arrangement of the 5-key ka1-kc3 do not follow the
19687 +# terminfo guidelines. That is a compromise used to assign the remaining
19688 +# keys on the keypad to kf5-kf0, used on older systems with legacy termcap
19690 +vt100+keypad|dec vt100 numeric keypad no fkeys,
19691 + ka1=\EOq, ka3=\EOs, kb2=\EOr, kc1=\EOp, kc3=\EOn,
19692 +vt100+pfkeys|dec vt100 numeric keypad,
19693 + kent=\EOM, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
19694 + use=vt100+keypad,
19695 +vt100+fnkeys|dec vt100 numeric keypad,
19696 + kf0=\EOy, kf10=\EOx, kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl,
19697 + kf9=\EOw, use=vt100+pfkeys,
19699 +# A better adaptation to modern keyboards such as the PC's, which have a dozen
19700 +# function keys and the keypad 2,4,6,8 keys are labeled with arrows keys, is to
19701 +# use the 5-key arrangement to model the arrow keys as suggested in the
19702 +# terminfo guidelines:
19703 +# _______________________________________
19704 +# | PF1 | PF2 | PF3 | PF4 |
19705 +# | $OP | $OQ | $OR | $OS |
19706 +# |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
19708 +# | $Ow | $Ox | $Oy | $Om |
19709 +# |_ka1__K1_|_________|_ka3__K3_|_________|
19710 +# | 4 | 5 | 6 | , |
19711 +# | $Ot | $Ou | $Ov | $Ol |
19712 +# |_________|_kb2__K2_|_________|_________|
19714 +# | $Oq | $Or | $Os | enter |
19715 +# |_kc1__K4_|_________|_kc3__K5_| $OM |
19718 +# |___________________|_________|_kent_@8_|
19720 +vt220+keypad|dec vt220 numeric keypad,
19721 + ka1=\EOw, ka3=\EOy, kb2=\EOu, kc1=\EOq, kc3=\EOs, kent=\EOM,
19722 + kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
19724 # And here, for those of you with orphaned VT100s lacking documentation, is
19725 # a description of the soft switches invoked when you do `Set Up'.
19727 @@ -1853,17 +1893,15 @@
19728 cuf=\E[%p1%dC, cuf1=\E[C$<2>,
19729 cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
19730 cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
19731 - enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, ka1=\EOq,
19732 - ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD,
19733 - kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy,
19734 - kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
19735 - kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
19736 + enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, kbs=^H,
19737 + kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rc=\E8,
19738 rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
19739 rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
19740 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
19741 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
19742 sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
19743 smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
19744 + use=vt100+fnkeys,
19745 vt100nam|vt100-nam|vt100 no automargins,
19746 am@, xenl@, use=vt100-am,
19747 vt100-vb|dec vt100 (w/advanced video) & no beep,
19748 @@ -2132,22 +2170,21 @@
19749 home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL,
19751 is2=\E>\E[?3l\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H,
19752 - ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=\177, kc1=\EOq, kc3=\EOs,
19753 - kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
19754 - kdch1=\E[3~, kel=\E[4~, kent=\EOM, kf1=\EOP, kf10=\E[21~,
19755 - kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
19756 - kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
19757 - kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS,
19758 - kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
19759 - khome=\E[1~, kich1=\E[2~, knp=\E[6~, knxt=^I, kpp=\E[5~,
19760 - kprv=\E[Z, kslt=\E[4~, mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i,
19761 - nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt300,
19762 - ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
19763 - rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
19764 + kbs=\177, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
19765 + kdch1=\E[3~, kel=\E[4~, kf10=\E[21~, kf11=\E[23~,
19766 + kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
19767 + kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
19768 + kf20=\E[34~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
19769 + kf9=\E[20~, khome=\E[1~, kich1=\E[2~, knp=\E[6~, knxt=^I,
19770 + kpp=\E[5~, kprv=\E[Z, kslt=\E[4~, mc0=\E[i, mc4=\E[?4i,
19771 + mc5=\E[?5i, nel=\EE, rc=\E8, rev=\E[7m,
19772 + rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
19773 + rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m,
19775 rs2=\E>\E[?3l\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H,
19776 sc=\E7, sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
19777 smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
19778 - tsl=\E[1$}\E[H\E[K,
19779 + tsl=\E[1$}\E[H\E[K, use=vt220+keypad,
19780 vt320-nam|vt300-nam|dec vt320 7 bit terminal with no am to make SAS happy,
19782 is2=\E>\E[?3l\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H,
19783 @@ -2584,6 +2621,13 @@
19784 dch=\E[%p1%dP, ich=\E[%p1%d@, use=ecma+color,
19787 +# a minimal subset of a vt100 (compare with "news-unk).
19788 +tt|tkterm|Don Libes' tk text widget terminal emulator,
19789 + clear=\E[H\E[J, cr=^M, cuf1=\E[C, cup=\E[%p1%d;%p2%dH,
19790 + cuu1=\E[A, ind=^J, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
19791 + kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, rmso=\E[m,
19794 #### X terminal emulators
19796 # You can add the following line to your .Xdefaults to change the terminal type
19797 @@ -2691,9 +2735,8 @@
19798 ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
19800 is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
19801 - ka1=\EOw, ka3=\EOu, kb2=\EOy, kbeg=\EOE, kbs=^H, kc1=\EOq,
19802 - kc3=\EOs, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
19803 - kdch1=\177, kend=\EOF, kent=\EOM, kf1=\E[11~, kf10=\E[21~,
19804 + kbeg=\EOE, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
19805 + kcuu1=\EOA, kdch1=\177, kend=\EOF, kf1=\E[11~, kf10=\E[21~,
19806 kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
19807 kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
19808 kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~,
19809 @@ -2710,7 +2753,7 @@
19810 sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h,
19811 smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
19812 tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
19813 - vpa=\E[%i%p1%dd, use=ecma+color,
19814 + vpa=\E[%i%p1%dd, use=ecma+color, use=vt220+keypad,
19816 # This is the stock xterm entry supplied with XFree86 3.3, which uses VT100
19817 # codes for F1-F4 except while in VT220 mode.
19818 @@ -2752,8 +2795,8 @@
19820 xterm-xfree86|xterm-new|xterm terminal emulator (XFree86 4.0 Window System),
19822 - kDC=\E[3;2~, kEND=\EO2F, kHOM=\EO2H, kIC=\E[2;2~,
19823 - kLFT=\EO2D, kNXT=\E[6;2~, kPRV=\E[5;2~, kRIT=\EO2C,
19824 + kDC=\E[3;2~, kEND=\E[1;2F, kHOM=\E[1;2H, kIC=\E[2;2~,
19825 + kLFT=\E[1;2D, kNXT=\E[6;2~, kPRV=\E[5;2~, kRIT=\E[1;2C,
19826 kb2=\EOE, kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
19827 kcuu1=\EOA, kend=\EOF, kent=\EOM, kf1=\EOP, kf10=\E[21~,
19828 kf11=\E[23~, kf12=\E[24~, kf13=\EO2P, kf14=\EO2Q,
19829 @@ -2819,6 +2862,14 @@
19830 xterm-88color|xterm with 88 colors,
19831 colors#88, pairs#88, use=xterm-256color,
19833 +# These two are used to demonstrate the any-event mouse support, i.e., by
19834 +# using an extended name "XM" which tells ncurses to put the terminal into
19835 +# a special mode when initializing the xterm mouse.
19836 +xterm-1002|testing xterm-mouse,
19837 + XM=\E[?1002%?%p1%{1}%=%th%el%;, use=xterm-xfree86,
19838 +xterm-1003|testing xterm-mouse,
19839 + XM=\E[?1003%?%p1%{1}%=%th%el%;, use=xterm-xfree86,
19841 # This is another variant, for XFree86 4.0 xterm (T.Dickey)
19842 # This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
19843 # To use it, your decTerminalID resource must be set to 200 or above.
19844 @@ -2895,15 +2946,14 @@
19845 # + uses DEC-style control sequences for the application keypad.
19847 xterm-vt220|XFree86 xterm emulating vt220,
19848 - ka1=\EOw, ka3=\EOy, kbeg=\EOu, kc1=\EOq, kc3=\EOs, kcbt=\E[Z,
19849 - kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\E[4~,
19850 - kent=\EOM, kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
19851 - kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
19852 - kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
19853 - kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf5=\E[15~, kf6=\E[17~,
19854 - kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[1~,
19855 - kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
19857 + kbeg=\EOu, kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
19858 + kcuu1=\EOA, kend=\E[4~, kf10=\E[21~, kf11=\E[23~,
19859 + kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
19860 + kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
19861 + kf20=\E[34~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
19862 + kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
19863 + kmous=\E[M, knp=\E[6~, kpp=\E[5~, use=xterm-basic,
19864 + use=vt220+keypad,
19866 xterm-vt52|XFree86 xterm emulating dec vt52,
19867 cols#80, it#8, lines#24,
19868 @@ -2951,7 +3001,7 @@
19869 # -- MATSUMOTO Shoji)
19870 kterm|kterm kanji terminal emulator (X window system),
19872 - acsc=++\,\,--..00II``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
19873 + acsc=++\,\,--..00ii``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
19874 csr=\E[%i%p1%d;%p2%dr, dsl=\E[?H, enacs=, fsl=\E[?F,
19875 kmous=\E[M, rc=\E8, rmacs=\E(B, sc=\E7, smacs=\E(0,
19876 tsl=\E[?E\E[?%i%dT, use=xterm-r6, use=ecma+color,
19877 @@ -2981,9 +3031,8 @@
19878 dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
19879 el=\E[K, el1=\E[1K, enacs=\E(B\E)0, home=\E[H, ht=^I,
19880 ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J,
19881 - is1=\E[r\E[m\E[?7h\E[?4;6l\E[4l, ka1=\EOw, ka3=\EOy,
19882 - kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\EOD, kcud1=\EOB,
19883 - kcuf1=\EOC, kcuu1=\EOA, kend=\E[8~, kent=\EOM, kf1=\E[11~,
19884 + is1=\E[r\E[m\E[?7h\E[?4;6l\E[4l, kbs=^H, kcub1=\EOD,
19885 + kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\E[8~, kf1=\E[11~,
19886 kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~,
19887 kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
19888 kf8=\E[19~, kf9=\E[20~, khome=\E[7~, kich1=\E[2~,
19889 @@ -2995,7 +3044,7 @@
19890 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
19891 sgr0=\E[m, smacs=^N, smam=\E[?7h,
19892 smcup=\E[?1;41s\E[?1;41h\E=, smir=\E[4h, smso=\E[7m,
19893 - smul=\E[4m, use=ecma+color,
19894 + smul=\E[4m, use=ecma+color, use=vt220+keypad,
19896 # The 'nxterm' distributed with Redhat Linux 5.2 is a slight rehack of
19897 # xterm-sb_right-ansi-3d, which implements ANSI colors, but does not support
19898 @@ -3005,7 +3054,9 @@
19900 # Redhat Linux 6.x distributes XFree86 xterm as "nxterm", which uses bce
19901 # colors; note that this is not compatible with the 5.2 version.
19902 -nxterm|xterm-color|generic color xterm,
19903 +# csw (2002-05-15): make xterm-color primary instead of nxterm, to
19904 +# match XFree86's xterm.terminfo usage and prevent circular links
19905 +xterm-color|nxterm|generic color xterm,
19907 op=\E[m, use=xterm-r6, use=klone+color,
19909 @@ -3146,10 +3197,9 @@
19910 il=\E[%p1%dL, il1=\E[L, ind=^J, is1=\E[?47l\E=\E[?1l,
19911 is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
19912 kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kLFT=\E[d, kNXT=\E[6$,
19913 - kPRV=\E[5$, kRIT=\E[c, ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=^H,
19914 - kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
19915 - kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kel=\E[8\^,
19916 - kend=\E[8~, kent=\EOM, kf1=\E[11~, kf10=\E[21~,
19917 + kPRV=\E[5$, kRIT=\E[c, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
19918 + kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~,
19919 + kel=\E[8\^, kend=\E[8~, kf1=\E[11~, kf10=\E[21~,
19920 kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
19921 kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
19922 kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~,
19923 @@ -3162,10 +3212,22 @@
19924 rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>,
19925 s0ds=\E(B, s1ds=\E(0, sc=\E7, sgr0=\E[0m\017, smacs=^N,
19926 smcup=\E7\E[?47h, smir=\E[4h, smkx=\E=, smso=\E[7m,
19927 - smul=\E[4m, tbc=\E[3g,
19928 + smul=\E[4m, tbc=\E[3g, use=vt220+keypad,
19929 rxvt|rxvt terminal emulator (X Window System),
19931 - sgr0=\E[m\017, use=rxvt-basic, use=ecma+color,
19932 + cvvis=\E[?25h, hpa=\E[%i%p1%dG, kf0=\E[21~,
19933 + sgr0=\E[m\017, vpa=\E[%i%p1%dd, use=rxvt-basic,
19935 +rxvt-color|rxvt terminal emulator (X Window System),
19937 +rxvt-xpm|rxvt terminal emulator (X Window System),
19939 +rxvt-cygwin|rxvt terminal emulator (X Window System) on cygwin,
19940 + acsc=0\333+\257\,\256-\^`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
19942 +rxvt-cygwin-native|rxvt terminal emulator (native MS Window System port) on cygwin,
19943 + acsc=0\333+\257\,\256-\^`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330~\376,
19946 # This variant is supposed to work with rxvt 2.7.7 when compiled with
19947 # NO_BRIGHTCOLOR defined. rxvt needs more work...
19948 @@ -3227,19 +3289,17 @@
19949 dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
19950 el=\E[K, el1=\E[1K$<3>, enacs=\E(B\E)0, getm=\E[%p1%dY,
19951 home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
19952 - il=\E[%p1%dL, il1=\E[L, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr,
19953 - kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB,
19954 - kcuf1=\EOC, kcuu1=\EOA, kend=\E[Y, kent=\EOM, kf0=\EOy,
19955 - kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf2=\EOQ,
19956 - kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
19957 - kf9=\EOX, khome=\E[H, kmous=\E[^_, knp=\E[U, kpp=\E[V,
19958 - rc=\E8, reqmp=\E[492Z, rev=\E[7m, ri=\EM, rmacs=^O,
19959 - rmcup=\E@0\E[?4r, rmso=\E[m,
19960 + il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\EOD,
19961 + kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\E[Y, kf0=\EOy,
19962 + kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf5=\EOT, kf6=\EOU,
19963 + kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H, kmous=\E[^_,
19964 + knp=\E[U, kpp=\E[V, rc=\E8, reqmp=\E[492Z, rev=\E[7m, ri=\EM,
19965 + rmacs=^O, rmcup=\E@0\E[?4r, rmso=\E[m,
19966 rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
19967 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
19968 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
19969 sgr0=\E[m\017, smacs=^N, smcup=\E@0\E[?4s\E[?4h\E@1,
19970 - smso=\E[7m, tbc=\E[3g,
19971 + smso=\E[7m, tbc=\E[3g, use=vt100+fnkeys,
19973 xtermc|xterm terminal emulator (color),
19974 colors#8, ncv#7, pairs#64,
19975 @@ -3332,7 +3392,7 @@
19976 # print interface, ANSI X3.64 colour escape sequences, etc. Newsgroup postings
19977 # indicate that it emulates more than one terminal, but incompletely.
19979 -# This is dapted from a FreeBSD bug-report by Daniel Rudy <dcrudy@pacbell.net>
19980 +# This is adapted from a FreeBSD bug-report by Daniel Rudy <dcrudy@pacbell.net>
19981 # It is based on vt102's entry, with some subtle differences, but also
19983 # supports ANSI colors (except for 'op' string)
19984 @@ -3349,19 +3409,71 @@
19985 dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
19986 dsl=\E[?E, ed=\E[J, el=\E[K, el1=\E[1K$<3>, enacs=\E(B\E)0,
19987 fsl=\E[?F, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
19988 - ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, ka1=\EOq,
19989 - ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD,
19990 - kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy,
19991 - kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
19992 - kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, op=\E[100m, rc=\E8,
19993 - rev=\E[7m, ri=\EM, rmacs=^O, rmcup=\E[2J\E[?47l\E8,
19994 - rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
19995 + ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H,
19996 + kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOy,
19997 + kf10=\EOx, kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw,
19998 + op=\E[100m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
19999 + rmcup=\E[2J\E[?47l\E8, rmkx=\E[?1l\E>, rmso=\E[m,
20001 rs2=\E>\E[1;3;4;5;6l\E[?7h\E[100m\E[m\E[r\E[2J\E[H,
20002 sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
20003 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
20004 sgr0=\E[m\017, smacs=^N, smcup=\E7\E[?47h,
20005 smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
20006 - tsl=\E[?E\E[?%i%p1%dT,
20007 + tsl=\E[?E\E[?%i%p1%dT, use=vt100+fnkeys,
20011 +# This application is available by email from <mouse@Rodents.Montreal.QC.CA>.
20013 +# "mterm -type ansi" sets $TERM to "ansi"
20014 +mterm-ansi|ANSI emulation,
20015 + am, bw, mir, msgr,
20017 + acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
20018 + bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
20019 + cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
20020 + cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
20021 + cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
20022 + dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J,
20023 + el=\E[K, home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich1=,
20024 + il=\E[%p1%dL, il1=\E[L, ind=\E[S, indn=\E[%p1%dS,
20025 + invis=\E[8m, is2=\E)0\017, kbs=^H, nel=\EE, rev=\E[7m,
20026 + ri=\E[T, rin=\E[%p1%dT, rmacs=^O, rmir=\E[4l, rmso=\E[27m,
20027 + rmul=\E[24m, sgr0=\E[m, smacs=^N, smir=\E[4h, smso=\E[7m,
20028 + smul=\E[4m, vpa=\E[%i%p1%dd,
20029 +# mterm normally sets $TERM to "mterm"
20030 +mterm|mouse-sun|Der Mouse term,
20033 + bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^N, cuf1=^S,
20034 + cup=\006%p1%d.%p2%d., cuu1=^X, dch1=^Y, dl1=^K, ed=^B, el=^C,
20035 + home=^P, ht=^I, il1=^A, ind=^U, kbs=^H, ll=^R, nel=^M^U, ri=^W,
20036 + rmir=^O, rmso=^T, smir=^Q, smso=^V,
20037 +# "mterm -type decansi" sets $TERM to "decansi"
20038 +decansi|ANSI emulation with DEC compatibility hacks,
20039 + am, mir, msgr, xenl,
20040 + colors#8, it#8, pairs#64,
20041 + acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
20042 + bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
20043 + clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
20044 + csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
20045 + cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
20046 + cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
20047 + dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
20048 + dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, enacs=\E(B\E)0,
20049 + home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich1=, il=\E[%p1%dL,
20050 + il1=\E[L, ind=\E[S, indn=\E[%p1%dS, invis=\E[8m,
20051 + is2=\E)0\E[r\017, kbs=^H, kcub1=\EOD, kcud1=\EOB,
20052 + kcuf1=\EOC, kcuu1=\EOA, nel=\EE, op=\E[0m, rc=\E8, rev=\E[7m,
20053 + ri=\E[T, rin=\E[%p1%dT, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
20054 + rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, sc=\E7,
20055 + setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
20056 + sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
20057 + sgr0=\E[m, smacs=^N, smam=\E[?7h, smir=\E[4h,
20058 + smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, u6=\E[%i%d;%dR,
20059 + u7=\E[6n, vpa=\E[%i%p1%dd,
20063 # MGR is a Bell Labs window system lighter-weight than X.
20064 @@ -3467,11 +3579,18 @@
20065 kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
20066 kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
20067 khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
20068 - nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l,
20069 - rmkx=\E[?1l\E>, rmso=\E[23m, rmul=\E[24m, rs2=\Ec, sc=\E7,
20070 - sgr0=\E[m, smacs=^N, smir=\E[4h, smkx=\E[?1h\E=,
20071 - smso=\E[3m, smul=\E[4m, tbc=\E[3g, E0=\E(B, S0=\E(%p1%c,
20072 + nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
20073 + rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m,
20074 + rmul=\E[24m, rs2=\Ec, sc=\E7, sgr0=\E[m, smacs=^N,
20075 + smcup=\E[?1049h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[3m,
20076 + smul=\E[4m, tbc=\E[3g, E0=\E(B, S0=\E(%p1%c,
20078 +# The bce and status-line entries are from screen 3.9.13 (and require some
20079 +# changes to .screenrc).
20080 +screen-bce|VT 100/ANSI X3.64 virtual terminal with bce,
20082 +screen-s|VT 100/ANSI X3.64 virtual terminal with hardstatus line,
20083 + dsl=\E_\E\\, fsl=\E\\, tsl=\E_, use=screen,
20085 # Read the fine manpage:
20086 # When screen tries to figure out a terminal name for
20087 @@ -3508,9 +3627,11 @@
20088 screen.xterm-r6|screen customized for X11R6 xterm,
20090 # Color applications running in screen and TeraTerm do not play well together
20092 +# on Solaris because Sun's curses implementation gets confused.
20093 screen.teraterm|disable ncv in teraterm,
20094 - ncv#127, use=screen,
20096 + acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
20099 screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols,
20100 cols#132, use=screen,
20101 @@ -3631,7 +3752,7 @@
20102 #### Pilot Pro Palm-Top
20104 # Termcap for Top Gun Telnet and SSH on the Palm Pilot.
20105 -# http://www.isaac.cs.berkeley.edu/pilot/tgtelnet.html
20106 +# http://www.ai/~iang/TGssh/
20107 pilot|tgtelnet|Top Gun Telnet on the Palm Pilot Professional,
20110 @@ -3763,6 +3884,9 @@
20111 sun-c|sun-cmd|Sun Microsystems Workstation console with scrollable history,
20113 rmcup=\E[>4h, smcup=\E[>4l, use=sun,
20114 +sun-type4|Sun Workstation console with type 4 keyboard,
20115 + kcub1=\E[217z, kcud1=\E[221z, kcuf1=\E[219z,
20116 + kcuu1=\E[215z, use=sun-il,
20120 @@ -4032,62 +4156,79 @@
20121 #### Non-Unix Consoles
20124 +### EMX termcap.dat compatibility modes
20126 +# Keypad: Home=\0G Up=\0H PrPag=\0I
20127 +# ka1,kh kcuu1 kpp,ka3
20129 +# Left=\0K 5=\0L Right=\0M
20132 +# End=\0O Down=\0P NxPag=\0Q
20133 +# kc1,kend kcud1 kc3,knp
20138 +# On keyboard with 12 function keys,
20139 +# shifted f-keys: F13-F24
20140 +# control f-keys: F25-F36
20141 +# alt f-keys: F37-F48
20142 +# The shift/control/alt keys do not modify each other, but alt overrides both,
20143 +# and control overrides shift.
20145 +# Also (possibly only EMX, so we don't put it in ansi.sys, etc): set the
20146 +# no_color_video to inform the application that standout(1), underline(2)
20147 +# reverse(4) and invisible(64) don't work with color.
20148 +emx-base|DOS special keys,
20151 + bel=^G, ka1=\0G, ka3=\0I, kb2=\0L, kbs=^H, kc1=\0O, kc3=\0Q,
20152 + kcbt=\0^O, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
20153 + kdch1=\0S, kend=\0O, kf1=\0;, kf10=\0D, kf11=\0\205,
20154 + kf12=\0\206, kf13=\0T, kf14=\0U, kf15=\0V, kf16=\0W,
20155 + kf17=\0X, kf18=\0Y, kf19=\0Z, kf2=\0<, kf20=\0[, kf21=\0\\,
20156 + kf22=\0], kf23=\0\207, kf24=\0\210, kf25=\0\^, kf26=\0_,
20157 + kf27=\0`, kf28=\0a, kf29=\0b, kf3=\0=, kf30=\0c, kf31=\0d,
20158 + kf32=\0e, kf33=\0f, kf34=\0g, kf35=\0\211, kf36=\0\212,
20159 + kf37=\0h, kf38=\0i, kf39=\0j, kf4=\0>, kf40=\0k, kf41=\0l,
20160 + kf42=\0m, kf43=\0n, kf44=\0o, kf45=\0p, kf46=\0q,
20161 + kf47=\0\213, kf48=\0\214, kf5=\0?, kf6=\0@, kf7=\0A, kf8=\0B,
20162 + kf9=\0C, khome=\0G, kich1=\0R, knp=\0Q, kpp=\0I,
20165 # Except for the "-emx" suffixes, these are as distributed with EMX 0.9b,
20166 # a Unix-style environment used on OS/2. (Note that the suffix makes some
20167 # names longer than 14 characters, the nominal maximum).
20169 # Removed: rmacs=\E[10m, smacs=\E[11m, because OS/2 does not implement acs.
20170 ansi-emx|ANSI.SYS color,
20171 - am, bce, eo, mir, msgr, xenl, xon,
20172 + am, bce, eo, mir, msgr, xon,
20173 colors#8, cols#80, it#8, lines#25, pairs#64,
20174 bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
20175 clear=\E[1;33;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H,
20176 cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
20177 dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l,
20178 home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J,
20179 - kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
20180 - kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@,
20181 - kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O,
20182 - knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[5;37;41m,
20183 - rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;44m\E[1;33m,
20184 - rmul=\E[0;44m\E[1;33m, rs1=\Ec, setab=\E[4%p1%dm,
20185 - setaf=\E[3%p1%dm, sgr0=\E[0m\E[1;33;44m, smir=\E[4h,
20186 - smpch=\E[11m, smso=\E[0;31;47m, smul=\E[1;31;44m,
20187 - tbc=\E[3g, u8=\E[?6c, u9=\E[c,
20188 + kb2=\E[G, kbs=^H, kf0=\0D, kll=\0O, kspd=^Z, nel=^M^J,
20189 + rev=\E[5;37;41m, rmir=\E[4l, rmpch=\E[10m,
20190 + rmso=\E[0;44m\E[1;33m, rmul=\E[0;44m\E[1;33m, rs1=\Ec,
20191 + setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
20192 + sgr0=\E[0m\E[1;33;44m, smir=\E[4h, smpch=\E[11m,
20193 + smso=\E[0;31;47m, smul=\E[1;31;44m, tbc=\E[3g, u8=\E[?6c,
20194 + u9=\E[c, use=emx-base,
20195 +# nice colors for Emacs (white on blue, mode line white on cyan)
20196 ansi-color-2-emx|ANSI.SYS color 2,
20197 - am, bce, eo, mir, msgr, xenl, xon,
20198 - colors#8, cols#80, it#8, lines#25, pairs#64,
20199 - bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
20200 - clear=\E[0;37;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H,
20201 - cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
20202 - dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l,
20203 - home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J,
20204 - kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
20205 - kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@,
20206 - kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O,
20207 - knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[1;37;46m,
20208 - rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;37;44m,
20209 - rmul=\E[0;37;44m, rs1=\Ec, setab=\E[4%p1%dm,
20210 - setaf=\E[3%p1%dm, sgr0=\E[0;37;44m, smir=\E[4h,
20211 - smpch=\E[11m, smso=\E[1;37;46m, smul=\E[1;36;44m,
20212 - tbc=\E[3g, u8=\E[?6c, u9=\E[c,
20213 + clear=\E[0;37;44m\E[H\E[J, rev=\E[1;37;46m,
20214 + rmso=\E[0;37;44m, rmul=\E[0;37;44m, rs1=\Ec,
20215 + setaf=\E[3%p1%dm, sgr0=\E[0;37;44m, smso=\E[1;37;46m,
20216 + smul=\E[1;36;44m, use=ansi-emx,
20217 +# nice colors for Emacs (white on black, mode line black on cyan)
20218 ansi-color-3-emx|ANSI.SYS color 3,
20219 - am, bce, eo, mir, msgr, xenl, xon,
20220 - colors#8, cols#80, it#8, lines#25, pairs#64,
20221 - bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
20222 - clear=\E[0;37;40m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H,
20223 - cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
20224 - dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l,
20225 - home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J,
20226 - kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
20227 - kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@,
20228 - kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O,
20229 - knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[1;37;46m,
20230 - rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;37;40m,
20231 - rmul=\E[0;37;40m, rs1=\Ec, setab=\E[4%p1%dm,
20232 - setaf=\E[3%p1%dm, sgr0=\E[0;10m, smir=\E[4h,
20233 - smpch=\E[11m, smso=\E[1;37;46m, smul=\E[0;36;40m,
20234 - tbc=\E[3g, u8=\E[?6c, u9=\E[c,
20235 + clear=\E[0;37;40m\E[H\E[J, rev=\E[1;37;46m,
20236 + rmso=\E[0;37;40m, rmul=\E[0;37;40m, rs1=\Ec,
20237 + setaf=\E[3%p1%dm, sgr0=\E[0;10m, smso=\E[1;37;46m,
20238 + smul=\E[0;36;40m, use=ansi-emx,
20239 mono-emx|stupid monochrome ansi terminal with only one kind of emphasis,
20241 cols#80, it#8, lines#24,
20242 @@ -4117,31 +4258,112 @@
20243 # I've indicated which of these were and which I used.
20244 # Cheers, earnie_boyd@yahoo.com
20245 # several changes based on running with tack and comparing with older entry -TD
20246 +# more changes from csw:
20247 +# add cbt [backtab]
20248 +# remove eo [erase overstrike with blank]
20249 +# change clear was \E[H\E[J now \E[2J (faster?)
20252 +# remove ncv#3 [colors collide with highlights, bitmask] not applicable
20254 +# add cub [cursor back param]
20255 +# add cuf [cursor forward param]
20256 +# add cuu [cursor up param]
20257 +# add cud [cursor down param]
20258 +# add hs [has status line]
20259 +# add fsl [return from status line]
20260 +# add tsl [go to status line]
20261 +# add smacs [Start alt charset] (not sure if this works)
20262 +# add rmacs [End alt charset] (ditto)
20263 +# add smcup [enter_ca_mode] (save console; thanks Corinna)
20264 +# add rmcup [exit_ca_mode] (restore console; thanks Corinna)
20265 +# add kb2 [center of keypad]
20266 +# add u8 [user string 8] \E[?6c
20267 +# add el [clear to end of line] \E[K
20269 +# cnorm [make cursor normal] not implemented
20270 +# flash [flash] not implemented
20271 +# blink [blink] not implemented very usefully in cygwin? \E[5m
20272 +# dim [dim] not implemented very usefully in cygwin? \E[2m
20273 +# cub1 [cursor back 1] typically \E[D, but ^H is faster?
20274 +# kNXT [shifted next key] not implemented
20275 +# kPRV [shifted prev key] not implemented
20276 +# khome [home key] really is \E[1~ NOT \E[H
20277 +# tbc [clear tab stops] not implemented
20278 +# xenl [newline ignnored after 80 cols] messes up last line? Ehud Karni
20279 +# smpch [Start PC charset] is \E[11m, same as smacs
20280 +# rmpch [End PC charset] is \E[10m, same as rmacs
20281 +# mir [move in insert mode] fails in tack?
20282 +# bce [back color erase] causes problems with change background color?
20283 +# cvvis [make cursor very visible] causes a stackdump when testing with
20284 +# testcurs using the output option? \E[?25h\E[?8c
20285 +# civis [make cursor invisible] causes everything to stackdump? \E[?25l\E[?1c
20286 +# ech [erase characters param] broken \E[%p1%dX
20287 +# kcbt [back-tab key] not implemented in cygwin? \E[Z
20288 cygwin|ansi emulation for Cygwin,
20289 - am, eo, in, msgr, xon,
20290 - colors#8, cols#80, it#8, lines#25, ncv#3, pairs#64,
20291 + am, hs, in, msgr, xon,
20292 + colors#8, it#8, pairs#64,
20293 acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
20294 - bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M, cub1=^H,
20295 - cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
20296 - dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
20297 - el=\E[K, el1=\E[1K, home=\E[H, hpa=\E[%i%p1%dG, ht=^I,
20298 - hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
20299 - ind=^J, invis=\E[8m, kbs=^H, kcub1=\E[D, kcud1=\E[B,
20300 - kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
20301 + bel=^G, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J, cr=^M,
20302 + cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
20303 + cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
20304 + cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
20305 + dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, fsl=^G,
20306 + home=\E[H, hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@,
20307 + ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m,
20308 + kb2=\E[G, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
20309 + kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
20310 kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
20311 kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
20312 kf18=\E[32~, kf19=\E[33~, kf2=\E[[B, kf20=\E[34~,
20313 kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
20314 kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
20315 knp=\E[6~, kpp=\E[5~, kspd=^Z, nel=^M^J, op=\E[39;49m,
20316 - rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l, rmpch=\E[10m,
20317 + rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E[10m,
20318 + rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmpch=\E[10m,
20319 rmso=\E[27m, rmul=\E[24m, rs1=\Ec\E]R, sc=\E7,
20320 setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
20321 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
20322 - sgr0=\E[0;10m, smir=\E[4h, smpch=\E[11m, smso=\E[7m,
20323 - smul=\E[4m, u6=\E[%i%d;%dR, u7=\E[6n, u9=\E[c,
20324 + sgr0=\E[0;10m, smacs=\E11m, smcup=\E7\E[?47h, smir=\E[4h,
20325 + smpch=\E[11m, smso=\E[7m, smul=\E[4m, tsl=\E];,
20326 + u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?6c, u9=\E[c,
20329 +# I've supplied this so that you can help test new values and add other
20330 +# features. Cheers, earnie_boyd@yahoo.com.
20332 +# Some features are from pcansi. The op value is from linux. Function-keys
20333 +# are from linux. These have been tested not to cause problems. xenl was in
20334 +# this list, but DOES cause problems so it has been removed
20335 +cygwinDBG|Debug Version for Cygwin,
20336 + am, eo, mir, msgr, xon,
20337 + colors#8, cols#80, it#8, lines#24, ncv#3, pairs#64,
20338 + acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
20339 + bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
20340 + cnorm=\E[?25h, cr=^M, cub=\E[%p1%dD, cub1=\E[D,
20341 + cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
20342 + cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
20343 + dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
20344 + dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
20345 + flash=\E[?5h\E[?5l$<200/>, home=\E[H, hpa=\E[%i%p1%dG,
20346 + ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
20347 + il1=\E[L, ind=^J, invis=\E[8m, kNXT=\E[6$, kPRV=\E[5$,
20348 + kb2=\E[G, kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
20349 + kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
20350 + kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
20351 + kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
20352 + kf18=\E[32~, kf19=\E[33~, kf2=\E[[B, kf20=\E[34~,
20353 + kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
20354 + kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
20355 + knp=\E[6~, kpp=\E[5~, kspd=^Z, nel=^M^J, op=\E[39;49m,
20356 + rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E[10m, rmir=\E[4l,
20357 + rmso=\E[m, rmul=\E[m, rs1=\Ec\E]R, sc=\E7,
20358 + setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
20359 + sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m,
20360 + sgr0=\E[0;10m, smacs=\E[11m, smir=\E[4h, smso=\E[7m,
20361 + smul=\E[4m, tbc=\E[2g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?6c,
20362 + u9=\E[c, vpa=\E[%i%p1%dd,
20364 # This entry fits the Windows NT console when the _POSIX_TERM environment
20365 # variable is set to 'on'. While the Windows NT POSIX console is seldom used,
20366 # the Telnet client supplied with both the Windows for WorkGroup 3.11 TCP/IP
20367 @@ -6939,9 +7161,8 @@
20368 ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>,
20369 ind=\n$<2>, ip=$<1>,
20370 is1=\E[2;4;20;30l\E[?1;10l\E[12h\E[?7;8;25h,
20371 - is2=\E>\E(B\E)0\017, is3=\E[m, ka1=\EOw, ka3=\EOy,
20372 - kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D, kcud1=\E[B,
20373 - kcuf1=\E[C, kcuu1=\E[A, kdl1=\E[M, kel=\E[K, kent=\EOM,
20374 + is2=\E>\E(B\E)0\017, is3=\E[m, kbs=^H, kcub1=\E[D,
20375 + kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdl1=\E[M, kel=\E[K,
20376 kf1=\E[?5i, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
20377 kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
20378 kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[?3i,
20379 @@ -6956,7 +7177,7 @@
20380 sgr=%?%p5%t\E[0t%;%?%p3%p1%|%t\E[1t%;%?%p2%t\E[2t%;%?%p4%t\E[3t%;%?%p1%p2%p3%p4%p5%|%|%|%|%t\E[7m%e\E[m%;%?%p9%t\016%e\017%;,
20381 sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
20382 smkx=\E[?1l\E[?7h\E=, smso=\E[1t\E[7m, smul=\E[2t\E[4m,
20383 - tbc=\E[3g, tsl=\E[>\,\001,
20384 + tbc=\E[3g, tsl=\E[>\,\001, use=vt220+keypad,
20386 # This terminal description uses the non-hidden attribute mode
20387 # (with magic cookie).
20388 @@ -7008,23 +7229,22 @@
20389 ich=\E[%p1%d@$<4*>, il=\E[%p1%dL$<5*>, il1=\E[L$<5>,
20390 ind=\n$<3>, invis=\E[8m, ip=$<3>, is1=\E[62;1"p\E[?5W,
20391 is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
20392 - is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOy, kb2=\EOu,
20393 - kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D, kcud1=\E[B,
20394 - kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kent=\EOM, kf1=\EOP,
20395 - kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
20396 - kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
20397 - kf18=\E[32~, kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR,
20398 - kf4=\EOS, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
20399 - kfnd=\E[1~, khlp=\E[28~, khome=\E[26~, kich1=\E[2~,
20400 - knp=\E[6~, kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3,
20401 - lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
20402 - ri=\EM$<3>, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
20403 - rmso=\E[m, rmul=\E[m, rs1=\E[13l\E[3l\E!p,
20404 - rs2=\E[35h\E[?3l$<70>, rs3=\E[?5l, sc=\E7,
20405 + is3=\E>\E(B\E)0\017\E[m, kbs=^H, kcub1=\E[D, kcud1=\E[B,
20406 + kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kf10=\E[21~,
20407 + kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
20408 + kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
20409 + kf19=\E[33~, kf20=\E[34~, kf6=\E[17~, kf7=\E[18~,
20410 + kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
20411 + khome=\E[26~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
20412 + kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i,
20413 + mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM$<3>,
20414 + rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m,
20415 + rmul=\E[m, rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<70>,
20416 + rs3=\E[?5l, sc=\E7,
20417 sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
20418 sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
20419 smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
20420 - tsl=\E[40h\E7\E[25;%i%p1%dH,
20421 + tsl=\E[40h\E7\E[25;%i%p1%dH, use=vt220+keypad,
20423 # Wyse 85 with visual bell.
20424 wy85-vb|wyse85-vb|wyse 85 with visible bell,
20425 @@ -7113,25 +7333,24 @@
20426 ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>, il1=\E[L$<3>,
20427 ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W,
20428 is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h,
20429 - is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOy, kb2=\EOu,
20430 - kbs=^H, kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D,
20431 - kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kent=\EOM,
20432 - kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
20433 - kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
20434 - kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
20435 - kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
20436 - kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
20437 - khome=\E[26~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
20438 - kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i,
20439 - mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM$<2>,
20440 - rmacs=^O, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l, rmkx=\E>,
20441 - rmso=\E[27m, rmul=\E[24m,
20442 + is3=\E>\E(B\E)0\017\E[m, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
20443 + kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kf1=\EOP,
20444 + kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
20445 + kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
20446 + kf18=\E[32~, kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR,
20447 + kf4=\EOS, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
20448 + kfnd=\E[1~, khlp=\E[28~, khome=\E[26~, kich1=\E[2~,
20449 + knp=\E[6~, kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3,
20450 + lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
20451 + ri=\EM$<2>, rmacs=^O, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l,
20452 + rmkx=\E>, rmso=\E[27m, rmul=\E[24m,
20453 rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
20454 rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
20455 sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
20456 sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[ Q,
20457 smir=\E[4h, smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
20458 tbc=\E[3g, tsl=\E7\E[99;%i%p1%dH, vpa=\E[%i%p1%dd,
20459 + use=vt220+keypad,
20461 # Wyse 185 with 24 data lines and top status (terminal status)
20462 wy185-24|wyse185-24|wyse 185 with 24 data lines,
20463 @@ -7322,16 +7541,14 @@
20464 # Function key set for the VT-320 (and wy85) compatible keyboard
20466 wy370-105k|Wyse 370 with 105 key keyboard,
20467 - ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs,
20468 - kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
20469 - kdch1=\E[3~, kent=\EOM, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
20470 - kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
20471 - kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
20472 - kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
20473 - kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
20474 + kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
20475 + kdch1=\E[3~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
20476 + kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
20477 + kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf20=\E[34~,
20478 + kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
20479 khlp=\E[28~, khome=\E[26~, kich1=\E[2~, knp=\E[6~,
20480 kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4,
20482 + use=wy370-nk, use=vt220+keypad,
20484 # Function key set for the PC compatible keyboard
20486 @@ -7435,26 +7652,24 @@
20487 hts=\EH, ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>,
20488 il1=\E[L$<3>, ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W,
20489 is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25;67h,
20490 - is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOu, kb2=\EOy,
20491 - kbs=^H, kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D,
20492 + is3=\E>\E(B\E)0\017\E[m, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
20493 kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, ked=\E[1~,
20494 - kel=\E[4~, kent=\EOM, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
20495 + kel=\E[4~, kent=\EOM, kf10=\E[21~, kf11=\E[23~,
20496 kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
20497 kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
20498 - kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
20499 - kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
20500 - khlp=\E[28~, khome=\E[26~, kich1=\E[2~, knp=\E[6~,
20501 - kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4,
20502 - mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
20503 - ri=\EM$<2>, rmacs=^O, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l,
20504 - rmso=\E[m, rmul=\E[24m,
20505 + kf20=\E[34~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
20506 + kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~, khome=\E[26~,
20507 + kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, lf1=PF1,
20508 + lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
20509 + rc=\E8, rev=\E[7m, ri=\EM$<2>, rmacs=^O, rmam=\E[?7l,
20510 + rmcup=\E[ R, rmir=\E[4l, rmso=\E[m, rmul=\E[24m,
20511 rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
20512 rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
20513 sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
20514 sgr0=\E[m\017, smacs=^N, smam=\E[?7h,
20515 smcup=\E[ Q\E[?67;8h, smir=\E[4h, smso=\E[7m, smul=\E[4m,
20516 tbc=\E[3g, tsl=\E[2$~\E[1$}\E[%i%p1%d`,
20518 + vpa=\E[%i%p1%dd, use=vt220+keypad,
20520 # Wyse 520 with 24 data lines and status (terminal status)
20521 wy520-24|wyse520-24|wyse 520 with 24 data lines,
20522 @@ -7976,17 +8191,15 @@
20523 cup=\E[%i%p1%d;%p2%dH$<5>, cuu1=\E[A$<2>, dch1=\E[P,
20524 dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
20525 enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ich1=\E[@,
20526 - il1=\E[L, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H,
20527 - kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
20528 - kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\EOx,
20529 - kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt, kf6=\EOu, kf7=\EOv,
20530 - kf8=\EOl, kf9=\EOw, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>,
20531 - rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
20532 + il1=\E[L, ind=^J, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
20533 + kcuu1=\EOA, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O,
20534 + rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
20535 rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
20537 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
20538 sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
20539 smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
20540 + use=vt100+fnkeys,
20543 # Teletype Model 5420 -- A souped up 5410, with multiple windows,
20544 @@ -11380,16 +11593,14 @@
20545 cuu1=\E[A$<2>, dch1=\E~W, dl1=\E~R, ed=\E[J$<50>,
20546 el=\E[K$<3>, el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H,
20547 ht=^I, hts=\EH, ich1=\E~Q, il1=\E~E, ind=^J, is1=\E~)\E~ea,
20548 - ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn,
20549 - kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM,
20550 - kf0=\EOy, kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
20551 - kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
20552 - rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
20553 + kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
20554 + rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
20555 rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
20556 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
20557 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
20558 sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
20559 smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
20560 + use=vt100+fnkeys,
20561 ts100-ctxt|falco ts-100 saving context,
20562 rmcup=\E~_b, smcup=\E~_d\E[2J, use=ts100,
20564 @@ -13192,19 +13403,17 @@
20565 il1=\E[L$<5>, ind=\ED$<5>, indn=\E[%p1%dE$<5>,
20567 is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
20568 - ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs,
20569 - kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
20570 - kdch1=\E[3~, kent=\EOM, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
20571 - kf4=\EOS, kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~, knp=\E[6~,
20572 - kpp=\E[5~, krdo=\E[29~, kslt=\E[4~, nel=\EE$<5>, rc=\E8,
20573 - rev=\E[7m, ri=\EM$<5>, rmacs=^O, rmir=\E[4l,
20574 + kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
20575 + kdch1=\E[3~, kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~,
20576 + knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~, nel=\EE$<5>,
20577 + rc=\E8, rev=\E[7m, ri=\EM$<5>, rmacs=^O, rmir=\E[4l,
20578 rmkx=\E[?1l\E>, rmso=\E[0m, rmul=\E[0m,
20579 rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
20581 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>,
20582 sgr0=\E[0m\017$<20>, smacs=^N, smir=\E[4h,
20583 smkx=\E[?1h\E=, smso=\E[1;7m, smul=\E[4m, tbc=\E[3g,
20584 - tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
20585 + tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>, use=vt220+keypad,
20586 ncr260vt100wan|NCR 2900_260 vt100 wide mode ansi kybd,
20588 cup=\E[%i%p1%d;%p2%dH$<30>,
20589 @@ -13242,15 +13451,14 @@
20590 ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>,
20591 ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m,
20592 is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
20593 - ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs,
20594 - kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
20595 - kdch1=\E[3~, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\E[21~,
20596 - kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
20597 - kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
20598 - kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf21=\E[31~,
20599 - kf22=\E[32~, kf23=\E[33~, kf24=\E[34~, kf25=\E[35~,
20600 - kf26=\E[1~, kf27=\E[2~, kf28=\E[3~, kf29=\E[4~, kf3=\EOR,
20601 - kf30=\E[5~, kf31=\E[6~, kf32=\E[7~, kf33=\E[8~, kf34=\E[9~,
20602 + kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
20603 + kdch1=\E[3~, kf0=\EOy, kf10=\E[21~, kf11=\E[23~,
20604 + kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
20605 + kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
20606 + kf2=\EOQ, kf20=\E[34~, kf21=\E[31~, kf22=\E[32~,
20607 + kf23=\E[33~, kf24=\E[34~, kf25=\E[35~, kf26=\E[1~,
20608 + kf27=\E[2~, kf28=\E[3~, kf29=\E[4~, kf3=\EOR, kf30=\E[5~,
20609 + kf31=\E[6~, kf32=\E[7~, kf33=\E[8~, kf34=\E[9~,
20610 kf35=\E[10~, kf4=\EOS, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
20611 kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
20612 kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~,
20613 @@ -13263,6 +13471,7 @@
20614 sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
20615 smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
20616 tbc=\E[3g, tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
20617 + use=vt220+keypad,
20618 ncr260vt200wan|NCR 2900_260 vt200 wide mode ansi kybd,
20620 cup=\E[%i%p1%d;%p2%dH$<30>,
20621 @@ -13298,27 +13507,27 @@
20622 ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>,
20623 ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m,
20624 is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
20625 - ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs,
20626 - kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
20627 - kdch1=\E[3~, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\E[21~,
20628 - kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
20629 - kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
20630 - kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf21=\E[31~,
20631 - kf22=\E[32~, kf23=\E[33~, kf24=\E[34~, kf25=\E[35~,
20632 - kf26=\E[1~, kf27=\E[2~, kf28=\E[3~, kf29=\E[4~, kf3=\EOR,
20633 - kf30=\E[5~, kf31=\E[6~, kf32=\E[7~, kf33=\E[8~, kf34=\E[9~,
20634 - kf35=\E[10~, kf4=\EOS, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
20635 - kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
20636 - kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~,
20637 - mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m,
20638 - ri=\EM$<5>, rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l,
20639 - rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
20640 + kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
20641 + kdch1=\E[3~, kf0=\EOy, kf10=\E[21~, kf11=\E[23~,
20642 + kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
20643 + kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
20644 + kf20=\E[34~, kf21=\E[31~, kf22=\E[32~, kf23=\E[33~,
20645 + kf24=\E[34~, kf25=\E[35~, kf26=\E[1~, kf27=\E[2~,
20646 + kf28=\E[3~, kf29=\E[4~, kf30=\E[5~, kf31=\E[6~, kf32=\E[7~,
20647 + kf33=\E[8~, kf34=\E[9~, kf35=\E[10~, kf5=\E[M, kf6=\E[17~,
20648 + kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
20649 + khlp=\E[28~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
20650 + krdo=\E[29~, kslt=\E[4~, mc0=\E[i, mc4=\E[4i, mc5=\E[5i,
20651 + nel=\EE, rc=\E8, rev=\E[7m, ri=\EM$<5>, rmacs=\017$<20>,
20652 + rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
20654 rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
20656 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>,
20657 sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
20658 smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
20659 tbc=\E[3g, tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
20660 + use=vt220+keypad,
20661 ncr260vt300wan|NCR 2900_260 vt300 wide mode ansi kybd,
20663 cup=\E[%i%p1%d;%p2%dH$<30>,
20664 @@ -13406,7 +13615,7 @@
20666 ncr260wy350pp|NCR 2900_260 wyse 350,
20667 am, bw, hs, km, mc5i, mir, msgr, xon,
20668 - colors#16, cols#80, lines#24, ncv#33, nlab#32, xmc#1,
20669 + colors#16, cols#80, lines#24, ncv#33, nlab#32, pairs#16, xmc#1,
20670 acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
20671 cbt=\EI, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M,
20672 cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
20673 @@ -14005,17 +14214,15 @@
20674 cuf=\E[%p1%dC, cuf1=\E[C$<2>,
20675 cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
20676 cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
20677 - enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, ka1=\EOq,
20678 - ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD,
20679 - kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy,
20680 - kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
20681 - kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
20682 + enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, kbs=^H,
20683 + kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rc=\E8,
20684 rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
20685 rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
20686 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
20687 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
20688 sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
20689 smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
20690 + use=vt100+fnkeys,
20692 # Tektronix 4105 from BRL
20693 # The following setup modes are assumed for normal operation:
20694 @@ -14831,15 +15038,14 @@
20695 cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
20696 dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
20697 home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=^J,
20698 - ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=\177, kc1=\EOp, kc3=\EOn,
20699 - kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM,
20700 - kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m,
20701 - ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
20702 + kbs=\177, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
20703 + kent=\EOM, rc=\E8, rev=\E[7m, ri=\EM, rmam=\E[?7l,
20704 + rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
20705 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
20706 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m,
20707 sgr0=\E[m\017, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m,
20708 smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n,
20709 - u8=\E[?1;2c, u9=\E[c,
20710 + u8=\E[?1;2c, u9=\E[c, use=vt100+pfkeys,
20712 nsterm+acs|AppKit Terminal.app v41+ basic capabilities w/VT100 alternate-charset,
20713 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
20714 @@ -15026,14 +15232,14 @@
20715 cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
20716 cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
20717 cuu=\E[%p1%dA, cuu1=\E[A, dsl=\E]2;\007, ed=\E[J, el=\E[K,
20718 - el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ind=^J, ka1=\EOq,
20719 - ka3=\EOs, kb2=\EOr, kbs=\177, kc1=\EOp, kc3=\EOn, kcub1=\EOD,
20720 - kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rc=\E8, rev=\E[7m,
20721 - ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
20722 - rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
20723 + el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ind=^J, kbs=\177,
20724 + kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rc=\E8,
20725 + rev=\E[7m, ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m,
20726 + rmul=\E[m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
20728 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
20729 sgr0=\E[m\017, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m,
20730 - smul=\E[4m, tbc=\E[3g,
20731 + smul=\E[4m, tbc=\E[3g, use=vt100+keypad,
20733 xnuppc+c|Darwin PowerPC Console ANSI color support,
20734 colors#8, ncv#32, pairs#64,
20735 @@ -17642,7 +17848,7 @@
20736 # respectively, to be able to restore them when color changes
20737 # (because any color change turns off ALL attributes)
20738 # 3. <bold> and <rev> sequences alternate modes,
20739 -# rather then simply entering them. Thus we have to check the
20740 +# rather than simply entering them. Thus we have to check the
20741 # static register B and H to determine the status, before sending the
20743 # 4. <sgr0> now must set the status of all 3 register (A,B,H) to zero
20744 @@ -17744,15 +17950,12 @@
20745 cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
20746 cuu1=\E[A$<2>, dl1=\E[M$<99>, ed=\E[J$<50>, el=\E[K$<3>,
20747 el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH,
20748 - il1=\E[L$<99>, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H,
20749 - kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
20750 - kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\EOx,
20751 - kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt, kf6=\EOu, kf7=\EOv,
20752 - kf8=\EOl, kf9=\EOw, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
20753 + il1=\E[L$<99>, ind=^J, kbs=^H, kcub1=\EOD, kcud1=\EOB,
20754 + kcuf1=\EOC, kcuu1=\EOA, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
20755 rmkx=\E[?1l\E>, rmso=\E[m\s,
20756 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m,
20757 smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m\s,
20759 + tbc=\E[3g, use=vt100+fnkeys,
20761 # The official PC terminal emulator program of the AT&T Product Centers.
20762 # Note - insert mode commented out - doesn't seem to work on AT&T PC.
20763 @@ -18325,12 +18528,12 @@
20764 # (T) ECMA-48 calls this "Partial Line Forward" but retains the PLD
20767 -# (U) ECMA-48 calls this "Partial Line Backward" but retains the PLD
20768 +# (U) ECMA-48 calls this "Partial Line Backward" but retains the PLU
20771 # (V) ECMA-48 calls this "Reverse Line Feed" but retains the RI abbreviation.
20773 -# (W) RM/SM modes are as follows: 1 = Guarder Area Transfer Mode (GATM),
20774 +# (W) RM/SM modes are as follows: 1 = Guarded Area Transfer Mode (GATM),
20775 # 2 = Keyboard Action Mode (KAM), 3 = Control Representation Mode (CRM),
20776 # 4 = Insertion Replacement Mode, 5 = Status Report Transfer Mode (SRTM),
20777 # 6 = Erasure Mode (ERM), 7 = Line Editing Mode (LEM), 8 = Bi-Directional
20778 @@ -19536,9 +19739,46 @@
20779 # * scaled the linux-c terminfo entry to match linux-c-nc, i.e., the
20780 # r/g/b parameters of initc are in the range 0 to 1000 -TD
20784 # * minor fix for scale-factor of linux-c and linux-c-nc -TD
20787 +# * split-out vt100+keypad and vt220+keypad, fix interchanged ka3/kb2
20788 +# in the latter -TD
20791 +# * add entries for mterm (mterm, mterm-ansi, decansi) -TD
20792 +# * ncr260wy350pp has only 16 color pairs -TD
20793 +# * add sun-type4 from NetBSD -TD
20794 +# * update xterm-xfree86 to current (patch 170) -TD
20795 +# * add screen-bce, screen-s entries -TD
20796 +# * add xterm-1002, xterm-1003 entries -TD
20799 +# * update homepage for Top Gun Telnet/SSH
20802 +# * reduce duplication in emx entries, added emx-base -TD
20805 +# * corrected acs for screen.teraterm -TD
20806 +# * add tkterm entry -TD
20809 +# * cygwin changes from Charles Wilson:
20810 +# misc/terminfo.src (nxterm|xterm-color): make xterm-color
20811 +# primary instead of nxterm, to match XFree86's xterm.terminfo
20812 +# usage and to prevent circular links.
20813 +# (rxvt): add additional codes from rxvt.org.
20814 +# (rxvt-color): new alias
20815 +# (rxvt-xpm): new alias
20816 +# (rxvt-cygwin): like rxvt, but with special acsc codes.
20817 +# (rxvt-cygwin-native): ditto. rxvt may be run under XWindows, or
20818 +# with a "native" MSWin GUI. Each takes different acsc codes,
20819 +# which are both different from the "normal" rxvt's acsc.
20820 +# (cygwin): cygwin-in-cmd.exe window. Lots of fixes.
20821 +# (cygwinDBG): ditto.
20823 # The following sets edit modes for GNU EMACS.
20826 diff -urNd -urNd ncurses-5.3/mk-1st.awk ncurses-5.3.20030906.orig/mk-1st.awk
20827 --- ncurses-5.3/mk-1st.awk Sat Apr 20 12:32:47 2002
20828 +++ ncurses-5.3.20030906.orig/mk-1st.awk Fri Sep 12 16:42:40 2003
20830 -# $Id: mk-1st.awk,v 1.55 2002/04/20 17:32:47 tom Exp $
20831 +# $Id: mk-1st.awk,v 1.60 2003/08/30 20:48:52 tom Exp $
20832 ##############################################################################
20833 # Copyright (c) 1998,2000,2002 Free Software Foundation, Inc. #
20837 ##############################################################################
20839 -# Author: Thomas E. Dickey <dickey@clark.net> 1996,1997,2000
20840 +# Author: Thomas E. Dickey 1996,1997,2000,2002
20842 # Generate list of objects for a given model library
20845 # MODEL (e.g., "DEBUG", uppercase; toupper is not portable)
20846 # depend (optional dependencies for all objects, e.g, ncurses_cfg.h)
20847 # subset ("none", "base", "base+ext_funcs" or "termlib")
20848 -# target (cross-compile target, if any)
20849 +# host (cross-compile host, if any)
20850 # ShlibVer ("rel", "abi" or "auto", to augment DoLinks variable)
20851 # ShlibVerInfix ("yes" or "no", determines location of version #)
20852 # DoLinks ("yes", "reverse" or "no", flag to add symbolic links)
20853 @@ -110,7 +110,7 @@
20857 - print "# generated by mk-1st.awk"
20858 + printf "# generated by mk-1st.awk (subset=%s)\n", subset
20862 @@ -162,8 +162,8 @@
20863 if ( MODEL == "SHARED" )
20865 if (ShlibVerInfix == "cygdll") {
20866 - abi_name = sprintf("%s%s$(ABI_VERSION)%s", prefix, name, suffix);
20867 - rel_name = sprintf("%s%s$(REL_VERSION)%s", prefix, name, suffix);
20868 + abi_name = sprintf("%s%s$(ABI_VERSION)%s", "cyg", name, suffix);
20869 + rel_name = sprintf("%s%s$(REL_VERSION)%s", "cyg", name, suffix);
20870 imp_name = sprintf("%s%s%s.a", prefix, name, suffix);
20871 } else if (ShlibVerInfix == "yes") {
20872 abi_name = sprintf("%s%s.$(ABI_VERSION)%s", prefix, name, suffix);
20873 @@ -194,7 +194,7 @@
20874 print "\t-@rm -f $@";
20876 if ( subset == "termlib") {
20877 - printf "\t$(MK_SHARED_LIB) $(%s_OBJS) $(TINFO_LIST)\n", OBJS
20878 + printf "\t$(MK_SHARED_LIB) $(%s_OBJS) $(TINFO_LIST) $(LDFLAGS)\n", OBJS
20880 printf "\t$(MK_SHARED_LIB) $(%s_OBJS) $(SHLIB_LIST) $(LDFLAGS)\n", OBJS
20882 @@ -233,9 +233,15 @@
20884 if ( overwrite == "yes" && name == "ncurses" )
20886 - ovr_name = sprintf("libcurses%s", suffix)
20887 - printf "\t@echo linking %s to %s\n", end_name, ovr_name
20888 - printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, end_name, ovr_name
20889 + if ( ShlibVer == "cygdll" ) {
20890 + ovr_name = sprintf("libcurses%s.a", suffix)
20891 + printf "\t@echo linking %s to %s\n", imp_name, ovr_name
20892 + printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, imp_name, ovr_name
20894 + ovr_name = sprintf("libcurses%s", suffix)
20895 + printf "\t@echo linking %s to %s\n", end_name, ovr_name
20896 + printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, end_name, ovr_name
20899 if ( ldconfig != "" ) {
20900 printf "\t- test -z \"$(DESTDIR)\" && %s\n", ldconfig
20901 @@ -257,7 +263,11 @@
20902 removelinks("$(DESTDIR)$(libdir)")
20903 if ( overwrite == "yes" && name == "ncurses" )
20905 - ovr_name = sprintf("libcurses%s", suffix)
20906 + if ( ShlibVer == "cygdll" ) {
20907 + ovr_name = sprintf("libcurses%s.a", suffix)
20909 + ovr_name = sprintf("libcurses%s", suffix)
20911 printf "\t-@rm -f $(DESTDIR)$(libdir)/%s\n", ovr_name
20914 @@ -277,19 +287,19 @@
20916 end_name = lib_name;
20917 printf "../lib/%s : $(%s_OBJS)\n", lib_name, OBJS
20918 - printf "\tcd ../lib && $(LIBTOOL) $(%s) -o %s $(%s_OBJS:.o=.lo) -rpath $(DESTDIR)$(libdir) -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR)\n", compile, lib_name, OBJS
20919 + printf "\tcd ../lib && $(LIBTOOL_LINK) $(%s) -o %s $(%s_OBJS:.o=.lo) -rpath $(DESTDIR)$(libdir) -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR) $(SHLIB_LIST)\n", compile, lib_name, OBJS
20922 print "install.libs \\"
20923 printf "install.%s :: $(DESTDIR)$(libdir) ../lib/%s\n", name, lib_name
20924 printf "\t@echo installing ../lib/%s as $(DESTDIR)$(libdir)/%s\n", lib_name, lib_name
20925 - printf "\tcd ../lib; $(LIBTOOL) $(INSTALL_DATA) %s $(DESTDIR)$(libdir)\n", lib_name
20926 + printf "\tcd ../lib; $(LIBTOOL_INSTALL) $(INSTALL) %s $(DESTDIR)$(libdir)\n", lib_name
20928 print "uninstall \\"
20929 print "uninstall.libs \\"
20930 printf "uninstall.%s ::\n", name
20931 printf "\t@echo uninstalling $(DESTDIR)$(libdir)/%s\n", lib_name
20932 - printf "\t-@$(LIBTOOL) rm -f $(DESTDIR)$(libdir)/%s\n", lib_name
20933 + printf "\t-@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(libdir)/%s\n", lib_name
20937 @@ -297,7 +307,7 @@
20938 printf "../lib/%s : $(%s_OBJS)\n", lib_name, OBJS
20939 printf "\t$(AR) $(AR_OPTS) $@ $?\n"
20940 printf "\t$(RANLIB) $@\n"
20941 - if ( target == "vxworks" )
20942 + if ( host == "vxworks" )
20944 printf "\t$(LD) $(LD_OPTS) $? -o $(@:.a=.o)\n"
20946 @@ -314,7 +324,7 @@
20947 printf "\t(cd $(DESTDIR)$(libdir) && $(LN_S) libncurses.a libcurses.a)\n"
20949 printf "\t$(RANLIB) $(DESTDIR)$(libdir)/%s\n", lib_name
20950 - if ( target == "vxworks" )
20951 + if ( host == "vxworks" )
20953 printf "\t@echo installing ../lib/lib%s.o as $(DESTDIR)$(libdir)/lib%s.o\n", name, name
20954 printf "\t$(INSTALL_DATA) ../lib/lib%s.o $(DESTDIR)$(libdir)/lib%s.o\n", name, name
20955 @@ -330,7 +340,7 @@
20956 printf "\t@echo linking libcurses.a to libncurses.a\n"
20957 printf "\t-@rm -f $(DESTDIR)$(libdir)/libcurses.a\n"
20959 - if ( target == "vxworks" )
20960 + if ( host == "vxworks" )
20962 printf "\t@echo uninstalling $(DESTDIR)$(libdir)/lib%s.o\n", name
20963 printf "\t-@rm -f $(DESTDIR)$(libdir)/lib%s.o\n", name
20964 @@ -343,7 +353,7 @@
20965 print "mostlyclean::"
20966 printf "\t-rm -f $(%s_OBJS)\n", OBJS
20967 if ( MODEL == "LIBTOOL" ) {
20968 - printf "\t-rm -f $(%s_OBJS:.o=.lo)\n", OBJS
20969 + printf "\t-$(LIBTOOL_CLEAN) rm -f $(%s_OBJS:.o=.lo)\n", OBJS
20972 else if ( found == 2 )
20973 @@ -352,13 +362,13 @@
20974 print "mostlyclean::"
20975 printf "\t-rm -f $(%s_OBJS)\n", OBJS
20976 if ( MODEL == "LIBTOOL" ) {
20977 - printf "\t-rm -f $(%s_OBJS:.o=.lo)\n", OBJS
20978 + printf "\t-$(LIBTOOL_CLEAN) rm -f $(%s_OBJS:.o=.lo)\n", OBJS
20982 printf "\t-rm -f $(%s_OBJS)\n", OBJS
20983 if ( MODEL == "LIBTOOL" ) {
20984 - printf "\t-rm -f $(%s_OBJS:.o=.lo)\n", OBJS
20985 + printf "\t-$(LIBTOOL_CLEAN) rm -f $(%s_OBJS:.o=.lo)\n", OBJS
20989 diff -urNd -urNd ncurses-5.3/mk-2nd.awk ncurses-5.3.20030906.orig/mk-2nd.awk
20990 --- ncurses-5.3/mk-2nd.awk Sat Oct 14 12:57:02 2000
20991 +++ ncurses-5.3.20030906.orig/mk-2nd.awk Fri Sep 12 16:42:40 2003
20993 -# $Id: mk-2nd.awk,v 1.13 2000/10/14 17:57:02 Johnny.C.Lam Exp $
20994 +# $Id: mk-2nd.awk,v 1.14 2003/08/30 20:59:40 tom Exp $
20995 ##############################################################################
20996 -# Copyright (c) 1998 Free Software Foundation, Inc. #
20997 +# Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. #
20999 # Permission is hereby granted, free of charge, to any person obtaining a #
21000 # copy of this software and associated documentation files (the "Software"), #
21001 @@ -100,9 +100,9 @@
21003 sub("^\\$\\(srcdir\\)/","",dir);
21004 sub("^\\./","",dir);
21005 - printf "\t%scd ../%s; $(LIBTOOL) $(%s) $(CFLAGS_%s) -c ../%s/%s%s%s", atsign, model, compile, MODEL, name, dir, $1, suffix
21006 + printf "\t%scd ../%s; $(LIBTOOL_COMPILE) $(%s) $(CFLAGS_%s) -c ../%s/%s%s%s", atsign, model, compile, MODEL, name, dir, $1, suffix
21008 - printf "\t%scd ../%s; $(LIBTOOL) $(%s) $(CFLAGS_%s) -c %s/%s%s", atsign, model, compile, MODEL, $3, $1, suffix
21009 + printf "\t%scd ../%s; $(LIBTOOL_COMPILE) $(%s) $(CFLAGS_%s) -c %s/%s%s", atsign, model, compile, MODEL, $3, $1, suffix
21012 for (n = 2; n <= NF; n++) printf " %s", $n
21013 diff -urNd -urNd ncurses-5.3/ncurses/Makefile.in ncurses-5.3.20030906.orig/ncurses/Makefile.in
21014 --- ncurses-5.3/ncurses/Makefile.in Sat Jun 29 17:36:25 2002
21015 +++ ncurses-5.3.20030906.orig/ncurses/Makefile.in Fri Sep 12 16:42:40 2003
21017 -# $Id: Makefile.in,v 1.84 2002/06/29 22:36:25 tom Exp $
21018 +# $Id: Makefile.in,v 1.89 2003/08/23 23:25:48 tom Exp $
21019 ##############################################################################
21020 -# Copyright (c) 1998,1999,2000,2001,2002 Free Software Foundation, Inc. #
21021 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
21023 # Permission is hereby granted, free of charge, to any person obtaining a #
21024 # copy of this software and associated documentation files (the "Software"), #
21027 ##############################################################################
21029 -# Author: Thomas E. Dickey 1996-2001
21030 +# Author: Thomas E. Dickey 1996-2002
21032 # Makefile for ncurses source code.
21035 datadir = @datadir@
21037 LIBTOOL = @LIBTOOL@
21038 +LIBTOOL_CLEAN = @LIB_CLEAN@
21039 +LIBTOOL_COMPILE = @LIB_COMPILE@
21040 +LIBTOOL_LINK = @LIB_LINK@
21041 +LIBTOOL_INSTALL = @LIB_INSTALL@
21042 +LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
21044 INSTALL = @INSTALL@
21045 INSTALL_LIB = @INSTALL@ @INSTALL_LIB@
21046 @@ -86,10 +91,10 @@
21048 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
21050 -HOSTCC = @BUILD_CC@
21051 -HOSTCCFLAGS = -DHAVE_CONFIG_H -I../ncurses -I$(srcdir) @BUILD_CFLAGS@ @BUILD_CPPFLAGS@
21052 -HOSTLDFLAGS = @BUILD_LDFLAGS@
21053 -HOSTLIBS = @BUILD_LIBS@
21054 +BUILD_CC = @BUILD_CC@
21055 +BUILD_CCFLAGS = -DHAVE_CONFIG_H -I../ncurses -I$(srcdir) @BUILD_CPPFLAGS@ @BUILD_CFLAGS@
21056 +BUILD_LDFLAGS = @BUILD_LDFLAGS@
21057 +BUILD_LIBS = @BUILD_LIBS@
21059 CFLAGS_LIBTOOL = $(CCFLAGS)
21060 CFLAGS_NORMAL = $(CCFLAGS)
21061 @@ -113,7 +118,7 @@
21062 REL_VERSION = @cf_cv_rel_version@
21063 ABI_VERSION = @cf_cv_abi_version@
21066 +RANLIB = @LIB_PREP@
21068 IMPORT_LIB = @IMPORT_LIB@
21069 SHARED_LIB = @SHARED_LIB@
21070 @@ -189,12 +194,12 @@
21072 $(tinfo)/make_keys.c \
21074 - $(HOSTCC) -o $@ $(HOSTCCFLAGS) $(tinfo)/make_keys.c $(HOSTLDFLAGS) $(HOSTLIBS)
21075 + $(BUILD_CC) -o $@ $(BUILD_CCFLAGS) $(tinfo)/make_keys.c $(BUILD_LDFLAGS) $(BUILD_LIBS)
21078 $(tinfo)/comp_hash.c \
21079 ../include/hashsize.h
21080 - $(HOSTCC) -o $@ $(HOSTCCFLAGS) -DMAIN_PROGRAM $(tinfo)/comp_hash.c $(HOSTLDFLAGS) $(HOSTLIBS)
21081 + $(BUILD_CC) -o $@ $(BUILD_CCFLAGS) -DMAIN_PROGRAM $(tinfo)/comp_hash.c $(BUILD_LDFLAGS) $(BUILD_LIBS)
21083 expanded.c : $(serial)/MKexpanded.sh
21084 sh $(serial)/MKexpanded.sh "$(CPP)" $(CPPFLAGS) > $@
21085 diff -urNd -urNd ncurses-5.3/ncurses/base/MKlib_gen.sh ncurses-5.3.20030906.orig/ncurses/base/MKlib_gen.sh
21086 --- ncurses-5.3/ncurses/base/MKlib_gen.sh Sat Sep 28 10:02:11 2002
21087 +++ ncurses-5.3.20030906.orig/ncurses/base/MKlib_gen.sh Tue May 13 20:08:22 2003
21090 # MKlib_gen.sh -- generate sources from curses.h macro definitions
21092 -# ($Id: MKlib_gen.sh,v 1.20 2002/09/28 15:02:11 tom Exp $)
21093 +# ($Id: MKlib_gen.sh,v 1.22 2003/02/22 19:58:07 tom Exp $)
21095 ##############################################################################
21096 -# Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. #
21097 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
21099 # Permission is hereby granted, free of charge, to any person obtaining a #
21100 # copy of this software and associated documentation files (the "Software"), #
21101 @@ -82,19 +82,19 @@
21103 /^extern.*implemented/{
21105 - s/^.*implemented:\([^ *]*\).*/P_#if_USE_\1_SUPPORT/p
21106 + s/^.*implemented:\([^ *]*\).*/P_POUNDCif_USE_\1_SUPPORT/p
21108 s/^extern \([^;]*\);.*/\1/p
21110 - s/^.*implemented:\([^ *]*\).*/P_#endif/p
21111 + s/^.*implemented:\([^ *]*\).*/P_POUNDCendif/p
21113 /^extern.*generated/{
21115 - s/^.*generated:\([^ *]*\).*/P_#if_USE_\1_SUPPORT/p
21116 + s/^.*generated:\([^ *]*\).*/P_POUNDCif_USE_\1_SUPPORT/p
21118 s/^extern \([^;]*\);.*/\1/p
21120 - s/^.*generated:\([^ *]*\).*/P_#endif/p
21121 + s/^.*generated:\([^ *]*\).*/P_POUNDCendif/p
21125 @@ -102,11 +102,11 @@
21129 - s/^.*${ALL}:\([^ *]*\).*/P_#if_USE_\1_SUPPORT/p
21130 + s/^.*${ALL}:\([^ *]*\).*/P_POUNDCif_USE_\1_SUPPORT/p
21132 s/^extern \([^;]*\);.*/\1/p
21134 - s/^.*${ALL}:\([^ *]*\).*/P_#endif/p
21135 + s/^.*${ALL}:\([^ *]*\).*/P_POUNDCendif/p
21139 @@ -134,13 +134,14 @@
21151 + s/^P_POUNDCif_/#if /
21152 + s/^P_POUNDCendif/#endif/
21156 @@ -151,7 +152,7 @@
21165 @@ -175,12 +176,12 @@
21176 +/^P_POUNDCendif/ {
21180 diff -urNd -urNd ncurses-5.3/ncurses/base/define_key.c ncurses-5.3.20030906.orig/ncurses/base/define_key.c
21181 --- ncurses-5.3/ncurses/base/define_key.c Sat Dec 9 20:43:26 2000
21182 +++ ncurses-5.3.20030906.orig/ncurses/base/define_key.c Sun Jul 20 14:02:08 2003
21184 /****************************************************************************
21185 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
21186 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
21188 * Permission is hereby granted, free of charge, to any person obtaining a *
21189 * copy of this software and associated documentation files (the *
21190 @@ -32,11 +32,10 @@
21192 #include <curses.priv.h>
21194 -MODULE_ID("$Id: define_key.c,v 1.6 2000/12/10 02:43:26 tom Exp $")
21195 +MODULE_ID("$Id: define_key.c,v 1.8 2003/05/17 23:28:05 tom Exp $")
21197 NCURSES_EXPORT(int)
21199 -(char *str, int keycode)
21200 +define_key(const char *str, int keycode)
21208 - (void) _nc_add_to_try(&(SP->_keytry), str, keycode);
21210 + if (key_defined(str) == 0) {
21211 + (void) _nc_add_to_try(&(SP->_keytry), str, keycode);
21218 while (_nc_remove_string(&(SP->_keytry), str))
21219 diff -urNd -urNd ncurses-5.3/ncurses/base/key_defined.c ncurses-5.3.20030906.orig/ncurses/base/key_defined.c
21220 --- ncurses-5.3/ncurses/base/key_defined.c Wed Dec 31 18:00:00 1969
21221 +++ ncurses-5.3.20030906.orig/ncurses/base/key_defined.c Sun Jul 20 14:02:08 2003
21223 +/****************************************************************************
21224 + * Copyright (c) 2003 Free Software Foundation, Inc. *
21226 + * Permission is hereby granted, free of charge, to any person obtaining a *
21227 + * copy of this software and associated documentation files (the *
21228 + * "Software"), to deal in the Software without restriction, including *
21229 + * without limitation the rights to use, copy, modify, merge, publish, *
21230 + * distribute, distribute with modifications, sublicense, and/or sell *
21231 + * copies of the Software, and to permit persons to whom the Software is *
21232 + * furnished to do so, subject to the following conditions: *
21234 + * The above copyright notice and this permission notice shall be included *
21235 + * in all copies or substantial portions of the Software. *
21237 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
21238 + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
21239 + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
21240 + * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
21241 + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21242 + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
21243 + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
21245 + * Except as contained in this notice, the name(s) of the above copyright *
21246 + * holders shall not be used in advertising or otherwise to promote the *
21247 + * sale, use or other dealings in this Software without prior written *
21248 + * authorization. *
21249 + ****************************************************************************/
21251 +/****************************************************************************
21252 + * Author: Thomas E. Dickey, 2003 *
21253 + ****************************************************************************/
21255 +#include <curses.priv.h>
21257 +MODULE_ID("$Id: key_defined.c,v 1.3 2003/05/17 23:12:27 tom Exp $")
21260 +find_definition(struct tries *tree, const char *str)
21262 + struct tries *ptr;
21265 + if (str != 0 && *str != '\0') {
21266 + for (ptr = tree; ptr != 0; ptr = ptr->sibling) {
21267 + if (UChar(*str) == UChar(ptr->ch)) {
21268 + if (str[1] == '\0' && ptr->child != 0) {
21270 + } else if ((result = find_definition(ptr->child, str + 1)) == 0) {
21271 + result = ptr->value;
21272 + } else if (str[1] == '\0') {
21284 + * Returns the keycode associated with the given string. If none is found,
21285 + * return 0. If the string is only a prefix to other strings, return -1.
21287 +NCURSES_EXPORT(int)
21288 +key_defined(const char *str)
21292 + T((T_CALLED("key_defined(%s)"), _nc_visbuf(str)));
21293 + if (SP != 0 && str != 0) {
21294 + code = find_definition(SP->_keytry, str);
21297 + returnCode(code);
21299 diff -urNd -urNd ncurses-5.3/ncurses/base/keybound.c ncurses-5.3.20030906.orig/ncurses/base/keybound.c
21300 --- ncurses-5.3/ncurses/base/keybound.c Sat Dec 9 20:43:26 2000
21301 +++ ncurses-5.3.20030906.orig/ncurses/base/keybound.c Tue May 13 20:08:22 2003
21303 /****************************************************************************
21304 - * Copyright (c) 1999,2000 Free Software Foundation, Inc. *
21305 + * Copyright (c) 1999-2000,2003 Free Software Foundation, Inc. *
21307 * Permission is hereby granted, free of charge, to any person obtaining a *
21308 * copy of this software and associated documentation files (the *
21311 #include <curses.priv.h>
21313 -MODULE_ID("$Id: keybound.c,v 1.3 2000/12/10 02:43:26 tom Exp $")
21314 +MODULE_ID("$Id: keybound.c,v 1.4 2003/03/08 19:39:31 tom Exp $")
21317 * Returns the count'th string definition which is associated with the
21319 NCURSES_EXPORT(char *)
21320 keybound(int code, int count)
21322 - return _nc_expand_try(SP->_key_ok, code, &count, 0);
21323 + T((T_CALLED("keybound(%d,%d)"), code, count));
21324 + returnPtr(_nc_expand_try(SP->_keytry, code, &count, 0));
21326 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_addch.c ncurses-5.3.20030906.orig/ncurses/base/lib_addch.c
21327 --- ncurses-5.3/ncurses/base/lib_addch.c Sat Sep 28 12:48:13 2002
21328 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_addch.c Fri Sep 12 16:42:10 2003
21330 /****************************************************************************
21331 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
21332 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
21334 * Permission is hereby granted, free of charge, to any person obtaining a *
21335 * copy of this software and associated documentation files (the *
21337 #include <curses.priv.h>
21340 -MODULE_ID("$Id: lib_addch.c,v 1.68 2002/09/28 17:48:13 tom Exp $")
21341 +MODULE_ID("$Id: lib_addch.c,v 1.77 2003/08/17 00:09:05 tom Exp $")
21344 * Ugly microtweaking alert. Everything from here to end of module is
21346 AddAttr(ch, (a & COLOR_MASK(AttrOf(ch))));
21349 - TR(TRACE_VIRTPUT, ("bkg = %s, attrs = %s -> ch = %s",
21350 + TR(TRACE_VIRTPUT, ("render_char bkg %s, attrs %s -> ch %s",
21351 _tracech_t2(1, CHREF(win->_nc_bkgd)),
21352 _traceattr(win->_attrs),
21353 _tracech_t2(3, CHREF(ch))));
21354 @@ -99,15 +99,21 @@
21355 #define CHECK_POSITION(win, x, y) /* nothing */
21360 +#if !USE_WIDEC_SUPPORT /* cannot be inline if it is recursive */
21364 waddch_literal(WINDOW *win, NCURSES_CH_T ch)
21373 - CHECK_POSITION(win, x, win->_cury);
21374 + CHECK_POSITION(win, x, y);
21377 * If we're trying to add a character at the lower-right corner more
21378 @@ -122,20 +128,65 @@
21381 ch = render_char(win, ch);
21382 - TR(TRACE_VIRTPUT, ("win attr = %s", _traceattr(win->_attrs)));
21384 - line = win->_line + win->_cury;
21385 + line = win->_line + y;
21387 CHANGED_CELL(line, x);
21390 + * Build up multibyte characters until we have a wide-character.
21393 + if (WINDOW_EXT(win, addch_used) == 0 && Charable(ch)) {
21394 + WINDOW_EXT(win, addch_used) = 0;
21396 + char *buffer = WINDOW_EXT(win, addch_work);
21401 + if ((WINDOW_EXT(win, addch_used) != 0) &&
21402 + (WINDOW_EXT(win, addch_x) != x ||
21403 + WINDOW_EXT(win, addch_y) != y)) {
21404 + /* discard the incomplete multibyte character */
21405 + WINDOW_EXT(win, addch_used) = 0;
21407 + WINDOW_EXT(win, addch_x) = x;
21408 + WINDOW_EXT(win, addch_y) = y;
21410 + memset(&state, 0, sizeof(state));
21411 + buffer[WINDOW_EXT(win, addch_used)] = CharOf(ch);
21412 + WINDOW_EXT(win, addch_used) += 1;
21413 + buffer[WINDOW_EXT(win, addch_used)] = '\0';
21414 + if ((len = mbrtowc(&result,
21416 + WINDOW_EXT(win, addch_used), &state)) > 0) {
21417 + attr_t attrs = AttrOf(ch);
21418 + SetChar(ch, result, attrs);
21419 + WINDOW_EXT(win, addch_used) = 0;
21423 + * An error occurred. We could either discard everything,
21424 + * or assume that the error was in the previous input.
21425 + * Try the latter.
21427 + TR(TRACE_VIRTPUT, ("Alert! mbrtowc returns error"));
21428 + buffer[0] = CharOf(ch);
21429 + WINDOW_EXT(win, addch_used) = 1;
21437 * Handle non-spacing characters
21440 if (wcwidth(CharOf(ch)) == 0) {
21443 - if ((x > 0 && ((y = win->_cury) >= 0))
21444 + if ((x > 0 && y >= 0)
21445 || ((y = win->_cury - 1) >= 0 &&
21446 (x = win->_maxx) > 0)) {
21447 wchar_t *chars = (win->_line[y].text[x - 1].chars);
21448 @@ -154,8 +205,18 @@
21449 * Provide for multi-column characters
21452 - if (wcwidth(CharOf(ch)) > 1)
21453 + int len = wcwidth(CharOf(ch));
21454 + while (len-- > 1) {
21455 + if (x + (len - 1) > win->_maxx) {
21456 + NCURSES_CH_T blank = NewChar2(BLANK_TEXT, BLANK_ATTR);
21457 + AddAttr(blank, AttrOf(ch));
21458 + if (waddch_literal(win, blank) != ERR)
21459 + return waddch_literal(win, ch);
21462 AddAttr(line->text[x++], WA_NAC);
21463 + TR(TRACE_VIRTPUT, ("added NAC %d", x - 1));
21468 @@ -330,14 +391,30 @@
21469 NCURSES_EXPORT(int)
21470 wadd_wch(WINDOW *win, const cchar_t * wch)
21476 TR(TRACE_VIRTPUT | TRACE_CCALLS, (T_CALLED("wadd_wch(%p, %s)"), win,
21479 - if (win && (waddch_nosync(win, *wch) != ERR)) {
21480 - _nc_synchook(win);
21484 + while (PUTC_i < CCHARW_MAX) {
21485 + if ((PUTC_ch = wch->chars[PUTC_i++]) == L'\0')
21487 + if ((PUTC_n = wcrtomb(PUTC_buf, PUTC_ch, &PUT_st)) <= 0) {
21491 + for (n = 0; n < PUTC_n; n++) {
21492 + if ((code = waddch(win, UChar(PUTC_buf[n]))) == ERR) {
21501 TR(TRACE_VIRTPUT | TRACE_CCALLS, (T_RETURN("%d"), code));
21502 @@ -347,18 +424,32 @@
21503 NCURSES_EXPORT(int)
21504 wecho_wchar(WINDOW *win, const cchar_t * wch)
21510 TR(TRACE_VIRTPUT | TRACE_CCALLS, (T_CALLED("wecho_wchar(%p, %s)"), win,
21513 - if (win && (waddch_nosync(win, *wch) != ERR)) {
21514 - bool save_immed = win->_immed;
21515 - win->_immed = TRUE;
21516 - _nc_synchook(win);
21517 - win->_immed = save_immed;
21521 + while (PUTC_i < CCHARW_MAX) {
21522 + if ((PUTC_ch = wch->chars[PUTC_i++]) == L'\0')
21524 + if ((PUTC_n = wcrtomb(PUTC_buf, PUTC_ch, &PUT_st)) <= 0) {
21528 + for (n = 0; n < PUTC_n; n++) {
21529 + if ((code = wechochar(win, UChar(PUTC_buf[n]))) == ERR) {
21538 TR(TRACE_VIRTPUT | TRACE_CCALLS, (T_RETURN("%d"), code));
21541 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_addstr.c ncurses-5.3.20030906.orig/ncurses/base/lib_addstr.c
21542 --- ncurses-5.3/ncurses/base/lib_addstr.c Sat Oct 5 19:25:25 2002
21543 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_addstr.c Sun Jul 20 14:02:09 2003
21545 /****************************************************************************
21546 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
21547 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
21549 * Permission is hereby granted, free of charge, to any person obtaining a *
21550 * copy of this software and associated documentation files (the *
21552 /****************************************************************************
21553 * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
21554 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
21556 + * Rewritten 2001-2002 to support wide-characters by *
21557 + * Sven Verdoolaege *
21558 + * Thomas Dickey *
21559 ****************************************************************************/
21562 @@ -40,53 +44,13 @@
21564 #include <curses.priv.h>
21566 -MODULE_ID("$Id: lib_addstr.c,v 1.34 2002/10/06 00:25:25 tom Exp $")
21568 -#if USE_WIDEC_SUPPORT
21569 -#define CONV_DATA mbstate_t state; wchar_t cached; int clen = 0
21570 -#define CONV_INIT memset (&state, '\0', sizeof (state)); cached = (wchar_t)WEOF
21571 -#define NEXT_CHAR(s,ch, n) \
21573 - int len, i = 0; \
21574 - memset(&ch, 0, sizeof(cchar_t)); \
21575 - if (cached != (wchar_t) WEOF) { \
21576 - ch.chars[i++] = cached; \
21577 - cached = (wchar_t) WEOF; \
21581 - for (; i < CCHARW_MAX && n > 0; ++i) { \
21582 - if ((len = mbrtowc(&ch.chars[i], s, n, &state)) < 0) { \
21586 - if (i == 0 || wcwidth(ch.chars[i]) == 0) { \
21590 - cached = ch.chars[i]; \
21592 - ch.chars[i] = L'\0'; \
21596 - if (code == ERR) \
21602 -#define NEXT_CHAR(s,ch, n) \
21606 +MODULE_ID("$Id: lib_addstr.c,v 1.38 2003/07/05 19:45:21 tom Exp $")
21608 NCURSES_EXPORT(int)
21609 waddnstr(WINDOW *win, const char *astr, int n)
21611 - unsigned const char *str = (unsigned const char *) astr;
21612 + const char *str = astr;
21616 T((T_CALLED("waddnstr(%p,%s,%d)"), win, _nc_visbufn(astr, n), n));
21618 @@ -97,11 +61,10 @@
21619 n = (int) strlen(astr);
21621 TR(TRACE_VIRTPUT, ("str is not null, length = %d", n));
21623 - while ((n > 0) && (*str != '\0')) {
21624 + while ((n-- > 0) && (*str != '\0')) {
21626 - TR(TRACE_VIRTPUT, ("*str = %#x", *str));
21627 - NEXT_CHAR(str, ch, n);
21628 + TR(TRACE_VIRTPUT, ("*str = %#o", UChar(*str)));
21629 + SetChar(ch, UChar(*str++), A_NORMAL);
21630 if (_nc_waddch_nosync(win, ch) == ERR) {
21636 NCURSES_EXPORT(int)
21637 -waddchnstr(WINDOW *win, const chtype * astr, int n)
21638 +waddchnstr(WINDOW *win, const chtype *astr, int n)
21640 NCURSES_SIZE_T y = win->_cury;
21641 NCURSES_SIZE_T x = win->_curx;
21642 @@ -155,7 +118,7 @@
21644 #if USE_WIDEC_SUPPORT
21647 +NCURSES_EXPORT(int)
21648 _nc_wchstrlen(const cchar_t * s)
21651 @@ -217,9 +180,8 @@
21652 waddnwstr(WINDOW *win, const wchar_t * str, int n)
21657 - T((T_CALLED("waddnwstr(%p,%s,%d)"), win, _nc_viswbufn(str,n), n));
21658 + T((T_CALLED("waddnwstr(%p,%s,%d)"), win, _nc_viswbufn(str, n), n));
21660 if (win && (str != 0)) {
21661 TR(TRACE_VIRTPUT | TRACE_ATTRS, ("... current %s", _traceattr(win->_attrs)));
21662 @@ -230,16 +192,9 @@
21663 TR(TRACE_VIRTPUT, ("str is not null, length = %d", n));
21664 while ((n-- > 0) && (*str != L('\0'))) {
21666 - TR(TRACE_VIRTPUT, ("*str[0] = %#lx", *str));
21667 + TR(TRACE_VIRTPUT, ("*str[0] = %#lx", (unsigned long) *str));
21668 SetChar(ch, *str++, A_NORMAL);
21670 - while (i < CCHARW_MAX && n > 0 && (*str != L('\0'))
21671 - && wcwidth(*str) == 0) {
21672 - TR(TRACE_VIRTPUT, ("*str[%d] = %#lx", i, *str));
21673 - ch.chars[i++] = *str++;
21676 - if (_nc_waddch_nosync(win, ch) == ERR) {
21677 + if (wadd_wch(win, &ch) == ERR) {
21681 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_bkgd.c ncurses-5.3.20030906.orig/ncurses/base/lib_bkgd.c
21682 --- ncurses-5.3/ncurses/base/lib_bkgd.c Sun Sep 22 15:30:32 2002
21683 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_bkgd.c Sun Jul 20 14:02:09 2003
21686 #include <curses.priv.h>
21688 -MODULE_ID("$Id: lib_bkgd.c,v 1.29 2002/09/22 20:30:32 tom Exp $")
21689 +MODULE_ID("$Id: lib_bkgd.c,v 1.30 2003/07/05 16:46:49 tom Exp $")
21692 * Set the window's background information.
21696 wgetbkgrnd(win, &wch);
21697 - tmp = wctob(CharOf(wch));
21698 + tmp = _nc_to_char(CharOf(wch));
21700 win->_bkgd = ((tmp == EOF) ? ' ' : (chtype) tmp) | AttrOf(wch);
21702 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_freeall.c ncurses-5.3.20030906.orig/ncurses/base/lib_freeall.c
21703 --- ncurses-5.3/ncurses/base/lib_freeall.c Sat Jul 27 19:35:25 2002
21704 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_freeall.c Fri Sep 12 16:41:56 2003
21706 /****************************************************************************
21707 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
21708 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
21710 * Permission is hereby granted, free of charge, to any person obtaining a *
21711 * copy of this software and associated documentation files (the *
21713 extern int malloc_errfd; /* FIXME */
21716 -MODULE_ID("$Id: lib_freeall.c,v 1.20 2002/07/28 00:35:25 tom Exp $")
21717 +MODULE_ID("$Id: lib_freeall.c,v 1.25 2003/08/09 21:32:53 tom Exp $")
21720 * Free all ncurses data. This is used for testing only (there's no practical
21725 + T((T_CALLED("_nc_freeall()")));
21728 + FreeAndNull(_nc_oldnums);
21731 while (_nc_windows != 0) {
21732 @@ -82,24 +84,37 @@
21733 _nc_free_termtype(&(cur_term->type));
21736 + _nc_free_entries(_nc_head);
21738 if ((s = _nc_home_terminfo()) != 0)
21741 + (void) _nc_printf_string(0, 0);
21743 (void) _nc_trace_buf(-1, 0);
21746 #if HAVE_LIBDBMALLOC
21747 malloc_dump(malloc_errfd);
21748 #elif HAVE_LIBDMALLOC
21750 purify_all_inuse();
21755 NCURSES_EXPORT(void)
21756 _nc_free_and_exit(int code)
21758 + char *last_setbuf = (SP != 0) ? SP->_setbuf : 0;
21762 + trace(0); /* close trace file, freeing its setbuf */
21763 + free(_nc_varargs("?", 0));
21766 + FreeIfNeeded(last_setbuf);
21770 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_getch.c ncurses-5.3.20030906.orig/ncurses/base/lib_getch.c
21771 --- ncurses-5.3/ncurses/base/lib_getch.c Sat Sep 7 12:17:59 2002
21772 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_getch.c Sun Jul 20 14:02:08 2003
21775 #include <curses.priv.h>
21777 -MODULE_ID("$Id: lib_getch.c,v 1.67 2002/09/07 17:17:59 tom Exp $")
21778 +MODULE_ID("$Id: lib_getch.c,v 1.71 2003/05/17 23:49:28 tom Exp $")
21780 #include <fifo_defs.h>
21783 #define TWAIT_MASK 3
21787 + * Check for mouse activity, returning nonzero if we find any.
21790 +check_mouse_activity(int delay EVENTLIST_2nd(_nc_eventlist * evl))
21795 + if ((SP->_mouse_type == M_SYSMOUSE)
21796 + && (SP->_sysmouse_head < SP->_sysmouse_tail)) {
21800 + rc = _nc_timed_wait(TWAIT_MASK, delay, (int *) 0 EVENTLIST_2nd(evl));
21802 + if ((SP->_mouse_type == M_SYSMOUSE)
21803 + && (SP->_sysmouse_head < SP->_sysmouse_tail)
21805 + && (errno == EINTR)) {
21824 @@ -101,11 +127,11 @@
21826 #ifdef NCURSES_WGETCH_EVENTS
21828 -#if USE_GPM_SUPPORT || defined(USE_EMX_MOUSE)
21829 +#if USE_GPM_SUPPORT || USE_EMX_MOUSE || USE_SYSMOUSE
21830 || (SP->_mouse_fd >= 0)
21833 - mask = _nc_timed_wait(TWAIT_MASK, -1, (int *) 0, evl);
21834 + mask = check_mouse_activity(-1 EVENTLIST_2nd(evl));
21838 @@ -114,18 +140,32 @@
21839 ungetch(KEY_EVENT);
21842 -#elif USE_GPM_SUPPORT || defined(USE_EMX_MOUSE)
21843 - if (SP->_mouse_fd >= 0)
21844 - mask = _nc_timed_wait(TWAIT_MASK, -1, (int *) 0 EVENTLIST_2nd(evl));
21845 +#elif USE_GPM_SUPPORT || USE_EMX_MOUSE || USE_SYSMOUSE
21846 + if (SP->_mouse_fd >= 0) {
21847 + mask = check_mouse_activity(-1 EVENTLIST_2nd(evl));
21851 -#if USE_GPM_SUPPORT || defined(USE_EMX_MOUSE)
21852 +#if USE_GPM_SUPPORT || USE_EMX_MOUSE
21853 if ((SP->_mouse_fd >= 0) && (mask & 2)) {
21854 SP->_mouse_event(SP);
21860 + if ((SP->_mouse_type == M_SYSMOUSE)
21861 + && (SP->_sysmouse_head < SP->_sysmouse_tail)) {
21862 + SP->_mouse_event(SP);
21865 + } else if ((SP->_mouse_type == M_SYSMOUSE)
21866 + && (mask <= 0) && errno == EINTR) {
21867 + SP->_mouse_event(SP);
21872 { /* Can block... */
21873 unsigned char c2 = 0;
21874 n = read(SP->_ifd, &c2, 1);
21875 @@ -214,13 +254,19 @@
21876 * stuff its contents in the FIFO queue, and pop off
21877 * the first character to return it.
21879 - if (head == -1 && !SP->_raw && !SP->_cbreak) {
21880 + if (head == -1 &&
21884 + !SP->_called_wgetch) {
21885 char buf[MAXCOLUMNS], *sp;
21888 TR(TRACE_IEVENT, ("filling queue in cooked mode"));
21890 + SP->_called_wgetch = TRUE;
21891 rc = wgetnstr(win, buf, MAXCOLUMNS);
21892 + SP->_called_wgetch = FALSE;
21894 /* ungetch in reverse order */
21895 #ifdef NCURSES_WGETCH_EVENTS
21896 @@ -265,10 +311,7 @@
21897 TR(TRACE_IEVENT, ("delay is %d milliseconds", delay));
21899 if (head == -1) { /* fifo is empty */
21900 - int rc = _nc_timed_wait(TWAIT_MASK,
21903 - EVENTLIST_2nd(evl));
21904 + int rc = check_mouse_activity(delay EVENTLIST_2nd(evl));
21906 #ifdef NCURSES_WGETCH_EVENTS
21908 @@ -308,10 +351,8 @@
21912 - && (((rc = _nc_timed_wait(TWAIT_MASK,
21915 - EVENTLIST_2nd(evl))) != 0
21916 + && (((rc = check_mouse_activity(SP->_maxclick
21917 + EVENTLIST_2nd(evl))) != 0
21919 || !SP->_mouse_parse(runcount)));
21920 #ifdef NCURSES_WGETCH_EVENTS
21921 @@ -513,14 +554,11 @@
21924 TR(TRACE_IEVENT, ("waiting for rest of sequence"));
21925 - rc = _nc_timed_wait(TWAIT_MASK,
21928 - EVENTLIST_2nd(evl));
21929 + rc = check_mouse_activity(timeleft EVENTLIST_2nd(evl));
21930 #ifdef NCURSES_WGETCH_EVENTS
21932 TR(TRACE_IEVENT, ("interrupted by a user event"));
21933 - /* FIXME Should have preserved timeleft for reusal... */
21934 + /* FIXME Should have preserved remainder timeleft for reusal... */
21935 peek = head; /* Restart interpreting later */
21938 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_insch.c ncurses-5.3.20030906.orig/ncurses/base/lib_insch.c
21939 --- ncurses-5.3/ncurses/base/lib_insch.c Sat Jun 9 18:47:38 2001
21940 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_insch.c Tue May 13 20:08:22 2003
21942 /****************************************************************************
21943 - * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
21944 + * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
21946 * Permission is hereby granted, free of charge, to any person obtaining a *
21947 * copy of this software and associated documentation files (the *
21949 /****************************************************************************
21950 * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
21951 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
21952 + * and: Sven Verdoolaege *
21953 + * and: Thomas E. Dickey *
21954 ****************************************************************************/
21957 @@ -39,29 +41,98 @@
21960 #include <curses.priv.h>
21961 +#include <ctype.h>
21963 -MODULE_ID("$Id: lib_insch.c,v 1.15 2001/06/09 23:47:38 skimo Exp $")
21964 +MODULE_ID("$Id: lib_insch.c,v 1.18 2002/11/23 21:41:05 tom Exp $")
21967 + * Insert the given character, updating the current location to simplify
21968 + * inserting a string.
21971 +_nc_insert_ch(WINDOW *win, chtype ch)
21973 + NCURSES_CH_T wch;
21978 + for (count = (TABSIZE - (win->_curx % TABSIZE)); count > 0; count--)
21979 + _nc_insert_ch(win, ' ');
21984 + SetChar2(wch, ch);
21985 + _nc_waddch_nosync(win, wch);
21988 + if (is7bits(ch) && iscntrl(ch)) {
21989 + _nc_insert_ch(win, '^');
21990 + _nc_insert_ch(win, '@' + (ch));
21991 + } else if (win->_curx <= win->_maxx) {
21992 + struct ldat *line = &(win->_line[win->_cury]);
21993 + NCURSES_CH_T *end = &(line->text[win->_curx]);
21994 + NCURSES_CH_T *temp1 = &(line->text[win->_maxx]);
21995 + NCURSES_CH_T *temp2 = temp1 - 1;
21997 + SetChar2(wch, ch);
21999 + CHANGED_TO_EOL(line, win->_curx, win->_maxx);
22000 + while (temp1 > end)
22001 + *temp1-- = *temp2--;
22003 + *temp1 = _nc_render(win, wch);
22011 NCURSES_EXPORT(int)
22012 winsch(WINDOW *win, chtype c)
22014 + NCURSES_SIZE_T oy;
22015 + NCURSES_SIZE_T ox;
22018 T((T_CALLED("winsch(%p, %s)"), win, _tracechtype(c)));
22021 - struct ldat *line = &(win->_line[win->_cury]);
22022 - NCURSES_CH_T *end = &(line->text[win->_curx]);
22023 - NCURSES_CH_T *temp1 = &(line->text[win->_maxx]);
22024 - NCURSES_CH_T *temp2 = temp1 - 1;
22025 - NCURSES_CH_T wch;
22026 - SetChar2(wch, c);
22031 - CHANGED_TO_EOL(line, win->_curx, win->_maxx);
22032 - while (temp1 > end)
22033 - *temp1-- = *temp2--;
22034 + _nc_insert_ch(win, c);
22036 - *temp1 = _nc_render(win, wch);
22039 + _nc_synchook(win);
22042 + returnCode(code);
22045 +NCURSES_EXPORT(int)
22046 +winsnstr(WINDOW *win, const char *s, int n)
22049 + NCURSES_SIZE_T oy;
22050 + NCURSES_SIZE_T ox;
22051 + const unsigned char *str = (const unsigned char *) s;
22052 + const unsigned char *cp;
22054 + T((T_CALLED("winsnstr(%p,%s,%d)"), win, _nc_visbufn(s, n), n));
22056 + if (win != 0 && str != 0) {
22059 + for (cp = str; *cp && (n <= 0 || (cp - str) < n); cp++) {
22060 + _nc_insert_ch(win, (chtype) UChar(*cp));
22064 + _nc_synchook(win);
22068 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_insdel.c ncurses-5.3.20030906.orig/ncurses/base/lib_insdel.c
22069 --- ncurses-5.3/ncurses/base/lib_insdel.c Tue Dec 18 19:10:49 2001
22070 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_insdel.c Fri Sep 12 16:41:24 2003
22072 /****************************************************************************
22073 - * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
22074 + * Copyright (c) 1998-2001,2003 Free Software Foundation, Inc. *
22076 * Permission is hereby granted, free of charge, to any person obtaining a *
22077 * copy of this software and associated documentation files (the *
22078 @@ -42,14 +42,14 @@
22080 #include <curses.priv.h>
22082 -MODULE_ID("$Id: lib_insdel.c,v 1.11 2001/12/19 01:10:49 tom Exp $")
22083 +MODULE_ID("$Id: lib_insdel.c,v 1.12 2003/07/26 22:40:06 tom Exp $")
22085 NCURSES_EXPORT(int)
22086 winsdelln(WINDOW *win, int n)
22090 - T((T_CALLED("winsdel(%p,%d)"), win, n));
22091 + T((T_CALLED("winsdelln(%p,%d)"), win, n));
22095 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_mouse.c ncurses-5.3.20030906.orig/ncurses/base/lib_mouse.c
22096 --- ncurses-5.3/ncurses/base/lib_mouse.c Sat Sep 28 11:08:58 2002
22097 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_mouse.c Sun Jul 20 14:02:08 2003
22099 /****************************************************************************
22100 - * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
22101 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
22103 * Permission is hereby granted, free of charge, to any person obtaining a *
22104 * copy of this software and associated documentation files (the *
22106 /****************************************************************************
22107 * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
22108 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
22109 + * and: Thomas E. Dickey 1996-2003 *
22110 ****************************************************************************/
22116 #include <curses.priv.h>
22118 +MODULE_ID("$Id: lib_mouse.c,v 1.67 2003/05/31 22:18:18 tom Exp $")
22123 #if USE_GPM_SUPPORT
22124 #ifndef LINT /* don't need this for llib-lncurses */
22125 @@ -84,18 +89,33 @@
22129 -MODULE_ID("$Id: lib_mouse.c,v 1.61 2002/09/28 16:08:58 tom Exp $")
22131 +#undef buttons /* symbol conflict in consio.h */
22132 +#undef mouse_info /* symbol conflict in consio.h */
22133 +#include <osreldate.h>
22134 +#if (__FreeBSD_version >= 400017)
22135 +#include <sys/consio.h>
22136 +#include <sys/fbio.h>
22138 +#include <machine/console.h>
22140 +#endif /* use_SYSMOUSE */
22142 #define MY_TRACE TRACE_ICALLS|TRACE_IEVENT
22144 -#define INVALID_EVENT -1
22145 +#define MASK_RELEASE(x) ((001 << (6 * ((x) - 1))))
22146 +#define MASK_PRESS(x) ((002 << (6 * ((x) - 1))))
22147 +#define MASK_CLICK(x) ((004 << (6 * ((x) - 1))))
22148 +#define MASK_DOUBLE_CLICK(x) ((010 << (6 * ((x) - 1))))
22149 +#define MASK_TRIPLE_CLICK(x) ((020 << (6 * ((x) - 1))))
22150 +#define MASK_RESERVED_EVENT(x) ((040 << (6 * ((x) - 1))))
22152 -static int mousetype;
22153 -#define M_XTERM -1 /* use xterm's mouse tracking? */
22154 -#define M_NONE 0 /* no mouse device */
22155 -#define M_GPM 1 /* use GPM */
22156 -#define M_QNX 2 /* QNX mouse on console */
22157 -#define M_QNX_TERM 3 /* QNX mouse on pterm/xterm (using qansi-m) */
22158 +#define BUTTON_CLICKED (BUTTON1_CLICKED | BUTTON2_CLICKED | BUTTON3_CLICKED)
22159 +#define BUTTON_PRESSED (BUTTON1_PRESSED | BUTTON2_PRESSED | BUTTON3_PRESSED)
22160 +#define BUTTON_RELEASED (BUTTON1_RELEASED | BUTTON2_RELEASED | BUTTON3_RELEASED)
22162 +#define INVALID_EVENT -1
22163 +#define NORMAL_EVENT 0
22165 #if USE_GPM_SUPPORT
22167 @@ -117,7 +137,11 @@
22169 static MEVENT events[EV_MAX]; /* hold the last mouse event seen */
22170 static MEVENT *eventp = events; /* next free slot in event queue */
22173 #define NEXT(ep) ((ep == events + EV_MAX - 1) ? events : ep + 1)
22176 #define PREV(ep) ((ep == events) ? events + EV_MAX - 1 : ep - 1)
22179 @@ -135,7 +159,7 @@
22183 -#ifdef USE_EMX_MOUSE
22187 # define LEFT_COL 0
22188 @@ -229,31 +253,110 @@
22189 mouse_activated = state;
22192 +#endif /* USE_EMX_MOUSE */
22196 +handle_sysmouse(int sig GCC_UNUSED)
22198 + struct mouse_info the_mouse;
22201 + the_mouse.operation = MOUSE_GETINFO;
22203 + && SP->_mouse_fd >= 0
22204 + && SP->_sysmouse_tail < FIFO_SIZE
22205 + && ioctl(SP->_mouse_fd, CONS_MOUSECTL, &the_mouse) != -1) {
22207 + if (SP->_sysmouse_head > SP->_sysmouse_tail) {
22208 + SP->_sysmouse_tail = 0;
22209 + SP->_sysmouse_head = 0;
22211 + work = &(SP->_sysmouse_fifo[SP->_sysmouse_tail]);
22212 + memset(work, 0, sizeof(*work));
22213 + work->id = NORMAL_EVENT; /* there's only one mouse... */
22215 + SP->_sysmouse_old_buttons = SP->_sysmouse_new_buttons;
22216 + SP->_sysmouse_new_buttons = the_mouse.u.data.buttons & 0x7;
22218 + if (SP->_sysmouse_new_buttons) {
22219 + if (SP->_sysmouse_new_buttons & 1)
22220 + work->bstate |= BUTTON1_PRESSED;
22221 + if (SP->_sysmouse_new_buttons & 2)
22222 + work->bstate |= BUTTON2_PRESSED;
22223 + if (SP->_sysmouse_new_buttons & 4)
22224 + work->bstate |= BUTTON3_PRESSED;
22226 + if (SP->_sysmouse_old_buttons & 1)
22227 + work->bstate |= BUTTON1_RELEASED;
22228 + if (SP->_sysmouse_old_buttons & 2)
22229 + work->bstate |= BUTTON2_RELEASED;
22230 + if (SP->_sysmouse_old_buttons & 4)
22231 + work->bstate |= BUTTON3_RELEASED;
22234 + /* for cosmetic bug in syscons.c on FreeBSD 3.[34] */
22235 + the_mouse.operation = MOUSE_HIDE;
22236 + ioctl(SP->_mouse_fd, CONS_MOUSECTL, &the_mouse);
22237 + the_mouse.operation = MOUSE_SHOW;
22238 + ioctl(SP->_mouse_fd, CONS_MOUSECTL, &the_mouse);
22241 + * We're only interested if the button is pressed or released.
22242 + * FIXME: implement continuous event-tracking.
22244 + if (SP->_sysmouse_new_buttons != SP->_sysmouse_old_buttons) {
22245 + SP->_sysmouse_tail += 1;
22247 + work->x = the_mouse.u.data.x / SP->_sysmouse_char_width;
22248 + work->y = the_mouse.u.data.y / SP->_sysmouse_char_height;
22253 static int initialized;
22256 +init_xterm_mouse(void)
22258 + SP->_mouse_type = M_XTERM;
22259 + SP->_mouse_xtermcap = tigetstr("XM");
22260 + if (!VALID_STRING(SP->_mouse_xtermcap))
22261 + SP->_mouse_xtermcap = "\033[?1000%?%p1%{1}%=%th%el%;";
22264 +#if !USE_EMX_MOUSE
22266 +enable_xterm_mouse(int enable)
22268 + putp(tparm(SP->_mouse_xtermcap, enable));
22270 +#endif /* !USE_EMX_MOUSE */
22273 initialize_mousetype(void)
22275 static const char *xterm_kmous = "\033[M";
22277 /* Try gpm first, because gpm may be configured to run in xterm */
22278 #if USE_GPM_SUPPORT
22279 - /* GPM: initialize connection to gpm server */
22280 - gpm_connect.eventMask = GPM_DOWN | GPM_UP;
22281 - gpm_connect.defaultMask = ~(gpm_connect.eventMask | GPM_HARD);
22282 - gpm_connect.minMod = 0;
22283 - gpm_connect.maxMod = ~((1 << KG_SHIFT) | (1 << KG_SHIFTL) | (1 << KG_SHIFTR));
22284 - if (Gpm_Open(&gpm_connect, 0) >= 0) { /* returns the file-descriptor */
22285 - mousetype = M_GPM;
22286 - SP->_mouse_fd = gpm_fd;
22288 + /* GPM does printf's without checking if stdout is a terminal */
22289 + if (isatty(fileno(stdout))) {
22290 + /* GPM: initialize connection to gpm server */
22291 + gpm_connect.eventMask = GPM_DOWN | GPM_UP;
22292 + gpm_connect.defaultMask = ~(gpm_connect.eventMask | GPM_HARD);
22293 + gpm_connect.minMod = 0;
22294 + gpm_connect.maxMod = ~((1 << KG_SHIFT) | (1 << KG_SHIFTL) | (1 << KG_SHIFTR));
22295 + if (Gpm_Open(&gpm_connect, 0) >= 0) { /* returns the file-descriptor */
22296 + SP->_mouse_type = M_GPM;
22297 + SP->_mouse_fd = gpm_fd;
22304 -#ifdef USE_EMX_MOUSE
22307 && strstr(cur_term->type.term_names, "xterm") == 0
22309 @@ -287,22 +390,87 @@
22310 printf("mouse thread error %d=%#x", rc, rc);
22313 - mousetype = M_XTERM;
22314 + SP->_mouse_type = M_XTERM;
22323 + struct mouse_info the_mouse;
22324 + char *the_device = 0;
22326 + if (isatty(SP->_ifd))
22327 + the_device = ttyname(SP->_ifd);
22328 + if (the_device == 0)
22329 + the_device = "/dev/tty";
22331 + SP->_mouse_fd = open(the_device, O_RDWR);
22333 + if (SP->_mouse_fd >= 0) {
22335 + * sysmouse does not have a usable user interface for obtaining
22336 + * mouse events. The logical way to proceed (reading data on a
22337 + * stream) only works if one opens the device as root. Even in
22338 + * that mode, careful examination shows we lose events
22339 + * occasionally. The interface provided for user programs is to
22340 + * establish a signal handler. really.
22342 + * Take over SIGUSR2 for this purpose since SIGUSR1 is more
22343 + * likely to be used by an application. getch() will have to
22344 + * handle the misleading EINTR's.
22346 + signal(SIGUSR2, SIG_IGN);
22347 + the_mouse.operation = MOUSE_MODE;
22348 + the_mouse.u.mode.mode = 0;
22349 + the_mouse.u.mode.signal = SIGUSR2;
22350 + if (ioctl(SP->_mouse_fd, CONS_MOUSECTL, &the_mouse) != -1) {
22351 + signal(SIGUSR2, handle_sysmouse);
22352 + the_mouse.operation = MOUSE_SHOW;
22353 + ioctl(SP->_mouse_fd, CONS_MOUSECTL, &the_mouse);
22355 +#if defined(FBIO_MODEINFO) || defined(CONS_MODEINFO) /* FreeBSD > 2.x */
22357 +#ifndef FBIO_GETMODE /* FreeBSD 3.x */
22358 +#define FBIO_GETMODE CONS_GET
22359 +#define FBIO_MODEINFO CONS_MODEINFO
22360 +#endif /* FBIO_GETMODE */
22361 + video_info_t the_video;
22363 + if (ioctl(SP->_mouse_fd,
22365 + &the_video.vi_mode) != -1
22366 + && ioctl(SP->_mouse_fd,
22368 + &the_video) != -1) {
22369 + SP->_sysmouse_char_width = the_video.vi_cwidth;
22370 + SP->_sysmouse_char_height = the_video.vi_cheight;
22373 +#endif /* defined(FBIO_MODEINFO) || defined(CONS_MODEINFO) */
22375 + if (SP->_sysmouse_char_width <= 0)
22376 + SP->_sysmouse_char_width = 8;
22377 + if (SP->_sysmouse_char_height <= 0)
22378 + SP->_sysmouse_char_height = 16;
22379 + SP->_mouse_type = M_SYSMOUSE;
22384 +#endif /* USE_SYSMOUSE */
22386 /* we know how to recognize mouse events under "xterm" */
22387 if (key_mouse != 0) {
22388 if (!strcmp(key_mouse, xterm_kmous)) {
22389 - mousetype = M_XTERM;
22390 + init_xterm_mouse();
22393 } else if (strstr(cur_term->type.term_names, "xterm") != 0) {
22394 (void) _nc_add_to_try(&(SP->_keytry), xterm_kmous, KEY_MOUSE);
22395 - mousetype = M_XTERM;
22396 + init_xterm_mouse();
22400 @@ -323,7 +491,7 @@
22402 initialize_mousetype();
22404 - T(("_nc_mouse_init() set mousetype to %d", mousetype));
22405 + T(("_nc_mouse_init() set mousetype to %d", SP->_mouse_type));
22409 @@ -334,74 +502,113 @@
22411 _nc_mouse_event(SCREEN * sp GCC_UNUSED)
22413 -#if USE_GPM_SUPPORT
22414 - /* GPM: query server for event, return TRUE if we find one */
22416 + bool result = FALSE;
22418 - if (Gpm_GetEvent(&ev) == 1) {
22419 - eventp->id = 0; /* there's only one mouse... */
22420 + switch (SP->_mouse_type) {
22422 + /* xterm: never have to query, mouse events are in the keyboard stream */
22427 - eventp->bstate = 0;
22428 - switch (ev.type & 0x0f) {
22430 - if (ev.buttons & GPM_B_LEFT)
22431 - eventp->bstate |= BUTTON1_PRESSED;
22432 - if (ev.buttons & GPM_B_MIDDLE)
22433 - eventp->bstate |= BUTTON2_PRESSED;
22434 - if (ev.buttons & GPM_B_RIGHT)
22435 - eventp->bstate |= BUTTON3_PRESSED;
22438 - if (ev.buttons & GPM_B_LEFT)
22439 - eventp->bstate |= BUTTON1_RELEASED;
22440 - if (ev.buttons & GPM_B_MIDDLE)
22441 - eventp->bstate |= BUTTON2_RELEASED;
22442 - if (ev.buttons & GPM_B_RIGHT)
22443 - eventp->bstate |= BUTTON3_RELEASED;
22447 + int i, res = read(M_FD(sp), &kbuf, 3); /* Eat the prefix */
22449 + printf("Got %d chars instead of 3 for prefix.\n", res);
22450 + for (i = 0; i < res; i++) {
22451 + if (kbuf[i] != key_mouse[i])
22452 + printf("Got char %d instead of %d for prefix.\n",
22453 + (int) kbuf[i], (int) key_mouse[i]);
22457 +#endif /* USE_EMX_MOUSE */
22460 - eventp->x = ev.x - 1;
22461 - eventp->y = ev.y - 1;
22463 +#if USE_GPM_SUPPORT
22466 + /* query server for event, return TRUE if we find one */
22469 - /* bump the next-free pointer into the circular list */
22470 - eventp = NEXT(eventp);
22473 + if (Gpm_GetEvent(&ev) == 1) {
22474 + /* there's only one mouse... */
22475 + eventp->id = NORMAL_EVENT;
22477 + eventp->bstate = 0;
22478 + switch (ev.type & 0x0f) {
22480 + if (ev.buttons & GPM_B_LEFT)
22481 + eventp->bstate |= BUTTON1_PRESSED;
22482 + if (ev.buttons & GPM_B_MIDDLE)
22483 + eventp->bstate |= BUTTON2_PRESSED;
22484 + if (ev.buttons & GPM_B_RIGHT)
22485 + eventp->bstate |= BUTTON3_PRESSED;
22488 + if (ev.buttons & GPM_B_LEFT)
22489 + eventp->bstate |= BUTTON1_RELEASED;
22490 + if (ev.buttons & GPM_B_MIDDLE)
22491 + eventp->bstate |= BUTTON2_RELEASED;
22492 + if (ev.buttons & GPM_B_RIGHT)
22493 + eventp->bstate |= BUTTON3_RELEASED;
22499 + eventp->x = ev.x - 1;
22500 + eventp->y = ev.y - 1;
22503 + /* bump the next-free pointer into the circular list */
22504 + eventp = NEXT(eventp);
22511 -#ifdef USE_EMX_MOUSE
22516 + if (SP->_sysmouse_head < SP->_sysmouse_tail) {
22517 + *eventp = SP->_sysmouse_fifo[SP->_sysmouse_head];
22519 - int i, res = read(M_FD(sp), &kbuf, 3); /* Eat the prefix */
22521 - printf("Got %d chars instead of 3 for prefix.\n", res);
22522 - for (i = 0; i < res; i++) {
22523 - if (kbuf[i] != key_mouse[i])
22524 - printf("Got char %d instead of %d for prefix.\n",
22525 - (int) kbuf[i], (int) key_mouse[i]);
22527 + * Point the fifo-head to the next possible location. If there
22528 + * are none, reset the indices. This may be interrupted by the
22529 + * signal handler, doing essentially the same reset.
22531 + SP->_sysmouse_head += 1;
22532 + if (SP->_sysmouse_head == SP->_sysmouse_tail) {
22533 + SP->_sysmouse_tail = 0;
22534 + SP->_sysmouse_head = 0;
22537 + /* bump the next-free pointer into the circular list */
22538 + eventp = NEXT(eventp);
22543 +#endif /* USE_SYSMOUSE */
22548 -#endif /* USE_EMX_MOUSE */
22550 - /* xterm: never have to query, mouse events are in the keyboard stream */
22551 - return (FALSE); /* no event waiting */
22552 + return result; /* true if we found an event */
22556 _nc_mouse_inline(SCREEN * sp)
22557 /* mouse report received in the keyboard stream -- parse its info */
22559 + bool result = FALSE;
22561 TR(MY_TRACE, ("_nc_mouse_inline() called"));
22563 - if (mousetype == M_XTERM) {
22564 + if (SP->_mouse_type == M_XTERM) {
22565 unsigned char kbuf[4];
22571 @@ -438,7 +645,7 @@
22572 for (grabbed = 0; grabbed < 3; grabbed += res) {
22574 /* For VIO mouse we add extra bit 64 to disambiguate button-up. */
22575 -#ifdef USE_EMX_MOUSE
22577 res = read(M_FD(sp) >= 0 ? M_FD(sp) : sp->_ifd, &kbuf, 3);
22579 res = read(sp->_ifd, kbuf + grabbed, 3 - grabbed);
22580 @@ -451,59 +658,65 @@
22582 ("_nc_mouse_inline sees the following xterm data: '%s'", kbuf));
22584 - eventp->id = 0; /* there's only one mouse... */
22585 + /* there's only one mouse... */
22586 + eventp->id = NORMAL_EVENT;
22588 /* processing code goes here */
22589 eventp->bstate = 0;
22590 + prev = PREV(eventp)->bstate;
22593 +#define PRESS_POSITION(n) \
22594 + eventp->bstate = MASK_PRESS(n); \
22595 + if (kbuf[0] & 0x40) \
22596 + eventp->bstate = MASK_RELEASE(n)
22598 +#define PRESS_POSITION(n) \
22599 + eventp->bstate = (prev & MASK_PRESS(n) \
22600 + ? REPORT_MOUSE_POSITION \
22604 switch (kbuf[0] & 0x3) {
22606 - eventp->bstate = BUTTON1_PRESSED;
22607 -#ifdef USE_EMX_MOUSE
22608 - if (kbuf[0] & 0x40)
22609 - eventp->bstate = BUTTON1_RELEASED;
22611 + PRESS_POSITION(1);
22615 - eventp->bstate = BUTTON2_PRESSED;
22616 -#ifdef USE_EMX_MOUSE
22617 - if (kbuf[0] & 0x40)
22618 - eventp->bstate = BUTTON2_RELEASED;
22620 + PRESS_POSITION(2);
22624 - eventp->bstate = BUTTON3_PRESSED;
22625 -#ifdef USE_EMX_MOUSE
22626 - if (kbuf[0] & 0x40)
22627 - eventp->bstate = BUTTON3_RELEASED;
22629 + PRESS_POSITION(3);
22634 - * Release events aren't reported for individual buttons,
22635 - * just for the button set as a whole...
22638 - (BUTTON1_RELEASED |
22639 - BUTTON2_RELEASED |
22640 - BUTTON3_RELEASED);
22642 - * ...however, because there are no kinds of mouse events under
22643 - * xterm that can intervene between press and release, we can
22644 - * deduce which buttons were actually released by looking at the
22645 - * previous event.
22646 + * Release events aren't reported for individual buttons, just for
22647 + * the button set as a whole. However, because there are normally
22648 + * no mouse events under xterm that intervene between press and
22649 + * release, we can infer the button actually released by looking at
22650 + * the previous event.
22652 - prev = PREV(eventp);
22653 - if (!(prev->bstate & BUTTON1_PRESSED))
22654 - eventp->bstate &= ~BUTTON1_RELEASED;
22655 - if (!(prev->bstate & BUTTON2_PRESSED))
22656 - eventp->bstate &= ~BUTTON2_RELEASED;
22657 - if (!(prev->bstate & BUTTON3_PRESSED))
22658 - eventp->bstate &= ~BUTTON3_RELEASED;
22659 + if (prev & (BUTTON_PRESSED | BUTTON_RELEASED)) {
22660 + eventp->bstate = BUTTON_RELEASED;
22661 + if (!(prev & BUTTON1_PRESSED))
22662 + eventp->bstate &= ~BUTTON1_RELEASED;
22663 + if (!(prev & BUTTON2_PRESSED))
22664 + eventp->bstate &= ~BUTTON2_RELEASED;
22665 + if (!(prev & BUTTON3_PRESSED))
22666 + eventp->bstate &= ~BUTTON3_RELEASED;
22669 + * XFree86 xterm will return a stream of release-events to
22670 + * let the application know where the mouse is going, if the
22671 + * private mode 1002 or 1003 is enabled.
22673 + eventp->bstate = REPORT_MOUSE_POSITION;
22677 + result = (eventp->bstate & REPORT_MOUSE_POSITION) ? TRUE : FALSE;
22680 eventp->bstate |= BUTTON_SHIFT;
22681 @@ -529,7 +742,7 @@
22690 @@ -542,16 +755,16 @@
22694 - switch (mousetype) {
22695 + switch (SP->_mouse_type) {
22697 #if NCURSES_EXT_FUNCS
22698 keyok(KEY_MOUSE, on);
22700 TPUTS_TRACE("xterm mouse initialization");
22701 -#ifdef USE_EMX_MOUSE
22705 - putp("\033[?1000h");
22706 + enable_xterm_mouse(1);
22709 #if USE_GPM_SUPPORT
22710 @@ -559,6 +772,13 @@
22711 SP->_mouse_fd = gpm_fd;
22716 + signal(SIGUSR2, handle_sysmouse);
22722 /* Make runtime binding to cut down on object size of applications that
22723 * do not use the mouse (e.g., 'clear').
22724 @@ -571,19 +791,26 @@
22728 - switch (mousetype) {
22729 + switch (SP->_mouse_type) {
22731 TPUTS_TRACE("xterm mouse deinitialization");
22732 -#ifdef USE_EMX_MOUSE
22736 - putp("\033[?1000l");
22737 + enable_xterm_mouse(0);
22740 #if USE_GPM_SUPPORT
22746 + signal(SIGUSR2, SIG_IGN);
22754 @@ -631,7 +858,7 @@
22755 ("_nc_mouse_parse: returning simple mouse event %s at slot %ld",
22757 (long) (prev - events)));
22758 - return (prev->id >= 0)
22759 + return (prev->id >= NORMAL_EVENT)
22760 ? ((prev->bstate & eventmask) ? TRUE : FALSE)
22763 @@ -657,7 +884,7 @@
22765 for (ep = runp; (next = NEXT(ep)) != eventp; ep = next) {
22766 if (ep->x == next->x && ep->y == next->y
22767 - && (ep->bstate & (BUTTON1_PRESSED | BUTTON2_PRESSED | BUTTON3_PRESSED))
22768 + && (ep->bstate & BUTTON_PRESSED)
22769 && (!(ep->bstate & BUTTON1_PRESSED)
22770 == !(next->bstate & BUTTON1_RELEASED))
22771 && (!(ep->bstate & BUTTON2_PRESSED)
22772 @@ -729,10 +956,8 @@
22775 /* merge click events forward */
22776 - if ((ep->bstate &
22777 - (BUTTON1_CLICKED | BUTTON2_CLICKED | BUTTON3_CLICKED))
22778 - && (follower->bstate &
22779 - (BUTTON1_CLICKED | BUTTON2_CLICKED | BUTTON3_CLICKED))) {
22780 + if ((ep->bstate & BUTTON_CLICKED)
22781 + && (follower->bstate & BUTTON_CLICKED)) {
22782 if ((eventmask & BUTTON1_DOUBLE_CLICKED)
22783 && (follower->bstate & BUTTON1_CLICKED)) {
22784 follower->bstate &= ~BUTTON1_CLICKED;
22785 @@ -760,8 +985,7 @@
22786 (BUTTON1_DOUBLE_CLICKED
22787 | BUTTON2_DOUBLE_CLICKED
22788 | BUTTON3_DOUBLE_CLICKED))
22789 - && (follower->bstate &
22790 - (BUTTON1_CLICKED | BUTTON2_CLICKED | BUTTON3_CLICKED))) {
22791 + && (follower->bstate & BUTTON_CLICKED)) {
22792 if ((eventmask & BUTTON1_TRIPLE_CLICKED)
22793 && (follower->bstate & BUTTON1_CLICKED)) {
22794 follower->bstate &= ~BUTTON1_CLICKED;
22795 @@ -831,7 +1055,7 @@
22797 TR(MY_TRACE, ("_nc_mouse_wrap() called"));
22799 - switch (mousetype) {
22800 + switch (SP->_mouse_type) {
22803 mouse_activate(FALSE);
22804 @@ -841,6 +1065,13 @@
22810 + mouse_activate(FALSE);
22818 @@ -850,11 +1081,27 @@
22820 TR(MY_TRACE, ("_nc_mouse_resume() called"));
22822 - /* xterm: re-enable reporting */
22823 - if (mousetype == M_XTERM && eventmask)
22824 - mouse_activate(TRUE);
22825 + switch (SP->_mouse_type) {
22827 + /* xterm: re-enable reporting */
22829 + mouse_activate(TRUE);
22832 - /* GPM: reclaim our event set */
22833 +#if USE_GPM_SUPPORT
22835 + /* GPM: reclaim our event set */
22841 + mouse_activate(TRUE);
22849 /**************************************************************************
22850 @@ -869,7 +1116,7 @@
22852 T((T_CALLED("getmouse(%p)"), aevent));
22854 - if (aevent && (mousetype != M_NONE)) {
22855 + if (aevent && (SP->_mouse_type != M_NONE)) {
22856 /* compute the current-event pointer */
22857 MEVENT *prev = PREV(eventp);
22859 @@ -917,14 +1164,14 @@
22863 - if (mousetype != M_NONE) {
22864 + if (SP->_mouse_type != M_NONE) {
22865 eventmask = newmask &
22866 - (BUTTON_ALT | BUTTON_CTRL | BUTTON_SHIFT
22867 - | BUTTON1_PRESSED | BUTTON1_RELEASED | BUTTON1_CLICKED
22868 + (REPORT_MOUSE_POSITION | BUTTON_ALT | BUTTON_CTRL | BUTTON_SHIFT
22870 + | BUTTON_RELEASED
22872 | BUTTON1_DOUBLE_CLICKED | BUTTON1_TRIPLE_CLICKED
22873 - | BUTTON2_PRESSED | BUTTON2_RELEASED | BUTTON2_CLICKED
22874 | BUTTON2_DOUBLE_CLICKED | BUTTON2_TRIPLE_CLICKED
22875 - | BUTTON3_PRESSED | BUTTON3_RELEASED | BUTTON3_CLICKED
22876 | BUTTON3_DOUBLE_CLICKED | BUTTON3_TRIPLE_CLICKED);
22878 mouse_activate(eventmask != 0);
22879 @@ -977,7 +1224,7 @@
22880 NCURSES_EXPORT(int)
22881 _nc_has_mouse(void)
22883 - return (mousetype == M_NONE ? 0 : 1);
22884 + return (SP->_mouse_type == M_NONE ? 0 : 1);
22887 NCURSES_EXPORT(bool)
22888 @@ -1010,5 +1257,3 @@
22890 returnBool(result);
22893 -/* lib_mouse.c ends here */
22894 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_newterm.c ncurses-5.3.20030906.orig/ncurses/base/lib_newterm.c
22895 --- ncurses-5.3/ncurses/base/lib_newterm.c Sat Oct 12 10:24:08 2002
22896 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_newterm.c Tue May 13 20:08:22 2003
22898 #include <term.h> /* clear_screen, cup & friends, cur_term */
22901 -MODULE_ID("$Id: lib_newterm.c,v 1.56 2002/10/12 15:24:08 tom Exp $")
22902 +MODULE_ID("$Id: lib_newterm.c,v 1.57 2002/10/20 00:10:56 Philippe.Blain Exp $")
22904 #ifndef ONLCR /* Allows compilation under the QNX 4.2 OS */
22906 @@ -119,13 +119,6 @@
22910 - if (VALID_NUMERIC(init_tabs))
22911 - TABSIZE = init_tabs;
22915 - T(("TABSIZE = %d", TABSIZE));
22918 cursor_down = parm_down_cursor = 0;
22919 cursor_address = 0;
22920 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_printw.c ncurses-5.3.20030906.orig/ncurses/base/lib_printw.c
22921 --- ncurses-5.3/ncurses/base/lib_printw.c Sat Oct 5 17:52:21 2002
22922 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_printw.c Tue May 13 20:08:22 2003
22924 /****************************************************************************
22925 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
22926 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
22928 * Permission is hereby granted, free of charge, to any person obtaining a *
22929 * copy of this software and associated documentation files (the *
22930 @@ -39,10 +39,10 @@
22932 #include <curses.priv.h>
22934 -MODULE_ID("$Id: lib_printw.c,v 1.13 2002/10/05 22:52:21 tom Exp $")
22935 +MODULE_ID("$Id: lib_printw.c,v 1.15 2003/02/08 20:50:13 tom Exp $")
22937 NCURSES_EXPORT(int)
22938 -printw(NCURSES_CONST char *fmt,...)
22939 +printw(const char *fmt,...)
22946 NCURSES_EXPORT(int)
22947 -wprintw(WINDOW *win, NCURSES_CONST char *fmt,...)
22948 +wprintw(WINDOW *win, const char *fmt,...)
22955 NCURSES_EXPORT(int)
22956 -mvprintw(int y, int x, NCURSES_CONST char *fmt,...)
22957 +mvprintw(int y, int x, const char *fmt,...)
22961 @@ -103,7 +103,7 @@
22964 NCURSES_EXPORT(int)
22965 -mvwprintw(WINDOW *win, int y, int x, NCURSES_CONST char *fmt,...)
22966 +mvwprintw(WINDOW *win, int y, int x, const char *fmt,...)
22970 @@ -124,7 +124,7 @@
22973 NCURSES_EXPORT(int)
22974 -vwprintw(WINDOW *win, NCURSES_CONST char *fmt, va_list argp)
22975 +vwprintw(WINDOW *win, const char *fmt, va_list argp)
22979 @@ -134,9 +134,6 @@
22981 if ((buf = _nc_printf_string(fmt, argp)) != 0) {
22982 code = waddstr(win, buf);
22983 -#if USE_SAFE_SPRINTF
22989 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_scroll.c ncurses-5.3.20030906.orig/ncurses/base/lib_scroll.c
22990 --- ncurses-5.3/ncurses/base/lib_scroll.c Tue Dec 18 19:06:55 2001
22991 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_scroll.c Fri Sep 12 16:41:24 2003
22993 /****************************************************************************
22994 - * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
22995 + * Copyright (c) 1998,2001,2003 Free Software Foundation, Inc. *
22997 * Permission is hereby granted, free of charge, to any person obtaining a *
22998 * copy of this software and associated documentation files (the *
23000 ****************************************************************************/
23002 /****************************************************************************
23003 - * Author: Thomas E. Dickey 1996-2001 *
23004 + * Author: Thomas E. Dickey 1996-2003 *
23005 * and: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
23006 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
23007 ****************************************************************************/
23010 #include <curses.priv.h>
23012 -MODULE_ID("$Id: lib_scroll.c,v 1.23 2001/12/19 01:06:55 tom Exp $")
23013 +MODULE_ID("$Id: lib_scroll.c,v 1.24 2003/07/26 23:25:26 tom Exp $")
23015 NCURSES_EXPORT(void)
23016 _nc_scroll_window(WINDOW *win, int const n, NCURSES_SIZE_T const top,
23017 @@ -77,24 +77,15 @@
23018 /* shift n lines downwards */
23021 - if (limit > win->_maxy)
23022 - limit = win->_maxy;
23023 - for (line = bottom; line >= limit; line--) {
23024 - if (line + n >= 0) {
23025 - TR(TRACE_MOVE, ("...copying %d to %d", line + n, line));
23026 - memcpy(win->_line[line].text,
23027 - win->_line[line + n].text,
23029 - if_USE_SCROLL_HINTS(win->_line[line].oldindex =
23030 - win->_line[line + n].oldindex);
23032 - TR(TRACE_MOVE, ("...filling %d", line));
23033 - for (j = 0; j <= win->_maxx; j++)
23034 - win->_line[line].text[j] = blank;
23035 - if_USE_SCROLL_HINTS(win->_line[line].oldindex = _NEWINDEX);
23037 + for (line = bottom; line >= limit && line >= 0; line--) {
23038 + TR(TRACE_MOVE, ("...copying %d to %d", line + n, line));
23039 + memcpy(win->_line[line].text,
23040 + win->_line[line + n].text,
23042 + if_USE_SCROLL_HINTS(win->_line[line].oldindex =
23043 + win->_line[line + n].oldindex);
23045 - for (line = top; line < limit; line++) {
23046 + for (line = top; line < limit && line <= win->_maxy; line++) {
23047 TR(TRACE_MOVE, ("...filling %d", line));
23048 for (j = 0; j <= win->_maxx; j++)
23049 win->_line[line].text[j] = blank;
23050 @@ -105,25 +96,14 @@
23051 /* shift n lines upwards */
23053 limit = bottom - n;
23056 - for (line = top; line <= limit; line++) {
23057 - if (line + n <= win->_maxy) {
23058 - TR(TRACE_MOVE, ("...copying %d to %d", line + n, line));
23059 - memcpy(win->_line[line].text,
23060 - win->_line[line + n].text,
23062 - if_USE_SCROLL_HINTS(win->_line[line].oldindex =
23063 - win->_line[line + n].oldindex);
23065 - TR(TRACE_MOVE, ("...filling %d", line));
23066 - for (j = 0; j <= win->_maxx; j++)
23067 - win->_line[line].text[j] = blank;
23068 - if_USE_SCROLL_HINTS(win->_line[line].oldindex = _NEWINDEX);
23070 + for (line = top; line <= limit && line <= win->_maxy; line++) {
23071 + memcpy(win->_line[line].text,
23072 + win->_line[line + n].text,
23074 + if_USE_SCROLL_HINTS(win->_line[line].oldindex =
23075 + win->_line[line + n].oldindex);
23077 - for (line = bottom; line > limit; line--) {
23078 - TR(TRACE_MOVE, ("...filling %d", line));
23079 + for (line = bottom; line > limit && line >= 0; line--) {
23080 for (j = 0; j <= win->_maxx; j++)
23081 win->_line[line].text[j] = blank;
23082 if_USE_SCROLL_HINTS(win->_line[line].oldindex = _NEWINDEX);
23083 @@ -142,11 +122,9 @@
23090 - _nc_scroll_window(win, n, win->_regtop, win->_regbottom, win->_nc_bkgd);
23092 - _nc_synchook(win);
23094 + _nc_scroll_window(win, n, win->_regtop, win->_regbottom, win->_nc_bkgd);
23095 + _nc_synchook(win);
23099 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_set_term.c ncurses-5.3.20030906.orig/ncurses/base/lib_set_term.c
23100 --- ncurses-5.3/ncurses/base/lib_set_term.c Sat Sep 14 17:48:00 2002
23101 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_set_term.c Fri Sep 12 16:41:56 2003
23103 /****************************************************************************
23104 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
23105 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
23107 * Permission is hereby granted, free of charge, to any person obtaining a *
23108 * copy of this software and associated documentation files (the *
23110 #include <term.h> /* cur_term */
23113 -MODULE_ID("$Id: lib_set_term.c,v 1.71 2002/09/14 22:48:00 tom Exp $")
23114 +MODULE_ID("$Id: lib_set_term.c,v 1.78 2003/08/09 20:41:12 tom Exp $")
23116 NCURSES_EXPORT(SCREEN *)
23117 set_term(SCREEN * screenp)
23119 stdscr = SP->_stdscr;
23120 COLORS = SP->_color_count;
23121 COLOR_PAIRS = SP->_pair_count;
23122 - memcpy(acs_map, SP->_acs_map, sizeof(SP->_acs_map[0]) * ACS_LEN);
23124 T((T_RETURN("%p"), oldSP));
23127 delscreen(SCREEN * sp)
23129 SCREEN **scan = &_nc_screen_chain;
23132 T((T_CALLED("delscreen(%p)"), sp));
23134 @@ -100,8 +100,13 @@
23135 (void) _nc_freewin(sp->_stdscr);
23137 if (sp->_slk != 0) {
23138 - FreeIfNeeded(sp->_slk->ent);
23139 - FreeIfNeeded(sp->_slk->buffer);
23140 + if (sp->_slk->ent != 0) {
23141 + for (i = 0; i < sp->_slk->labcnt; ++i) {
23142 + FreeIfNeeded(sp->_slk->ent[i].ent_text);
23143 + FreeIfNeeded(sp->_slk->ent[i].form_text);
23145 + free(sp->_slk->ent);
23150 @@ -204,7 +209,7 @@
23153 NCURSES_EXPORT(int)
23154 -_nc_setupscreen(short slines, short const scolumns, FILE * output)
23155 +_nc_setupscreen(short slines, short const scolumns, FILE *output)
23156 /* OS-independent screen initializations */
23158 int bottom_stolen = 0;
23159 @@ -377,8 +382,15 @@
23161 #if USE_WIDEC_SUPPORT
23164 + SP->_screen_acs_fix = (_nc_unicode_locale() && _nc_locale_breaks_acs());
23166 + char *env = _nc_get_locale();
23167 + SP->_posix_locale = ((env == 0)
23168 + || !strcmp(env, "C")
23169 + || !strcmp(env, "POSIX"));
23172 - memcpy(SP->_acs_map, acs_map, sizeof(chtype) * ACS_LEN);
23176 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_slk.c ncurses-5.3.20030906.orig/ncurses/base/lib_slk.c
23177 --- ncurses-5.3/ncurses/base/lib_slk.c Sat Sep 28 12:46:40 2002
23178 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_slk.c Sun Jul 20 14:02:08 2003
23180 /****************************************************************************
23181 - * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
23182 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
23184 * Permission is hereby granted, free of charge, to any person obtaining a *
23185 * copy of this software and associated documentation files (the *
23188 #include <term.h> /* num_labels, label_*, plab_norm */
23190 -MODULE_ID("$Id: lib_slk.c,v 1.24 2002/09/28 17:46:40 tom Exp $")
23191 +MODULE_ID("$Id: lib_slk.c,v 1.28 2003/05/24 21:10:28 tom Exp $")
23194 * We'd like to move these into the screen context structure, but cannot,
23195 @@ -64,12 +64,26 @@
23198 for (i = 0; i < SP->_slk->maxlab; i++) {
23199 - mvwprintw(win, 0, SP->_slk->ent[i].x, "F%d", i + 1);
23200 + mvwprintw(win, 0, SP->_slk->ent[i].ent_x, "F%d", i + 1);
23206 + * Free any memory related to soft labels, return an error.
23212 + FreeIfNeeded(SP->_slk->ent);
23214 + SP->_slk = (SLK *) 0;
23220 * Initialize soft labels.
23221 * Called from newterm()
23223 @@ -78,19 +92,26 @@
23228 unsigned max_length;
23230 - T(("slk_initialize()"));
23231 + T((T_CALLED("_nc_slk_initialize()")));
23233 if (SP->_slk) { /* we did this already, so simply return */
23236 } else if ((SP->_slk = typeCalloc(SLK, 1)) == 0)
23240 SP->_slk->ent = NULL;
23241 - SP->_slk->buffer = NULL;
23242 - SP->_slk->attr = A_STANDOUT;
23245 + * If we use colors, vidputs() will suppress video attributes that conflict
23246 + * with colors. In that case, we're still guaranteed that "reverse" would
23249 + if ((no_color_video & 1) == 0)
23250 + SP->_slk->attr = A_STANDOUT;
23252 + SP->_slk->attr = A_REVERSE;
23254 SP->_slk->maxlab = ((num_labels > 0)
23256 @@ -106,19 +127,19 @@
23257 || SP->_slk->labcnt <= 0
23258 || (SP->_slk->ent = typeCalloc(slk_ent,
23259 (unsigned) SP->_slk->labcnt)) == NULL)
23261 + returnCode(slk_failed());
23263 max_length = SP->_slk->maxlen;
23264 - p = SP->_slk->buffer = (char *) calloc((unsigned) (2 * SP->_slk->labcnt),
23265 - (1 + max_length));
23266 - if (SP->_slk->buffer == NULL)
23269 for (i = 0; i < SP->_slk->labcnt; i++) {
23270 - SP->_slk->ent[i].text = p;
23271 - p += (1 + max_length);
23272 - SP->_slk->ent[i].form_text = p;
23273 - p += (1 + max_length);
23275 + if ((SP->_slk->ent[i].ent_text = (char *)_nc_doalloc(0, max_length + 1)) == 0)
23276 + returnCode(slk_failed());
23277 + memset(SP->_slk->ent[i].ent_text, 0, max_length + 1);
23279 + if ((SP->_slk->ent[i].form_text = (char *)_nc_doalloc(0, max_length + 1)) == 0)
23280 + returnCode(slk_failed());
23281 + memset(SP->_slk->ent[i].form_text, 0, max_length + 1);
23283 memset(SP->_slk->ent[i].form_text, ' ', max_length);
23284 SP->_slk->ent[i].visible = (i < SP->_slk->maxlab);
23286 @@ -129,7 +150,7 @@
23289 for (i = x = 0; i < SP->_slk->maxlab; i++) {
23290 - SP->_slk->ent[i].x = x;
23291 + SP->_slk->ent[i].ent_x = x;
23293 x += (i == 3 || i == 7) ? gap : 1;
23295 @@ -141,7 +162,7 @@
23298 for (i = x = 0; i < SP->_slk->maxlab; i++) {
23299 - SP->_slk->ent[i].x = x;
23300 + SP->_slk->ent[i].ent_x = x;
23302 x += (i == 3) ? gap : 1;
23304 @@ -153,24 +174,17 @@
23307 for (i = x = 0; i < SP->_slk->maxlab; i++) {
23308 - SP->_slk->ent[i].x = x;
23309 + SP->_slk->ent[i].ent_x = x;
23311 x += (i == 2 || i == 4) ? gap : 1;
23315 + returnCode(slk_failed());
23318 SP->_slk->dirty = TRUE;
23319 if ((SP->_slk->win = stwin) == NULL) {
23322 - FreeIfNeeded(SP->_slk->buffer);
23323 - FreeIfNeeded(SP->_slk->ent);
23325 - SP->_slk = (SLK *) 0;
23328 + returnCode(slk_failed());
23331 /* We now reset the format so that the next newterm has again
23332 @@ -179,7 +193,7 @@
23334 SP->slk_format = _nc_slk_format;
23335 _nc_slk_format = 0;
23341 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_slklab.c ncurses-5.3.20030906.orig/ncurses/base/lib_slklab.c
23342 --- ncurses-5.3/ncurses/base/lib_slklab.c Sat Dec 9 20:43:27 2000
23343 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_slklab.c Tue May 13 20:08:22 2003
23345 /****************************************************************************
23346 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
23347 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
23349 * Permission is hereby granted, free of charge, to any person obtaining a *
23350 * copy of this software and associated documentation files (the *
23353 #include <curses.priv.h>
23355 -MODULE_ID("$Id: lib_slklab.c,v 1.6 2000/12/10 02:43:27 tom Exp $")
23356 +MODULE_ID("$Id: lib_slklab.c,v 1.7 2003/03/29 22:53:48 tom Exp $")
23358 NCURSES_EXPORT(char *)
23362 if (SP == NULL || SP->_slk == NULL || n < 1 || n > SP->_slk->labcnt)
23364 - returnPtr(SP->_slk->ent[n - 1].text);
23365 + returnPtr(SP->_slk->ent[n - 1].ent_text);
23367 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_slkrefr.c ncurses-5.3.20030906.orig/ncurses/base/lib_slkrefr.c
23368 --- ncurses-5.3/ncurses/base/lib_slkrefr.c Sat Dec 9 20:43:27 2000
23369 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_slkrefr.c Tue May 13 20:08:22 2003
23371 /****************************************************************************
23372 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
23373 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
23375 * Permission is hereby granted, free of charge, to any person obtaining a *
23376 * copy of this software and associated documentation files (the *
23378 #include <curses.priv.h>
23379 #include <term.h> /* num_labels, label_*, plab_norm */
23381 -MODULE_ID("$Id: lib_slkrefr.c,v 1.10 2000/12/10 02:43:27 tom Exp $")
23382 +MODULE_ID("$Id: lib_slkrefr.c,v 1.11 2003/03/29 22:53:48 tom Exp $")
23385 * Write the soft labels to the soft-key window.
23387 putp(tparm(plab_norm, i + 1, slk->ent[i].form_text));
23390 - wmove(slk->win, SLK_LINES(fmt) - 1, slk->ent[i].x);
23391 + wmove(slk->win, SLK_LINES(fmt) - 1, slk->ent[i].ent_x);
23392 if (SP && SP->_slk)
23393 wattrset(slk->win, SP->_slk->attr);
23394 waddnstr(slk->win, slk->ent[i].form_text,
23395 diff -urNd -urNd ncurses-5.3/ncurses/base/lib_slkset.c ncurses-5.3.20030906.orig/ncurses/base/lib_slkset.c
23396 --- ncurses-5.3/ncurses/base/lib_slkset.c Sat Jun 2 17:50:29 2001
23397 +++ ncurses-5.3.20030906.orig/ncurses/base/lib_slkset.c Tue May 13 20:08:22 2003
23399 /****************************************************************************
23400 - * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
23401 + * Copyright (c) 1998-2001,2003 Free Software Foundation, Inc. *
23403 * Permission is hereby granted, free of charge, to any person obtaining a *
23404 * copy of this software and associated documentation files (the *
23405 @@ -38,13 +38,14 @@
23406 #include <curses.priv.h>
23409 -MODULE_ID("$Id: lib_slkset.c,v 1.7 2001/06/02 22:50:29 skimo Exp $")
23410 +MODULE_ID("$Id: lib_slkset.c,v 1.10 2003/04/12 21:32:16 tom Exp $")
23412 NCURSES_EXPORT(int)
23413 slk_set(int i, const char *astr, int format)
23415 SLK *slk = SP->_slk;
23418 const char *str = astr;
23421 @@ -64,33 +65,30 @@
23422 --i; /* Adjust numbering of labels */
23424 len = (size_t) (p - str);
23425 - if (len > (unsigned) slk->maxlen)
23426 + if (len > (size_t) slk->maxlen)
23429 - slk->ent[i].text[0] = 0;
23430 + slk->ent[i].ent_text[0] = 0;
23432 - (void) strncpy(slk->ent[i].text, str, len);
23433 + strncpy(slk->ent[i].ent_text, str, len)[len] = 0;
23434 memset(slk->ent[i].form_text, ' ', (unsigned) slk->maxlen);
23435 - slk->ent[i].text[slk->maxlen] = 0;
23436 - /* len = strlen(slk->ent[i].text); */
23437 + slk->ent[i].ent_text[slk->maxlen] = 0;
23441 case 0: /* left-justified */
23442 - memcpy(slk->ent[i].form_text,
23443 - slk->ent[i].text,
23447 case 1: /* centered */
23448 - memcpy(slk->ent[i].form_text + (slk->maxlen - len) / 2,
23449 - slk->ent[i].text,
23451 + offset = (slk->maxlen - len) / 2;
23453 case 2: /* right-justified */
23454 - memcpy(slk->ent[i].form_text + slk->maxlen - len,
23455 - slk->ent[i].text,
23457 + offset = slk->maxlen - len;
23460 + memcpy(slk->ent[i].form_text + offset,
23461 + slk->ent[i].ent_text,
23463 slk->ent[i].form_text[slk->maxlen] = 0;
23464 slk->ent[i].dirty = TRUE;
23466 diff -urNd -urNd ncurses-5.3/ncurses/base/resizeterm.c ncurses-5.3.20030906.orig/ncurses/base/resizeterm.c
23467 --- ncurses-5.3/ncurses/base/resizeterm.c Sat Jul 13 16:32:57 2002
23468 +++ ncurses-5.3.20030906.orig/ncurses/base/resizeterm.c Tue May 13 20:08:22 2003
23469 @@ -41,10 +41,13 @@
23470 #include <curses.priv.h>
23473 -MODULE_ID("$Id: resizeterm.c,v 1.14 2002/07/13 21:32:57 tom Exp $")
23474 +MODULE_ID("$Id: resizeterm.c,v 1.15 2002/12/28 01:21:34 tom Exp $")
23476 #define stolen_lines (screen_lines - SP->_lines_avail)
23478 +static int current_lines;
23479 +static int current_cols;
23481 NCURSES_EXPORT(bool)
23482 is_term_resized(int ToLines, int ToCols)
23485 adjust_window(WINDOW *win, int ToLines, int ToCols, int stolen)
23488 - int bottom = screen_lines + SP->_topstolen - stolen;
23489 + int bottom = current_lines + SP->_topstolen - stolen;
23490 int myLines = win->_maxy + 1;
23491 int myCols = win->_maxx + 1;
23493 @@ -109,13 +112,13 @@
23494 getbegy(win), getbegx(win)));
23496 if (win->_begy >= bottom) {
23497 - win->_begy += (ToLines - screen_lines);
23498 + win->_begy += (ToLines - current_lines);
23500 - if (myLines == screen_lines - stolen
23501 - && ToLines != screen_lines)
23502 + if (myLines == current_lines - stolen
23503 + && ToLines != current_lines)
23504 myLines = ToLines - stolen;
23505 - else if (myLines == screen_lines
23506 - && ToLines != screen_lines)
23507 + else if (myLines == current_lines
23508 + && ToLines != current_lines)
23512 @@ -125,12 +128,12 @@
23513 if (myCols > ToCols)
23516 - if (myLines == screen_lines
23517 - && ToLines != screen_lines)
23518 - myCols = ToLines;
23519 + if (myLines == current_lines
23520 + && ToLines != current_lines)
23521 + myLines = ToLines;
23523 - if (myCols == screen_columns
23524 - && ToCols != screen_columns)
23525 + if (myCols == current_cols
23526 + && ToCols != current_cols)
23529 result = wresize(win, myLines, myCols);
23530 @@ -216,15 +219,19 @@
23531 screen_lines, screen_columns));
23533 if (is_term_resized(ToLines, ToCols)) {
23534 - int myLines = screen_lines;
23535 - int myCols = screen_columns;
23536 + int myLines = current_lines = screen_lines;
23537 + int myCols = current_cols = screen_columns;
23539 if (ToLines > screen_lines) {
23540 increase_size(myLines = ToLines, myCols, was_stolen);
23541 + current_lines = myLines;
23542 + current_cols = myCols;
23545 if (ToCols > screen_columns) {
23546 increase_size(myLines, myCols = ToCols, was_stolen);
23547 + current_lines = myLines;
23548 + current_cols = myCols;
23551 if (ToLines < myLines ||
23552 diff -urNd -urNd ncurses-5.3/ncurses/base/safe_sprintf.c ncurses-5.3.20030906.orig/ncurses/base/safe_sprintf.c
23553 --- ncurses-5.3/ncurses/base/safe_sprintf.c Sat Jul 7 19:58:34 2001
23554 +++ ncurses-5.3.20030906.orig/ncurses/base/safe_sprintf.c Fri Sep 12 16:41:56 2003
23556 /****************************************************************************
23557 - * Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. *
23558 + * Copyright (c) 1998-2001,2003 Free Software Foundation, Inc. *
23560 * Permission is hereby granted, free of charge, to any person obtaining a *
23561 * copy of this software and associated documentation files (the *
23563 #include <curses.priv.h>
23566 -MODULE_ID("$Id: safe_sprintf.c,v 1.14 2001/07/08 00:58:34 tom Exp $")
23567 +MODULE_ID("$Id: safe_sprintf.c,v 1.18 2003/08/09 21:52:04 tom Exp $")
23569 #if USE_SAFE_SPRINTF
23571 @@ -56,10 +56,13 @@
23576 + char fmt_arg[BUFSIZ];
23578 if (fmt == 0 || *fmt == '\0')
23580 - if ((format = typeMalloc(char, strlen(fmt) + 1)) == 0)
23582 + fmt_len = strlen(fmt) + 1;
23583 + if ((format = typeMalloc(char, fmt_len)) == 0)
23585 if ((buffer = typeMalloc(char, length)) == 0) {
23587 @@ -106,7 +109,12 @@
23588 } else if (state == Prec) {
23591 - sprintf(&format[--f], "%d", ival);
23592 + sprintf(fmt_arg, "%d", ival);
23593 + fmt_len += strlen(fmt_arg);
23594 + if ((format = realloc(format, fmt_len)) == 0) {
23597 + strcpy(&format[--f], fmt_arg);
23598 f = strlen(format);
23599 } else if (isalpha(UChar(*fmt))) {
23601 @@ -203,42 +211,52 @@
23602 * Wrapper for vsprintf that allocates a buffer big enough to hold the result.
23604 NCURSES_EXPORT(char *)
23606 -(const char *fmt, va_list ap)
23607 +_nc_printf_string(const char *fmt, va_list ap)
23609 + static char *buf;
23610 + static size_t used;
23611 + char *result = 0;
23614 #if USE_SAFE_SPRINTF
23616 - int len = _nc_printf_length(fmt, ap);
23617 + int len = _nc_printf_length(fmt, ap);
23620 - if ((buf = typeMalloc(char, len + 1)) == 0)
23622 - vsprintf(buf, fmt, ap);
23624 + if ((int) used < len + 1) {
23625 + used = 2 * (len + 1);
23626 + buf = typeRealloc(char, used, buf);
23631 + vsprintf(buf, fmt, ap);
23636 - static int rows, cols;
23637 - static char *buf;
23638 - static size_t len;
23639 + static int rows, cols;
23641 - if (screen_lines > rows || screen_columns > cols) {
23642 - if (screen_lines > rows)
23643 - rows = screen_lines;
23644 - if (screen_columns > cols)
23645 - cols = screen_columns;
23646 - len = (rows * (cols + 1)) + 1;
23647 - buf = typeRealloc(char, len, buf);
23650 + if (screen_lines > rows || screen_columns > cols) {
23651 + if (screen_lines > rows)
23652 + rows = screen_lines;
23653 + if (screen_columns > cols)
23654 + cols = screen_columns;
23655 + used = (rows * (cols + 1)) + 1;
23656 + buf = typeRealloc(char, used, buf);
23662 # if HAVE_VSNPRINTF
23663 - vsnprintf(buf, len, fmt, ap); /* GNU extension */
23664 + vsnprintf(buf, used, fmt, ap); /* GNU extension */
23666 - vsprintf(buf, fmt, ap); /* ANSI */
23667 + vsprintf(buf, fmt, ap); /* ANSI */
23674 + } else if (buf != 0) { /* see _nc_freeall() */
23681 diff -urNd -urNd ncurses-5.3/ncurses/base/tries.c ncurses-5.3.20030906.orig/ncurses/base/tries.c
23682 --- ncurses-5.3/ncurses/base/tries.c Sat Dec 15 18:50:40 2001
23683 +++ ncurses-5.3.20030906.orig/ncurses/base/tries.c Sun Jul 20 14:02:08 2003
23685 /****************************************************************************
23686 - * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
23687 + * Copyright (c) 1998-2001,2003 Free Software Foundation, Inc. *
23689 * Permission is hereby granted, free of charge, to any person obtaining a *
23690 * copy of this software and associated documentation files (the *
23691 @@ -39,15 +39,14 @@
23693 #include <curses.priv.h>
23695 -MODULE_ID("$Id: tries.c,v 1.15 2001/12/16 00:50:40 tom Exp $")
23696 +MODULE_ID("$Id: tries.c,v 1.19 2003/05/17 23:11:24 tom Exp $")
23699 * Expand a keycode into the string that it corresponds to, returning null if
23700 * no match was found, otherwise allocating a string of the result.
23702 NCURSES_EXPORT(char *)
23704 -(struct tries *tree, unsigned short code, int *count, size_t len)
23705 +_nc_expand_try(struct tries *tree, unsigned short code, int *count, size_t len)
23707 struct tries *ptr = tree;
23710 * true if the code was found/removed.
23712 NCURSES_EXPORT(int)
23714 -(struct tries **tree, unsigned short code)
23715 +_nc_remove_key(struct tries **tree, unsigned short code)
23717 T((T_CALLED("_nc_remove_key(%p,%d)"), tree, code));
23719 @@ -117,7 +115,7 @@
23720 * true if the string was found/removed.
23722 NCURSES_EXPORT(int)
23723 -_nc_remove_string(struct tries **tree, char *string)
23724 +_nc_remove_string(struct tries **tree, const char *string)
23726 T((T_CALLED("_nc_remove_string(%p,%s)"), tree, _nc_visbuf(string)));
23728 @@ -125,18 +123,17 @@
23731 while (*tree != 0) {
23732 - if ((unsigned char) (*tree)->ch == (unsigned char) *string) {
23733 + if (UChar((*tree)->ch) == UChar(*string)) {
23734 if (string[1] != 0)
23735 returnCode(_nc_remove_string(&(*tree)->child, string + 1));
23736 - if ((*tree)->child) {
23737 - /* don't cut the whole sub-tree */
23738 - (*tree)->value = 0;
23740 + if ((*tree)->child == 0) {
23741 struct tries *to_free = *tree;
23742 *tree = (*tree)->sibling;
23744 + returnCode(TRUE);
23746 + returnCode(FALSE);
23748 - returnCode(TRUE);
23750 tree = &(*tree)->sibling;
23752 diff -urNd -urNd ncurses-5.3/ncurses/base/vsscanf.c ncurses-5.3.20030906.orig/ncurses/base/vsscanf.c
23753 --- ncurses-5.3/ncurses/base/vsscanf.c Sat Sep 7 12:27:56 2002
23754 +++ ncurses-5.3.20030906.orig/ncurses/base/vsscanf.c Sun Jul 20 14:02:08 2003
23759 -MODULE_ID("$Id: vsscanf.c,v 1.16 2002/09/07 17:27:56 tom Exp $")
23760 +MODULE_ID("$Id: vsscanf.c,v 1.17 2003/05/24 21:10:28 tom Exp $")
23762 #if !(HAVE_VFSCANF || HAVE__DOSCAN)
23764 @@ -230,7 +230,7 @@
23768 - other = cUnknown;
23769 + other = oUnknown;
23771 for (n = 0; format[n] != 0 && state != sFinal; ++n) {
23772 my_fmt[n] = format[n];
23773 diff -urNd -urNd ncurses-5.3/ncurses/curses.priv.h ncurses-5.3.20030906.orig/ncurses/curses.priv.h
23774 --- ncurses-5.3/ncurses/curses.priv.h Sat Oct 12 10:49:10 2002
23775 +++ ncurses-5.3.20030906.orig/ncurses/curses.priv.h Fri Sep 12 16:42:24 2003
23777 /****************************************************************************
23778 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
23779 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
23781 * Permission is hereby granted, free of charge, to any person obtaining a *
23782 * copy of this software and associated documentation files (the *
23787 - * $Id: curses.priv.h,v 1.228 2002/10/12 15:49:10 tom Exp $
23788 + * $Id: curses.priv.h,v 1.252 2003/08/23 21:38:49 tom Exp $
23792 @@ -130,7 +130,9 @@
23794 /* EMX mouse support */
23796 -#define USE_EMX_MOUSE
23797 +#define USE_EMX_MOUSE 1
23799 +#define USE_EMX_MOUSE 0
23802 #define DEFAULT_MAXCLICK 166
23803 @@ -259,21 +261,32 @@
23807 - NCURSES_CH_T *text; /* text of the line */
23808 - NCURSES_SIZE_T firstchar; /* first changed character in the line */
23809 - NCURSES_SIZE_T lastchar; /* last changed character in the line */
23810 - NCURSES_SIZE_T oldindex; /* index of the line at last update */
23811 + NCURSES_CH_T *text; /* text of the line */
23812 + NCURSES_SIZE_T firstchar; /* first changed character in the line */
23813 + NCURSES_SIZE_T lastchar; /* last changed character in the line */
23814 + NCURSES_SIZE_T oldindex; /* index of the line at last update */
23818 + M_XTERM = -1 /* use xterm's mouse tracking? */
23819 + ,M_NONE = 0 /* no mouse device */
23820 +#if USE_GPM_SUPPORT
23821 + ,M_GPM /* use GPM */
23824 + ,M_SYSMOUSE /* FreeBSD sysmouse on console */
23829 * Structure for soft labels.
23834 - char *text; /* text for the label */
23835 + char *ent_text; /* text for the label */
23836 char *form_text; /* formatted text (left/center/...) */
23837 - int x; /* x coordinate of this field */
23838 + int ent_x; /* x coordinate of this field */
23839 char dirty; /* this label has changed */
23840 char visible; /* field is visible */
23842 @@ -283,11 +296,10 @@
23843 char hidden; /* soft labels are hidden */
23846 - char* buffer; /* buffer for labels */
23847 - short maxlab; /* number of available labels */
23848 - short labcnt; /* number of allocated labels */
23849 - short maxlen; /* length of labels */
23850 - chtype attr; /* soft label attribute */
23851 + short maxlab; /* number of available labels */
23852 + short labcnt; /* number of allocated labels */
23853 + short maxlen; /* length of labels */
23854 + chtype attr; /* soft label attribute */
23858 @@ -308,7 +320,7 @@
23859 char *_setbuf; /* buffered I/O for output */
23860 int _buffered; /* setvbuf uses _setbuf data */
23861 int _checkfd; /* filedesc for typeahead check */
23862 - struct term *_term; /* terminal type information */
23863 + TERMINAL *_term; /* terminal type information */
23864 short _lines; /* screen lines */
23865 short _columns; /* screen columns */
23867 @@ -326,6 +338,7 @@
23868 bool _tried; /* keypad mode was initialized */
23869 bool _keypad_on; /* keypad mode is currently on */
23871 + bool _called_wgetch; /* check for recursion in wgetch() */
23872 int _fifo[FIFO_SIZE]; /* input push-back buffer */
23873 short _fifohead, /* head of fifo queue */
23874 _fifotail, /* tail of fifo queue */
23875 @@ -339,6 +352,7 @@
23876 int _cursor; /* visibility of the cursor */
23877 int _cursrow; /* physical cursor row */
23878 int _curscol; /* physical cursor column */
23879 + bool _notty; /* true if we cannot switch non-tty */
23880 int _nl; /* True if NL -> CR/NL is on */
23881 int _raw; /* True if in raw mode */
23882 int _cbreak; /* 1 if in cbreak mode */
23883 @@ -405,7 +419,7 @@
23885 chtype _xmc_suppress; /* attributes to suppress if xmc */
23886 chtype _xmc_triggers; /* attributes to process if xmc */
23887 - chtype _acs_map[ACS_LEN];
23888 + chtype _acs_map[ACS_LEN]; /* the real alternate-charset map */
23890 /* used in lib_vidattr.c */
23891 bool _use_rmso; /* true if we may use 'rmso' */
23892 @@ -426,6 +440,7 @@
23894 * These are the data that support the mouse interface.
23896 + MouseType _mouse_type;
23898 bool (*_mouse_event) (SCREEN *);
23899 bool (*_mouse_inline)(SCREEN *);
23900 @@ -433,6 +448,16 @@
23901 void (*_mouse_resume)(SCREEN *);
23902 void (*_mouse_wrap) (SCREEN *);
23903 int _mouse_fd; /* file-descriptor, if any */
23904 + NCURSES_CONST char *_mouse_xtermcap; /* string to enable/disable mouse */
23906 + MEVENT _sysmouse_fifo[FIFO_SIZE];
23907 + int _sysmouse_head;
23908 + int _sysmouse_tail;
23909 + int _sysmouse_char_width; /* character width */
23910 + int _sysmouse_char_height; /* character height */
23911 + int _sysmouse_old_buttons;
23912 + int _sysmouse_new_buttons;
23916 * This supports automatic resizing
23917 @@ -461,6 +486,14 @@
23921 + /* recent versions of 'screen' have partially-working support for
23922 + * UTF-8, but do not permit ACS at the same time (see tty_update.c).
23924 +#if USE_WIDEC_SUPPORT
23925 + bool _posix_locale;
23926 + bool _screen_acs_fix;
23929 bool _cleanup; /* cleanup after int/quit signal */
23930 int (*_outch)(int); /* output handler if not putc */
23932 @@ -471,21 +504,19 @@
23933 #include <nomacros.h>
23937 - * The margins are used in resizeterm() to retain the original layout after
23941 + WINDOW win; /* first, so WINDOW_EXT() works */
23943 -#if HAVE_RESIZETERM
23948 +#ifdef _XOPEN_SOURCE_EXTENDED
23949 + char addch_work[(MB_LEN_MAX * 9) + 1];
23957 +#define WINDOW_EXT(win,field) (((WINDOWLIST *)(win))->field)
23959 /* The terminfo source is assumed to be 7-bit ASCII */
23960 #define is7bits(c) ((unsigned)(c) < 128)
23962 @@ -539,18 +570,29 @@
23967 +#define TRACE_OUTCHARS(n) _nc_outchars += (n);
23969 +#define TRACE_OUTCHARS(n) /* nothing */
23972 #define UChar(c) ((unsigned char)(c))
23973 #define ChCharOf(c) ((c) & (chtype)A_CHARTEXT)
23974 #define ChAttrOf(c) ((c) & (chtype)A_ATTRIBUTES)
23976 +#ifndef MB_LEN_MAX
23977 +#define MB_LEN_MAX 8 /* should be >= MB_CUR_MAX, but that may be a function */
23980 #if USE_WIDEC_SUPPORT /* { */
23981 +#define NulChar 0,0,0,0 /* FIXME: see CCHARW_MAX */
23982 #define CharOf(c) ((c).chars[0])
23983 #define AttrOf(c) ((c).attr)
23984 #define AddAttr(c,a) (c).attr |= a
23985 #define RemAttr(c,a) (c).attr &= ~(a)
23986 #define SetAttr(c,a) (c).attr = a
23987 -#define NewChar(ch) { ChAttrOf(ch), { ChCharOf(ch) } }
23988 -#define NewChar2(c,a) { a, { c } }
23989 +#define NewChar(ch) { ChAttrOf(ch), { ChCharOf(ch), NulChar } }
23990 +#define NewChar2(c,a) { a, { c, NulChar } }
23991 #define CharEq(a,b) (!memcmp(&a, &b, sizeof(a)))
23992 #define SetChar(ch,c,a) do { \
23993 NCURSES_CH_T *_cp = &ch; \
23994 @@ -562,9 +604,14 @@
23995 #define CARG_CH_T const NCURSES_CH_T *
23996 #define PUTC_DATA char PUTC_buf[MB_LEN_MAX]; int PUTC_i, PUTC_n; \
23997 mbstate_t PUT_st; wchar_t PUTC_ch
23998 +#define PUTC_INIT memset (&PUT_st, '\0', sizeof (PUT_st)); \
24000 #define PUTC(ch,b) do { if(!isnac(ch)) { \
24001 - memset (&PUT_st, '\0', sizeof (PUT_st)); \
24003 + if (Charable(ch)) { \
24004 + fputc(CharOf(ch), b); \
24005 + TRACE_OUTCHARS(1); \
24009 PUTC_ch = PUTC_i < CCHARW_MAX ? \
24010 (ch).chars[PUTC_i] : L'\0'; \
24011 @@ -577,7 +624,8 @@
24012 fwrite(PUTC_buf, (unsigned) PUTC_n, 1, b); \
24014 } while (PUTC_ch != L'\0'); \
24016 + TRACE_OUTCHARS(PUTC_i); \
24019 #define BLANK { WA_NORMAL, ' ' }
24020 #define ISBLANK(ch) ((ch).chars[0] == L' ' && (ch).chars[1] == L'\0')
24021 @@ -585,9 +633,10 @@
24023 #define isnac(ch) (AttrOf(ch) & WA_NAC)
24024 #define if_WIDEC(code) code
24025 -#define Charable(ch) (!isnac(ch) && \
24026 - (ch).chars[1] == L'\0' && \
24027 - (wctob(CharOf(ch)) == (char)CharOf(ch)))
24028 +#define Charable(ch) ((SP != 0 && SP->_posix_locale) \
24029 + || (!isnac(ch) && \
24030 + (ch).chars[1] == L'\0' && \
24031 + _nc_is_charable(CharOf(ch))))
24033 #define L(ch) L ## ch
24035 @@ -743,7 +792,7 @@
24037 #define ALL_BUT_COLOR ((chtype)~(A_COLOR))
24038 #define IGNORE_COLOR_OFF FALSE
24039 -#define NONBLANK_ATTR (A_BOLD|A_DIM|A_BLINK)
24040 +#define NONBLANK_ATTR (A_NORMAL|A_BOLD|A_DIM|A_BLINK)
24041 #define XMC_CHANGES(c) ((c) & SP->_xmc_suppress)
24043 #define toggle_attr_on(S,at) {\
24044 @@ -781,7 +830,7 @@
24045 : ((enter_insert_mode && exit_insert_mode) \
24046 ? SP->_smir_cost + SP->_rmir_cost + (SP->_ip_cost * count) \
24047 : ((insert_character != 0) \
24048 - ? (SP->_ich1_cost * count) \
24049 + ? ((SP->_ich1_cost + SP->_ip_cost) * count) \
24052 #if USE_XMC_SUPPORT
24053 @@ -847,6 +896,13 @@
24054 #define getcwd(buf,len) getwd(buf)
24058 +#if USE_WIDEC_SUPPORT
24059 +extern NCURSES_EXPORT(bool) _nc_is_charable(wchar_t);
24060 +extern NCURSES_EXPORT(int) _nc_to_char(wint_t);
24061 +extern NCURSES_EXPORT(wint_t) _nc_to_widechar(int);
24065 #if USE_XMC_SUPPORT
24066 extern NCURSES_EXPORT(void) _nc_do_xmc_glitch (attr_t);
24067 @@ -872,6 +928,9 @@
24069 extern NCURSES_EXPORT(int) _nc_wgetch(WINDOW *, unsigned long *, int EVENTLIST_2nd(_nc_eventlist *));
24072 +extern NCURSES_EXPORT(void) _nc_insert_ch(WINDOW *, chtype);
24075 #define INFINITY 1000000 /* cost: too high to use */
24077 @@ -890,6 +949,12 @@
24080 #define INFINITY 1000000 /* cost: too high to use */
24081 +#define BAUDBYTE 9 /* 9 = 7 bits + 1 parity + 1 stop */
24084 +extern NCURSES_EXPORT(char *) _nc_get_locale(void);
24085 +extern NCURSES_EXPORT(int) _nc_unicode_locale(void);
24086 +extern NCURSES_EXPORT(int) _nc_locale_breaks_acs(void);
24089 #if USE_WIDEC_SUPPORT
24090 @@ -897,9 +962,10 @@
24097 + char *s_head; /* beginning of the string (may be null) */
24098 + char *s_tail; /* end of the string (may be null) */
24099 + size_t s_size; /* current remaining size available */
24100 + size_t s_init; /* total size available */
24104 @@ -931,14 +997,15 @@
24105 extern NCURSES_EXPORT(void) _nc_add_to_try (struct tries **, const char *, unsigned short);
24106 extern NCURSES_EXPORT(char *) _nc_expand_try (struct tries *, unsigned short, int *, size_t);
24107 extern NCURSES_EXPORT(int) _nc_remove_key (struct tries **, unsigned short);
24108 -extern NCURSES_EXPORT(int) _nc_remove_string (struct tries **, char *);
24109 +extern NCURSES_EXPORT(int) _nc_remove_string (struct tries **, const char *);
24111 /* elsewhere ... */
24112 +extern NCURSES_EXPORT(NCURSES_CH_T) _nc_render (WINDOW *, NCURSES_CH_T);
24113 extern NCURSES_EXPORT(WINDOW *) _nc_makenew (int, int, int, int, int);
24114 extern NCURSES_EXPORT(char *) _nc_home_terminfo (void);
24115 extern NCURSES_EXPORT(char *) _nc_trace_buf (int, size_t);
24116 -extern NCURSES_EXPORT(NCURSES_CH_T) _nc_render (WINDOW *, NCURSES_CH_T);
24117 -extern NCURSES_EXPORT(int) _nc_access (const char *, int);
24118 +extern NCURSES_EXPORT(char *) _nc_trace_bufcat (int, const char *);
24119 +extern NCURSES_EXPORT(int) _nc_access (const char *, int);
24120 extern NCURSES_EXPORT(int) _nc_baudrate (int);
24121 extern NCURSES_EXPORT(int) _nc_freewin (WINDOW *);
24122 extern NCURSES_EXPORT(int) _nc_getenv_num (const char *);
24123 diff -urNd -urNd ncurses-5.3/ncurses/llib-lncurses ncurses-5.3.20030906.orig/ncurses/llib-lncurses
24124 --- ncurses-5.3/ncurses/llib-lncurses Sat Aug 31 16:34:07 2002
24125 +++ ncurses-5.3.20030906.orig/ncurses/llib-lncurses Fri Sep 12 16:42:59 2003
24127 /****************************************************************************
24128 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
24129 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
24131 * Permission is hereby granted, free of charge, to any person obtaining a *
24132 * copy of this software and associated documentation files (the *
24134 ****************************************************************************/
24136 /****************************************************************************
24137 - * Author: Thomas E. Dickey 1996-2001,2002 *
24138 + * Author: Thomas E. Dickey 1996-2002,2003 *
24139 ****************************************************************************/
24144 #undef _nc_scroll_oldhash
24145 void _nc_scroll_oldhash(
24153 @@ -70,25 +70,25 @@
24160 { return(*(chtype *)0); }
24162 #undef _nc_waddch_nosync
24163 int _nc_waddch_nosync(
24167 { return(*(int *)0); }
24174 { return(*(int *)0); }
24181 { return(*(int *)0); }
24183 @@ -96,15 +96,15 @@
24188 - const char *astr,
24190 + const char *astr,
24192 { return(*(int *)0); }
24197 - const chtype *astr,
24199 + const chtype *astr,
24201 { return(*(int *)0); }
24203 @@ -118,13 +118,13 @@
24217 { return(*(int *)0); }
24219 @@ -132,14 +132,14 @@
24240 { return(*(int *)0); }
24242 @@ -147,10 +147,10 @@
24255 { return(*(int *)0); }
24257 @@ -165,7 +165,7 @@
24264 { return(*(int *)0); }
24266 @@ -192,22 +192,26 @@
24270 +#undef _nc_reset_colors
24271 +NCURSES_BOOL _nc_reset_colors(void)
24272 + { return(*(NCURSES_BOOL *)0); }
24275 int start_color(void)
24276 { return(*(int *)0); }
24285 { return(*(int *)0); }
24296 { return(*(int *)0); }
24298 @@ -221,24 +225,24 @@
24300 #undef color_content
24309 { return(*(int *)0); }
24311 #undef pair_content
24318 { return(*(int *)0); }
24320 #undef _nc_do_color
24324 - NCURSES_BOOL reverse,
24327 + NCURSES_BOOL reverse,
24331 @@ -247,8 +251,8 @@
24336 - short color_pair_number,
24338 + short color_pair_number,
24340 { return(*(int *)0); }
24342 @@ -304,7 +308,7 @@
24346 - const chtype *a1,
24347 + const chtype *a1,
24349 { return(*(int *)0); }
24351 @@ -315,7 +319,7 @@
24358 { return(*(int *)0); }
24360 @@ -341,27 +345,27 @@
24369 { return(*(int *)0); }
24376 { return(*(int *)0); }
24383 { return(*(int *)0); }
24392 { return(*(int *)0); }
24394 @@ -377,28 +381,28 @@
24413 { return(*(int *)0); }
24422 { return(*(int *)0); }
24433 { return(*(int *)0); }
24435 @@ -416,7 +420,7 @@
24442 { return(*(int *)0); }
24444 @@ -453,7 +457,7 @@
24451 { return(*(int *)0); }
24453 @@ -464,7 +468,7 @@
24460 { return(*(int *)0); }
24462 @@ -474,7 +478,7 @@
24469 { return(*(int *)0); }
24471 @@ -485,7 +489,7 @@
24478 { return(*(int *)0); }
24480 @@ -505,7 +509,7 @@
24487 { return(*(int *)0); }
24489 @@ -521,323 +525,323 @@
24496 { return(*(int *)0); }
24505 { return(*(int *)0); }
24511 - const chtype *a3,
24514 + const chtype *a3,
24516 { return(*(int *)0); }
24525 { return(*(int *)0); }
24536 { return(*(int *)0); }
24545 { return(*(int *)0); }
24560 { return(*(int *)0); }
24567 { return(*(int *)0); }
24574 { return(*(int *)0); }
24585 { return(*(int *)0); }
24594 { return(*(int *)0); }
24605 { return(*(int *)0); }
24612 { return(*(chtype *)0); }
24623 { return(*(int *)0); }
24632 { return(*(int *)0); }
24643 { return(*(int *)0); }
24652 { return(*(int *)0); }
24663 { return(*(int *)0); }
24672 { return(*(int *)0); }
24681 { return(*(int *)0); }
24692 { return(*(int *)0); }
24703 { return(*(int *)0); }
24705 #undef mvwaddchnstr
24710 - const chtype *a4,
24714 + const chtype *a4,
24716 { return(*(int *)0); }
24727 { return(*(int *)0); }
24740 { return(*(int *)0); }
24751 { return(*(int *)0); }
24768 { return(*(int *)0); }
24777 { return(*(int *)0); }
24786 { return(*(int *)0); }
24799 { return(*(int *)0); }
24810 { return(*(int *)0); }
24823 { return(*(int *)0); }
24832 { return(*(chtype *)0); }
24845 { return(*(int *)0); }
24856 { return(*(int *)0); }
24869 { return(*(int *)0); }
24880 { return(*(int *)0); }
24893 { return(*(int *)0); }
24904 { return(*(int *)0); }
24915 { return(*(int *)0); }
24928 { return(*(int *)0); }
24930 @@ -867,7 +871,7 @@
24937 { return(*(int *)0); }
24939 @@ -886,8 +890,8 @@
24948 { return(*(int *)0); }
24950 @@ -903,67 +907,67 @@
24957 { return(*(int *)0); }
24966 { return(*(int *)0); }
24975 { return(*(int *)0); }
24982 { return(*(int *)0); }
24989 { return(*(int *)0); }
24996 { return(*(int *)0); }
25003 { return(*(int *)0); }
25010 { return(*(int *)0); }
25021 { return(*(int *)0); }
25032 { return(*(int *)0); }
25034 @@ -974,13 +978,13 @@
25041 { return(*(int *)0); }
25048 { return(*(int *)0); }
25050 @@ -991,13 +995,13 @@
25057 { return(*(int *)0); }
25064 { return(*(int *)0); }
25066 @@ -1013,8 +1017,8 @@
25069 NCURSES_BOOL mouse_trafo(
25075 { return(*(NCURSES_BOOL *)0); }
25077 @@ -1027,8 +1031,8 @@
25082 - unsigned long *result,
25084 + unsigned long *result,
25086 { return(*(int *)0); }
25088 @@ -1041,8 +1045,8 @@
25097 { return(*(int *)0); }
25099 @@ -1050,8 +1054,8 @@
25108 { return(*(int *)0); }
25110 @@ -1059,7 +1063,7 @@
25119 @@ -1067,8 +1071,8 @@
25128 { return(*(int *)0); }
25130 @@ -1080,26 +1084,30 @@
25132 /* ./base/lib_insch.c */
25134 +#undef _nc_insert_ch
25135 +void _nc_insert_ch(
25145 { return(*(int *)0); }
25147 -/* ./base/lib_insdel.c */
25157 { return(*(int *)0); }
25159 -/* ./base/lib_insstr.c */
25160 +/* ./base/lib_insdel.c */
25170 { return(*(int *)0); }
25172 @@ -1107,8 +1115,8 @@
25181 { return(*(int *)0); }
25183 @@ -1122,7 +1130,7 @@
25190 { return(*(int *)0); }
25192 @@ -1140,14 +1148,14 @@
25199 { return(*(mmask_t *)0); }
25202 NCURSES_BOOL wenclose(
25203 - const WINDOW *win,
25205 + const WINDOW *win,
25208 { return(*(NCURSES_BOOL *)0); }
25210 @@ -1162,9 +1170,9 @@
25212 #undef wmouse_trafo
25213 NCURSES_BOOL wmouse_trafo(
25214 - const WINDOW *win,
25217 + const WINDOW *win,
25220 NCURSES_BOOL to_screen)
25221 { return(*(NCURSES_BOOL *)0); }
25223 @@ -1172,8 +1180,8 @@
25232 { return(*(int *)0); }
25234 @@ -1181,7 +1189,7 @@
25236 #undef _nc_msec_cost
25238 - const char *const cap,
25239 + const char *const cap,
25241 { return(*(int *)0); }
25243 @@ -1199,9 +1207,9 @@
25254 { return(*(int *)0); }
25256 @@ -1212,8 +1220,8 @@
25265 { return(*(int *)0); }
25267 @@ -1225,8 +1233,8 @@
25276 { return(*(SCREEN **)0); }
25278 @@ -1239,36 +1247,36 @@
25289 { return(*(WINDOW **)0); }
25302 { return(*(WINDOW **)0); }
25315 { return(*(WINDOW **)0); }
25318 WINDOW *_nc_makenew(
25328 { return(*(WINDOW **)0); }
25330 @@ -1286,26 +1294,26 @@
25334 - const WINDOW *win1,
25335 + const WINDOW *win1,
25337 { return(*(int *)0); }
25341 - const WINDOW *win1,
25342 + const WINDOW *win1,
25344 { return(*(int *)0); }
25348 - const WINDOW *src,
25356 + const WINDOW *src,
25365 { return(*(int *)0); }
25367 @@ -1313,44 +1321,44 @@
25374 { return(*(WINDOW **)0); }
25387 { return(*(WINDOW **)0); }
25404 { return(*(int *)0); }
25406 #undef pnoutrefresh
25421 { return(*(int *)0); }
25428 { return(*(int *)0); }
25430 @@ -1358,38 +1366,38 @@
25437 { return(*(int *)0); }
25446 { return(*(int *)0); }
25457 { return(*(int *)0); }
25470 { return(*(int *)0); }
25479 { return(*(int *)0); }
25481 @@ -1397,8 +1405,8 @@
25490 { return(*(int *)0); }
25492 @@ -1418,8 +1426,8 @@
25501 { return(*(int *)0); }
25503 @@ -1427,38 +1435,38 @@
25512 { return(*(int *)0); }
25519 { return(*(int *)0); }
25528 { return(*(int *)0); }
25539 { return(*(int *)0); }
25552 { return(*(int *)0); }
25554 @@ -1471,7 +1479,7 @@
25561 { return(*(int *)0); }
25563 @@ -1499,16 +1507,16 @@
25565 #undef _nc_scroll_window
25566 void _nc_scroll_window(
25570 - short const bottom,
25574 + short const bottom,
25583 { return(*(int *)0); }
25585 @@ -1516,7 +1524,7 @@
25592 { return(*(int *)0); }
25594 @@ -1524,8 +1532,8 @@
25603 { return(*(int *)0); }
25605 @@ -1543,24 +1551,24 @@
25607 #undef _nc_setupscreen
25608 int _nc_setupscreen(
25610 - short const scolumns,
25612 + short const scolumns,
25614 { return(*(int *)0); }
25616 #undef _nc_ripoffline
25617 int _nc_ripoffline(
25624 { return(*(int *)0); }
25634 { return(*(int *)0); }
25636 @@ -1571,7 +1579,7 @@
25638 #undef _nc_slk_initialize
25639 int _nc_slk_initialize(
25643 { return(*(int *)0); }
25645 @@ -1583,8 +1591,8 @@
25647 #undef slk_attr_set
25649 - const attr_t attr,
25650 - short color_pair_number,
25651 + const attr_t attr,
25652 + short color_pair_number,
25654 { return(*(int *)0); }
25656 @@ -1656,8 +1664,8 @@
25661 - const char *astr,
25663 + const char *astr,
25665 { return(*(int *)0); }
25667 @@ -1671,7 +1679,7 @@
25669 #undef is_linetouched
25670 NCURSES_BOOL is_linetouched(
25674 { return(*(NCURSES_BOOL *)0); }
25676 @@ -1682,9 +1690,9 @@
25687 { return(*(int *)0); }
25689 @@ -1692,7 +1700,7 @@
25696 { return(*(char **)0); }
25698 @@ -1708,13 +1716,13 @@
25700 #undef _nc_altcharset_name
25701 const char *_nc_altcharset_name(
25705 { return(*(const char **)0); }
25707 #undef _tracechtype2
25708 char *_tracechtype2(
25712 { return(*(char **)0); }
25714 @@ -1724,15 +1732,15 @@
25715 { return(*(char **)0); }
25717 #undef _nc_retrace_chtype
25718 -attr_t _nc_retrace_chtype(
25720 - { return(*(attr_t *)0); }
25721 +chtype _nc_retrace_chtype(
25723 + { return(*(chtype *)0); }
25725 /* ./trace/lib_tracedmp.c */
25729 - const char *name,
25730 + const char *name,
25734 @@ -1767,7 +1775,7 @@
25742 { return(*(int *)0); }
25743 @@ -1785,8 +1793,8 @@
25752 { return(*(int *)0); }
25754 @@ -1794,8 +1802,8 @@
25763 { return(*(int *)0); }
25765 @@ -1803,8 +1811,8 @@
25774 { return(*(int *)0); }
25776 @@ -1824,14 +1832,14 @@
25785 { return(*(int *)0); }
25792 { return(*(int *)0); }
25794 @@ -1865,7 +1873,7 @@
25796 #undef _nc_printf_string
25797 char *_nc_printf_string(
25801 { return(*(char **)0); }
25803 @@ -1885,9 +1893,9 @@
25814 { return(*(int *)0); }
25816 @@ -1916,7 +1924,7 @@
25823 { return(*(char **)0); }
25825 @@ -1938,11 +1946,19 @@
25826 void _nc_vsscanf(void)
25829 +/* ./base/lib_freeall.c */
25831 +#include <term_entry.h>
25833 +#undef _nc_freeall
25834 +void _nc_freeall(void)
25837 /* ./base/define_key.c */
25844 { return(*(int *)0); }
25846 @@ -1950,13 +1966,13 @@
25848 #undef _nc_toggle_attr_on
25849 void _nc_toggle_attr_on(
25855 #undef _nc_toggle_attr_off
25856 void _nc_toggle_attr_off(
25862 @@ -1975,11 +1991,18 @@
25866 +/* ./base/key_defined.c */
25868 +#undef key_defined
25871 + { return(*(int *)0); }
25873 /* ./base/keybound.c */
25880 { return(*(char **)0); }
25882 @@ -1987,7 +2010,7 @@
25889 { return(*(int *)0); }
25891 @@ -1999,23 +2022,15 @@
25893 #undef assume_default_colors
25894 int assume_default_colors(
25898 { return(*(int *)0); }
25900 -/* ./base/lib_freeall.c */
25902 -#include <term_entry.h>
25904 -#undef _nc_freeall
25905 -void _nc_freeall(void)
25908 /* ./tinfo/lib_print.c */
25915 { return(*(int *)0); }
25917 @@ -2023,19 +2038,19 @@
25919 #undef is_term_resized
25920 NCURSES_BOOL is_term_resized(
25924 { return(*(NCURSES_BOOL *)0); }
25931 { return(*(int *)0); }
25938 { return(*(int *)0); }
25940 @@ -2050,22 +2065,22 @@
25942 #undef _nc_expand_try
25943 char *_nc_expand_try(
25944 - struct tries *tree,
25945 - unsigned short code,
25947 + struct tries *tree,
25948 + unsigned short code,
25951 { return(*(char **)0); }
25953 #undef _nc_remove_key
25954 int _nc_remove_key(
25955 - struct tries **tree,
25956 + struct tries **tree,
25957 unsigned short code)
25958 { return(*(int *)0); }
25960 #undef _nc_remove_string
25961 int _nc_remove_string(
25962 - struct tries **tree,
25964 + struct tries **tree,
25965 + const char *string)
25966 { return(*(int *)0); }
25968 /* ./base/version.c */
25969 @@ -2078,8 +2093,8 @@
25978 { return(*(int *)0); }
25980 @@ -2090,6 +2105,11 @@
25982 { return(*(char **)0); }
25984 +#undef _nc_pathlast
25985 +unsigned _nc_pathlast(
25986 + const char *path)
25987 + { return(*(unsigned *)0); }
25989 #undef _nc_basename
25990 char *_nc_basename(
25992 @@ -2097,7 +2117,7 @@
25996 - const char *path,
25997 + const char *path,
25999 { return(*(int *)0); }
26001 @@ -2109,8 +2129,8 @@
26003 #undef _nc_add_to_try
26004 void _nc_add_to_try(
26005 - struct tries **tree,
26007 + struct tries **tree,
26009 unsigned short code)
26012 @@ -2133,13 +2153,13 @@
26014 #undef _nc_wrap_entry
26015 void _nc_wrap_entry(
26018 NCURSES_BOOL copy_strings)
26021 #undef _nc_merge_entry
26022 void _nc_merge_entry(
26023 - TERMTYPE *const to,
26024 + TERMTYPE *const to,
26025 TERMTYPE *const from)
26028 @@ -2147,13 +2167,13 @@
26030 #undef _nc_align_termtype
26031 void _nc_align_termtype(
26037 #undef _nc_copy_termtype
26038 void _nc_copy_termtype(
26044 @@ -2161,15 +2181,15 @@
26046 #undef _nc_captoinfo
26047 char *_nc_captoinfo(
26052 int const parametrized)
26053 { return(*(char **)0); }
26055 #undef _nc_infotocap
26056 char *_nc_infotocap(
26061 int const parametrized)
26062 { return(*(char **)0); }
26064 @@ -2231,19 +2251,19 @@
26068 - const char *const fmt,
26069 + const char *const fmt,
26073 #undef _nc_err_abort
26074 void _nc_err_abort(
26075 - const char *const fmt,
26076 + const char *const fmt,
26080 #undef _nc_syserr_abort
26081 void _nc_syserr_abort(
26082 - const char *const fmt,
26083 + const char *const fmt,
26087 @@ -2251,8 +2271,8 @@
26089 #undef _nc_tic_expand
26090 char *_nc_tic_expand(
26091 - const char *srcp,
26092 - NCURSES_BOOL tic_format,
26093 + const char *srcp,
26094 + NCURSES_BOOL tic_format,
26096 { return(*(char **)0); }
26098 @@ -2262,14 +2282,14 @@
26100 #undef _nc_find_entry
26101 struct name_table_entry const *_nc_find_entry(
26102 - const char *string,
26103 + const char *string,
26104 const struct name_table_entry *const *hash_table)
26105 { return(*(struct name_table_entry const **)0); }
26107 #undef _nc_find_type_entry
26108 struct name_table_entry const *_nc_find_type_entry(
26109 - const char *string,
26111 + const char *string,
26113 const struct name_table_entry *table)
26114 { return(*(struct name_table_entry const **)0); }
26116 @@ -2290,16 +2310,16 @@
26118 #undef _nc_entry_match
26119 NCURSES_BOOL _nc_entry_match(
26123 { return(*(NCURSES_BOOL *)0); }
26125 #undef _nc_read_entry_source
26126 void _nc_read_entry_source(
26130 - NCURSES_BOOL silent,
26134 + NCURSES_BOOL silent,
26135 NCURSES_BOOL (*hook)(
26138 @@ -2333,7 +2353,7 @@
26140 #undef _nc_trans_string
26141 char _nc_trans_string(
26145 { return(*(char *)0); }
26147 @@ -2349,7 +2369,7 @@
26149 #undef _nc_reset_input
26150 void _nc_reset_input(
26156 @@ -2357,7 +2377,7 @@
26163 { return(*(void **)0); }
26165 @@ -2425,8 +2445,8 @@
26166 #include <termcap.h>
26175 #undef _nc_baudrate
26176 @@ -2524,13 +2544,13 @@
26183 { return(*(int *)0); }
26192 @@ -2541,31 +2561,31 @@
26199 { return(*(int *)0); }
26206 { return(*(int *)0); }
26220 { return(*(int *)0); }
26227 { return(*(int *)0); }
26229 @@ -2617,7 +2637,7 @@
26236 { return(*(int *)0); }
26238 @@ -2625,11 +2645,8 @@
26240 #include <sys/ioctl.h>
26248 +char ttytype[256 ];
26252 @@ -2637,17 +2654,31 @@
26261 #undef _nc_update_screensize
26262 void _nc_update_screensize(void)
26266 -char ttytype[256 ];
26267 +#undef _nc_get_locale
26268 +char *_nc_get_locale(void)
26269 + { return(*(char **)0); }
26271 +#undef _nc_unicode_locale
26272 +int _nc_unicode_locale(void)
26273 + { return(*(int *)0); }
26275 +#undef _nc_locale_breaks_acs
26276 +int _nc_locale_breaks_acs(void)
26277 + { return(*(int *)0); }
26286 { return(*(int *)0); }
26288 @@ -2660,7 +2691,7 @@
26295 { return(*(int *)0); }
26297 @@ -2682,7 +2713,7 @@
26304 { return(*(char **)0); }
26306 @@ -2696,8 +2727,8 @@
26310 - const char *string,
26312 + const char *string,
26315 { return(*(char **)0); }
26317 @@ -2731,9 +2762,16 @@
26318 #undef _nc_tparm_err
26321 +#undef _nc_tparm_analyze
26322 +int _nc_tparm_analyze(
26323 + const char *string,
26324 + char *p_is_s[9 ],
26326 + { return(*(int *)0); }
26333 { return(*(char **)0); }
26335 @@ -2767,8 +2805,8 @@
26339 - const char *string,
26341 + const char *string,
26345 { return(*(int *)0); }
26346 @@ -2789,15 +2827,25 @@
26355 +#undef _nc_retrace_bool
26356 +NCURSES_BOOL _nc_retrace_bool(
26357 + NCURSES_BOOL code)
26358 + { return(*(NCURSES_BOOL *)0); }
26360 #undef _nc_retrace_int
26361 int _nc_retrace_int(
26363 { return(*(int *)0); }
26365 +#undef _nc_retrace_unsigned
26366 +unsigned _nc_retrace_unsigned(
26368 + { return(*(unsigned *)0); }
26370 #undef _nc_retrace_ptr
26371 char *_nc_retrace_ptr(
26373 @@ -2876,8 +2924,8 @@
26375 #undef _nc_timed_wait
26376 int _nc_timed_wait(
26378 - int milliseconds,
26380 + int milliseconds,
26382 { return(*(int *)0); }
26384 @@ -2890,8 +2938,8 @@
26386 #undef _nc_name_match
26387 int _nc_name_match(
26388 - const char *const namelst,
26389 - const char *const name,
26390 + const char *const namelst,
26391 + const char *const name,
26392 const char *const delim)
26393 { return(*(int *)0); }
26395 @@ -2914,14 +2962,14 @@
26397 #undef _nc_parse_entry
26398 int _nc_parse_entry(
26399 - struct entry *entryp,
26401 + struct entry *entryp,
26403 NCURSES_BOOL silent)
26404 { return(*(int *)0); }
26411 { return(*(int *)0); }
26413 @@ -2944,14 +2992,14 @@
26415 #undef _nc_read_file_entry
26416 int _nc_read_file_entry(
26417 - const char *const filename,
26418 + const char *const filename,
26420 { return(*(int *)0); }
26422 #undef _nc_read_entry
26423 int _nc_read_entry(
26424 - const char *const tn,
26425 - char *const filename,
26426 + const char *const tn,
26427 + char *const filename,
26428 TERMTYPE *const tp)
26429 { return(*(int *)0); }
26431 @@ -2959,7 +3007,7 @@
26433 #undef _nc_read_termcap_entry
26434 int _nc_read_termcap_entry(
26435 - const char *const tn,
26436 + const char *const tn,
26437 TERMTYPE *const tp)
26438 { return(*(int *)0); }
26440 @@ -2967,7 +3015,7 @@
26442 #undef _nc_set_buffer
26443 void _nc_set_buffer(
26446 NCURSES_BOOL buffered)
26449 @@ -2975,32 +3023,32 @@
26451 #undef _nc_str_init
26452 string_desc *_nc_str_init(
26453 - string_desc *dst,
26455 + string_desc *dst,
26458 { return(*(string_desc **)0); }
26460 #undef _nc_str_null
26461 string_desc *_nc_str_null(
26462 - string_desc *dst,
26463 + string_desc *dst,
26465 { return(*(string_desc **)0); }
26467 #undef _nc_str_copy
26468 string_desc *_nc_str_copy(
26469 - string_desc *dst,
26470 + string_desc *dst,
26472 { return(*(string_desc **)0); }
26474 #undef _nc_safe_strcat
26475 NCURSES_BOOL _nc_safe_strcat(
26476 - string_desc *dst,
26477 + string_desc *dst,
26479 { return(*(NCURSES_BOOL *)0); }
26481 #undef _nc_safe_strcpy
26482 NCURSES_BOOL _nc_safe_strcpy(
26483 - string_desc *dst,
26484 + string_desc *dst,
26486 { return(*(NCURSES_BOOL *)0); }
26488 @@ -3013,10 +3061,16 @@
26490 #undef _nc_trace_buf
26491 char *_nc_trace_buf(
26495 { return(*(char **)0); }
26497 +#undef _nc_trace_bufcat
26498 +char *_nc_trace_bufcat(
26500 + const char *value)
26501 + { return(*(char **)0); }
26503 /* ./trace/trace_tries.c */
26505 #undef _nc_trace_tries
26506 @@ -3035,7 +3089,7 @@
26509 const char *_nc_visbuf2(
26513 { return(*(const char **)0); }
26515 @@ -3044,6 +3098,12 @@
26517 { return(*(const char **)0); }
26519 +#undef _nc_visbufn
26520 +const char *_nc_visbufn(
26523 + { return(*(const char **)0); }
26525 /* ./tinfo/write_entry.c */
26527 #undef _nc_set_writedir
26528 diff -urNd -urNd ncurses-5.3/ncurses/llib-lncursesw ncurses-5.3.20030906.orig/ncurses/llib-lncursesw
26529 --- ncurses-5.3/ncurses/llib-lncursesw Sat Aug 31 16:58:14 2002
26530 +++ ncurses-5.3.20030906.orig/ncurses/llib-lncursesw Fri Sep 12 16:42:59 2003
26532 /****************************************************************************
26533 - * Copyright (c) 2001,2002 Free Software Foundation, Inc. *
26534 + * Copyright (c) 2001-2002,2003 Free Software Foundation, Inc. *
26536 * Permission is hereby granted, free of charge, to any person obtaining a *
26537 * copy of this software and associated documentation files (the *
26539 ****************************************************************************/
26541 /****************************************************************************
26542 - * Author: Thomas E. Dickey 2001,2002 *
26543 + * Author: Thomas E. Dickey 2001-2003 *
26544 ****************************************************************************/
26549 #undef _nc_scroll_oldhash
26550 void _nc_scroll_oldhash(
26558 @@ -70,37 +70,37 @@
26561 cchar_t _nc_render(
26565 { return(*(cchar_t *)0); }
26567 #undef _nc_waddch_nosync
26568 int _nc_waddch_nosync(
26572 { return(*(int *)0); }
26579 { return(*(int *)0); }
26586 { return(*(int *)0); }
26592 const cchar_t *wch)
26593 { return(*(int *)0); }
26599 const cchar_t *wch)
26600 { return(*(int *)0); }
26602 @@ -108,15 +108,15 @@
26607 - const char *astr,
26609 + const char *astr,
26611 { return(*(int *)0); }
26616 - const chtype *astr,
26618 + const chtype *astr,
26620 { return(*(int *)0); }
26622 @@ -127,15 +127,15 @@
26624 #undef wadd_wchnstr
26627 - const cchar_t *const astr,
26629 + const cchar_t *const astr,
26631 { return(*(int *)0); }
26636 - const wchar_t *str,
26638 + const wchar_t *str,
26640 { return(*(int *)0); }
26642 @@ -149,25 +149,25 @@
26663 { return(*(int *)0); }
26670 { return(*(int *)0); }
26672 @@ -175,14 +175,14 @@
26693 { return(*(int *)0); }
26695 @@ -190,10 +190,10 @@
26708 { return(*(int *)0); }
26710 @@ -208,7 +208,7 @@
26717 { return(*(int *)0); }
26719 @@ -235,22 +235,26 @@
26723 +#undef _nc_reset_colors
26724 +NCURSES_BOOL _nc_reset_colors(void)
26725 + { return(*(NCURSES_BOOL *)0); }
26728 int start_color(void)
26729 { return(*(int *)0); }
26738 { return(*(int *)0); }
26749 { return(*(int *)0); }
26751 @@ -264,24 +268,24 @@
26753 #undef color_content
26762 { return(*(int *)0); }
26764 #undef pair_content
26771 { return(*(int *)0); }
26773 #undef _nc_do_color
26777 - NCURSES_BOOL reverse,
26780 + NCURSES_BOOL reverse,
26784 @@ -290,8 +294,8 @@
26789 - short color_pair_number,
26791 + short color_pair_number,
26793 { return(*(int *)0); }
26795 @@ -347,7 +351,7 @@
26799 - const chtype *a1,
26800 + const chtype *a1,
26802 { return(*(int *)0); }
26804 @@ -358,7 +362,7 @@
26811 { return(*(int *)0); }
26813 @@ -384,27 +388,27 @@
26822 { return(*(int *)0); }
26829 { return(*(int *)0); }
26836 { return(*(int *)0); }
26845 { return(*(int *)0); }
26847 @@ -420,28 +424,28 @@
26866 { return(*(int *)0); }
26875 { return(*(int *)0); }
26886 { return(*(int *)0); }
26888 @@ -459,7 +463,7 @@
26895 { return(*(int *)0); }
26897 @@ -496,7 +500,7 @@
26904 { return(*(int *)0); }
26906 @@ -507,7 +511,7 @@
26913 { return(*(int *)0); }
26915 @@ -517,7 +521,7 @@
26922 { return(*(int *)0); }
26924 @@ -528,7 +532,7 @@
26931 { return(*(int *)0); }
26933 @@ -548,7 +552,7 @@
26940 { return(*(int *)0); }
26942 @@ -564,323 +568,323 @@
26949 { return(*(int *)0); }
26958 { return(*(int *)0); }
26964 - const chtype *a3,
26967 + const chtype *a3,
26969 { return(*(int *)0); }
26978 { return(*(int *)0); }
26989 { return(*(int *)0); }
26998 { return(*(int *)0); }
27013 { return(*(int *)0); }
27020 { return(*(int *)0); }
27027 { return(*(int *)0); }
27038 { return(*(int *)0); }
27047 { return(*(int *)0); }
27058 { return(*(int *)0); }
27065 { return(*(chtype *)0); }
27076 { return(*(int *)0); }
27085 { return(*(int *)0); }
27096 { return(*(int *)0); }
27105 { return(*(int *)0); }
27116 { return(*(int *)0); }
27125 { return(*(int *)0); }
27134 { return(*(int *)0); }
27145 { return(*(int *)0); }
27156 { return(*(int *)0); }
27158 #undef mvwaddchnstr
27163 - const chtype *a4,
27167 + const chtype *a4,
27169 { return(*(int *)0); }
27180 { return(*(int *)0); }
27193 { return(*(int *)0); }
27204 { return(*(int *)0); }
27221 { return(*(int *)0); }
27230 { return(*(int *)0); }
27239 { return(*(int *)0); }
27252 { return(*(int *)0); }
27263 { return(*(int *)0); }
27276 { return(*(int *)0); }
27285 { return(*(chtype *)0); }
27298 { return(*(int *)0); }
27309 { return(*(int *)0); }
27322 { return(*(int *)0); }
27333 { return(*(int *)0); }
27346 { return(*(int *)0); }
27357 { return(*(int *)0); }
27368 { return(*(int *)0); }
27381 { return(*(int *)0); }
27383 @@ -910,19 +914,19 @@
27390 { return(*(int *)0); }
27392 #undef slk_attr_off
27397 { return(*(int *)0); }
27404 { return(*(int *)0); }
27406 @@ -941,8 +945,8 @@
27415 { return(*(int *)0); }
27417 @@ -958,67 +962,67 @@
27424 { return(*(int *)0); }
27433 { return(*(int *)0); }
27442 { return(*(int *)0); }
27449 { return(*(int *)0); }
27456 { return(*(int *)0); }
27463 { return(*(int *)0); }
27470 { return(*(int *)0); }
27477 { return(*(int *)0); }
27488 { return(*(int *)0); }
27499 { return(*(int *)0); }
27501 @@ -1029,13 +1033,13 @@
27508 { return(*(int *)0); }
27515 { return(*(int *)0); }
27517 @@ -1046,13 +1050,13 @@
27524 { return(*(int *)0); }
27531 { return(*(int *)0); }
27533 @@ -1073,7 +1077,7 @@
27537 - const cchar_t *a1,
27538 + const cchar_t *a1,
27540 { return(*(int *)0); }
27542 @@ -1084,7 +1088,7 @@
27546 - const wchar_t *a1,
27547 + const wchar_t *a1,
27549 { return(*(int *)0); }
27551 @@ -1105,20 +1109,20 @@
27555 - const cchar_t *a1,
27556 - const cchar_t *a2,
27557 - const cchar_t *a3,
27558 - const cchar_t *a4,
27559 - const cchar_t *a5,
27560 - const cchar_t *a6,
27561 - const cchar_t *a7,
27562 + const cchar_t *a1,
27563 + const cchar_t *a2,
27564 + const cchar_t *a3,
27565 + const cchar_t *a4,
27566 + const cchar_t *a5,
27567 + const cchar_t *a6,
27568 + const cchar_t *a7,
27570 { return(*(int *)0); }
27575 - const cchar_t *a2,
27577 + const cchar_t *a2,
27579 { return(*(int *)0); }
27581 @@ -1129,12 +1133,12 @@
27587 { return(*(int *)0); }
27593 { return(*(int *)0); }
27596 @@ -1144,13 +1148,13 @@
27603 { return(*(int *)0); }
27607 - const cchar_t *a1,
27608 + const cchar_t *a1,
27610 { return(*(int *)0); }
27612 @@ -1161,7 +1165,7 @@
27619 { return(*(int *)0); }
27621 @@ -1172,13 +1176,13 @@
27628 { return(*(int *)0); }
27632 - const wchar_t *a1,
27633 + const wchar_t *a1,
27635 { return(*(int *)0); }
27637 @@ -1194,335 +1198,335 @@
27643 { return(*(int *)0); }
27652 { return(*(int *)0); }
27654 #undef mvadd_wchnstr
27658 - const cchar_t *a3,
27661 + const cchar_t *a3,
27663 { return(*(int *)0); }
27665 #undef mvadd_wchstr
27672 { return(*(int *)0); }
27678 - const wchar_t *a3,
27681 + const wchar_t *a3,
27683 { return(*(int *)0); }
27692 { return(*(int *)0); }
27702 { return(*(int *)0); }
27712 { return(*(int *)0); }
27723 { return(*(int *)0); }
27729 - const cchar_t *a3,
27732 + const cchar_t *a3,
27734 { return(*(int *)0); }
27743 { return(*(int *)0); }
27745 #undef mvin_wchnstr
27754 { return(*(int *)0); }
27763 { return(*(int *)0); }
27774 { return(*(int *)0); }
27780 - const wchar_t *a3,
27783 + const wchar_t *a3,
27785 { return(*(int *)0); }
27794 { return(*(int *)0); }
27803 { return(*(int *)0); }
27813 { return(*(int *)0); }
27819 - const cchar_t *a3,
27822 + const cchar_t *a3,
27824 { return(*(int *)0); }
27835 { return(*(int *)0); }
27837 #undef mvwadd_wchnstr
27838 int mvwadd_wchnstr(
27842 - const cchar_t *a4,
27846 + const cchar_t *a4,
27848 { return(*(int *)0); }
27850 #undef mvwadd_wchstr
27859 { return(*(int *)0); }
27866 - const wchar_t *a4,
27870 + const wchar_t *a4,
27872 { return(*(int *)0); }
27883 { return(*(int *)0); }
27895 { return(*(int *)0); }
27907 { return(*(int *)0); }
27909 #undef mvwgetn_wstr
27920 { return(*(int *)0); }
27922 #undef mvwhline_set
27927 - const cchar_t *a4,
27931 + const cchar_t *a4,
27933 { return(*(int *)0); }
27944 { return(*(int *)0); }
27946 #undef mvwin_wchnstr
27957 { return(*(int *)0); }
27959 #undef mvwin_wchstr
27968 { return(*(int *)0); }
27981 { return(*(int *)0); }
27983 #undef mvwins_nwstr
27988 - const wchar_t *a4,
27992 + const wchar_t *a4,
27994 { return(*(int *)0); }
28005 { return(*(int *)0); }
28016 { return(*(int *)0); }
28028 { return(*(int *)0); }
28030 #undef mvwvline_set
28035 - const cchar_t *a4,
28039 + const cchar_t *a4,
28041 { return(*(int *)0); }
28045 - const cchar_t *a1,
28046 + const cchar_t *a1,
28048 { return(*(int *)0); }
28055 { return(*(int *)0); }
28062 { return(*(int *)0); }
28070 { return(*(int *)0); }
28077 { return(*(int *)0); }
28084 { return(*(int *)0); }
28087 NCURSES_BOOL mouse_trafo(
28093 { return(*(NCURSES_BOOL *)0); }
28095 @@ -1535,8 +1539,8 @@
28100 - unsigned long *result,
28102 + unsigned long *result,
28104 { return(*(int *)0); }
28106 @@ -1549,8 +1553,8 @@
28115 { return(*(int *)0); }
28117 @@ -1558,8 +1562,8 @@
28126 { return(*(int *)0); }
28128 @@ -1567,7 +1571,7 @@
28137 @@ -1575,8 +1579,8 @@
28146 { return(*(int *)0); }
28148 @@ -1588,26 +1592,30 @@
28150 /* ./base/lib_insch.c */
28152 +#undef _nc_insert_ch
28153 +void _nc_insert_ch(
28163 { return(*(int *)0); }
28165 -/* ./base/lib_insdel.c */
28175 { return(*(int *)0); }
28177 -/* ./base/lib_insstr.c */
28178 +/* ./base/lib_insdel.c */
28188 { return(*(int *)0); }
28190 @@ -1615,8 +1623,8 @@
28199 { return(*(int *)0); }
28201 @@ -1630,7 +1638,7 @@
28208 { return(*(int *)0); }
28210 @@ -1648,14 +1656,14 @@
28217 { return(*(mmask_t *)0); }
28220 NCURSES_BOOL wenclose(
28221 - const WINDOW *win,
28223 + const WINDOW *win,
28226 { return(*(NCURSES_BOOL *)0); }
28228 @@ -1670,9 +1678,9 @@
28230 #undef wmouse_trafo
28231 NCURSES_BOOL wmouse_trafo(
28232 - const WINDOW *win,
28235 + const WINDOW *win,
28238 NCURSES_BOOL to_screen)
28239 { return(*(NCURSES_BOOL *)0); }
28241 @@ -1680,8 +1688,8 @@
28250 { return(*(int *)0); }
28252 @@ -1689,7 +1697,7 @@
28254 #undef _nc_msec_cost
28256 - const char *const cap,
28257 + const char *const cap,
28259 { return(*(int *)0); }
28261 @@ -1707,9 +1715,9 @@
28272 { return(*(int *)0); }
28274 @@ -1720,8 +1728,8 @@
28283 { return(*(int *)0); }
28285 @@ -1733,8 +1741,8 @@
28294 { return(*(SCREEN **)0); }
28296 @@ -1747,36 +1755,36 @@
28307 { return(*(WINDOW **)0); }
28320 { return(*(WINDOW **)0); }
28333 { return(*(WINDOW **)0); }
28336 WINDOW *_nc_makenew(
28346 { return(*(WINDOW **)0); }
28348 @@ -1794,26 +1802,26 @@
28352 - const WINDOW *win1,
28353 + const WINDOW *win1,
28355 { return(*(int *)0); }
28359 - const WINDOW *win1,
28360 + const WINDOW *win1,
28362 { return(*(int *)0); }
28366 - const WINDOW *src,
28374 + const WINDOW *src,
28383 { return(*(int *)0); }
28385 @@ -1821,44 +1829,44 @@
28392 { return(*(WINDOW **)0); }
28405 { return(*(WINDOW **)0); }
28422 { return(*(int *)0); }
28424 #undef pnoutrefresh
28439 { return(*(int *)0); }
28446 { return(*(int *)0); }
28448 @@ -1866,38 +1874,38 @@
28455 { return(*(int *)0); }
28464 { return(*(int *)0); }
28475 { return(*(int *)0); }
28488 { return(*(int *)0); }
28497 { return(*(int *)0); }
28499 @@ -1905,8 +1913,8 @@
28508 { return(*(int *)0); }
28510 @@ -1926,8 +1934,8 @@
28519 { return(*(int *)0); }
28521 @@ -1935,38 +1943,38 @@
28530 { return(*(int *)0); }
28537 { return(*(int *)0); }
28546 { return(*(int *)0); }
28557 { return(*(int *)0); }
28570 { return(*(int *)0); }
28572 @@ -1979,7 +1987,7 @@
28579 { return(*(int *)0); }
28581 @@ -2007,16 +2015,16 @@
28583 #undef _nc_scroll_window
28584 void _nc_scroll_window(
28588 - short const bottom,
28592 + short const bottom,
28601 { return(*(int *)0); }
28603 @@ -2024,7 +2032,7 @@
28610 { return(*(int *)0); }
28612 @@ -2032,8 +2040,8 @@
28621 { return(*(int *)0); }
28623 @@ -2051,24 +2059,24 @@
28625 #undef _nc_setupscreen
28626 int _nc_setupscreen(
28628 - short const scolumns,
28630 + short const scolumns,
28632 { return(*(int *)0); }
28634 #undef _nc_ripoffline
28635 int _nc_ripoffline(
28642 { return(*(int *)0); }
28652 { return(*(int *)0); }
28654 @@ -2079,7 +2087,7 @@
28656 #undef _nc_slk_initialize
28657 int _nc_slk_initialize(
28661 { return(*(int *)0); }
28663 @@ -2091,8 +2099,8 @@
28665 #undef slk_attr_set
28667 - const attr_t attr,
28668 - short color_pair_number,
28669 + const attr_t attr,
28670 + short color_pair_number,
28672 { return(*(int *)0); }
28674 @@ -2164,8 +2172,8 @@
28679 - const char *astr,
28681 + const char *astr,
28683 { return(*(int *)0); }
28685 @@ -2179,7 +2187,7 @@
28687 #undef is_linetouched
28688 NCURSES_BOOL is_linetouched(
28692 { return(*(NCURSES_BOOL *)0); }
28694 @@ -2190,9 +2198,9 @@
28705 { return(*(int *)0); }
28707 @@ -2200,7 +2208,7 @@
28714 { return(*(char **)0); }
28716 @@ -2216,13 +2224,13 @@
28718 #undef _nc_altcharset_name
28719 const char *_nc_altcharset_name(
28723 { return(*(const char **)0); }
28725 #undef _tracechtype2
28726 char *_tracechtype2(
28730 { return(*(char **)0); }
28732 @@ -2232,13 +2240,13 @@
28733 { return(*(char **)0); }
28735 #undef _nc_retrace_chtype
28736 -attr_t _nc_retrace_chtype(
28738 - { return(*(attr_t *)0); }
28739 +chtype _nc_retrace_chtype(
28741 + { return(*(chtype *)0); }
28743 #undef _tracecchar_t2
28744 char *_tracecchar_t2(
28748 { return(*(char **)0); }
28750 @@ -2251,7 +2259,7 @@
28754 - const char *name,
28755 + const char *name,
28759 @@ -2286,7 +2294,7 @@
28767 { return(*(int *)0); }
28768 @@ -2304,8 +2312,8 @@
28777 { return(*(int *)0); }
28779 @@ -2313,8 +2321,8 @@
28788 { return(*(int *)0); }
28790 @@ -2322,8 +2330,8 @@
28799 { return(*(int *)0); }
28801 @@ -2343,14 +2351,14 @@
28810 { return(*(int *)0); }
28817 { return(*(int *)0); }
28819 @@ -2384,7 +2392,7 @@
28821 #undef _nc_printf_string
28822 char *_nc_printf_string(
28826 { return(*(char **)0); }
28828 @@ -2404,9 +2412,9 @@
28839 { return(*(int *)0); }
28841 @@ -2435,7 +2443,7 @@
28848 { return(*(char **)0); }
28850 @@ -2457,18 +2465,43 @@
28851 void _nc_vsscanf(void)
28854 +/* ./base/lib_freeall.c */
28856 +#include <term_entry.h>
28858 +#undef _nc_freeall
28859 +void _nc_freeall(void)
28862 +/* ./widechar/charable.c */
28864 +#undef _nc_is_charable
28865 +NCURSES_BOOL _nc_is_charable(
28867 + { return(*(NCURSES_BOOL *)0); }
28869 +#undef _nc_to_char
28872 + { return(*(int *)0); }
28874 +#undef _nc_to_widechar
28875 +wint_t _nc_to_widechar(
28877 + { return(*(wint_t *)0); }
28879 /* ./widechar/lib_box_set.c */
28884 - const cchar_t *ls,
28885 - const cchar_t *rs,
28886 - const cchar_t *ts,
28887 - const cchar_t *bs,
28888 - const cchar_t *tl,
28889 - const cchar_t *tr,
28890 - const cchar_t *bl,
28892 + const cchar_t *ls,
28893 + const cchar_t *rs,
28894 + const cchar_t *ts,
28895 + const cchar_t *bs,
28896 + const cchar_t *tl,
28897 + const cchar_t *tr,
28898 + const cchar_t *bl,
28900 { return(*(int *)0); }
28902 @@ -2476,19 +2509,19 @@
28907 - const wchar_t *wch,
28908 - const attr_t attrs,
28909 - short color_pair,
28911 + const wchar_t *wch,
28912 + const attr_t attrs,
28913 + short color_pair,
28915 { return(*(int *)0); }
28919 - const cchar_t *wcval,
28922 - short *color_pair,
28923 + const cchar_t *wcval,
28926 + short *color_pair,
28928 { return(*(int *)0); }
28930 @@ -2496,28 +2529,28 @@
28938 { return(*(int *)0); }
28940 /* ./widechar/lib_erasewchar.c */
28946 { return(*(int *)0); }
28952 { return(*(int *)0); }
28954 /* ./widechar/lib_get_wstr.c */
28963 { return(*(int *)0); }
28965 @@ -2525,8 +2558,8 @@
28970 - const cchar_t *ch,
28972 + const cchar_t *ch,
28974 { return(*(int *)0); }
28976 @@ -2534,7 +2567,7 @@
28983 { return(*(int *)0); }
28985 @@ -2542,17 +2575,8 @@
28992 - { return(*(int *)0); }
28994 -/* ./widechar/lib_ins_nwstr.c */
28999 - const wchar_t *wstr,
29003 { return(*(int *)0); }
29005 @@ -2560,23 +2584,39 @@
29011 const cchar_t *wch)
29012 { return(*(int *)0); }
29017 + const wchar_t *wstr,
29019 + { return(*(int *)0); }
29021 /* ./widechar/lib_inwstr.c */
29030 { return(*(int *)0); }
29038 + { return(*(int *)0); }
29040 +/* ./widechar/lib_slk_wset.c */
29045 + const wchar_t *astr,
29047 { return(*(int *)0); }
29049 /* ./widechar/lib_unget_wch.c */
29050 @@ -2590,17 +2630,17 @@
29062 { return(*(int *)0); }
29071 { return(*(int *)0); }
29073 @@ -2612,8 +2652,8 @@
29078 - const cchar_t *ch,
29080 + const cchar_t *ch,
29082 { return(*(int *)0); }
29084 @@ -2629,7 +2669,7 @@
29085 /* ./widechar/lib_wunctrl.c */
29091 { return(*(wchar_t **)0); }
29093 @@ -2637,7 +2677,7 @@
29100 { return(*(int *)0); }
29102 @@ -2645,13 +2685,13 @@
29104 #undef _nc_toggle_attr_on
29105 void _nc_toggle_attr_on(
29111 #undef _nc_toggle_attr_off
29112 void _nc_toggle_attr_off(
29118 @@ -2670,11 +2710,18 @@
29122 +/* ./base/key_defined.c */
29124 +#undef key_defined
29127 + { return(*(int *)0); }
29129 /* ./base/keybound.c */
29136 { return(*(char **)0); }
29138 @@ -2682,7 +2729,7 @@
29145 { return(*(int *)0); }
29147 @@ -2694,23 +2741,15 @@
29149 #undef assume_default_colors
29150 int assume_default_colors(
29154 { return(*(int *)0); }
29156 -/* ./base/lib_freeall.c */
29158 -#include <term_entry.h>
29160 -#undef _nc_freeall
29161 -void _nc_freeall(void)
29164 /* ./tinfo/lib_print.c */
29171 { return(*(int *)0); }
29173 @@ -2718,19 +2757,19 @@
29175 #undef is_term_resized
29176 NCURSES_BOOL is_term_resized(
29180 { return(*(NCURSES_BOOL *)0); }
29187 { return(*(int *)0); }
29194 { return(*(int *)0); }
29196 @@ -2745,22 +2784,22 @@
29198 #undef _nc_expand_try
29199 char *_nc_expand_try(
29200 - struct tries *tree,
29201 - unsigned short code,
29203 + struct tries *tree,
29204 + unsigned short code,
29207 { return(*(char **)0); }
29209 #undef _nc_remove_key
29210 int _nc_remove_key(
29211 - struct tries **tree,
29212 + struct tries **tree,
29213 unsigned short code)
29214 { return(*(int *)0); }
29216 #undef _nc_remove_string
29217 int _nc_remove_string(
29218 - struct tries **tree,
29220 + struct tries **tree,
29221 + const char *string)
29222 { return(*(int *)0); }
29224 /* ./base/version.c */
29225 @@ -2773,8 +2812,8 @@
29234 { return(*(int *)0); }
29236 @@ -2785,6 +2824,11 @@
29238 { return(*(char **)0); }
29240 +#undef _nc_pathlast
29241 +unsigned _nc_pathlast(
29242 + const char *path)
29243 + { return(*(unsigned *)0); }
29245 #undef _nc_basename
29246 char *_nc_basename(
29248 @@ -2792,7 +2836,7 @@
29252 - const char *path,
29253 + const char *path,
29255 { return(*(int *)0); }
29257 @@ -2804,8 +2848,8 @@
29259 #undef _nc_add_to_try
29260 void _nc_add_to_try(
29261 - struct tries **tree,
29263 + struct tries **tree,
29265 unsigned short code)
29268 @@ -2828,13 +2872,13 @@
29270 #undef _nc_wrap_entry
29271 void _nc_wrap_entry(
29274 NCURSES_BOOL copy_strings)
29277 #undef _nc_merge_entry
29278 void _nc_merge_entry(
29279 - TERMTYPE *const to,
29280 + TERMTYPE *const to,
29281 TERMTYPE *const from)
29284 @@ -2842,13 +2886,13 @@
29286 #undef _nc_align_termtype
29287 void _nc_align_termtype(
29293 #undef _nc_copy_termtype
29294 void _nc_copy_termtype(
29300 @@ -2856,15 +2900,15 @@
29302 #undef _nc_captoinfo
29303 char *_nc_captoinfo(
29308 int const parametrized)
29309 { return(*(char **)0); }
29311 #undef _nc_infotocap
29312 char *_nc_infotocap(
29317 int const parametrized)
29318 { return(*(char **)0); }
29320 @@ -2926,19 +2970,19 @@
29324 - const char *const fmt,
29325 + const char *const fmt,
29329 #undef _nc_err_abort
29330 void _nc_err_abort(
29331 - const char *const fmt,
29332 + const char *const fmt,
29336 #undef _nc_syserr_abort
29337 void _nc_syserr_abort(
29338 - const char *const fmt,
29339 + const char *const fmt,
29343 @@ -2946,8 +2990,8 @@
29345 #undef _nc_tic_expand
29346 char *_nc_tic_expand(
29347 - const char *srcp,
29348 - NCURSES_BOOL tic_format,
29349 + const char *srcp,
29350 + NCURSES_BOOL tic_format,
29352 { return(*(char **)0); }
29354 @@ -2957,14 +3001,14 @@
29356 #undef _nc_find_entry
29357 struct name_table_entry const *_nc_find_entry(
29358 - const char *string,
29359 + const char *string,
29360 const struct name_table_entry *const *hash_table)
29361 { return(*(struct name_table_entry const **)0); }
29363 #undef _nc_find_type_entry
29364 struct name_table_entry const *_nc_find_type_entry(
29365 - const char *string,
29367 + const char *string,
29369 const struct name_table_entry *table)
29370 { return(*(struct name_table_entry const **)0); }
29372 @@ -2985,16 +3029,16 @@
29374 #undef _nc_entry_match
29375 NCURSES_BOOL _nc_entry_match(
29379 { return(*(NCURSES_BOOL *)0); }
29381 #undef _nc_read_entry_source
29382 void _nc_read_entry_source(
29386 - NCURSES_BOOL silent,
29390 + NCURSES_BOOL silent,
29391 NCURSES_BOOL (*hook)(
29394 @@ -3028,7 +3072,7 @@
29396 #undef _nc_trans_string
29397 char _nc_trans_string(
29401 { return(*(char *)0); }
29403 @@ -3044,7 +3088,7 @@
29405 #undef _nc_reset_input
29406 void _nc_reset_input(
29412 @@ -3052,7 +3096,7 @@
29419 { return(*(void **)0); }
29421 @@ -3120,8 +3164,8 @@
29422 #include <termcap.h>
29431 #undef _nc_baudrate
29432 @@ -3202,7 +3246,7 @@
29438 { return(*(char **)0); }
29440 /* ./tinfo/lib_longname.c */
29441 @@ -3224,13 +3268,13 @@
29448 { return(*(int *)0); }
29457 @@ -3241,31 +3285,31 @@
29464 { return(*(int *)0); }
29471 { return(*(int *)0); }
29485 { return(*(int *)0); }
29492 { return(*(int *)0); }
29494 @@ -3317,7 +3361,7 @@
29501 { return(*(int *)0); }
29503 @@ -3325,11 +3369,8 @@
29505 #include <sys/ioctl.h>
29513 +char ttytype[256 ];
29517 @@ -3337,17 +3378,31 @@
29526 #undef _nc_update_screensize
29527 void _nc_update_screensize(void)
29531 -char ttytype[256 ];
29532 +#undef _nc_get_locale
29533 +char *_nc_get_locale(void)
29534 + { return(*(char **)0); }
29536 +#undef _nc_unicode_locale
29537 +int _nc_unicode_locale(void)
29538 + { return(*(int *)0); }
29540 +#undef _nc_locale_breaks_acs
29541 +int _nc_locale_breaks_acs(void)
29542 + { return(*(int *)0); }
29551 { return(*(int *)0); }
29553 @@ -3360,7 +3415,7 @@
29560 { return(*(int *)0); }
29562 @@ -3382,7 +3437,7 @@
29569 { return(*(char **)0); }
29571 @@ -3396,8 +3451,8 @@
29575 - const char *string,
29577 + const char *string,
29580 { return(*(char **)0); }
29582 @@ -3431,9 +3486,16 @@
29583 #undef _nc_tparm_err
29586 +#undef _nc_tparm_analyze
29587 +int _nc_tparm_analyze(
29588 + const char *string,
29589 + char *p_is_s[9 ],
29591 + { return(*(int *)0); }
29598 { return(*(char **)0); }
29600 @@ -3467,8 +3529,8 @@
29604 - const char *string,
29606 + const char *string,
29610 { return(*(int *)0); }
29611 @@ -3489,15 +3551,25 @@
29620 +#undef _nc_retrace_bool
29621 +NCURSES_BOOL _nc_retrace_bool(
29622 + NCURSES_BOOL code)
29623 + { return(*(NCURSES_BOOL *)0); }
29625 #undef _nc_retrace_int
29626 int _nc_retrace_int(
29628 { return(*(int *)0); }
29630 +#undef _nc_retrace_unsigned
29631 +unsigned _nc_retrace_unsigned(
29633 + { return(*(unsigned *)0); }
29635 #undef _nc_retrace_ptr
29636 char *_nc_retrace_ptr(
29638 @@ -3576,8 +3648,8 @@
29640 #undef _nc_timed_wait
29641 int _nc_timed_wait(
29643 - int milliseconds,
29645 + int milliseconds,
29647 { return(*(int *)0); }
29649 @@ -3590,8 +3662,8 @@
29651 #undef _nc_name_match
29652 int _nc_name_match(
29653 - const char *const namelst,
29654 - const char *const name,
29655 + const char *const namelst,
29656 + const char *const name,
29657 const char *const delim)
29658 { return(*(int *)0); }
29660 @@ -3614,14 +3686,14 @@
29662 #undef _nc_parse_entry
29663 int _nc_parse_entry(
29664 - struct entry *entryp,
29666 + struct entry *entryp,
29668 NCURSES_BOOL silent)
29669 { return(*(int *)0); }
29676 { return(*(int *)0); }
29678 @@ -3644,14 +3716,14 @@
29680 #undef _nc_read_file_entry
29681 int _nc_read_file_entry(
29682 - const char *const filename,
29683 + const char *const filename,
29685 { return(*(int *)0); }
29687 #undef _nc_read_entry
29688 int _nc_read_entry(
29689 - const char *const tn,
29690 - char *const filename,
29691 + const char *const tn,
29692 + char *const filename,
29693 TERMTYPE *const tp)
29694 { return(*(int *)0); }
29696 @@ -3659,7 +3731,7 @@
29698 #undef _nc_read_termcap_entry
29699 int _nc_read_termcap_entry(
29700 - const char *const tn,
29701 + const char *const tn,
29702 TERMTYPE *const tp)
29703 { return(*(int *)0); }
29705 @@ -3667,7 +3739,7 @@
29707 #undef _nc_set_buffer
29708 void _nc_set_buffer(
29711 NCURSES_BOOL buffered)
29714 @@ -3675,32 +3747,32 @@
29716 #undef _nc_str_init
29717 string_desc *_nc_str_init(
29718 - string_desc *dst,
29720 + string_desc *dst,
29723 { return(*(string_desc **)0); }
29725 #undef _nc_str_null
29726 string_desc *_nc_str_null(
29727 - string_desc *dst,
29728 + string_desc *dst,
29730 { return(*(string_desc **)0); }
29732 #undef _nc_str_copy
29733 string_desc *_nc_str_copy(
29734 - string_desc *dst,
29735 + string_desc *dst,
29737 { return(*(string_desc **)0); }
29739 #undef _nc_safe_strcat
29740 NCURSES_BOOL _nc_safe_strcat(
29741 - string_desc *dst,
29742 + string_desc *dst,
29744 { return(*(NCURSES_BOOL *)0); }
29746 #undef _nc_safe_strcpy
29747 NCURSES_BOOL _nc_safe_strcpy(
29748 - string_desc *dst,
29749 + string_desc *dst,
29751 { return(*(NCURSES_BOOL *)0); }
29753 @@ -3713,10 +3785,16 @@
29755 #undef _nc_trace_buf
29756 char *_nc_trace_buf(
29760 { return(*(char **)0); }
29762 +#undef _nc_trace_bufcat
29763 +char *_nc_trace_bufcat(
29765 + const char *value)
29766 + { return(*(char **)0); }
29768 /* ./trace/trace_tries.c */
29770 #undef _nc_trace_tries
29771 @@ -3735,7 +3813,7 @@
29774 const char *_nc_visbuf2(
29778 { return(*(const char **)0); }
29780 @@ -3744,9 +3822,15 @@
29782 { return(*(const char **)0); }
29784 +#undef _nc_visbufn
29785 +const char *_nc_visbufn(
29788 + { return(*(const char **)0); }
29790 #undef _nc_viswbuf2
29791 const char *_nc_viswbuf2(
29794 const wchar_t *buf)
29795 { return(*(const char **)0); }
29797 @@ -3755,16 +3839,22 @@
29798 const wchar_t *buf)
29799 { return(*(const char **)0); }
29801 +#undef _nc_viswbufn
29802 +const char *_nc_viswbufn(
29803 + const wchar_t *buf,
29805 + { return(*(const char **)0); }
29807 #undef _nc_viscbuf2
29808 const char *_nc_viscbuf2(
29810 - const cchar_t *buf,
29812 + const cchar_t *buf,
29814 { return(*(const char **)0); }
29817 const char *_nc_viscbuf(
29818 - const cchar_t *buf,
29819 + const cchar_t *buf,
29821 { return(*(const char **)0); }
29823 diff -urNd -urNd ncurses-5.3/ncurses/modules ncurses-5.3.20030906.orig/ncurses/modules
29824 --- ncurses-5.3/ncurses/modules Sat May 11 15:14:41 2002
29825 +++ ncurses-5.3.20030906.orig/ncurses/modules Sun Jul 20 14:02:09 2003
29827 -# $Id: modules,v 1.90 2002/05/11 20:14:41 tom Exp $
29828 +# $Id: modules,v 1.96 2003/07/05 16:01:45 tom Exp $
29829 ##############################################################################
29830 # Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. #
29833 lib_initscr lib $(base) $(INCDIR)/tic.h
29834 lib_insch lib $(base)
29835 lib_insdel lib $(base)
29836 -lib_insstr lib $(base)
29837 lib_instr lib $(base)
29838 lib_isendwin lib $(base)
29839 lib_leaveok lib $(base)
29840 @@ -120,8 +119,12 @@
29841 sigaction lib $(base)
29842 vsscanf lib $(base)
29844 +# actually an extension, but with its own configure option (--disable-leaks)
29845 +lib_freeall lib $(base)
29847 # XSI extensions to the base library (wide-character)
29849 +charable lib $(wide)
29850 lib_box_set lib $(wide)
29851 lib_cchar lib $(wide)
29852 lib_get_wch lib $(wide)
29853 @@ -130,9 +133,9 @@
29854 lib_hline_set lib $(wide)
29855 lib_in_wch lib $(wide)
29856 lib_in_wchnstr lib $(wide)
29857 -lib_ins_nwstr lib $(wide)
29858 lib_ins_wch lib $(wide)
29859 lib_inwstr lib $(wide)
29860 +lib_slk_wset lib $(wide)
29861 lib_unget_wch lib $(wide)
29862 lib_vid_attr lib $(wide) ../include/term.h
29863 lib_vline_set lib $(wide)
29864 @@ -143,10 +146,10 @@
29866 define_key lib $(base)
29868 +key_defined lib $(base)
29869 keybound lib $(base)
29871 lib_dft_fgbg lib $(base) ../include/term.h
29872 -lib_freeall lib $(base)
29873 lib_print lib $(tinfo) ../include/term.h
29874 resizeterm lib $(base) ../include/term.h
29875 trace_xnames lib $(trace) ../include/term.h $(INCDIR)/term_entry.h
29876 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/MKkeys_list.sh ncurses-5.3.20030906.orig/ncurses/tinfo/MKkeys_list.sh
29877 --- ncurses-5.3/ncurses/tinfo/MKkeys_list.sh Sat Jun 16 11:50:35 2001
29878 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/MKkeys_list.sh Tue May 13 20:08:22 2003
29881 -# $Id: MKkeys_list.sh,v 1.2 2001/06/16 16:50:35 tom Exp $
29882 +# $Id: MKkeys_list.sh,v 1.3 2003/01/11 22:24:53 tom Exp $
29883 ##############################################################################
29884 -# Copyright (c) 2001 Free Software Foundation, Inc. #
29885 +# Copyright (c) 2001,2003 Free Software Foundation, Inc. #
29887 # Permission is hereby granted, free of charge, to any person obtaining a #
29888 # copy of this software and associated documentation files (the "Software"), #
29892 trap 'rm -f $data' 0 1 2 5 15
29893 -sed -e 's/[ ]\+/ /g' < $DATA >$data
29894 +sed -e 's/[ ][ ]*/ /g' < $DATA >$data
29897 # These definitions were generated by $0 $DATA
29898 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/access.c ncurses-5.3.20030906.orig/ncurses/tinfo/access.c
29899 --- ncurses-5.3/ncurses/tinfo/access.c Sat Jun 23 17:11:49 2001
29900 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/access.c Sun Jul 20 14:02:09 2003
29902 /****************************************************************************
29903 - * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
29904 + * Copyright (c) 1998,2001,2003 Free Software Foundation, Inc. *
29906 * Permission is hereby granted, free of charge, to any person obtaining a *
29907 * copy of this software and associated documentation files (the *
29910 #include <nc_alloc.h>
29912 -MODULE_ID("$Id: access.c,v 1.9 2001/06/23 22:11:49 tom Exp $")
29913 +MODULE_ID("$Id: access.c,v 1.10 2003/07/05 19:31:28 tom Exp $")
29915 #define LOWERCASE(c) ((isalpha(UChar(c)) && isupper(UChar(c))) ? tolower(UChar(c)) : (c))
29917 @@ -64,19 +64,28 @@
29921 -NCURSES_EXPORT(char *)
29922 -_nc_basename(char *path)
29924 + * Return index of the basename
29926 +NCURSES_EXPORT(unsigned)
29927 +_nc_pathlast(const char *path)
29929 - char *result = strrchr(path, '/');
29930 + const char *test = strrchr(path, '/');
29933 - result = strrchr(path, '\\');
29935 + test = strrchr(path, '\\');
29945 + return (test - path);
29948 +NCURSES_EXPORT(char *)
29949 +_nc_basename(char *path)
29951 + return path + _nc_pathlast(path);
29954 NCURSES_EXPORT(int)
29955 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/alloc_entry.c ncurses-5.3.20030906.orig/ncurses/tinfo/alloc_entry.c
29956 --- ncurses-5.3/ncurses/tinfo/alloc_entry.c Sat Sep 7 15:04:15 2002
29957 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/alloc_entry.c Sun Jul 20 14:02:08 2003
29959 /****************************************************************************
29960 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
29961 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
29963 * Permission is hereby granted, free of charge, to any person obtaining a *
29964 * copy of this software and associated documentation files (the *
29967 #include <term_entry.h>
29969 -MODULE_ID("$Id: alloc_entry.c,v 1.37 2002/09/07 20:04:15 tom Exp $")
29970 +MODULE_ID("$Id: alloc_entry.c,v 1.38 2003/05/24 21:10:28 tom Exp $")
29972 #define ABSENT_OFFSET -1
29973 #define CANCELLED_OFFSET -2
29974 @@ -61,10 +61,10 @@
29975 _nc_init_entry(TERMTYPE * const tp)
29976 /* initialize a terminal type data block */
29981 if (stringbuf == 0)
29982 - stringbuf = malloc(MAX_STRTAB);
29983 + stringbuf = (char *) malloc(MAX_STRTAB);
29986 tp->num_Booleans = BOOLCOUNT;
29987 @@ -126,7 +126,8 @@
29988 /* copy the string parts to allocated storage, preserving pointers to it */
29990 int offsets[MAX_ENTRY_SIZE / 2], useoffsets[MAX_USES];
29993 + unsigned nuses = ep->nuses;
29994 TERMTYPE *tp = &(ep->tterm);
29996 if (copy_strings) {
29997 @@ -141,7 +142,7 @@
30001 - for (i = 0; i < ep->nuses; i++) {
30002 + for (i = 0; i < nuses; i++) {
30003 if (ep->uses[i].name == 0) {
30004 ep->uses[i].name = _nc_save_str(ep->uses[i].name);
30006 @@ -160,7 +161,7 @@
30007 offsets[i] = tp->Strings[i] - stringbuf;
30010 - for (i = 0; i < ep->nuses; i++) {
30011 + for (i = 0; i < nuses; i++) {
30012 if (ep->uses[i].name == 0)
30013 useoffsets[i] = ABSENT_OFFSET;
30015 @@ -200,7 +201,7 @@
30019 - for (i = 0; i < ep->nuses; i++) {
30020 + for (i = 0; i < nuses; i++) {
30021 if (useoffsets[i] == ABSENT_OFFSET)
30022 ep->uses[i].name = 0;
30024 @@ -209,11 +210,10 @@
30027 NCURSES_EXPORT(void)
30029 -(TERMTYPE * const to, TERMTYPE * const from)
30030 +_nc_merge_entry(TERMTYPE * const to, TERMTYPE * const from)
30031 /* merge capabilities from `from' entry into `to' entry */
30037 _nc_align_termtype(to, from);
30038 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/alloc_ttype.c ncurses-5.3.20030906.orig/ncurses/tinfo/alloc_ttype.c
30039 --- ncurses-5.3/ncurses/tinfo/alloc_ttype.c Sat Sep 28 10:28:43 2002
30040 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/alloc_ttype.c Sun Jul 20 14:02:08 2003
30042 /****************************************************************************
30043 - * Copyright (c) 1999-2000,2002 Free Software Foundation, Inc. *
30044 + * Copyright (c) 1999-2002,2003 Free Software Foundation, Inc. *
30046 * Permission is hereby granted, free of charge, to any person obtaining a *
30047 * copy of this software and associated documentation files (the *
30050 #include <term_entry.h>
30052 -MODULE_ID("$Id: alloc_ttype.c,v 1.13 2002/09/28 15:28:43 tom Exp $")
30053 +MODULE_ID("$Id: alloc_ttype.c,v 1.14 2003/05/24 21:10:28 tom Exp $")
30061 -realign_data(TERMTYPE * to, char **ext_Names, int ext_Booleans, int
30062 - ext_Numbers, int ext_Strings)
30063 +realign_data(TERMTYPE * to, char **ext_Names,
30064 + int ext_Booleans,
30069 int limit = (to->ext_Booleans + to->ext_Numbers + to->ext_Strings);
30070 @@ -371,8 +373,7 @@
30073 NCURSES_EXPORT(void)
30074 -_nc_align_termtype
30075 -(TERMTYPE * to, TERMTYPE * from)
30076 +_nc_align_termtype(TERMTYPE * to, TERMTYPE * from)
30078 int na = NUM_EXT_NAMES(to);
30079 int nb = NUM_EXT_NAMES(from);
30080 @@ -457,10 +458,9 @@
30083 NCURSES_EXPORT(void)
30085 -(TERMTYPE * dst, TERMTYPE * src)
30086 +_nc_copy_termtype(TERMTYPE * dst, TERMTYPE * src)
30091 *dst = *src; /* ...to copy the sizes and string-tables */
30092 dst->Booleans = typeMalloc(char, NUM_BOOLEANS(dst));
30093 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/comp_parse.c ncurses-5.3.20030906.orig/ncurses/tinfo/comp_parse.c
30094 --- ncurses-5.3/ncurses/tinfo/comp_parse.c Sat Sep 7 15:01:28 2002
30095 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/comp_parse.c Fri Sep 12 16:41:41 2003
30097 /****************************************************************************
30098 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
30099 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
30101 * Permission is hereby granted, free of charge, to any person obtaining a *
30102 * copy of this software and associated documentation files (the *
30105 #include <term_entry.h>
30107 -MODULE_ID("$Id: comp_parse.c,v 1.53 2002/09/07 20:01:28 tom Exp $")
30108 +MODULE_ID("$Id: comp_parse.c,v 1.55 2003/08/02 23:53:42 tom Exp $")
30110 static void sanity_check(TERMTYPE *);
30111 NCURSES_IMPEXP void NCURSES_API(*_nc_check_termtype) (TERMTYPE *) = sanity_check;
30112 @@ -163,7 +163,7 @@
30113 ****************************************************************************/
30115 NCURSES_EXPORT(void)
30116 -_nc_read_entry_source(FILE * fp, char *buf,
30117 +_nc_read_entry_source(FILE *fp, char *buf,
30118 int literal, bool silent,
30119 bool(*hook) (ENTRY *))
30120 /* slurp all entries in the given file into core */
30121 @@ -216,7 +216,8 @@
30123 ENTRY *qp, *rp, *lastread = 0;
30125 - int i, j, unresolved, total_unresolved, multiples;
30126 + int i, unresolved, total_unresolved, multiples;
30129 DEBUG(2, ("RESOLUTION BEGINNING"));
30131 @@ -397,7 +398,7 @@
30133 for_entry_list(qp) {
30134 for_each_boolean(j, &(qp->tterm)) {
30135 - if ((int) qp->tterm.Booleans[j] == CANCELLED_BOOLEAN)
30136 + if (qp->tterm.Booleans[j] == CANCELLED_BOOLEAN)
30137 qp->tterm.Booleans[j] = ABSENT_BOOLEAN;
30139 for_each_number(j, &(qp->tterm)) {
30140 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/comp_scan.c ncurses-5.3.20030906.orig/ncurses/tinfo/comp_scan.c
30141 --- ncurses-5.3/ncurses/tinfo/comp_scan.c Sat Sep 7 15:04:09 2002
30142 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/comp_scan.c Sun Jul 20 14:02:08 2003
30144 /****************************************************************************
30145 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
30146 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
30148 * Permission is hereby granted, free of charge, to any person obtaining a *
30149 * copy of this software and associated documentation files (the *
30151 #include <term_entry.h>
30154 -MODULE_ID("$Id: comp_scan.c,v 1.61 2002/09/07 20:04:09 tom Exp $")
30155 +MODULE_ID("$Id: comp_scan.c,v 1.64 2003/05/31 23:27:20 tom Exp $")
30158 * Maximum length of string capability we'll accept before raising an error.
30159 @@ -93,10 +93,10 @@
30160 _nc_disable_period = FALSE; /* used by tic -a option */
30163 +static bool end_of_stream(void);
30164 static int last_char(void);
30165 static int next_char(void);
30166 static long stream_pos(void);
30167 -static bool end_of_stream(void);
30168 static void push_back(char c);
30170 /* Assume we may be looking at a termcap-style continuation */
30171 @@ -148,8 +148,11 @@
30172 static const char terminfo_punct[] = "@%&*!#";
30173 static char *buffer;
30175 + char *after_list;
30176 + char *after_name;
30182 int dot_flag = FALSE;
30183 @@ -173,8 +176,12 @@
30187 - if (end_of_stream())
30188 + if (end_of_stream()) {
30189 + if (buffer != 0) {
30190 + FreeAndNull(buffer);
30196 token_start = stream_pos();
30197 @@ -227,17 +234,21 @@
30200 if (first_column) {
30203 _nc_comment_start = token_start;
30204 _nc_comment_end = _nc_curr_file_pos;
30205 _nc_start_line = _nc_curr_line;
30210 while ((ch = next_char()) != '\n') {
30213 _nc_err_abort(MSG_NO_MEMORY);
30214 - else if (ch == ':' && last_char() != ',') {
30215 + } else if (ch == '|') {
30216 + after_list = ptr;
30217 + if (after_name == 0)
30218 + after_name = ptr;
30219 + } else if (ch == ':' && last_char() != ',') {
30220 _nc_syntax = SYN_TERMCAP;
30223 @@ -245,14 +256,18 @@
30224 _nc_syntax = SYN_TERMINFO;
30227 - * Fall-through here is not an accident. The idea is that
30228 - * if we see a comma, we figure this is terminfo unless we
30229 - * subsequently run into a colon -- but we don't stop
30230 - * looking for that colon until hitting a newline. This
30231 + * If we did not see a '|', then we found a name with no
30232 + * aliases or description.
30234 + if (after_name == 0)
30237 + * If we see a comma, we assume this is terminfo unless we
30238 + * subsequently run into a colon. But we don't stop
30239 + * looking for a colon until hitting a newline. This
30240 * allows commas to be embedded in description fields of
30245 ch = eat_escaped_newline(ch);
30247 @@ -277,53 +292,53 @@
30250 * This is the soonest we have the terminal name fetched. Set up
30251 - * for following warning messages.
30252 + * for following warning messages. If there's no '|', then there
30253 + * is no description.
30255 - ptr = strchr(buffer, '|');
30256 - if (ptr == (char *) NULL)
30257 - ptr = buffer + strlen(buffer);
30260 - _nc_set_type(buffer);
30262 + if (after_name != 0) {
30263 + ch = *after_name;
30264 + *after_name = '\0';
30265 + _nc_set_type(buffer);
30266 + *after_name = ch;
30270 * Compute the boundary between the aliases and the description
30271 * field for syntax-checking purposes.
30273 - desc = strrchr(buffer, '|');
30274 - if (!silent && desc) {
30275 - if (*desc == '\0')
30276 - _nc_warning("empty longname field");
30277 - else if (strchr(desc, ' ') == (char *) NULL)
30278 - _nc_warning("older tic versions may treat the description field as an alias");
30279 + if (after_list != 0) {
30281 + if (*after_list == '\0')
30282 + _nc_warning("empty longname field");
30283 + else if (strchr(after_list, ' ') == 0)
30284 + _nc_warning("older tic versions may treat the description field as an alias");
30287 + after_list = buffer + strlen(buffer);
30288 + DEBUG(1, ("missing description"));
30291 - desc = buffer + strlen(buffer);
30294 * Whitespace in a name field other than the long name can confuse
30295 * rdist and some termcap tools. Slashes are a no-no. Other
30296 * special characters can be dangerous due to shell expansion.
30298 - for (ptr = buffer; ptr < desc; ptr++) {
30299 - if (isspace(UChar(*ptr))) {
30300 + for (s = buffer; s < after_list; ++s) {
30301 + if (isspace(UChar(*s))) {
30303 _nc_warning("whitespace in name or alias field");
30305 - } else if (*ptr == '/') {
30306 + } else if (*s == '/') {
30308 _nc_warning("slashes aren't allowed in names or aliases");
30310 - } else if (strchr("$[]!*?", *ptr)) {
30311 + } else if (strchr("$[]!*?", *s)) {
30313 - _nc_warning("dubious character `%c' in name or alias field", *ptr);
30314 + _nc_warning("dubious character `%c' in name or alias field", *s);
30321 _nc_curr_token.tk_name = buffer;
30324 @@ -684,7 +699,7 @@
30327 NCURSES_EXPORT(void)
30328 -_nc_reset_input(FILE * fp, char *buf)
30329 +_nc_reset_input(FILE *fp, char *buf)
30331 pushtype = NO_PUSHBACK;
30333 @@ -766,7 +781,7 @@
30335 _nc_curr_file_pos = ftell(yyin);
30337 - if (fgets(result + used, allocated - used, yyin) != NULL) {
30338 + if (fgets(result + used, allocated - used, yyin) != 0) {
30342 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/free_ttype.c ncurses-5.3.20030906.orig/ncurses/tinfo/free_ttype.c
30343 --- ncurses-5.3/ncurses/tinfo/free_ttype.c Sun Sep 1 15:29:03 2002
30344 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/free_ttype.c Fri Sep 12 16:41:56 2003
30346 /****************************************************************************
30347 - * Copyright (c) 1999-2000,2002 Free Software Foundation, Inc. *
30348 + * Copyright (c) 1999-2002,2003 Free Software Foundation, Inc. *
30350 * Permission is hereby granted, free of charge, to any person obtaining a *
30351 * copy of this software and associated documentation files (the *
30352 @@ -43,11 +43,43 @@
30354 #include <term_entry.h>
30356 -MODULE_ID("$Id: free_ttype.c,v 1.8 2002/09/01 20:29:03 tom Exp $")
30357 +MODULE_ID("$Id: free_ttype.c,v 1.10 2003/08/09 21:22:03 tom Exp $")
30359 NCURSES_EXPORT(void)
30360 _nc_free_termtype(TERMTYPE * ptr)
30362 + T(("_nc_free_termtype(%s)", ptr->term_names));
30364 + if (ptr->str_table == 0
30365 + || (ptr->term_names < ptr->str_table
30366 + || ptr->term_names >= ptr->str_table + MAX_ENTRY_SIZE)) {
30367 + FreeIfNeeded(ptr->term_names);
30371 + if (ptr->str_table != 0
30372 + && (ptr->term_names < ptr->str_table + MAX_ENTRY_SIZE)) {
30374 + char *last = ptr->str_table;
30376 + * We should have saved the entry-size someplace. Too late,
30377 + * but this is useful for the memory-leak checking, though more
30378 + * work/time than should be in the normal library.
30380 + for (j = 0; j < NUM_STRINGS(ptr); j++) {
30381 + char *s = ptr->Strings[j];
30382 + if (VALID_STRING(s)) {
30383 + char *t = s + strlen(s) + 1;
30388 + if (last < ptr->term_names) {
30389 + FreeIfNeeded(ptr->term_names);
30394 FreeIfNeeded(ptr->str_table);
30395 FreeIfNeeded(ptr->Booleans);
30396 FreeIfNeeded(ptr->Numbers);
30398 use_extended_names(bool flag)
30400 int oldflag = _nc_user_definable;
30402 + T((T_CALLED("use_extended_names(%d)"), flag));
30403 _nc_user_definable = flag;
30405 + returnBool(oldflag);
30408 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/lib_acs.c ncurses-5.3.20030906.orig/ncurses/tinfo/lib_acs.c
30409 --- ncurses-5.3/ncurses/tinfo/lib_acs.c Sun Sep 1 14:26:57 2002
30410 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/lib_acs.c Tue May 13 20:08:22 2003
30412 #include <curses.priv.h>
30413 #include <term.h> /* ena_acs, acs_chars */
30415 -MODULE_ID("$Id: lib_acs.c,v 1.22 2002/09/01 19:26:57 tom Exp $")
30416 +MODULE_ID("$Id: lib_acs.c,v 1.25 2002/12/28 16:26:46 tom Exp $")
30419 NCURSES_EXPORT_VAR(chtype *)
30420 @@ -55,101 +55,88 @@
30421 NCURSES_EXPORT(void)
30424 + chtype *fake_map = acs_map;
30425 + chtype *real_map = SP != 0 ? SP->_acs_map : fake_map;
30428 T(("initializing ACS map"));
30429 -#if !BROKEN_LINKER
30430 - memset(acs_map, 0, sizeof(acs_map));
30434 + * If we're using this from curses (rather than terminfo), we are storing
30435 + * the mapping information in the SCREEN struct so we can decide how to
30438 + if (real_map != fake_map) {
30439 + for (j = 1; j < ACS_LEN; ++j) {
30441 + fake_map[j] = A_ALTCHARSET | j;
30444 + for (j = 1; j < ACS_LEN; ++j) {
30450 * Initializations for a UNIX-like multi-terminal environment. Use
30451 * ASCII chars and count on the terminfo description to do better.
30453 - ACS_ULCORNER = '+'; /* should be upper left corner */
30454 - ACS_LLCORNER = '+'; /* should be lower left corner */
30455 - ACS_URCORNER = '+'; /* should be upper right corner */
30456 - ACS_LRCORNER = '+'; /* should be lower right corner */
30457 - ACS_RTEE = '+'; /* should be tee pointing left */
30458 - ACS_LTEE = '+'; /* should be tee pointing right */
30459 - ACS_BTEE = '+'; /* should be tee pointing up */
30460 - ACS_TTEE = '+'; /* should be tee pointing down */
30461 - ACS_HLINE = '-'; /* should be horizontal line */
30462 - ACS_VLINE = '|'; /* should be vertical line */
30463 - ACS_PLUS = '+'; /* should be large plus or crossover */
30464 - ACS_S1 = '~'; /* should be scan line 1 */
30465 - ACS_S9 = '_'; /* should be scan line 9 */
30466 - ACS_DIAMOND = '+'; /* should be diamond */
30467 - ACS_CKBOARD = ':'; /* should be checker board (stipple) */
30468 - ACS_DEGREE = '\''; /* should be degree symbol */
30469 - ACS_PLMINUS = '#'; /* should be plus/minus */
30470 - ACS_BULLET = 'o'; /* should be bullet */
30471 - ACS_LARROW = '<'; /* should be arrow pointing left */
30472 - ACS_RARROW = '>'; /* should be arrow pointing right */
30473 - ACS_DARROW = 'v'; /* should be arrow pointing down */
30474 - ACS_UARROW = '^'; /* should be arrow pointing up */
30475 - ACS_BOARD = '#'; /* should be board of squares */
30476 - ACS_LANTERN = '#'; /* should be lantern symbol */
30477 - ACS_BLOCK = '#'; /* should be solid square block */
30478 + real_map['l'] = '+'; /* should be upper left corner */
30479 + real_map['m'] = '+'; /* should be lower left corner */
30480 + real_map['k'] = '+'; /* should be upper right corner */
30481 + real_map['j'] = '+'; /* should be lower right corner */
30482 + real_map['u'] = '+'; /* should be tee pointing left */
30483 + real_map['t'] = '+'; /* should be tee pointing right */
30484 + real_map['v'] = '+'; /* should be tee pointing up */
30485 + real_map['w'] = '+'; /* should be tee pointing down */
30486 + real_map['q'] = '-'; /* should be horizontal line */
30487 + real_map['x'] = '|'; /* should be vertical line */
30488 + real_map['n'] = '+'; /* should be large plus or crossover */
30489 + real_map['o'] = '~'; /* should be scan line 1 */
30490 + real_map['s'] = '_'; /* should be scan line 9 */
30491 + real_map['`'] = '+'; /* should be diamond */
30492 + real_map['a'] = ':'; /* should be checker board (stipple) */
30493 + real_map['f'] = '\''; /* should be degree symbol */
30494 + real_map['g'] = '#'; /* should be plus/minus */
30495 + real_map['~'] = 'o'; /* should be bullet */
30496 + real_map[','] = '<'; /* should be arrow pointing left */
30497 + real_map['+'] = '>'; /* should be arrow pointing right */
30498 + real_map['.'] = 'v'; /* should be arrow pointing down */
30499 + real_map['-'] = '^'; /* should be arrow pointing up */
30500 + real_map['h'] = '#'; /* should be board of squares */
30501 + real_map['i'] = '#'; /* should be lantern symbol */
30502 + real_map['0'] = '#'; /* should be solid square block */
30503 /* these defaults were invented for ncurses */
30504 - ACS_S3 = '-'; /* should be scan line 3 */
30505 - ACS_S7 = '-'; /* should be scan line 7 */
30506 - ACS_LEQUAL = '<'; /* should be less-than-or-equal-to */
30507 - ACS_GEQUAL = '>'; /* should be greater-than-or-equal-to */
30508 - ACS_PI = '*'; /* should be greek pi */
30509 - ACS_NEQUAL = '!'; /* should be not-equal */
30510 - ACS_STERLING = 'f'; /* should be pound-sterling symbol */
30511 + real_map['p'] = '-'; /* should be scan line 3 */
30512 + real_map['r'] = '-'; /* should be scan line 7 */
30513 + real_map['y'] = '<'; /* should be less-than-or-equal-to */
30514 + real_map['z'] = '>'; /* should be greater-than-or-equal-to */
30515 + real_map['{'] = '*'; /* should be greek pi */
30516 + real_map['|'] = '!'; /* should be not-equal */
30517 + real_map['}'] = 'f'; /* should be pound-sterling symbol */
30519 +#if !USE_WIDEC_SUPPORT
30520 + if (_nc_unicode_locale() && _nc_locale_breaks_acs()) {
30521 + acs_chars = NULL;
30526 if (ena_acs != NULL) {
30527 TPUTS_TRACE("ena_acs");
30530 -#define ALTCHAR(c) ((chtype)(((unsigned char)(c)) | A_ALTCHARSET))
30532 if (acs_chars != NULL) {
30534 size_t length = strlen(acs_chars);
30536 - while (i < length)
30537 - switch (acs_chars[i]) {
30570 - acs_map[(unsigned int) acs_chars[i]] =
30571 - ALTCHAR(acs_chars[i + 1]);
30577 + while (i + 1 < length) {
30578 + if (acs_chars[i] != 0 && UChar(acs_chars[i]) < ACS_LEN) {
30579 + real_map[UChar(acs_chars[i])] = UChar(acs_chars[i + 1]) | A_ALTCHARSET;
30585 /* Show the equivalent mapping, noting if it does not match the
30586 @@ -159,9 +146,9 @@
30588 char show[ACS_LEN + 1];
30589 for (n = 1, m = 0; n < ACS_LEN; n++) {
30590 - if (acs_map[n] != 0) {
30591 + if (real_map[n] != 0) {
30592 show[m++] = (char) n;
30593 - show[m++] = ChCharOf(acs_map[n]);
30594 + show[m++] = ChCharOf(real_map[n]);
30598 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/lib_cur_term.c ncurses-5.3.20030906.orig/ncurses/tinfo/lib_cur_term.c
30599 --- ncurses-5.3/ncurses/tinfo/lib_cur_term.c Sat Dec 9 20:55:07 2000
30600 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/lib_cur_term.c Tue May 13 20:08:22 2003
30602 /****************************************************************************
30603 - * Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. *
30604 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
30606 * Permission is hereby granted, free of charge, to any person obtaining a *
30607 * copy of this software and associated documentation files (the *
30609 #include <term_entry.h> /* TTY, cur_term */
30610 #include <termcap.h> /* ospeed */
30612 -MODULE_ID("$Id: lib_cur_term.c,v 1.11 2000/12/10 02:55:07 tom Exp $")
30613 +MODULE_ID("$Id: lib_cur_term.c,v 1.12 2003/02/23 01:00:56 tom Exp $")
30615 NCURSES_EXPORT_VAR(TERMINAL *) cur_term = 0;
30617 @@ -49,11 +49,14 @@
30619 TERMINAL *oldterm = cur_term;
30621 + T((T_CALLED("set_curterm(%p)"), termp));
30623 if ((cur_term = termp) != 0) {
30624 ospeed = _nc_ospeed(cur_term->_baudrate);
30625 PC = (pad_char != NULL) ? pad_char[0] : 0;
30628 + T((T_RETURN("%p"), oldterm));
30629 + return (oldterm);
30632 NCURSES_EXPORT(int)
30633 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/lib_kernel.c ncurses-5.3.20030906.orig/ncurses/tinfo/lib_kernel.c
30634 --- ncurses-5.3/ncurses/tinfo/lib_kernel.c Sat May 11 15:32:18 2002
30635 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/lib_kernel.c Tue May 13 20:08:22 2003
30636 @@ -48,12 +48,12 @@
30637 #include <curses.priv.h>
30638 #include <term.h> /* cur_term */
30640 -MODULE_ID("$Id: lib_kernel.c,v 1.22 2002/05/11 20:32:18 tom Exp $")
30641 +MODULE_ID("$Id: lib_kernel.c,v 1.23 2003/01/26 00:24:53 tom Exp $")
30648 #if defined(_POSIX_VDISABLE) && defined(HAVE_UNISTD_H)
30649 value = _POSIX_VDISABLE;
30651 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/lib_setup.c ncurses-5.3.20030906.orig/ncurses/tinfo/lib_setup.c
30652 --- ncurses-5.3/ncurses/tinfo/lib_setup.c Sat Oct 12 16:50:18 2002
30653 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/lib_setup.c Sun Jul 20 14:02:08 2003
30655 /****************************************************************************
30656 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
30657 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
30659 * Permission is hereby granted, free of charge, to any person obtaining a *
30660 * copy of this software and associated documentation files (the *
30662 /****************************************************************************
30663 * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
30664 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
30665 + * and: Thomas E. Dickey 1996-2003 *
30666 ****************************************************************************/
30671 #include <term.h> /* lines, columns, cur_term */
30673 -MODULE_ID("$Id: lib_setup.c,v 1.70 2002/10/12 21:50:18 tom Exp $")
30674 +MODULE_ID("$Id: lib_setup.c,v 1.77 2003/05/24 21:10:28 tom Exp $")
30676 /****************************************************************************
30682 -static int _use_env = TRUE;
30683 +NCURSES_EXPORT_VAR(char) ttytype[NAMESIZE] = "";
30684 +NCURSES_EXPORT_VAR(int) LINES = 0;
30685 +NCURSES_EXPORT_VAR(int) COLS = 0;
30686 +NCURSES_EXPORT_VAR(int) TABSIZE = 0;
30688 -static void do_prototype(void);
30689 +static int _use_env = TRUE;
30691 NCURSES_EXPORT(void)
30693 @@ -102,10 +106,6 @@
30697 -NCURSES_EXPORT_VAR(int) LINES = 0;
30698 -NCURSES_EXPORT_VAR(int) COLS = 0;
30699 -NCURSES_EXPORT_VAR(int) TABSIZE = 0;
30702 _nc_get_screensize(int *linep, int *colp)
30703 /* Obtain lines/columns values from the environment and/or terminfo entry */
30704 @@ -199,7 +199,6 @@
30707 T(("TABSIZE = %d", TABSIZE));
30712 @@ -241,7 +240,9 @@
30713 grab_entry(const char *const tn, TERMTYPE * const tp)
30714 /* return 1 if entry found, 0 if not found, -1 if database not accessible */
30717 char filename[PATH_MAX];
30722 @@ -275,7 +276,7 @@
30723 * a string is cancelled, for merging entries).
30728 for_each_boolean(n, tp) {
30729 if (!VALID_BOOLEAN(tp->Booleans[n]))
30730 tp->Booleans[n] = FALSE;
30731 @@ -289,7 +290,82 @@
30735 -NCURSES_EXPORT_VAR(char) ttytype[NAMESIZE] = "";
30739 +** Take the real command character out of the CC environment variable
30740 +** and substitute it in for the prototype given in 'command_character'.
30744 +do_prototype(void)
30751 + tmp = getenv("CC");
30753 + proto = *command_character;
30755 + for_each_string(i, &(cur_term->type)) {
30756 + for (tmp = cur_term->type.Strings[i]; *tmp; tmp++) {
30757 + if (*tmp == proto)
30764 + * Check if we are running in a UTF-8 locale.
30766 +NCURSES_EXPORT(char *)
30767 +_nc_get_locale(void)
30770 + if (((env = getenv("LC_ALL")) != 0 && *env != '\0')
30771 + || ((env = getenv("LC_CTYPE")) != 0 && *env != '\0')
30772 + || ((env = getenv("LANG")) != 0 && *env != '\0')) {
30779 + * Check if we are running in a UTF-8 locale.
30781 +NCURSES_EXPORT(int)
30782 +_nc_unicode_locale(void)
30784 + char *env = _nc_get_locale();
30786 + if (strstr(env, ".UTF-8") != 0)
30793 + * Check for known broken cases where a UTF-8 locale breaks the alternate
30796 +NCURSES_EXPORT(int)
30797 +_nc_locale_breaks_acs(void)
30799 + char *env = getenv("TERM");
30801 + if (strstr(env, "linux"))
30802 + return 1; /* always broken */
30803 + if (strstr(env, "screen") != 0
30804 + && ((env = getenv("TERMCAP")) != 0
30805 + && strstr(env, "screen") != 0)
30806 + && strstr(env, "hhII00") != 0) {
30814 * setupterm(termname, Filedes, errret)
30815 @@ -302,7 +378,6 @@
30816 NCURSES_EXPORT(int)
30817 setupterm(NCURSES_CONST char *tname, int Filedes, int *errret)
30819 - struct term *term_ptr;
30823 @@ -321,77 +396,89 @@
30825 T(("your terminal name is %s", tname));
30827 - term_ptr = typeCalloc(TERMINAL, 1);
30829 + * Allow output redirection. This is what SVr3 does. If stdout is
30830 + * directed to a file, screen updates go to standard error.
30832 + if (Filedes == STDOUT_FILENO && !isatty(Filedes))
30833 + Filedes = STDERR_FILENO;
30835 - if (term_ptr == 0) {
30836 - ret_error0(-1, "Not enough memory to create terminal structure.\n");
30839 + * Check if we have already initialized to use this terminal. If so, we
30840 + * do not need to re-read the terminfo entry, or obtain TTY settings.
30842 + * This is an improvement on SVr4 curses. If an application mixes curses
30843 + * and termcap calls, it may call both initscr and tgetent. This is not
30844 + * really a good thing to do, but can happen if someone tries using ncurses
30845 + * with the readline library. The problem we are fixing is that when
30846 + * tgetent calls setupterm, the resulting Ottyb struct in cur_term is
30847 + * zeroed. A subsequent call to endwin uses the zeroed terminal settings
30848 + * rather than the ones saved in initscr. So we check if cur_term appears
30849 + * to contain terminal settings for the same output file as our current
30850 + * call - and copy those terminal settings. (SVr4 curses does not do this,
30851 + * however applications that are working around the problem will still work
30852 + * properly with this feature).
30854 + if (cur_term != 0
30855 + && cur_term->Filedes == Filedes
30856 + && _nc_name_match(cur_term->type.term_names, tname, "|")) {
30857 + T(("reusing existing terminal information and mode-settings"));
30859 + TERMINAL *term_ptr;
30861 + term_ptr = typeCalloc(TERMINAL, 1);
30863 + if (term_ptr == 0) {
30865 + "Not enough memory to create terminal structure.\n");
30867 #if USE_DATABASE || USE_TERMCAP
30868 - status = grab_entry(tname, &term_ptr->type);
30869 + status = grab_entry(tname, &term_ptr->type);
30875 - /* try fallback list if entry on disk */
30876 - if (status != 1) {
30877 - const TERMTYPE *fallback = _nc_fallback(tname);
30878 + /* try fallback list if entry on disk */
30879 + if (status != 1) {
30880 + const TERMTYPE *fallback = _nc_fallback(tname);
30883 - term_ptr->type = *fallback;
30886 + term_ptr->type = *fallback;
30892 - if (status == -1) {
30893 - ret_error0(-1, "terminals database is inaccessible\n");
30894 - } else if (status == 0) {
30895 - ret_error(0, "'%s': unknown terminal type.\n", tname);
30897 + if (status == -1) {
30898 + ret_error0(-1, "terminals database is inaccessible\n");
30899 + } else if (status == 0) {
30900 + ret_error(0, "'%s': unknown terminal type.\n", tname);
30904 - * Improve on SVr4 curses. If an application mixes curses and termcap
30905 - * calls, it may call both initscr and tgetent. This is not really a
30906 - * good thing to do, but can happen if someone tries using ncurses with
30907 - * the readline library. The problem we are fixing is that when
30908 - * tgetent calls setupterm, the resulting Ottyb struct in cur_term is
30909 - * zeroed. A subsequent call to endwin uses the zeroed terminal
30910 - * settings rather than the ones saved in initscr. So we check if
30911 - * cur_term appears to contain terminal settings for the same output
30912 - * file as our current call - and copy those terminal settings. (SVr4
30913 - * curses does not do this, however applications that are working
30914 - * around the problem will still work properly with this feature).
30916 - if (cur_term != 0) {
30917 - if (cur_term->Filedes == Filedes)
30918 - term_ptr->Ottyb = cur_term->Ottyb;
30920 + set_curterm(term_ptr);
30922 - set_curterm(term_ptr);
30923 + if (command_character && getenv("CC"))
30926 - if (command_character && getenv("CC"))
30928 + strncpy(ttytype, cur_term->type.term_names, NAMESIZE - 1);
30929 + ttytype[NAMESIZE - 1] = '\0';
30931 - strncpy(ttytype, cur_term->type.term_names, NAMESIZE - 1);
30932 - ttytype[NAMESIZE - 1] = '\0';
30933 + cur_term->Filedes = Filedes;
30936 - * Allow output redirection. This is what SVr3 does. If stdout is
30937 - * directed to a file, screen updates go to standard error.
30939 - if (Filedes == STDOUT_FILENO && !isatty(Filedes))
30940 - Filedes = STDERR_FILENO;
30941 - cur_term->Filedes = Filedes;
30943 + * If an application calls setupterm() rather than initscr() or
30944 + * newterm(), we will not have the def_prog_mode() call in
30945 + * _nc_setupscreen(). Do it now anyway, so we can initialize the
30948 + if (isatty(Filedes)) {
30955 - * If an application calls setupterm() rather than initscr() or newterm(),
30956 - * we will not have the def_prog_mode() call in _nc_setupscreen(). Do it
30957 - * now anyway, so we can initialize the baudrate.
30958 + * We should always check the screensize, just in case.
30960 - if (isatty(Filedes)) {
30965 _nc_get_screensize(&LINES, &COLS);
30968 @@ -407,31 +494,3 @@
30976 -** Take the real command character out of the CC environment variable
30977 -** and substitute it in for the prototype given in 'command_character'.
30982 -do_prototype(void)
30989 - tmp = getenv("CC");
30991 - proto = *command_character;
30993 - for_each_string(i, &(cur_term->type)) {
30994 - for (tmp = cur_term->type.Strings[i]; *tmp; tmp++) {
30995 - if (*tmp == proto)
31000 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/lib_termcap.c ncurses-5.3.20030906.orig/ncurses/tinfo/lib_termcap.c
31001 --- ncurses-5.3/ncurses/tinfo/lib_termcap.c Sat May 25 07:24:13 2002
31002 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/lib_termcap.c Sun Jul 20 14:02:08 2003
31004 /****************************************************************************
31005 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
31006 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
31008 * Permission is hereby granted, free of charge, to any person obtaining a *
31009 * copy of this software and associated documentation files (the *
31012 #include <term_entry.h>
31014 -MODULE_ID("$Id: lib_termcap.c,v 1.43 2002/05/25 12:24:13 tom Exp $")
31015 +MODULE_ID("$Id: lib_termcap.c,v 1.44 2003/05/24 21:10:28 tom Exp $")
31018 #define ESC 033 /* ^[ */
31019 @@ -233,7 +233,7 @@
31020 NCURSES_EXPORT(int)
31021 tgetflag(NCURSES_CONST char *id)
31026 T((T_CALLED("tgetflag(%s)"), id));
31027 if (cur_term != 0) {
31028 @@ -261,7 +261,7 @@
31029 NCURSES_EXPORT(int)
31030 tgetnum(NCURSES_CONST char *id)
31035 T((T_CALLED("tgetnum(%s)"), id));
31036 if (cur_term != 0) {
31037 @@ -290,7 +290,7 @@
31038 NCURSES_EXPORT(char *)
31039 tgetstr(NCURSES_CONST char *id, char **area)
31043 char *result = NULL;
31045 T((T_CALLED("tgetstr(%s,%p)"), id, area));
31046 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/lib_ti.c ncurses-5.3.20030906.orig/ncurses/tinfo/lib_ti.c
31047 --- ncurses-5.3/ncurses/tinfo/lib_ti.c Sat Dec 9 20:55:08 2000
31048 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/lib_ti.c Sun Jul 20 14:02:08 2003
31050 /****************************************************************************
31051 - * Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. *
31052 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
31054 * Permission is hereby granted, free of charge, to any person obtaining a *
31055 * copy of this software and associated documentation files (the *
31056 @@ -36,12 +36,12 @@
31057 #include <term_entry.h>
31060 -MODULE_ID("$Id: lib_ti.c,v 1.22 2000/12/10 02:55:08 tom Exp $")
31061 +MODULE_ID("$Id: lib_ti.c,v 1.23 2003/05/24 21:10:28 tom Exp $")
31063 NCURSES_EXPORT(int)
31064 tigetflag(NCURSES_CONST char *str)
31069 T((T_CALLED("tigetflag(%s)"), str));
31072 NCURSES_EXPORT(int)
31073 tigetnum(NCURSES_CONST char *str)
31078 T((T_CALLED("tigetnum(%s)"), str));
31081 NCURSES_EXPORT(char *)
31082 tigetstr(NCURSES_CONST char *str)
31087 T((T_CALLED("tigetstr(%s)"), str));
31089 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/lib_tparm.c ncurses-5.3.20030906.orig/ncurses/tinfo/lib_tparm.c
31090 --- ncurses-5.3/ncurses/tinfo/lib_tparm.c Sat Oct 5 14:33:24 2002
31091 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/lib_tparm.c Sun Jul 20 14:02:08 2003
31093 /****************************************************************************
31094 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
31095 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
31097 * Permission is hereby granted, free of charge, to any person obtaining a *
31098 * copy of this software and associated documentation files (the *
31103 -MODULE_ID("$Id: lib_tparm.c,v 1.62 2002/10/05 19:33:24 Frank.Henigman Exp $")
31104 +MODULE_ID("$Id: lib_tparm.c,v 1.67 2003/05/24 20:18:50 tom Exp $")
31108 @@ -129,6 +129,9 @@
31109 static size_t out_size;
31110 static size_t out_used;
31112 +static char *fmt_buff;
31113 +static size_t fmt_size;
31116 NCURSES_EXPORT(void)
31117 _nc_free_tparm(void)
31118 @@ -137,6 +140,8 @@
31119 FreeAndNull(out_buff);
31122 + FreeAndNull(fmt_buff);
31127 @@ -247,153 +252,136 @@
31128 static inline const char *
31129 parse_format(const char *s, char *format, int *len)
31131 - bool done = FALSE;
31132 - bool allowminus = FALSE;
31133 - bool dot = FALSE;
31134 - bool err = FALSE;
31135 - char *fmt = format;
31136 - int my_width = 0;
31142 - while (*s != '\0' && !done) {
31144 - case 'c': /* FALLTHRU */
31145 - case 'd': /* FALLTHRU */
31146 - case 'o': /* FALLTHRU */
31147 - case 'x': /* FALLTHRU */
31148 - case 'X': /* FALLTHRU */
31154 - *format++ = *s++;
31157 - } else { /* value before '.' is the width */
31159 - my_width = value;
31164 - *format++ = *s++;
31167 - *format++ = *s++;
31171 - allowminus = TRUE;
31174 - if (allowminus) {
31175 - *format++ = *s++;
31177 + if (format != 0) {
31178 + bool done = FALSE;
31179 + bool allowminus = FALSE;
31180 + bool dot = FALSE;
31181 + bool err = FALSE;
31182 + char *fmt = format;
31183 + int my_width = 0;
31189 + while (*s != '\0' && !done) {
31191 + case 'c': /* FALLTHRU */
31192 + case 'd': /* FALLTHRU */
31193 + case 'o': /* FALLTHRU */
31194 + case 'x': /* FALLTHRU */
31195 + case 'X': /* FALLTHRU */
31202 - if (isdigit(UChar(*s))) {
31203 - value = (value * 10) + (*s - '0');
31204 - if (value > 10000)
31207 + *format++ = *s++;
31210 + } else { /* value before '.' is the width */
31212 + my_width = value;
31222 + *format++ = *s++;
31226 + allowminus = TRUE;
31229 + if (allowminus) {
31230 + *format++ = *s++;
31236 + if (isdigit(UChar(*s))) {
31237 + value = (value * 10) + (*s - '0');
31238 + if (value > 10000)
31240 + *format++ = *s++;
31249 - * If we found an error, ignore (and remove) the flags.
31252 - my_width = my_prec = value = 0;
31258 + * If we found an error, ignore (and remove) the flags.
31261 + my_width = my_prec = value = 0;
31268 - * Any value after '.' is the precision. If we did not see '.', then
31269 - * the value is the width.
31274 - my_width = value;
31276 + * Any value after '.' is the precision. If we did not see '.', then
31277 + * the value is the width.
31282 + my_width = value;
31285 - /* return maximum string length in print */
31286 - *len = (my_width > my_prec) ? my_width : my_prec;
31288 + /* return maximum string length in print */
31289 + *len = (my_width > my_prec) ? my_width : my_prec;
31294 #define isUPPER(c) ((c) >= 'A' && (c) <= 'Z')
31295 #define isLOWER(c) ((c) >= 'a' && (c) <= 'z')
31297 -static inline char *
31298 -tparam_internal(const char *string, va_list ap)
31300 + * Analyze the string to see how many parameters we need from the varargs list,
31301 + * and what their types are. We will only accept string parameters if they
31302 + * appear as a %l or %s format following an explicit parameter reference (e.g.,
31303 + * %p2%s). All other parameters are numbers.
31305 + * 'number' counts coarsely the number of pop's we see in the string, and
31306 + * 'popcount' shows the highest parameter number in the string. We would like
31307 + * to simply use the latter count, but if we are reading termcap strings, there
31308 + * may be cases that we cannot see the explicit parameter numbers.
31310 +NCURSES_EXPORT(int)
31311 +_nc_tparm_analyze(const char *string, char *p_is_s[NUM_PARM], int *popcount)
31313 -#define NUM_VARS 26
31324 - register const char *cp;
31325 - static size_t len_fmt;
31327 + int lastpop = -1;
31330 + const char *cp = string;
31331 static char dummy[] = "";
31332 - static char *format;
31333 - static int dynamic_var[NUM_VARS];
31334 - static int static_vars[NUM_VARS];
31337 - if (string == NULL)
31342 - if ((len2 = strlen(string)) > len_fmt) {
31343 - len_fmt = len2 + len_fmt + 2;
31344 - if ((format = typeRealloc(char, len_fmt, format)) == 0)
31345 + if ((len2 = strlen(cp)) > fmt_size) {
31346 + fmt_size = len2 + fmt_size + 2;
31347 + if ((fmt_buff = typeRealloc(char, fmt_size, fmt_buff)) == 0)
31352 - * Find the highest parameter-number referred to in the format string.
31353 - * Use this value to limit the number of arguments copied from the
31354 - * variable-length argument list.
31360 - memset(p_is_s, 0, sizeof(p_is_s));
31361 + memset(p_is_s, 0, sizeof(p_is_s[0]) * NUM_PARM);
31365 - * Analyze the string to see how many parameters we need from the varargs
31366 - * list, and what their types are. We will only accept string parameters
31367 - * if they appear as a %l or %s format following an explicit parameter
31368 - * reference (e.g., %p2%s). All other parameters are numbers.
31370 - * 'number' counts coarsely the number of pop's we see in the string, and
31371 - * 'popcount' shows the highest parameter number in the string. We would
31372 - * like to simply use the latter count, but if we are reading termcap
31373 - * strings, there may be cases that we cannot see the explicit parameter
31376 - for (cp = string; (cp - string) < (int) len2;) {
31377 + while ((cp - string) < (int) len2) {
31380 - cp = parse_format(cp, format, &len);
31381 + cp = parse_format(cp, fmt_buff, &len);
31385 @@ -416,11 +404,11 @@
31390 - if (i >= 0 && i <= 9) {
31391 + i = (UChar(*cp) - '0');
31392 + if (i >= 0 && i <= NUM_PARM) {
31394 - if (lastpop > popcount)
31395 - popcount = lastpop;
31396 + if (lastpop > *popcount)
31397 + *popcount = lastpop;
31401 @@ -440,7 +428,7 @@
31405 - while (*cp >= '0' && *cp <= '9') {
31406 + while (isdigit(UChar(*cp))) {
31410 @@ -470,8 +458,8 @@
31414 - if (popcount < 2)
31416 + if (*popcount < 2)
31421 @@ -479,8 +467,43 @@
31427 + if (number > NUM_PARM)
31428 + number = NUM_PARM;
31432 +static inline char *
31433 +tparam_internal(const char *string, va_list ap)
31435 +#define NUM_VARS 26
31436 + char *p_is_s[NUM_PARM];
31437 + long param[NUM_PARM];
31444 + const char *cp = string;
31446 + static int dynamic_var[NUM_VARS];
31447 + static int static_vars[NUM_VARS];
31453 + len2 = strlen(cp);
31456 + * Find the highest parameter-number referred to in the format string.
31457 + * Use this value to limit the number of arguments copied from the
31458 + * variable-length argument list.
31460 + number = _nc_tparm_analyze(cp, p_is_s, &popcount);
31461 + if (fmt_buff == 0)
31464 for (i = 0; i < max(popcount, number); i++) {
31466 * A few caps (such as plab_norm) have string-valued parms.
31467 @@ -517,18 +540,18 @@
31469 save_number(", %d", param[i], 0);
31471 - _tracef(T_CALLED("%s(%s%s)"), tname, _nc_visbuf(string), out_buff);
31472 + _tracef(T_CALLED("%s(%s%s)"), tname, _nc_visbuf(cp), out_buff);
31477 - while (*string) {
31478 - if (*string != '%') {
31479 - save_char(*string);
31480 + while ((cp - string) < (int) len2) {
31481 + if (*cp != '%') {
31482 + save_char(UChar(*cp));
31484 - tparam_base = string++;
31485 - string = parse_format(string, format, &len);
31486 - switch (*string) {
31487 + tparam_base = cp++;
31488 + cp = parse_format(cp, fmt_buff, &len);
31493 @@ -539,7 +562,7 @@
31494 case 'o': /* FALLTHRU */
31495 case 'x': /* FALLTHRU */
31496 case 'X': /* FALLTHRU */
31497 - save_number(format, npop(), len);
31498 + save_number(fmt_buff, npop(), len);
31501 case 'c': /* FALLTHRU */
31502 @@ -551,13 +574,13 @@
31506 - save_text(format, spop(), len);
31507 + save_text(fmt_buff, spop(), len);
31512 - i = (*string - '1');
31513 - if (i >= 0 && i < 9) {
31515 + i = (UChar(*cp) - '1');
31516 + if (i >= 0 && i < NUM_PARM) {
31520 @@ -566,39 +589,39 @@
31525 - if (isUPPER(*string)) {
31526 - i = (*string - 'A');
31528 + if (isUPPER(*cp)) {
31529 + i = (UChar(*cp) - 'A');
31530 static_vars[i] = npop();
31531 - } else if (isLOWER(*string)) {
31532 - i = (*string - 'a');
31533 + } else if (isLOWER(*cp)) {
31534 + i = (UChar(*cp) - 'a');
31535 dynamic_var[i] = npop();
31541 - if (isUPPER(*string)) {
31542 - i = (*string - 'A');
31544 + if (isUPPER(*cp)) {
31545 + i = (UChar(*cp) - 'A');
31546 npush(static_vars[i]);
31547 - } else if (isLOWER(*string)) {
31548 - i = (*string - 'a');
31549 + } else if (isLOWER(*cp)) {
31550 + i = (UChar(*cp) - 'a');
31551 npush(dynamic_var[i]);
31560 + npush(UChar(*cp));
31567 - while (*string >= '0' && *string <= '9') {
31568 - number = number * 10 + *string - '0';
31571 + while (isdigit(UChar(*cp))) {
31572 + number = (number * 10) + (UChar(*cp) - '0');
31577 @@ -689,38 +712,38 @@
31580 /* scan forward for %e or %; at level zero */
31584 - while (*string) {
31585 - if (*string == '%') {
31587 - if (*string == '?')
31589 + if (*cp == '%') {
31593 - else if (*string == ';') {
31594 + else if (*cp == ';') {
31599 - } else if (*string == 'e' && level == 0)
31600 + } else if (*cp == 'e' && level == 0)
31613 /* scan forward for a %; at level zero */
31617 - while (*string) {
31618 - if (*string == '%') {
31620 - if (*string == '?')
31622 + if (*cp == '%') {
31626 - else if (*string == ';') {
31627 + else if (*cp == ';') {
31631 @@ -728,22 +751,22 @@
31645 - } /* endswitch (*string) */
31646 - } /* endelse (*string == '%') */
31647 + } /* endswitch (*cp) */
31648 + } /* endelse (*cp == '%') */
31650 - if (*string == '\0')
31655 - } /* endwhile (*string) */
31657 + } /* endwhile (*cp) */
31660 out_buff[out_used] = '\0';
31661 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/lib_tputs.c ncurses-5.3.20030906.orig/ncurses/tinfo/lib_tputs.c
31662 --- ncurses-5.3/ncurses/tinfo/lib_tputs.c Sat Aug 17 18:44:08 2002
31663 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/lib_tputs.c Fri Sep 12 16:42:24 2003
31665 /****************************************************************************
31666 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
31667 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
31669 * Permission is hereby granted, free of charge, to any person obtaining a *
31670 * copy of this software and associated documentation files (the *
31672 #include <termcap.h> /* ospeed */
31675 -MODULE_ID("$Id: lib_tputs.c,v 1.60 2002/08/17 23:44:08 tom Exp $")
31676 +MODULE_ID("$Id: lib_tputs.c,v 1.62 2003/08/23 21:39:20 tom Exp $")
31678 NCURSES_EXPORT_VAR(char) PC = 0; /* used by termcap library */
31679 NCURSES_EXPORT_VAR(NCURSES_OSPEED) ospeed = 0; /* used by termcap library */
31682 register int nullcount;
31684 - nullcount = (ms * _nc_baudrate(ospeed)) / 10000;
31685 + nullcount = (ms * _nc_baudrate(ospeed)) / (BAUDBYTE * 1000);
31686 for (_nc_nulls_sent += nullcount; nullcount > 0; nullcount--)
31688 if (my_outch == _nc_outch)
31690 NCURSES_EXPORT(int)
31695 -#endif /* TRACE */
31696 + TRACE_OUTCHARS(1);
31700 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/lib_ttyflags.c ncurses-5.3.20030906.orig/ncurses/tinfo/lib_ttyflags.c
31701 --- ncurses-5.3/ncurses/tinfo/lib_ttyflags.c Sat Oct 12 16:28:16 2002
31702 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/lib_ttyflags.c Sun Jul 20 14:02:08 2003
31704 /****************************************************************************
31705 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
31706 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
31708 * Permission is hereby granted, free of charge, to any person obtaining a *
31709 * copy of this software and associated documentation files (the *
31711 #include <curses.priv.h>
31712 #include <term.h> /* cur_term */
31714 -MODULE_ID("$Id: lib_ttyflags.c,v 1.9 2002/10/12 21:28:16 tom Exp $")
31715 +MODULE_ID("$Id: lib_ttyflags.c,v 1.11 2003/05/17 23:50:37 tom Exp $")
31720 _nc_get_tty_mode(TTY * buf)
31723 - || GET_TTY(cur_term->Filedes, buf) != 0)
31724 + || GET_TTY(cur_term->Filedes, buf) != 0) {
31725 + memset(buf, 0, sizeof(*buf));
31728 TR(TRACE_BITS, ("_nc_get_tty_mode(%d): %s",
31729 cur_term->Filedes, _nc_trace_ttymode(buf)));
31732 _nc_set_tty_mode(TTY * buf)
31735 - || SET_TTY(cur_term->Filedes, buf) != 0)
31736 + || SET_TTY(cur_term->Filedes, buf) != 0) {
31737 + if ((errno == ENOTTY) && (SP != 0))
31738 + SP->_notty = TRUE;
31741 TR(TRACE_BITS, ("_nc_set_tty_mode(%d): %s",
31742 cur_term->Filedes, _nc_trace_ttymode(buf)));
31744 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/parse_entry.c ncurses-5.3.20030906.orig/ncurses/tinfo/parse_entry.c
31745 --- ncurses-5.3/ncurses/tinfo/parse_entry.c Sat Aug 31 12:02:02 2002
31746 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/parse_entry.c Sun Jul 20 14:02:08 2003
31748 /****************************************************************************
31749 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
31750 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
31752 * Permission is hereby granted, free of charge, to any person obtaining a *
31753 * copy of this software and associated documentation files (the *
31756 #include <term_entry.h>
31758 -MODULE_ID("$Id: parse_entry.c,v 1.57 2002/08/31 17:02:02 tom Exp $")
31759 +MODULE_ID("$Id: parse_entry.c,v 1.58 2003/05/24 22:51:38 tom Exp $")
31762 static short const parametrized[] =
31763 @@ -196,8 +196,7 @@
31766 NCURSES_EXPORT(int)
31768 -(struct entry *entryp, int literal, bool silent)
31769 +_nc_parse_entry(struct entry *entryp, int literal, bool silent)
31772 struct name_table_entry const *entry_ptr;
31773 @@ -217,11 +216,21 @@
31774 entryp->startline = _nc_start_line;
31775 DEBUG(2, ("Comment range is %ld to %ld", entryp->cstart, entryp->cend));
31777 - /* junk the 2-character termcap name, if present */
31779 + * Strip off the 2-character termcap name, if present. Originally termcap
31780 + * used that as an indexing aid. We can retain 2-character terminfo names,
31781 + * but note that they would be lost if we translate to/from termcap. This
31782 + * feature is supposedly obsolete since "newer" BSD implementations do not
31783 + * use it; however our reference for this feature is SunOS 4.x, which
31784 + * implemented it. Note that the resulting terminal type was never the
31785 + * 2-character name, but was instead the first alias after that.
31787 ptr = _nc_curr_token.tk_name;
31788 - if (ptr[2] == '|') {
31789 - ptr = _nc_curr_token.tk_name + 3;
31790 - _nc_curr_token.tk_name[2] = '\0';
31791 + if (_nc_syntax == SYN_TERMCAP) {
31792 + if (ptr[2] == '|') {
31794 + _nc_curr_token.tk_name[2] = '\0';
31798 entryp->tterm.str_table = entryp->tterm.term_names = _nc_save_str(ptr);
31799 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/read_entry.c ncurses-5.3.20030906.orig/ncurses/tinfo/read_entry.c
31800 --- ncurses-5.3/ncurses/tinfo/read_entry.c Sat Dec 9 20:55:08 2000
31801 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/read_entry.c Sun Jul 20 14:02:09 2003
31803 /****************************************************************************
31804 - * Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. *
31805 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
31807 * Permission is hereby granted, free of charge, to any person obtaining a *
31808 * copy of this software and associated documentation files (the *
31810 /****************************************************************************
31811 * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
31812 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
31813 + * and: Thomas E. Dickey *
31814 ****************************************************************************/
31817 @@ -41,10 +42,10 @@
31819 #include <term_entry.h>
31821 -MODULE_ID("$Id: read_entry.c,v 1.72 2000/12/10 02:55:08 tom Exp $")
31822 +MODULE_ID("$Id: read_entry.c,v 1.76 2003/07/05 19:31:51 tom Exp $")
31825 -#define tell(fd) 0 /* lseek() is POSIX, but not tell() - odd... */
31826 +#define tell(fd) lseek(fd, 0, SEEK_CUR) /* lseek() is POSIX, but not tell() */
31830 @@ -156,9 +157,10 @@
31832 int name_size, bool_count, num_count, str_count, str_size;
31834 - char buf[MAX_ENTRY_SIZE];
31835 + char buf[MAX_ENTRY_SIZE + 1];
31836 + unsigned want, have;
31838 - TR(TRACE_DATABASE, ("READ termtype header @%d", tell(fd)));
31839 + TR(TRACE_DATABASE, ("READ termtype header @%ld", (long) tell(fd)));
31841 memset(ptr, 0, sizeof(*ptr));
31843 @@ -197,16 +199,19 @@
31847 - /* grab the name (a null-terminate string) */
31848 - read(fd, buf, min(MAX_NAME_SIZE, (unsigned) name_size));
31849 - buf[MAX_NAME_SIZE] = '\0';
31850 + /* grab the name (a null-terminated string) */
31851 + want = min(MAX_NAME_SIZE, (unsigned) name_size);
31852 + if ((have = read(fd, buf, want)) != want) {
31853 + memset(buf + have, 0, want - have);
31855 + buf[want] = '\0';
31856 ptr->term_names = typeCalloc(char, strlen(buf) + 1);
31857 if (ptr->term_names == NULL) {
31860 (void) strcpy(ptr->term_names, buf);
31861 - if (name_size > MAX_NAME_SIZE)
31862 - lseek(fd, (off_t) (name_size - MAX_NAME_SIZE), 1);
31863 + if (have > MAX_NAME_SIZE)
31864 + lseek(fd, (off_t) (have - MAX_NAME_SIZE), 1);
31866 /* grab the booleans */
31867 if ((ptr->Booleans = typeCalloc(char, max(BOOLCOUNT, bool_count))) == 0
31868 @@ -252,7 +257,7 @@
31869 * Read extended entries, if any, after the normal end of terminfo data.
31871 even_boundary(str_size);
31872 - TR(TRACE_DATABASE, ("READ extended_header @%d", tell(fd)));
31873 + TR(TRACE_DATABASE, ("READ extended_header @%ld", (long) tell(fd)));
31874 if (_nc_user_definable && read_shorts(fd, buf, 5)) {
31875 int ext_bool_count = LOW_MSB(buf + 0);
31876 int ext_num_count = LOW_MSB(buf + 2);
31877 @@ -284,8 +289,8 @@
31878 ext_bool_count, ext_num_count, ext_str_count,
31879 ext_str_size, ext_str_limit));
31881 - TR(TRACE_DATABASE, ("READ %d extended-booleans @%d",
31882 - ext_bool_count, tell(fd)));
31883 + TR(TRACE_DATABASE, ("READ %d extended-booleans @%ld",
31884 + ext_bool_count, (long) tell(fd)));
31885 if ((ptr->ext_Booleans = ext_bool_count) != 0) {
31886 if (read(fd, ptr->Booleans + BOOLCOUNT, (unsigned)
31887 ext_bool_count) != ext_bool_count)
31888 @@ -293,8 +298,8 @@
31890 even_boundary(ext_bool_count);
31892 - TR(TRACE_DATABASE, ("READ %d extended-numbers @%d",
31893 - ext_num_count, tell(fd)));
31894 + TR(TRACE_DATABASE, ("READ %d extended-numbers @%ld",
31895 + ext_num_count, (long) tell(fd)));
31896 if ((ptr->ext_Numbers = ext_num_count) != 0) {
31897 if (!read_shorts(fd, buf, ext_num_count))
31899 @@ -302,13 +307,13 @@
31900 convert_shorts(buf, ptr->Numbers + NUMCOUNT, ext_num_count);
31903 - TR(TRACE_DATABASE, ("READ extended-offsets @%d", tell(fd)));
31904 + TR(TRACE_DATABASE, ("READ extended-offsets @%ld", (long) tell(fd)));
31905 if ((ext_str_count || need)
31906 && !read_shorts(fd, buf, ext_str_count + need))
31909 - TR(TRACE_DATABASE, ("READ %d bytes of extended-strings @%d",
31910 - ext_str_limit, tell(fd)));
31911 + TR(TRACE_DATABASE, ("READ %d bytes of extended-strings @%ld",
31912 + ext_str_limit, (long) tell(fd)));
31914 if (ext_str_limit) {
31915 if ((ptr->ext_str_table = typeMalloc(char, ext_str_limit)) == 0)
31916 @@ -374,8 +379,7 @@
31919 NCURSES_EXPORT(int)
31920 -_nc_read_file_entry
31921 -(const char *const filename, TERMTYPE * ptr)
31922 +_nc_read_file_entry(const char *const filename, TERMTYPE * ptr)
31923 /* return 1 if read, 0 if not found or garbled */
31926 @@ -458,13 +462,20 @@
31929 NCURSES_EXPORT(int)
31931 -(const char *const tn, char *const filename, TERMTYPE * const tp)
31932 +_nc_read_entry(const char *const tn, char *const filename, TERMTYPE * const tp)
31935 char ttn[MAX_ALIAS + 3];
31937 - /* truncate the terminal name to prevent dangerous buffer airline */
31938 + if (strlen(tn) == 0
31939 + || strcmp(tn, ".") == 0
31940 + || strcmp(tn, "..") == 0
31941 + || _nc_pathlast(tn) != 0) {
31942 + T(("illegal or missing entry name '%s'", tn));
31946 + /* truncate the terminal name to prevent buffer overflow */
31947 (void) sprintf(ttn, "%c/%.*s", *tn, MAX_ALIAS, tn);
31949 /* This is System V behavior, in conjunction with our requirements for
31950 @@ -482,7 +493,7 @@
31951 /* this is an ncurses extension */
31952 if ((envp = _nc_home_terminfo()) != 0) {
31953 if (_nc_read_tic_entry(filename, envp, ttn, tp) == 1) {
31959 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/read_termcap.c ncurses-5.3.20030906.orig/ncurses/tinfo/read_termcap.c
31960 --- ncurses-5.3/ncurses/tinfo/read_termcap.c Sat Oct 27 20:11:34 2001
31961 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/read_termcap.c Sun Jul 20 14:02:09 2003
31963 /****************************************************************************
31964 - * Copyright (c) 1998,1999,2000,2001 Free Software Foundation, Inc. *
31965 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
31967 * Permission is hereby granted, free of charge, to any person obtaining a *
31968 * copy of this software and associated documentation files (the *
31971 #include <term_entry.h>
31973 -MODULE_ID("$Id: read_termcap.c,v 1.58 2001/10/28 01:11:34 tom Exp $")
31974 +MODULE_ID("$Id: read_termcap.c,v 1.60 2003/07/05 19:31:16 tom Exp $")
31978 @@ -945,6 +945,15 @@
31981 T(("read termcap entry for %s", tn));
31983 + if (strlen(tn) == 0
31984 + || strcmp(tn, ".") == 0
31985 + || strcmp(tn, "..") == 0
31986 + || _nc_pathlast(tn) != 0) {
31987 + T(("illegal or missing entry name '%s'", tn));
31991 if (use_terminfo_vars() && (p = getenv("TERMCAP")) != 0
31992 && !is_pathname(p) && _nc_name_match(p, tn, "|:")) {
31993 /* TERMCAP holds a termcap entry */
31994 diff -urNd -urNd ncurses-5.3/ncurses/tinfo/strings.c ncurses-5.3.20030906.orig/ncurses/tinfo/strings.c
31995 --- ncurses-5.3/ncurses/tinfo/strings.c Sat Dec 9 20:55:08 2000
31996 +++ ncurses-5.3.20030906.orig/ncurses/tinfo/strings.c Fri Sep 12 16:42:10 2003
31998 /****************************************************************************
31999 - * Copyright (c) 2000 Free Software Foundation, Inc. *
32000 + * Copyright (c) 2000,2003 Free Software Foundation, Inc. *
32002 * Permission is hereby granted, free of charge, to any person obtaining a *
32003 * copy of this software and associated documentation files (the *
32006 #include <curses.priv.h>
32008 -MODULE_ID("$Id: strings.c,v 1.3 2000/12/10 02:55:08 tom Exp $")
32009 +MODULE_ID("$Id: strings.c,v 1.5 2003/08/16 23:46:00 tom Exp $")
32011 /****************************************************************************
32012 * Useful string functions (especially for mvcur)
32016 NCURSES_EXPORT(char *)
32018 -(const char *haystack, const char *needle)
32019 +_nc_strstr(const char *haystack, const char *needle)
32021 size_t len1 = strlen(haystack);
32022 size_t len2 = strlen(needle);
32023 @@ -63,16 +62,18 @@
32027 - * Initialize the descriptor so we can append to it.
32028 + * Initialize the descriptor so we can append to it. Note that 'src' may
32029 + * be a null pointer (see _nc_str_null), so the corresponding strcat and
32030 + * strcpy calls have to allow for this.
32032 NCURSES_EXPORT(string_desc *)
32034 -(string_desc * dst, char *src, size_t len)
32035 +_nc_str_init(string_desc * dst, char *src, size_t len)
32040 dst->s_size = len - 1;
32041 + dst->s_init = dst->s_size;
32046 * Initialize the descriptor for only tracking the amount of memory used.
32048 NCURSES_EXPORT(string_desc *)
32050 -(string_desc * dst, size_t len)
32051 +_nc_str_null(string_desc * dst, size_t len)
32053 return _nc_str_init(dst, 0, len);
32056 * Copy a descriptor
32058 NCURSES_EXPORT(string_desc *)
32060 -(string_desc * dst, string_desc * src)
32061 +_nc_str_copy(string_desc * dst, string_desc * src)
32065 @@ -135,7 +134,7 @@
32066 strcpy(dst->s_head, src);
32067 dst->s_tail = dst->s_head + len;
32069 - dst->s_size -= len;
32070 + dst->s_size = dst->s_init - len;
32074 diff -urNd -urNd ncurses-5.3/ncurses/trace/lib_trace.c ncurses-5.3.20030906.orig/ncurses/trace/lib_trace.c
32075 --- ncurses-5.3/ncurses/trace/lib_trace.c Sat Oct 12 10:20:15 2002
32076 +++ ncurses-5.3.20030906.orig/ncurses/trace/lib_trace.c Fri Sep 12 16:41:56 2003
32078 /****************************************************************************
32079 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
32080 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
32082 * Permission is hereby granted, free of charge, to any person obtaining a *
32083 * copy of this software and associated documentation files (the *
32088 -MODULE_ID("$Id: lib_trace.c,v 1.50 2002/10/12 15:20:15 tom Exp $")
32089 +MODULE_ID("$Id: lib_trace.c,v 1.52 2003/08/09 22:15:44 tom Exp $")
32091 NCURSES_EXPORT_VAR(unsigned) _nc_tracing = 0; /* always define this */
32093 @@ -48,20 +48,21 @@
32094 NCURSES_EXPORT_VAR(const char *) _nc_tputs_trace = "";
32095 NCURSES_EXPORT_VAR(long) _nc_outchars = 0;
32097 -static FILE *tracefp; /* default to writing to stderr */
32098 +static FILE *tracefp = 0; /* default to writing to stderr */
32100 NCURSES_EXPORT(void)
32101 -trace(const unsigned int tracelevel GCC_UNUSED)
32102 +trace(const unsigned int tracelevel)
32104 static bool been_here = FALSE;
32105 static char my_name[] = "trace";
32107 - if (!been_here && tracelevel) {
32108 - been_here = TRUE;
32109 + if ((tracefp == 0) && tracelevel) {
32110 + const char *mode = been_here ? "ab" : "wb";
32112 + been_here = TRUE;
32113 _nc_tracing = tracelevel;
32114 if (_nc_access(my_name, W_OK) < 0
32115 - || (tracefp = fopen(my_name, "wb")) == 0) {
32116 + || (tracefp = fopen(my_name, mode)) == 0) {
32117 perror("curses: Can't open 'trace' file: ");
32118 exit(EXIT_FAILURE);
32121 #elif HAVE_SETBUF /* POSIX */
32122 (void) setbuffer(tracefp, (char *) 0);
32124 - _tracef("TRACING NCURSES version %s (tracelevel=%#x)",
32125 - curses_version(), tracelevel);
32126 + _tracef("TRACING NCURSES version %s.%d (tracelevel=%#x)",
32128 + NCURSES_VERSION_PATCH,
32130 + } else if (tracelevel == 0) {
32131 + if (tracefp != 0) {
32135 + _nc_tracing = tracelevel;
32136 } else if (_nc_tracing != tracelevel) {
32137 _nc_tracing = tracelevel;
32138 _tracef("tracelevel=%#x", tracelevel);
32139 diff -urNd -urNd ncurses-5.3/ncurses/trace/lib_traceatr.c ncurses-5.3.20030906.orig/ncurses/trace/lib_traceatr.c
32140 --- ncurses-5.3/ncurses/trace/lib_traceatr.c Sat Sep 28 07:37:03 2002
32141 +++ ncurses-5.3.20030906.orig/ncurses/trace/lib_traceatr.c Sun Jul 20 14:02:09 2003
32143 /****************************************************************************
32144 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
32145 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
32147 * Permission is hereby granted, free of charge, to any person obtaining a *
32148 * copy of this software and associated documentation files (the *
32150 ****************************************************************************/
32152 /****************************************************************************
32153 - * Author: Thomas Dickey 1996-2001 *
32154 + * Author: Thomas Dickey 1996-2003 *
32155 * and: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
32156 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
32157 ****************************************************************************/
32159 #include <curses.priv.h>
32160 #include <term.h> /* acs_chars */
32162 -MODULE_ID("$Id: lib_traceatr.c,v 1.43 2002/09/28 12:37:03 tom Exp $")
32163 +MODULE_ID("$Id: lib_traceatr.c,v 1.47 2003/06/28 23:20:26 tom Exp $")
32165 #define COLOR_OF(c) (c < 0 || c > 7 ? "default" : colors[c].name)
32168 _traceattr2(int bufnum, attr_t newmode)
32170 char *buf = _nc_trace_buf(bufnum, BUFSIZ);
32173 static const struct {
32176 @@ -92,39 +92,39 @@
32177 unsigned save_nc_tracing = _nc_tracing;
32180 - strcpy(tmp++, l_brace);
32181 + strcpy(buf, l_brace);
32183 for (n = 0; n < SIZEOF(names); n++) {
32184 if ((newmode & names[n].val) != 0) {
32185 if (buf[1] != '\0')
32186 - strcat(tmp, "|");
32187 - strcat(tmp, names[n].name);
32188 - tmp += strlen(tmp);
32189 + buf = _nc_trace_bufcat(bufnum, "|");
32190 + buf = _nc_trace_bufcat(bufnum, names[n].name);
32192 if (names[n].val == A_COLOR) {
32193 short pairnum = PAIR_NUMBER(newmode);
32196 - if (pair_content(pairnum, &fg, &bg) == OK)
32197 - (void) sprintf(tmp,
32198 + if (pair_content(pairnum, &fg, &bg) == OK) {
32199 + (void) sprintf(temp,
32206 - (void) sprintf(tmp, "{%d}", pairnum);
32209 + (void) sprintf(temp, "{%d}", pairnum);
32211 + buf = _nc_trace_bufcat(bufnum, temp);
32215 if (ChAttrOf(newmode) == A_NORMAL) {
32216 if (buf[1] != '\0')
32217 - strcat(tmp, "|");
32218 - strcat(tmp, "A_NORMAL");
32219 + (void) _nc_trace_bufcat(bufnum, "|");
32220 + (void) _nc_trace_bufcat(bufnum, "A_NORMAL");
32223 _nc_tracing = save_nc_tracing;
32224 - return (strcat(buf, r_brace));
32225 + return (_nc_trace_bufcat(bufnum, r_brace));
32228 NCURSES_EXPORT(char *)
32229 @@ -146,7 +146,7 @@
32231 const char *result = 0;
32233 - if (attr & A_ALTCHARSET) {
32234 + if ((attr & A_ALTCHARSET) && (acs_chars != 0)) {
32237 static const struct {
32238 @@ -214,20 +214,21 @@
32239 NCURSES_EXPORT(char *)
32240 _tracechtype2(int bufnum, chtype ch)
32242 - char *buf = _nc_trace_buf(bufnum, BUFSIZ);
32245 - strcpy(buf, l_brace);
32246 + strcpy(_nc_trace_buf(bufnum, BUFSIZ), l_brace);
32247 if ((found = _nc_altcharset_name(ChAttrOf(ch), ch)) != 0) {
32248 - (void) strcat(buf, found);
32249 + (void) _nc_trace_bufcat(bufnum, found);
32251 - (void) strcat(buf, _tracechar(ChCharOf(ch)));
32252 + (void) _nc_trace_bufcat(bufnum, _tracechar(ChCharOf(ch)));
32254 - if (ChAttrOf(ch) != A_NORMAL)
32255 - (void) sprintf(buf + strlen(buf), " | %s",
32256 + if (ChAttrOf(ch) != A_NORMAL) {
32257 + (void) _nc_trace_bufcat(bufnum, " | ");
32258 + (void) _nc_trace_bufcat(bufnum,
32259 _traceattr2(bufnum + 20, ChAttrOf(ch)));
32262 - return (strcat(buf, r_brace));
32263 + return (_nc_trace_bufcat(bufnum, r_brace));
32266 NCURSES_EXPORT(char *)
32267 @@ -256,15 +257,16 @@
32269 attr = AttrOfD(ch);
32270 if ((found = _nc_altcharset_name(attr, CharOfD(ch))) != 0) {
32271 - (void) strcat(buf, found);
32272 + (void) _nc_trace_bufcat(bufnum, found);
32273 attr &= ~A_ALTCHARSET;
32274 - } else if (!isnac(CHDEREF(ch))) {
32275 + } else if (isnac(CHDEREF(ch))) {
32276 + (void) _nc_trace_bufcat(bufnum, "{NAC}");
32281 - memset (&PUT_st, '\0', sizeof (PUT_st));
32283 - (void) strcat(buf, "{ ");
32285 + (void) _nc_trace_bufcat(bufnum, "{ ");
32287 PUTC_ch = PUTC_i < CCHARW_MAX ? ch->chars[PUTC_i] : L'\0';
32288 PUTC_n = wcrtomb(PUTC_buf, ch->chars[PUTC_i], &PUT_st);
32289 @@ -274,19 +276,20 @@
32291 for (n = 0; n < PUTC_n; n++) {
32293 - (void) strcat(buf, ", ");
32294 - (void) strcat(buf, _tracechar(UChar(PUTC_buf[n])));
32295 + (void) _nc_trace_bufcat(bufnum, ", ");
32296 + (void) _nc_trace_bufcat(bufnum, _tracechar(UChar(PUTC_buf[n])));
32299 } while (PUTC_ch != L'\0');
32300 - (void) strcat(buf, " }");
32301 + (void) _nc_trace_bufcat(bufnum, " }");
32303 + if (attr != A_NORMAL) {
32304 + (void) _nc_trace_bufcat(bufnum, " | ");
32305 + (void) _nc_trace_bufcat(bufnum, _traceattr2(bufnum + 20, attr));
32307 - if (attr != A_NORMAL)
32308 - (void) sprintf(buf + strlen(buf), " | %s",
32309 - _traceattr2(bufnum + 20, attr));
32312 - return (strcat(buf, r_brace));
32313 + return (_nc_trace_bufcat(bufnum, r_brace));
32316 NCURSES_EXPORT(char *)
32317 diff -urNd -urNd ncurses-5.3/ncurses/trace/lib_tracechr.c ncurses-5.3.20030906.orig/ncurses/trace/lib_tracechr.c
32318 --- ncurses-5.3/ncurses/trace/lib_tracechr.c Sat May 25 18:34:19 2002
32319 +++ ncurses-5.3.20030906.orig/ncurses/trace/lib_tracechr.c Sun Jul 20 14:02:08 2003
32321 /****************************************************************************
32322 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
32323 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
32325 * Permission is hereby granted, free of charge, to any person obtaining a *
32326 * copy of this software and associated documentation files (the *
32327 @@ -36,19 +36,36 @@
32329 #include <curses.priv.h>
32331 -MODULE_ID("$Id: lib_tracechr.c,v 1.9 2002/05/25 23:34:19 tom Exp $")
32332 +#include <ctype.h>
32334 +MODULE_ID("$Id: lib_tracechr.c,v 1.10 2003/06/14 11:05:42 tom Exp $")
32337 NCURSES_EXPORT(char *)
32340 - static char crep[40];
32341 - (void) sprintf(crep, "'%.30s' = %#03o",
32342 - ((ch > KEY_MIN || ch < 0)
32347 + static char result[40];
32350 + if (ch > KEY_MIN || ch < 0) {
32351 + name = keyname(ch);
32352 + if (name == 0 || *name == '\0')
32354 + (void) sprintf(result, "'%.30s' = %#03o", name, ch);
32355 + } else if (!isprint(ch) || ch > 255) {
32357 + * workaround for glibc bug:
32358 + * sprintf changes the result from unctrl() to an empty string if it
32359 + * does not correspond to a valid multibyte sequence.
32361 + (void) sprintf(result, "%#03o", ch);
32363 + name = unctrl(ch);
32364 + if (name == 0 || *name == 0)
32365 + name = "null"; /* shouldn't happen */
32366 + (void) sprintf(result, "'%.30s' = %#03o", name, ch);
32371 empty_module(_nc_lib_tracechr)
32372 diff -urNd -urNd ncurses-5.3/ncurses/trace/trace_buf.c ncurses-5.3.20030906.orig/ncurses/trace/trace_buf.c
32373 --- ncurses-5.3/ncurses/trace/trace_buf.c Sat Jul 13 19:08:08 2002
32374 +++ ncurses-5.3.20030906.orig/ncurses/trace/trace_buf.c Tue May 13 20:08:22 2003
32376 /****************************************************************************
32377 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
32378 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
32380 * Permission is hereby granted, free of charge, to any person obtaining a *
32381 * copy of this software and associated documentation files (the *
32382 @@ -35,15 +35,15 @@
32384 #include <curses.priv.h>
32386 -MODULE_ID("$Id: trace_buf.c,v 1.11 2002/07/14 00:08:08 tom Exp $")
32387 +MODULE_ID("$Id: trace_buf.c,v 1.12 2003/03/15 21:21:36 tom Exp $")
32394 -NCURSES_EXPORT(char *)
32395 -_nc_trace_buf(int bufnum, size_t want)
32397 +_nc_trace_alloc(int bufnum, size_t want)
32402 list[bufnum].size = want;
32405 - if (list[bufnum].text != 0)
32406 - *(list[bufnum].text) = '\0';
32407 result = list[bufnum].text;
32416 + * (re)Allocate a buffer big enough for the caller's wants.
32418 +NCURSES_EXPORT(char *)
32419 +_nc_trace_buf(int bufnum, size_t want)
32421 + char *result = _nc_trace_alloc(bufnum, want);
32428 + * Append a new string to an existing buffer.
32430 +NCURSES_EXPORT(char *)
32431 +_nc_trace_bufcat(int bufnum, const char *value)
32433 + char *buffer = _nc_trace_alloc(bufnum, 0);
32434 + size_t have = strlen(buffer);
32436 + buffer = _nc_trace_alloc(bufnum, 1 + have + strlen(value));
32437 + (void) strcpy(buffer + have, value);
32441 diff -urNd -urNd ncurses-5.3/ncurses/trace/varargs.c ncurses-5.3.20030906.orig/ncurses/trace/varargs.c
32442 --- ncurses-5.3/ncurses/trace/varargs.c Sat Oct 5 18:04:17 2002
32443 +++ ncurses-5.3.20030906.orig/ncurses/trace/varargs.c Sun Jul 20 14:02:08 2003
32445 /****************************************************************************
32446 - * Copyright (c) 2001,2002 Free Software Foundation, Inc. *
32447 + * Copyright (c) 2001-2002,2003 Free Software Foundation, Inc. *
32449 * Permission is hereby granted, free of charge, to any person obtaining a *
32450 * copy of this software and associated documentation files (the *
32455 -MODULE_ID("$Id: varargs.c,v 1.3 2002/10/05 23:04:17 tom Exp $")
32456 +MODULE_ID("$Id: varargs.c,v 1.4 2003/05/24 21:10:28 tom Exp $")
32462 #define VA_INT(type) ival = va_arg(ap, type)
32463 #define VA_FLT(type) fval = va_arg(ap, type)
32464 -#define VA_PTR(type) pval = (void *)va_arg(ap, type)
32465 +#define VA_PTR(type) pval = (char *)va_arg(ap, type)
32466 #define VA_STR(type) sval = va_arg(ap, type)
32469 diff -urNd -urNd ncurses-5.3/ncurses/trace/visbuf.c ncurses-5.3.20030906.orig/ncurses/trace/visbuf.c
32470 --- ncurses-5.3/ncurses/trace/visbuf.c Sat Oct 5 19:03:43 2002
32471 +++ ncurses-5.3.20030906.orig/ncurses/trace/visbuf.c Sun Jul 20 14:02:09 2003
32473 /****************************************************************************
32474 - * Copyright (c) 2001 Free Software Foundation, Inc. *
32475 + * Copyright (c) 2001-2002,2003 Free Software Foundation, Inc. *
32477 * Permission is hereby granted, free of charge, to any person obtaining a *
32478 * copy of this software and associated documentation files (the *
32480 ****************************************************************************/
32482 /****************************************************************************
32483 - * Author: Thomas E. Dickey 1996-2001 *
32484 + * Author: Thomas E. Dickey 1996-2003 *
32485 * and: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
32486 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
32487 ****************************************************************************/
32492 -MODULE_ID("$Id: visbuf.c,v 1.6 2002/10/06 00:03:43 tom Exp $")
32493 +MODULE_ID("$Id: visbuf.c,v 1.8 2003/06/28 23:20:37 tom Exp $")
32496 _nc_vischar(char *tp, unsigned c)
32497 @@ -187,9 +187,7 @@
32498 NCURSES_EXPORT(const char *)
32499 _nc_viscbuf2(int bufnum, const cchar_t * buf, int len)
32501 - size_t have = BUFSIZ;
32502 - char *result = _nc_trace_buf(bufnum, have);
32503 - char *tp = result;
32504 + char *result = _nc_trace_buf(bufnum, BUFSIZ);
32507 attr_t attr = A_NORMAL;
32508 @@ -211,17 +209,18 @@
32509 * detailed trace function that displays each character separately.
32513 + static const char d_quote[] =
32516 + result = _nc_trace_bufcat(bufnum, d_quote);
32517 while (len-- > 0) {
32518 if ((found = _nc_altcharset_name(attr, CharOfD(buf))) != 0) {
32519 - (void) strcpy(tp, found);
32520 - tp += strlen(tp);
32521 + result = _nc_trace_bufcat(bufnum, found);
32522 attr &= ~A_ALTCHARSET;
32523 } else if (!isnac(CHDEREF(buf))) {
32526 - memset(&PUT_st, '\0', sizeof(PUT_st));
32530 PUTC_ch = PUTC_i < CCHARW_MAX ? buf->chars[PUTC_i] : L'\0';
32531 PUTC_n = wcrtomb(PUTC_buf, buf->chars[PUTC_i], &PUT_st);
32532 @@ -230,33 +229,31 @@
32535 for (n = 0; n < PUTC_n; n++) {
32536 - tp = _nc_vischar(tp, UChar(PUTC_buf[n]));
32538 + _nc_vischar(temp, UChar(PUTC_buf[n]));
32539 + result = _nc_trace_bufcat(bufnum, temp);
32542 } while (PUTC_ch != L'\0');
32548 - if (attr != A_NORMAL)
32549 - (void) sprintf(tp, " | %s",
32550 - _traceattr2(bufnum + 20, attr));
32551 + result = _nc_trace_bufcat(bufnum, d_quote);
32552 + if (attr != A_NORMAL) {
32553 + result = _nc_trace_bufcat(bufnum, " | ");
32554 + result = _nc_trace_bufcat(bufnum, _traceattr2(bufnum + 20, attr));
32558 + static const char l_brace[] =
32560 + static const char r_brace[] =
32562 + strcpy(result, l_brace);
32563 while (len-- > 0) {
32564 - char *temp = _tracecchar_t2(bufnum + 20, buf++);
32565 - size_t used = (tp - result);
32566 - size_t want = strlen(temp) + 5 + used;
32567 - if (want > have) {
32568 - result = _nc_trace_buf(bufnum, have = want);
32569 - tp = result + used;
32571 - (void) strcpy(tp, temp);
32572 - tp += strlen(tp);
32573 + result = _nc_trace_bufcat(bufnum,
32574 + _tracecchar_t2(bufnum + 20, buf++));
32578 + result = _nc_trace_bufcat(bufnum, r_brace);
32582 diff -urNd -urNd ncurses-5.3/ncurses/tty/lib_mvcur.c ncurses-5.3.20030906.orig/ncurses/tty/lib_mvcur.c
32583 --- ncurses-5.3/ncurses/tty/lib_mvcur.c Sat Sep 14 18:02:06 2002
32584 +++ ncurses-5.3.20030906.orig/ncurses/tty/lib_mvcur.c Fri Sep 12 16:42:24 2003
32586 /****************************************************************************
32587 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
32588 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
32590 * Permission is hereby granted, free of charge, to any person obtaining a *
32591 * copy of this software and associated documentation files (the *
32592 @@ -108,7 +108,9 @@
32593 * LONG_DIST and (b) further inward from the right or left edge than LONG_DIST,
32594 * we'll consider nonlocal.
32596 -#define NOT_LOCAL(fy, fx, ty, tx) ((tx > LONG_DIST) && (tx < screen_lines - 1 - LONG_DIST) && (abs(ty-fy) + abs(tx-fx) > LONG_DIST))
32597 +#define NOT_LOCAL(fy, fx, ty, tx) ((tx > LONG_DIST) \
32598 + && (tx < screen_columns - 1 - LONG_DIST) \
32599 + && (abs(ty-fy) + abs(tx-fx) > LONG_DIST))
32601 /****************************************************************************
32603 @@ -152,12 +154,8 @@
32607 -MODULE_ID("$Id: lib_mvcur.c,v 1.86 2002/09/14 23:02:06 Philippe.Blain Exp $")
32608 +MODULE_ID("$Id: lib_mvcur.c,v 1.93 2003/08/23 21:51:58 tom Exp $")
32610 -#define CURRENT_ROW SP->_cursrow /* phys cursor row */
32611 -#define CURRENT_COLUMN SP->_curscol /* phys cursor column */
32612 -#define CURRENT_ATTR SP->_current_attr /* current phys attribute */
32613 -#define REAL_ATTR SP->_current_attr /* phys current attribute */
32614 #define WANT_CHAR(y, x) SP->_newscr->_line[y].text[x] /* desired state */
32615 #define BAUDRATE cur_term->_baudrate /* bits per second */
32617 @@ -296,10 +294,11 @@
32618 _nc_mvcur_init(void)
32619 /* initialize the cost structure */
32622 - * 9 = 7 bits + 1 parity + 1 stop.
32624 - SP->_char_padding = (9 * 1000 * 10) / (BAUDRATE > 0 ? BAUDRATE : 9600);
32625 + if (isatty(fileno(SP->_ofp)))
32626 + SP->_char_padding = ((BAUDBYTE * 1000 * 10)
32627 + / (BAUDRATE > 0 ? BAUDRATE : 9600));
32629 + SP->_char_padding = 1; /* must be nonzero */
32630 if (SP->_char_padding <= 0)
32631 SP->_char_padding = 1; /* must be nonzero */
32632 TR(TRACE_CHARPUT | TRACE_MOVE, ("char_padding %d msecs", SP->_char_padding));
32633 @@ -371,6 +370,13 @@
32634 SP->_dch1_cost = NormalizedCost(delete_character, 1);
32635 SP->_ich1_cost = NormalizedCost(insert_character, 1);
32638 + * If this is a bce-terminal, we want to bias the choice so we use clr_eol
32639 + * rather than spaces at the end of a line.
32641 + if (back_color_erase)
32642 + SP->_el_cost = 0;
32644 /* parameterized screen-update strings */
32645 SP->_dch_cost = NormalizedCost(tparm(parm_dch, 23), 1);
32646 SP->_ich_cost = NormalizedCost(tparm(parm_ich, 23), 1);
32647 @@ -508,10 +514,10 @@
32648 n = (from_y - to_y);
32651 - && SP->_cup_cost < vcost
32652 + && SP->_cuu_cost < vcost
32653 && _nc_safe_strcat(_nc_str_copy(target, &save),
32654 tparm(parm_up_cursor, n))) {
32655 - vcost = SP->_cup_cost;
32656 + vcost = SP->_cuu_cost;
32659 if (cursor_up && (n * SP->_cuu1_cost < vcost)) {
32660 @@ -570,7 +576,6 @@
32662 #endif /* USE_HARD_TABS */
32664 -#if defined(REAL_ATTR) && defined(WANT_CHAR)
32665 if (n <= 0 || n >= (int) check.s_size)
32668 @@ -601,7 +606,7 @@
32670 for (i = 0; i < n; i++) {
32671 NCURSES_CH_T ch = WANT_CHAR(to_y, from_x + i);
32672 - if (AttrOf(ch) != CURRENT_ATTR
32673 + if (AttrOf(ch) != SP->_current_attr
32674 #if USE_WIDEC_SUPPORT
32677 @@ -619,9 +624,7 @@
32678 *check.s_tail = '\0';
32680 lhcost += n * SP->_char_padding;
32682 -#endif /* defined(REAL_ATTR) && defined(WANT_CHAR) */
32685 lhcost = repeated_append(&check, lhcost, SP->_cuf1_cost,
32688 @@ -831,6 +834,8 @@
32689 if (usecost != INFINITY) {
32690 TPUTS_TRACE("mvcur");
32691 tputs(buffer, 1, _nc_outch);
32692 + SP->_cursrow = ynew;
32693 + SP->_curscol = xnew;
32697 @@ -840,67 +845,94 @@
32698 mvcur(int yold, int xold, int ynew, int xnew)
32699 /* optimized cursor move from (yold, xold) to (ynew, xnew) */
32704 TR(TRACE_CALLS | TRACE_MOVE, (T_CALLED("mvcur(%d,%d,%d,%d)"),
32705 yold, xold, ynew, xnew));
32711 + } else if (yold == ynew && xold == xnew) {
32715 - if (yold == ynew && xold == xnew)
32718 + * Most work here is rounding for terminal boundaries getting the
32719 + * column position implied by wraparound or the lack thereof and
32720 + * rolling up the screen to get ynew on the screen.
32722 + if (xnew >= screen_columns) {
32723 + ynew += xnew / screen_columns;
32724 + xnew %= screen_columns;
32728 - * Most work here is rounding for terminal boundaries getting the
32729 - * column position implied by wraparound or the lack thereof and
32730 - * rolling up the screen to get ynew on the screen.
32733 + * Force restore even if msgr is on when we're in an alternate
32734 + * character set -- these have a strong tendency to screw up the CR &
32735 + * LF used for local character motions!
32737 + oldattr = SP->_current_attr;
32738 + if ((oldattr & A_ALTCHARSET)
32739 + || (oldattr && !move_standout_mode)) {
32740 + TR(TRACE_CHARPUT, ("turning off (%#lx) %s before move",
32741 + oldattr, _traceattr(oldattr)));
32742 + (void) vidattr(A_NORMAL);
32745 - if (xnew >= screen_columns) {
32746 - ynew += xnew / screen_columns;
32747 - xnew %= screen_columns;
32749 - if (xold >= screen_columns) {
32751 + if (xold >= screen_columns) {
32755 - l = (xold + 1) / screen_columns;
32757 - if (yold >= screen_lines)
32758 - l -= (yold - screen_lines - 1);
32760 + l = (xold + 1) / screen_columns;
32762 + if (yold >= screen_lines)
32763 + l -= (yold - screen_lines - 1);
32767 - TPUTS_TRACE("newline");
32768 - tputs(newline, 0, _nc_outch);
32773 - if (carriage_return) {
32774 - TPUTS_TRACE("carriage_return");
32775 - tputs(carriage_return, 0, _nc_outch);
32778 + TPUTS_TRACE("newline");
32786 + if (carriage_return) {
32787 + TPUTS_TRACE("carriage_return");
32788 + putp(carriage_return);
32796 + * If caller set nonl(), we cannot really use newlines to
32797 + * position to the next row.
32804 - * If caller set nonl(), we cannot really use newlines to position
32805 - * to the next row.
32812 - if (yold > screen_lines - 1)
32813 - yold = screen_lines - 1;
32814 - if (ynew > screen_lines - 1)
32815 - ynew = screen_lines - 1;
32816 + if (yold > screen_lines - 1)
32817 + yold = screen_lines - 1;
32818 + if (ynew > screen_lines - 1)
32819 + ynew = screen_lines - 1;
32821 - /* destination location is on screen now */
32822 - returnCode(onscreen_mvcur(yold, xold, ynew, xnew, TRUE));
32823 + /* destination location is on screen now */
32824 + code = onscreen_mvcur(yold, xold, ynew, xnew, TRUE);
32827 + * Restore attributes if we disabled them before moving.
32829 + if (oldattr != SP->_current_attr) {
32830 + TR(TRACE_CHARPUT, ("turning on (%#lx) %s after move",
32831 + oldattr, _traceattr(oldattr)));
32832 + (void) vidattr(oldattr);
32835 + returnCode(code);
32838 #if defined(TRACE) || defined(NCURSES_TEST)
32839 diff -urNd -urNd ncurses-5.3/ncurses/tty/lib_twait.c ncurses-5.3.20030906.orig/ncurses/tty/lib_twait.c
32840 --- ncurses-5.3/ncurses/tty/lib_twait.c Sat Aug 31 19:28:18 2002
32841 +++ ncurses-5.3.20030906.orig/ncurses/tty/lib_twait.c Tue May 13 20:08:22 2003
32846 -MODULE_ID("$Id: lib_twait.c,v 1.46 2002/09/01 00:28:18 tom Exp $")
32847 +MODULE_ID("$Id: lib_twait.c,v 1.47 2003/01/25 18:21:17 tom Exp $")
32850 _nc_gettime(bool first)
32851 @@ -388,7 +388,7 @@
32852 * then come back for more.
32854 if (result == 0 && milliseconds > 100) {
32856 + napms(100); /* FIXME: this won't be right if I recur! */
32857 milliseconds -= 100;
32860 diff -urNd -urNd ncurses-5.3/ncurses/tty/tty_display.h ncurses-5.3.20030906.orig/ncurses/tty/tty_display.h
32861 --- ncurses-5.3/ncurses/tty/tty_display.h Sat Dec 9 20:27:01 2000
32862 +++ ncurses-5.3.20030906.orig/ncurses/tty/tty_display.h Fri Sep 12 16:41:41 2003
32864 /****************************************************************************
32865 - * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
32866 + * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc. *
32868 * Permission is hereby granted, free of charge, to any person obtaining a *
32869 * copy of this software and associated documentation files (the *
32871 #ifndef TTY_DISPLAY_H
32872 #define TTY_DISPLAY_H 1
32875 + * $Id: tty_display.h,v 1.5 2003/08/02 22:59:07 Philippe.Blain Exp $
32877 extern NCURSES_EXPORT(bool) _nc_tty_beep (void);
32878 extern NCURSES_EXPORT(bool) _nc_tty_check_resize (void);
32879 extern NCURSES_EXPORT(bool) _nc_tty_cursor (int);
32880 @@ -111,7 +114,7 @@
32881 : ((enter_insert_mode && exit_insert_mode) \
32882 ? D->_smir_cost + D->_rmir_cost + (D->_ip_cost * count) \
32883 : ((insert_character != 0) \
32884 - ? (D->_ich1_cost * count) \
32885 + ? ((D->_ich1_cost + D->_ip_cost) * count) \
32888 #if USE_XMC_SUPPORT
32889 diff -urNd -urNd ncurses-5.3/ncurses/tty/tty_update.c ncurses-5.3.20030906.orig/ncurses/tty/tty_update.c
32890 --- ncurses-5.3/ncurses/tty/tty_update.c Sat Sep 28 15:41:55 2002
32891 +++ ncurses-5.3.20030906.orig/ncurses/tty/tty_update.c Fri Sep 12 16:42:24 2003
32893 /****************************************************************************
32894 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
32895 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
32897 * Permission is hereby granted, free of charge, to any person obtaining a *
32898 * copy of this software and associated documentation files (the *
32900 /****************************************************************************
32901 * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
32902 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
32903 + * and: Thomas E. Dickey 1996-2002 *
32904 ****************************************************************************/
32906 /*-----------------------------------------------------------------
32911 -MODULE_ID("$Id: tty_update.c,v 1.177 2002/09/28 20:41:55 tom Exp $")
32912 +MODULE_ID("$Id: tty_update.c,v 1.199 2003/08/23 21:25:08 tom Exp $")
32915 * This define controls the line-breakout optimization. Every once in a
32916 @@ -165,61 +166,90 @@
32918 GoTo(int const row, int const col)
32920 - attr_t oldattr = SP->_current_attr;
32922 TR(TRACE_MOVE, ("GoTo(%d, %d) from (%d, %d)",
32923 row, col, SP->_cursrow, SP->_curscol));
32925 position_check(SP->_cursrow, SP->_curscol, "GoTo");
32928 - * Force restore even if msgr is on when we're in an alternate
32929 - * character set -- these have a strong tendency to screw up the
32930 - * CR & LF used for local character motions!
32932 - if ((oldattr & A_ALTCHARSET)
32933 - || (oldattr && !move_standout_mode)) {
32934 - TR(TRACE_CHARPUT, ("turning off (%#lx) %s before move",
32935 - oldattr, _traceattr(oldattr)));
32936 - vidattr(A_NORMAL);
32939 mvcur(SP->_cursrow, SP->_curscol, row, col);
32940 - SP->_cursrow = row;
32941 - SP->_curscol = col;
32942 position_check(SP->_cursrow, SP->_curscol, "GoTo2");
32946 PutAttrChar(CARG_CH_T ch)
32949 + NCURSES_CH_T my_ch;
32951 NCURSES_CH_T tilde;
32952 + NCURSES_ATTR_T attr = AttrOfD(ch);
32954 + TR(TRACE_CHARPUT, ("PutAttrChar(%s) at (%d, %d)",
32956 + SP->_cursrow, SP->_curscol));
32957 +#if USE_WIDEC_SUPPORT
32959 + * If this is not a valid character, there is nothing more to do.
32961 + if (isnac(CHDEREF(ch)))
32964 + * Determine the number of character cells which the 'ch' value will use
32965 + * on the screen. It should be at least one.
32967 + if ((chlen = wcwidth(CharOf(CHDEREF(ch)))) <= 0) {
32968 + static NCURSES_CH_T blank = NewChar(BLANK_TEXT);
32970 + ch = CHREF(blank);
32972 + TR(TRACE_CHARPUT, ("forced to blank"));
32976 + if ((attr & A_ALTCHARSET)
32977 + && SP->_acs_map != 0
32978 + && CharOfD(ch) < ACS_LEN) {
32979 + my_ch = CHDEREF(ch); /* work around const param */
32980 +#if USE_WIDEC_SUPPORT
32982 + * This is crude & ugly, but works most of the time. It checks if the
32983 + * acs_chars string specified that we have a mapping for this
32984 + * character, and uses the wide-character mapping when we expect the
32985 + * normal one to be broken (by mis-design ;-).
32987 + if (SP->_screen_acs_fix
32988 + && SP->_acs_map[CharOf(my_ch)] & A_ALTCHARSET) {
32989 + attr &= ~(A_ALTCHARSET);
32990 + my_ch = _nc_wacs[CharOf(my_ch)];
32993 + if (attr & A_ALTCHARSET) {
32994 + chtype temp = UChar(SP->_acs_map[CharOfD(ch)]);
32996 + SetChar(my_ch, temp, attr);
32997 + RemAttr(my_ch, A_ALTCHARSET);
32999 + ch = CHREF(my_ch);
33001 if (tilde_glitch && (CharOfD(ch) == L('~'))) {
33002 - SetChar(tilde, L('`'), AttrOfD(ch));
33003 + SetChar(tilde, L('`'), attr);
33007 - TR(TRACE_CHARPUT, ("PutAttrChar(%s) at (%d, %d)",
33009 - SP->_cursrow, SP->_curscol));
33010 - UpdateAttrs(AttrOfD(ch));
33011 + UpdateAttrs(attr);
33012 #if !USE_WIDEC_SUPPORT
33013 /* FIXME - we do this special case for signal handling, should see how to
33014 * make it work for wide characters.
33016 if (SP->_outch != 0) {
33017 - SP->_outch((int) ch);
33018 + SP->_outch(UChar(ch));
33022 PUTC(CHDEREF(ch), SP->_ofp); /* macro's fastest... */
33025 -#endif /* TRACE */
33026 + TRACE_OUTCHARS(1);
33029 + SP->_curscol += chlen;
33030 if (char_padding) {
33031 TPUTS_TRACE("char_padding");
33032 putp(char_padding);
33033 @@ -456,7 +486,8 @@
33036 UpdateAttrs(AttrOf(ntext0));
33037 - putp(tparm(repeat_char, CharOf(ntext0), rep_count));
33038 + tputs(tparm(repeat_char, CharOf(ntext0), rep_count),
33039 + rep_count, _nc_outch);
33040 SP->_curscol += rep_count;
33043 @@ -888,12 +919,12 @@
33045 UpdateAttrs(AttrOf(blank));
33046 TPUTS_TRACE("clr_eol");
33047 - if (SP->_el_cost > (screen_columns - SP->_curscol)) {
33048 + if (clr_eol && SP->_el_cost <= (screen_columns - SP->_curscol)) {
33051 int count = (screen_columns - SP->_curscol);
33052 while (count-- > 0)
33053 PutChar(CHREF(blank));
33059 @@ -939,7 +970,7 @@
33062 int last = min(screen_columns, newscr->_maxx + 1);
33063 - NCURSES_CH_T blank = ClrBlank(stdscr);
33064 + NCURSES_CH_T blank = newscr->_line[total - 1].text[last - 1];
33067 if (clr_eos && can_clear_with(CHREF(blank))) {
33068 @@ -959,17 +990,16 @@
33071 /* don't use clr_eos for just one line if clr_eol available */
33072 - if (top < total - 1 || (top < total && !clr_eol && !clr_bol)) {
33073 + if (top < total) {
33077 if (SP->oldhash && SP->newhash) {
33078 for (row = top; row < screen_lines; row++)
33079 SP->oldhash[row] = SP->newhash[row];
33087 #if USE_XMC_SUPPORT
33088 @@ -1314,7 +1344,7 @@
33090 UpdateAttrs(AttrOf(blank));
33091 TPUTS_TRACE("clr_eos");
33093 + tputs(clr_eos, screen_lines, _nc_outch);
33094 } else if (clr_eol) {
33095 SP->_cursrow = SP->_curscol = -1;
33097 @@ -1478,12 +1508,12 @@
33099 UpdateAttrs(AttrOf(blank));
33100 TPUTS_TRACE("scroll_forward");
33101 - tputs(scroll_forward, 0, _nc_outch);
33102 + putp(scroll_forward);
33103 } else if (n == 1 && delete_line && bot == maxy) {
33105 UpdateAttrs(AttrOf(blank));
33106 TPUTS_TRACE("delete_line");
33107 - tputs(delete_line, 0, _nc_outch);
33108 + putp(delete_line);
33109 } else if (parm_index && top == miny && bot == maxy) {
33111 UpdateAttrs(AttrOf(blank));
33112 @@ -1499,14 +1529,14 @@
33113 UpdateAttrs(AttrOf(blank));
33114 for (i = 0; i < n; i++) {
33115 TPUTS_TRACE("scroll_forward");
33116 - tputs(scroll_forward, 0, _nc_outch);
33117 + putp(scroll_forward);
33119 } else if (delete_line && bot == maxy) {
33121 UpdateAttrs(AttrOf(blank));
33122 for (i = 0; i < n; i++) {
33123 TPUTS_TRACE("delete_line");
33124 - tputs(delete_line, 0, _nc_outch);
33125 + putp(delete_line);
33129 @@ -1536,12 +1566,12 @@
33131 UpdateAttrs(AttrOf(blank));
33132 TPUTS_TRACE("scroll_reverse");
33133 - tputs(scroll_reverse, 0, _nc_outch);
33134 + putp(scroll_reverse);
33135 } else if (n == 1 && insert_line && bot == maxy) {
33137 UpdateAttrs(AttrOf(blank));
33138 TPUTS_TRACE("insert_line");
33139 - tputs(insert_line, 0, _nc_outch);
33140 + putp(insert_line);
33141 } else if (parm_rindex && top == miny && bot == maxy) {
33143 UpdateAttrs(AttrOf(blank));
33144 @@ -1557,14 +1587,14 @@
33145 UpdateAttrs(AttrOf(blank));
33146 for (i = 0; i < n; i++) {
33147 TPUTS_TRACE("scroll_reverse");
33148 - tputs(scroll_reverse, 0, _nc_outch);
33149 + putp(scroll_reverse);
33151 } else if (insert_line && bot == maxy) {
33153 UpdateAttrs(AttrOf(blank));
33154 for (i = 0; i < n; i++) {
33155 TPUTS_TRACE("insert_line");
33156 - tputs(insert_line, 0, _nc_outch);
33157 + putp(insert_line);
33161 @@ -1596,14 +1626,14 @@
33162 UpdateAttrs(AttrOf(blank));
33163 if (n == 1 && delete_line) {
33164 TPUTS_TRACE("delete_line");
33165 - tputs(delete_line, 0, _nc_outch);
33166 + putp(delete_line);
33167 } else if (parm_delete_line) {
33168 TPUTS_TRACE("parm_delete_line");
33169 tputs(tparm(parm_delete_line, n, 0), n, _nc_outch);
33170 } else { /* if (delete_line) */
33171 for (i = 0; i < n; i++) {
33172 TPUTS_TRACE("delete_line");
33173 - tputs(delete_line, 0, _nc_outch);
33174 + putp(delete_line);
33178 @@ -1611,20 +1641,28 @@
33179 UpdateAttrs(AttrOf(blank));
33180 if (n == 1 && insert_line) {
33181 TPUTS_TRACE("insert_line");
33182 - tputs(insert_line, 0, _nc_outch);
33183 + putp(insert_line);
33184 } else if (parm_insert_line) {
33185 TPUTS_TRACE("parm_insert_line");
33186 tputs(tparm(parm_insert_line, n, 0), n, _nc_outch);
33187 } else { /* if (insert_line) */
33188 for (i = 0; i < n; i++) {
33189 TPUTS_TRACE("insert_line");
33190 - tputs(insert_line, 0, _nc_outch);
33191 + putp(insert_line);
33199 + * Note: some terminals require the cursor to be within the scrolling margins
33200 + * before setting them. Generally, the cursor must be at the appropriate end
33201 + * of the scrolling margins when issuing an indexing operation (it is not
33202 + * apparent whether it must also be at the left margin; we do this just to be
33203 + * safe). To make the related cursor movement a little faster, we use the
33204 + * save/restore cursor capabilities if the terminal has them.
33206 NCURSES_EXPORT(int)
33207 _nc_scrolln(int n, int top, int bot, int maxy)
33208 /* scroll region from top to bot by n lines */
33209 @@ -1658,13 +1696,13 @@
33210 && save_cursor && restore_cursor) {
33211 cursor_saved = TRUE;
33212 TPUTS_TRACE("save_cursor");
33213 - tputs(save_cursor, 0, _nc_outch);
33214 + putp(save_cursor);
33216 TPUTS_TRACE("change_scroll_region");
33217 - tputs(tparm(change_scroll_region, top, bot), 0, _nc_outch);
33218 + putp(tparm(change_scroll_region, top, bot));
33219 if (cursor_saved) {
33220 TPUTS_TRACE("restore_cursor");
33221 - tputs(restore_cursor, 0, _nc_outch);
33222 + putp(restore_cursor);
33224 SP->_cursrow = SP->_curscol = -1;
33226 @@ -1672,7 +1710,7 @@
33227 res = scroll_csr_forward(n, top, bot, top, bot, blank);
33229 TPUTS_TRACE("change_scroll_region");
33230 - tputs(tparm(change_scroll_region, 0, maxy), 0, _nc_outch);
33231 + putp(tparm(change_scroll_region, 0, maxy));
33232 SP->_cursrow = SP->_curscol = -1;
33235 @@ -1686,7 +1724,7 @@
33236 && (non_dest_scroll_region || (memory_below && bot == maxy))) {
33237 NCURSES_CH_T blank2 = NewChar(BLANK_TEXT);
33238 if (bot == maxy && clr_eos) {
33239 - GoTo(bot - n, 0);
33240 + GoTo(bot - n + 1, 0);
33243 for (i = 0; i < n; i++) {
33244 @@ -1704,13 +1742,13 @@
33245 && save_cursor && restore_cursor) {
33246 cursor_saved = TRUE;
33247 TPUTS_TRACE("save_cursor");
33248 - tputs(save_cursor, 0, _nc_outch);
33249 + putp(save_cursor);
33251 TPUTS_TRACE("change_scroll_region");
33252 - tputs(tparm(change_scroll_region, top, bot), 0, _nc_outch);
33253 + putp(tparm(change_scroll_region, top, bot));
33254 if (cursor_saved) {
33255 TPUTS_TRACE("restore_cursor");
33256 - tputs(restore_cursor, 0, _nc_outch);
33257 + putp(restore_cursor);
33259 SP->_cursrow = SP->_curscol = -1;
33261 @@ -1718,7 +1756,7 @@
33262 res = scroll_csr_backward(-n, top, bot, top, bot, blank);
33264 TPUTS_TRACE("change_scroll_region");
33265 - tputs(tparm(change_scroll_region, 0, maxy), 0, _nc_outch);
33266 + putp(tparm(change_scroll_region, 0, maxy));
33267 SP->_cursrow = SP->_curscol = -1;
33270 @@ -1811,8 +1849,6 @@
33271 SP->_default_color = FALSE;
33273 mvcur(SP->_cursrow, SP->_curscol, screen_lines - 1, 0);
33274 - SP->_cursrow = screen_lines - 1;
33275 - SP->_curscol = 0;
33277 ClrToEOL(blank, TRUE);
33279 diff -urNd -urNd ncurses-5.3/ncurses/widechar/charable.c ncurses-5.3.20030906.orig/ncurses/widechar/charable.c
33280 --- ncurses-5.3/ncurses/widechar/charable.c Wed Dec 31 18:00:00 1969
33281 +++ ncurses-5.3.20030906.orig/ncurses/widechar/charable.c Sun Jul 20 14:02:09 2003
33283 +/****************************************************************************
33284 + * Copyright (c) 2003 Free Software Foundation, Inc. *
33286 + * Permission is hereby granted, free of charge, to any person obtaining a *
33287 + * copy of this software and associated documentation files (the *
33288 + * "Software"), to deal in the Software without restriction, including *
33289 + * without limitation the rights to use, copy, modify, merge, publish, *
33290 + * distribute, distribute with modifications, sublicense, and/or sell *
33291 + * copies of the Software, and to permit persons to whom the Software is *
33292 + * furnished to do so, subject to the following conditions: *
33294 + * The above copyright notice and this permission notice shall be included *
33295 + * in all copies or substantial portions of the Software. *
33297 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
33298 + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
33299 + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
33300 + * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
33301 + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
33302 + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
33303 + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
33305 + * Except as contained in this notice, the name(s) of the above copyright *
33306 + * holders shall not be used in advertising or otherwise to promote the *
33307 + * sale, use or other dealings in this Software without prior written *
33308 + * authorization. *
33309 + ****************************************************************************/
33312 +** Support functions for wide/narrow conversion.
33315 +#include <curses.priv.h>
33317 +MODULE_ID("$Id: charable.c,v 1.2 2003/07/05 18:04:08 tom Exp $")
33319 +NCURSES_EXPORT(bool) _nc_is_charable(wchar_t ch)
33323 + result = (wctob(ch) == ch);
33325 + result = (_nc_to_char(ch) >= 0);
33330 +NCURSES_EXPORT(int) _nc_to_char(wint_t ch)
33334 + result = wctob(ch);
33336 + char temp[MB_LEN_MAX];
33337 + result = wctomb(temp, ch);
33338 + if (strlen(temp) == 1)
33339 + result = UChar(temp[0]);
33346 +NCURSES_EXPORT(wint_t) _nc_to_widechar(int ch)
33350 + result = btowc(ch);
33355 + if (mbtowc((wchar_t *) (&result), temp, 1) != 1)
33360 diff -urNd -urNd ncurses-5.3/ncurses/widechar/lib_cchar.c ncurses-5.3.20030906.orig/ncurses/widechar/lib_cchar.c
33361 --- ncurses-5.3/ncurses/widechar/lib_cchar.c Sat Aug 10 17:27:37 2002
33362 +++ ncurses-5.3.20030906.orig/ncurses/widechar/lib_cchar.c Sun Jul 20 14:02:08 2003
33364 /****************************************************************************
33365 - * Copyright (c) 2001,2002 Free Software Foundation, Inc. *
33366 + * Copyright (c) 2001-2002,2003 Free Software Foundation, Inc. *
33368 * Permission is hereby granted, free of charge, to any person obtaining a *
33369 * copy of this software and associated documentation files (the *
33372 #include <curses.priv.h>
33374 -MODULE_ID("$Id: lib_cchar.c,v 1.6 2002/08/10 22:27:37 tom Exp $")
33375 +MODULE_ID("$Id: lib_cchar.c,v 1.8 2003/05/25 00:07:41 tom Exp $")
33378 * The SuSv2 description leaves some room for interpretation. We'll assume wch
33379 @@ -55,26 +55,28 @@
33380 wcval, _nc_viswbuf(wch), attrs, color_pair, opts));
33382 if (opts != NULL || (len = wcslen(wch)) > CCHARW_MAX
33383 - || (len > 0 && wcwidth(wch[0]) < 0)) {
33384 + || (len > 1 && wcwidth(wch[0]) < 0)) {
33389 + * If we have a following spacing-character, stop at that point. We
33390 + * are only interested in adding non-spacing characters.
33392 for (i = 1; i < len; ++i) {
33393 if (wcwidth(wch[i]) != 0) {
33400 - if (code != ERR) {
33401 - memset(wcval, 0, sizeof(*wcval));
33402 + memset(wcval, 0, sizeof(*wcval));
33405 - SetAttr(*wcval, attrs | color_pair);
33406 - memcpy(&wcval->chars, wch, len * sizeof(wchar_t));
33407 - TR(TRACE_CCALLS, ("copy %d wchars, first is %s", len,
33408 - _tracecchar_t(wcval)));
33411 + SetAttr(*wcval, attrs | color_pair);
33412 + memcpy(&wcval->chars, wch, len * sizeof(wchar_t));
33413 + TR(TRACE_CCALLS, ("copy %d wchars, first is %s", len,
33414 + _tracecchar_t(wcval)));
33418 @@ -100,6 +102,8 @@
33422 + } else if (attrs == 0 || color_pair == 0) {
33424 } else if (len >= 0) {
33425 *attrs = AttrOf(*wcval);
33426 *color_pair = AttrOf(*wcval) & A_COLOR;
33427 diff -urNd -urNd ncurses-5.3/ncurses/widechar/lib_get_wstr.c ncurses-5.3.20030906.orig/ncurses/widechar/lib_get_wstr.c
33428 --- ncurses-5.3/ncurses/widechar/lib_get_wstr.c Sat Jul 20 14:28:29 2002
33429 +++ ncurses-5.3.20030906.orig/ncurses/widechar/lib_get_wstr.c Sun Jul 20 14:02:08 2003
33431 /****************************************************************************
33432 - * Copyright (c) 2002 Free Software Foundation, Inc. *
33433 + * Copyright (c) 2002,2003 Free Software Foundation, Inc. *
33435 * Permission is hereby granted, free of charge, to any person obtaining a *
33436 * copy of this software and associated documentation files (the *
33438 #include <curses.priv.h>
33441 -MODULE_ID("$Id: lib_get_wstr.c,v 1.4 2002/07/20 19:28:29 tom Exp $")
33442 +MODULE_ID("$Id: lib_get_wstr.c,v 1.6 2003/05/17 21:33:03 tom Exp $")
33445 * This wipes out the last character, no matter whether it was a tab, control
33446 @@ -109,6 +109,25 @@
33449 while ((code = wget_wch(win, &ch)) != ERR) {
33451 + * Map special characters into key-codes.
33455 + if (ch == '\n') {
33456 + code = KEY_CODE_YES;
33459 + if (ch < KEY_MIN) {
33460 + if (ch == erasec) {
33461 + ch = KEY_BACKSPACE;
33462 + code = KEY_CODE_YES;
33464 + if (ch == killc) {
33466 + code = KEY_CODE_YES;
33469 if (code == KEY_CODE_YES) {
33471 * Some terminals (the Wyse-50 is the most common) generate a \n
33472 @@ -116,21 +135,18 @@
33473 * choice whether to set kcud=\n for wget_wch(); terminating
33474 * *getn_wstr() with \n should work either way.
33478 - || ch == KEY_DOWN
33479 - || ch == KEY_ENTER) {
33480 + if (ch == KEY_DOWN || ch == KEY_ENTER) {
33481 if (oldecho == TRUE
33482 && win->_cury == win->_maxy
33484 wechochar(win, (chtype) '\n');
33487 - if (ch == erasec || ch == KEY_LEFT || ch == KEY_BACKSPACE) {
33488 + if (ch == KEY_LEFT || ch == KEY_BACKSPACE) {
33489 if (tmpstr > oldstr) {
33490 tmpstr = WipeOut(win, y, x, oldstr, tmpstr, oldecho);
33492 - } else if (ch == killc) {
33493 + } else if (ch == KEY_EOL) {
33494 while (tmpstr > oldstr) {
33495 tmpstr = WipeOut(win, y, x, oldstr, tmpstr, oldecho);
33497 @@ -141,6 +157,7 @@
33502 if (oldecho == TRUE) {
33503 int oldy = win->_cury;
33505 @@ -193,7 +210,7 @@
33508 if (tmpstr == oldstr) {
33509 - *tmpstr++ = (wchar_t)WEOF;
33510 + *tmpstr++ = (wchar_t) WEOF;
33514 diff -urNd -urNd ncurses-5.3/ncurses/widechar/lib_ins_wch.c ncurses-5.3.20030906.orig/ncurses/widechar/lib_ins_wch.c
33515 --- ncurses-5.3/ncurses/widechar/lib_ins_wch.c Sun Mar 10 16:25:06 2002
33516 +++ ncurses-5.3.20030906.orig/ncurses/widechar/lib_ins_wch.c Tue May 13 20:08:22 2003
33518 /****************************************************************************
33519 - * Copyright (c) 2002 Free Software Foundation, Inc. *
33520 + * Copyright (c) 2002,2003 Free Software Foundation, Inc. *
33522 * Permission is hereby granted, free of charge, to any person obtaining a *
33523 * copy of this software and associated documentation files (the *
33524 @@ -39,16 +39,16 @@
33526 #include <curses.priv.h>
33528 -MODULE_ID("$Id: lib_ins_wch.c,v 1.1 2002/03/10 22:25:06 tom Exp $")
33529 +MODULE_ID("$Id: lib_ins_wch.c,v 1.3 2003/03/29 21:52:29 tom Exp $")
33531 -NCURSES_EXPORT(int)
33532 -wins_wch(WINDOW *win, const cchar_t * wch)
33534 + * Insert the given character, updating the current location to simplify
33535 + * inserting a string.
33538 +_nc_insert_wch(WINDOW *win, const cchar_t * wch)
33542 - T((T_CALLED("wins_wch(%p, %s)"), win, _tracecchar_t(wch)));
33545 + if (win->_curx <= win->_maxx) {
33546 struct ldat *line = &(win->_line[win->_cury]);
33547 NCURSES_CH_T *end = &(line->text[win->_curx]);
33548 NCURSES_CH_T *temp1 = &(line->text[win->_maxx]);
33550 *temp1-- = *temp2--;
33552 *temp1 = _nc_render(win, *wch);
33558 +NCURSES_EXPORT(int)
33559 +wins_wch(WINDOW *win, const cchar_t * wch)
33561 + NCURSES_SIZE_T oy;
33562 + NCURSES_SIZE_T ox;
33565 + T((T_CALLED("wins_wch(%p, %s)"), win, _tracecchar_t(wch)));
33571 + _nc_insert_wch(win, wch);
33575 + _nc_synchook(win);
33578 + returnCode(code);
33581 +NCURSES_EXPORT(int)
33582 +wins_nwstr(WINDOW *win, const wchar_t * wstr, int n)
33585 + NCURSES_SIZE_T oy;
33586 + NCURSES_SIZE_T ox;
33587 + const wchar_t *cp;
33589 + T((T_CALLED("wins_nwstr(%p,%s,%d)"), win, _nc_viswbufn(wstr, n), n));
33594 + n = wcslen(wstr);
33598 + for (cp = wstr; *cp && ((cp - wstr) < n); cp++) {
33599 + if (wcwidth(*cp) > 1) {
33600 + cchar_t tmp_cchar;
33601 + wchar_t tmp_wchar = *cp;
33602 + memset(&tmp_cchar, 0, sizeof(tmp_cchar));
33603 + (void) setcchar(&tmp_cchar,
33608 + _nc_insert_wch(win, &tmp_cchar);
33610 + _nc_insert_ch(win, *cp); /* tabs, other ASCII stuff */
33616 + _nc_synchook(win);
33621 diff -urNd -urNd ncurses-5.3/ncurses/widechar/lib_slk_wset.c ncurses-5.3.20030906.orig/ncurses/widechar/lib_slk_wset.c
33622 --- ncurses-5.3/ncurses/widechar/lib_slk_wset.c Wed Dec 31 18:00:00 1969
33623 +++ ncurses-5.3.20030906.orig/ncurses/widechar/lib_slk_wset.c Sun Jul 20 14:02:08 2003
33625 +/****************************************************************************
33626 + * Copyright (c) 2003 Free Software Foundation, Inc. *
33628 + * Permission is hereby granted, free of charge, to any person obtaining a *
33629 + * copy of this software and associated documentation files (the *
33630 + * "Software"), to deal in the Software without restriction, including *
33631 + * without limitation the rights to use, copy, modify, merge, publish, *
33632 + * distribute, distribute with modifications, sublicense, and/or sell *
33633 + * copies of the Software, and to permit persons to whom the Software is *
33634 + * furnished to do so, subject to the following conditions: *
33636 + * The above copyright notice and this permission notice shall be included *
33637 + * in all copies or substantial portions of the Software. *
33639 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
33640 + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
33641 + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
33642 + * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
33643 + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
33644 + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
33645 + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
33647 + * Except as contained in this notice, the name(s) of the above copyright *
33648 + * holders shall not be used in advertising or otherwise to promote the *
33649 + * sale, use or other dealings in this Software without prior written *
33650 + * authorization. *
33651 + ****************************************************************************/
33653 +/****************************************************************************
33654 + * Author: Thomas E. Dickey, 2003 *
33655 + ****************************************************************************/
33659 + * Set soft label text.
33661 +#include <curses.priv.h>
33662 +#include <wctype.h>
33664 +MODULE_ID("$Id: lib_slk_wset.c,v 1.4 2003/06/07 22:17:43 tom Exp $")
33666 +NCURSES_EXPORT(int)
33667 +slk_wset(int i, const wchar_t * astr, int format)
33669 + static wchar_t empty[] =
33671 + int result = ERR;
33672 + SLK *slk = SP->_slk;
33675 + const wchar_t *p;
33677 + T((T_CALLED("slk_wset(%d, %s, %d)"), i, _nc_viswbuf(astr), format));
33681 + arglen = wcslen(astr);
33682 + while (iswspace(*astr)) {
33684 + ++astr; /* skip over leading spaces */
33687 + while (iswprint(*p))
33688 + p++; /* The first non-print stops */
33690 + arglen = (size_t) (p - astr);
33692 + if (slk != NULL &&
33694 + i <= slk->labcnt &&
33703 + --i; /* Adjust numbering of labels */
33706 + * Reduce the actual number of columns to fit in the label field.
33708 + while (arglen != 0 && wcswidth(astr, arglen) > slk->maxlen) {
33711 + mycols = wcswidth(astr, arglen);
33714 + * translate the wide-character string to multibyte form.
33716 + memset(&state, 0, sizeof(state));
33718 + if ((new_text = (char *) _nc_doalloc(0, MB_LEN_MAX * arglen)) == 0)
33721 + for (n = 0; n < arglen; ++n) {
33722 + used += wcrtomb(new_text + used, astr[n], &state);
33724 + new_text[used] = '\0';
33726 + if (used >= (size_t) (slk->maxlen + 1)) {
33727 + if ((slk->ent[i].ent_text = (char *) _nc_doalloc(slk->ent[i].ent_text,
33730 + if ((slk->ent[i].form_text = (char *) _nc_doalloc(slk->ent[i].form_text,
33735 + (void) strcpy(slk->ent[i].ent_text, new_text);
33738 + sprintf(slk->ent[i].form_text, "%*s", (size_t) slk->maxlen, " ");
33740 + switch (format) {
33742 + case 0: /* left-aligned */
33745 + case 1: /* centered */
33746 + offset = (slk->maxlen - mycols) / 2;
33748 + case 2: /* right-aligned */
33749 + offset = slk->maxlen - mycols;
33754 + strcpy(slk->ent[i].form_text + offset,
33755 + slk->ent[i].ent_text);
33757 + * Pad the display with blanks on the right, unless it is already
33760 + if (format != 2 && mycols < slk->maxlen) {
33761 + sprintf(slk->ent[i].form_text + offset + used,
33763 + slk->maxlen - (mycols - offset),
33766 + slk->ent[i].dirty = TRUE;
33769 + returnCode(result);
33771 diff -urNd -urNd ncurses-5.3/ncurses/widechar/lib_unget_wch.c ncurses-5.3.20030906.orig/ncurses/widechar/lib_unget_wch.c
33772 --- ncurses-5.3/ncurses/widechar/lib_unget_wch.c Sat Jun 29 16:11:02 2002
33773 +++ ncurses-5.3.20030906.orig/ncurses/widechar/lib_unget_wch.c Sun Jul 20 14:02:09 2003
33775 /****************************************************************************
33776 - * Copyright (c) 2002 Free Software Foundation, Inc. *
33777 + * Copyright (c) 2002,2003 Free Software Foundation, Inc. *
33779 * Permission is hereby granted, free of charge, to any person obtaining a *
33780 * copy of this software and associated documentation files (the *
33783 #include <curses.priv.h>
33785 -MODULE_ID("$Id: lib_unget_wch.c,v 1.3 2002/06/29 21:11:02 tom Exp $")
33786 +MODULE_ID("$Id: lib_unget_wch.c,v 1.5 2003/07/05 19:46:51 tom Exp $")
33788 NCURSES_EXPORT(int)
33789 unget_wch(const wchar_t wch)
33790 @@ -49,25 +49,29 @@
33794 - T((T_CALLED("unget_wch(%#lx)"), wch));
33795 + T((T_CALLED("unget_wch(%#lx)"), (unsigned long) wch));
33797 memset(&state, 0, sizeof(state));
33798 length = wcrtomb(0, wch, &state);
33800 if (length != (size_t) (-1)
33802 - char *string = malloc(length);
33805 - memset(&state, 0, sizeof(state));
33806 - wcrtomb(string, wch, &state);
33807 + if ((string = (char *) malloc(length)) != 0) {
33808 + memset(&state, 0, sizeof(state));
33809 + wcrtomb(string, wch, &state);
33811 - for (n = (int) (length - 1); n >= 0; --n) {
33812 - if (ungetch(string[n]) != OK) {
33815 + for (n = (int) (length - 1); n >= 0; --n) {
33816 + if (ungetch(string[n]) != OK) {
33829 diff -urNd -urNd ncurses-5.3/ncurses/widechar/lib_wacs.c ncurses-5.3.20030906.orig/ncurses/widechar/lib_wacs.c
33830 --- ncurses-5.3/ncurses/widechar/lib_wacs.c Sat Aug 31 14:44:17 2002
33831 +++ ncurses-5.3.20030906.orig/ncurses/widechar/lib_wacs.c Tue May 13 20:08:22 2003
33832 @@ -33,23 +33,10 @@
33833 #include <curses.priv.h>
33836 -MODULE_ID("$Id: lib_wacs.c,v 1.5 2002/08/31 19:44:17 tom Exp $")
33837 +MODULE_ID("$Id: lib_wacs.c,v 1.6 2002/12/21 12:30:19 tom Exp $")
33839 NCURSES_EXPORT_VAR(cchar_t) * _nc_wacs = 0;
33842 -_nc_unicode_locale(void)
33845 - if (((s = getenv("LC_ALL")) != 0 && *s != '\0')
33846 - || ((s = getenv("LC_ALL")) != 0 && *s != '\0')
33847 - || ((s = getenv("LC_ALL")) != 0 && *s != '\0')) {
33848 - if (strstr(s, ".UTF-8") != 0)
33854 NCURSES_EXPORT(void)
33855 _nc_init_wacs(void)
33857 diff -urNd -urNd ncurses-5.3/ncurses/widechar/lib_wunctrl.c ncurses-5.3.20030906.orig/ncurses/widechar/lib_wunctrl.c
33858 --- ncurses-5.3/ncurses/widechar/lib_wunctrl.c Sat Sep 22 14:18:02 2001
33859 +++ ncurses-5.3.20030906.orig/ncurses/widechar/lib_wunctrl.c Sun Jul 20 14:02:09 2003
33861 /****************************************************************************
33862 - * Copyright (c) 2001 Free Software Foundation, Inc. *
33863 + * Copyright (c) 2001,2003 Free Software Foundation, Inc. *
33865 * Permission is hereby granted, free of charge, to any person obtaining a *
33866 * copy of this software and associated documentation files (the *
33869 #if USE_WIDEC_SUPPORT
33871 -MODULE_ID("$Id: lib_wunctrl.c,v 1.6 2001/09/22 19:18:02 tom Exp $")
33872 +MODULE_ID("$Id: lib_wunctrl.c,v 1.7 2003/07/05 17:01:43 tom Exp $")
33874 NCURSES_EXPORT(wchar_t *)
33875 wunctrl(cchar_t * wc)
33878 if (Charable(*wc)) {
33880 - for (p = unctrl(wctob(CharOf(*wc))), sp = str; *p;)
33881 - *sp++ = btowc(*p++);
33882 + for (p = unctrl(_nc_to_char(CharOf(*wc))), sp = str; *p;)
33883 + *sp++ = _nc_to_widechar(*p++);
33887 diff -urNd -urNd ncurses-5.3/panel/Makefile.in ncurses-5.3.20030906.orig/panel/Makefile.in
33888 --- ncurses-5.3/panel/Makefile.in Sat Jan 19 18:41:18 2002
33889 +++ ncurses-5.3.20030906.orig/panel/Makefile.in Fri Sep 12 16:42:40 2003
33891 -# $Id: Makefile.in,v 1.41 2002/01/20 00:41:18 tom Exp $
33892 +# $Id: Makefile.in,v 1.45 2003/08/23 23:26:21 tom Exp $
33893 ##############################################################################
33894 -# Copyright (c) 1998,1999,2000,2001,2002 Free Software Foundation, Inc. #
33895 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
33897 # Permission is hereby granted, free of charge, to any person obtaining a #
33898 # copy of this software and associated documentation files (the "Software"), #
33901 ##############################################################################
33903 -# Author: Thomas E. Dickey <dickey@clark.net> 1996,1997
33904 +# Author: Thomas E. Dickey 1996-2002
33906 # Makefile for panels source code.
33909 datadir = @datadir@
33911 LIBTOOL = @LIBTOOL@
33912 +LIBTOOL_CLEAN = @LIB_CLEAN@
33913 +LIBTOOL_COMPILE = @LIB_COMPILE@
33914 +LIBTOOL_LINK = @LIB_LINK@
33915 +LIBTOOL_INSTALL = @LIB_INSTALL@
33916 +LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
33918 INSTALL = @INSTALL@
33919 INSTALL_LIB = @INSTALL@ @INSTALL_LIB@
33924 -CPPFLAGS = @CPPFLAGS@ -I@top_srcdir@/ncurses \
33926 +CPPFLAGS = -I@top_srcdir@/ncurses -DHAVE_CONFIG_H @CPPFLAGS@
33928 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
33932 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
33934 -LINK = $(LIBTOOL) $(CC)
33935 +LINK = $(LIBTOOL_LINK) $(CC)
33936 LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
33938 SHLIB_DIRS = -L../lib
33940 REL_VERSION = @cf_cv_rel_version@
33941 ABI_VERSION = @cf_cv_abi_version@
33944 +RANLIB = @LIB_PREP@
33946 IMPORT_LIB = @IMPORT_LIB@
33947 SHARED_LIB = @SHARED_LIB@
33948 diff -urNd -urNd ncurses-5.3/progs/MKtermsort.sh ncurses-5.3.20030906.orig/progs/MKtermsort.sh
33949 --- ncurses-5.3/progs/MKtermsort.sh Sat Jun 29 15:02:48 2002
33950 +++ ncurses-5.3.20030906.orig/progs/MKtermsort.sh Tue May 13 20:08:22 2003
33953 -# $Id: MKtermsort.sh,v 1.8 2002/06/29 20:02:48 tom Exp $
33954 +# $Id: MKtermsort.sh,v 1.9 2003/01/11 22:23:50 tom Exp $
33956 # MKtermsort.sh -- generate indirection vectors for the various sort methods
33958 ##############################################################################
33959 -# Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. #
33960 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
33962 # Permission is hereby granted, free of charge, to any person obtaining a #
33963 # copy of this software and associated documentation files (the "Software"), #
33967 trap 'rm -f $data' 1 2 5 15
33968 -sed -e 's/[ ]\+/ /g' < $DATA >$data
33969 +sed -e 's/[ ][ ]*/ /g' < $DATA >$data
33973 diff -urNd -urNd ncurses-5.3/progs/Makefile.in ncurses-5.3.20030906.orig/progs/Makefile.in
33974 --- ncurses-5.3/progs/Makefile.in Sat Dec 8 12:48:01 2001
33975 +++ ncurses-5.3.20030906.orig/progs/Makefile.in Fri Sep 12 16:42:40 2003
33977 -# $Id: Makefile.in,v 1.56 2001/12/08 18:48:01 tom Exp $
33978 +# $Id: Makefile.in,v 1.60 2003/08/30 21:22:14 tom Exp $
33979 ##############################################################################
33980 -# Copyright (c) 1998,1999,2000,2001 Free Software Foundation, Inc. #
33981 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
33983 # Permission is hereby granted, free of charge, to any person obtaining a #
33984 # copy of this software and associated documentation files (the "Software"), #
33987 ##############################################################################
33989 -# Author: Thomas E. Dickey <dickey@clark.net> 1996,1997
33990 +# Author: Thomas E. Dickey 1996-2003
33992 # Makefile for ncurses source code.
33995 datadir = @datadir@
33997 LIBTOOL = @LIBTOOL@
33998 +LIBTOOL_CLEAN = @LIB_CLEAN@
33999 +LIBTOOL_COMPILE = @LIB_COMPILE@
34000 +LIBTOOL_LINK = @LIB_LINK@
34001 +LIBTOOL_INSTALL = @LIB_INSTALL@
34002 +LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
34004 INSTALL = @INSTALL@
34005 INSTALL_PROGRAM = @INSTALL_PROGRAM@
34009 INCDIR = $(srcdir)/../include
34010 -CPPFLAGS = -I../progs -I$(srcdir) @CPPFLAGS@ \
34012 +CPPFLAGS = -I../progs -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@
34014 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
34016 @@ -87,15 +91,15 @@
34017 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
34020 -LINK = @LINK_PROGS@ $(LIBTOOL) $(CC)
34021 +LINK = @LINK_PROGS@ $(LIBTOOL_LINK) $(CC)
34022 LDFLAGS = @EXTRA_LDFLAGS@ \
34023 @PROG_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ @EXTRA_LIBS@
34025 -LDFLAGS_LIBTOOL = $(LDFLAGS)
34026 -LDFLAGS_NORMAL = $(LDFLAGS)
34027 -LDFLAGS_DEBUG = $(LDFLAGS) @CC_G_OPT@
34028 -LDFLAGS_PROFILE = $(LDFLAGS) -pg
34029 -LDFLAGS_SHARED = $(LDFLAGS) @LD_SHARED_OPTS@
34030 +LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
34031 +LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL)
34032 +LDFLAGS_DEBUG = $(LDFLAGS) $(CFLAGS_DEBUG)
34033 +LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
34034 +LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
34036 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
34038 @@ -150,31 +154,31 @@
34039 echo "#define PROG_INIT \"$(actual_init)\"" >>$@
34041 install.progs: $(AUTO_SRC) $(PROGS) $(DESTDIR)$(bindir)
34042 -@MAKE_TERMINFO@ $(LIBTOOL) $(INSTALL_PROGRAM) tic$x $(DESTDIR)$(bindir)/$(actual_tic)
34043 -@MAKE_TERMINFO@ $(LIBTOOL) $(INSTALL_PROGRAM) toe$x $(DESTDIR)$(bindir)/$(actual_toe)
34044 +@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) tic$x $(DESTDIR)$(bindir)/$(actual_tic)
34045 +@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) toe$x $(DESTDIR)$(bindir)/$(actual_toe)
34046 @MAKE_TERMINFO@ @echo "linking $(actual_infotocap) to $(actual_tic)"
34047 @MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_infotocap)
34048 @MAKE_TERMINFO@ (cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tic) $(actual_infotocap))
34049 @MAKE_TERMINFO@ @echo "linking $(actual_captoinfo) to $(actual_tic)"
34050 @MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_captoinfo)
34051 @MAKE_TERMINFO@ (cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tic) $(actual_captoinfo))
34052 - $(LIBTOOL) $(INSTALL_PROGRAM) infocmp$x $(DESTDIR)$(bindir)/$(actual_infocmp)
34053 - $(LIBTOOL) $(INSTALL_PROGRAM) clear$x $(DESTDIR)$(bindir)/$(actual_clear)
34054 - $(LIBTOOL) $(INSTALL_PROGRAM) tput$x $(DESTDIR)$(bindir)/$(actual_tput)
34055 - $(LIBTOOL) $(INSTALL_PROGRAM) tset$x $(DESTDIR)$(bindir)/$(actual_tset)
34056 + $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) infocmp$x $(DESTDIR)$(bindir)/$(actual_infocmp)
34057 + $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) clear$x $(DESTDIR)$(bindir)/$(actual_clear)
34058 + $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) tput$x $(DESTDIR)$(bindir)/$(actual_tput)
34059 + $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) tset$x $(DESTDIR)$(bindir)/$(actual_tset)
34060 @echo "linking $(actual_reset) to $(actual_tset)"
34061 -@rm -f $(DESTDIR)$(bindir)/$(actual_reset)
34062 (cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tset) $(actual_reset))
34065 -@MAKE_TERMINFO@ -@$(LIBTOOL) rm -f $(DESTDIR)$(bindir)/$(actual_tic)
34066 -@MAKE_TERMINFO@ -@$(LIBTOOL) rm -f $(DESTDIR)$(bindir)/$(actual_toe)
34067 +@MAKE_TERMINFO@ -@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_tic)
34068 +@MAKE_TERMINFO@ -@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_toe)
34069 @MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_captoinfo)
34070 @MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_infotocap)
34071 - -@$(LIBTOOL) rm -f $(DESTDIR)$(bindir)/$(actual_infocmp)
34072 - -@$(LIBTOOL) rm -f $(DESTDIR)$(bindir)/$(actual_clear)
34073 - -@$(LIBTOOL) rm -f $(DESTDIR)$(bindir)/$(actual_tput)
34074 - -@$(LIBTOOL) rm -f $(DESTDIR)$(bindir)/$(actual_tset)
34075 + -@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_infocmp)
34076 + -@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_clear)
34077 + -@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_tput)
34078 + -@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_tset)
34079 -@rm -f $(DESTDIR)$(bindir)/$(actual_reset)
34081 $(DESTDIR)$(bindir) :
34082 @@ -225,7 +229,7 @@
34083 @ECHO_LINK@ $(LINK) $(DEPS_TSET) $(LDFLAGS_DEFAULT) -o $@
34085 termsort.c: $(srcdir)/MKtermsort.sh
34086 - sh -c "$(srcdir)/MKtermsort.sh $(AWK) $(srcdir)/../include/@TERMINFO_CAPS@" >$@
34087 + sh $(srcdir)/MKtermsort.sh $(AWK) $(srcdir)/../include/@TERMINFO_CAPS@ >$@
34090 # Utility productions start here
34091 diff -urNd -urNd ncurses-5.3/progs/dump_entry.c ncurses-5.3.20030906.orig/progs/dump_entry.c
34092 --- ncurses-5.3/progs/dump_entry.c Sun Sep 1 12:54:43 2002
34093 +++ ncurses-5.3.20030906.orig/progs/dump_entry.c Sun Jul 20 14:02:08 2003
34095 /****************************************************************************
34096 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
34097 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
34099 * Permission is hereby granted, free of charge, to any person obtaining a *
34100 * copy of this software and associated documentation files (the *
34102 #include "termsort.c" /* this C file is generated */
34103 #include <parametrized.h> /* so is this */
34105 -MODULE_ID("$Id: dump_entry.c,v 1.64 2002/09/01 17:54:43 tom Exp $")
34106 +MODULE_ID("$Id: dump_entry.c,v 1.66 2003/05/24 22:43:59 tom Exp $")
34109 #define DISCARD(string) string = ABSENT_STRING
34110 @@ -913,15 +913,23 @@
34112 char *oldsgr = set_attributes;
34113 char *oldacsc = acs_chars;
34114 - set_attributes = ABSENT_STRING;
34115 - SHOW_WHY("# (sgr removed to fit entry within %d bytes)\n",
34117 - if ((len = FMT_ENTRY()) > critlen) {
34118 - acs_chars = ABSENT_STRING;
34119 - SHOW_WHY("# (acsc removed to fit entry within %d bytes)\n",
34120 + bool changed = FALSE;
34122 + if (VALID_STRING(set_attributes)) {
34123 + set_attributes = ABSENT_STRING;
34124 + SHOW_WHY("# (sgr removed to fit entry within %d bytes)\n",
34128 - if ((len = FMT_ENTRY()) > critlen) {
34129 + if (!changed || ((len = FMT_ENTRY()) > critlen)) {
34130 + if (VALID_STRING(acs_chars)) {
34131 + acs_chars = ABSENT_STRING;
34132 + SHOW_WHY("# (acsc removed to fit entry within %d bytes)\n",
34137 + if (!changed || ((len = FMT_ENTRY()) > critlen)) {
34138 int oldversion = tversion;
34141 diff -urNd -urNd ncurses-5.3/progs/infocmp.c ncurses-5.3.20030906.orig/progs/infocmp.c
34142 --- ncurses-5.3/progs/infocmp.c Sat Oct 5 20:13:04 2002
34143 +++ ncurses-5.3.20030906.orig/progs/infocmp.c Sun Jul 20 14:02:08 2003
34145 /****************************************************************************
34146 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
34147 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
34149 * Permission is hereby granted, free of charge, to any person obtaining a *
34150 * copy of this software and associated documentation files (the *
34152 #include <term_entry.h>
34153 #include <dump_entry.h>
34155 -MODULE_ID("$Id: infocmp.c,v 1.68 2002/10/06 01:13:04 tom Exp $")
34156 +MODULE_ID("$Id: infocmp.c,v 1.70 2003/05/24 21:05:47 tom Exp $")
34160 @@ -120,7 +120,7 @@
34161 ***************************************************************************/
34164 -capcmp(int idx, const char *s, const char *t)
34165 +capcmp(unsigned idx, const char *s, const char *t)
34166 /* capability comparison function */
34168 if (!VALID_STRING(s) && !VALID_STRING(t))
34169 @@ -248,7 +248,7 @@
34170 entryeq(TERMTYPE * t1, TERMTYPE * t2)
34171 /* are two entries equivalent? */
34176 for (i = 0; i < NUM_BOOLEANS(t1); i++)
34177 if (t1->Booleans[i] != t2->Booleans[i])
34178 @@ -268,7 +268,7 @@
34179 #define TIC_EXPAND(result) _nc_tic_expand(result, outform==F_TERMINFO, numbers)
34182 -print_uses(ENTRY * ep, FILE * fp)
34183 +print_uses(ENTRY * ep, FILE *fp)
34184 /* print an entry's use references */
34187 @@ -739,7 +739,7 @@
34188 (void) fputc('\n', stderr);
34191 - exit(EXIT_FAILURE);
34192 + ExitProgram(EXIT_FAILURE);
34195 heads[filecount] = _nc_head;
34196 @@ -936,7 +936,7 @@
34198 fprintf(stderr, "%s\n", tbl[n]);
34200 - exit(EXIT_FAILURE);
34201 + ExitProgram(EXIT_FAILURE);
34205 @@ -975,7 +975,7 @@
34207 dump_initializers(TERMTYPE * term)
34212 const char *str = 0;
34214 @@ -1145,7 +1145,7 @@
34216 if (temp == 0 || temp == optarg || *temp != 0) {
34217 fprintf(stderr, "Expected a number, not \"%s\"\n", optarg);
34218 - exit(EXIT_FAILURE);
34219 + ExitProgram(EXIT_FAILURE);
34221 return (int) value;
34223 diff -urNd -urNd ncurses-5.3/progs/tic.c ncurses-5.3.20030906.orig/progs/tic.c
34224 --- ncurses-5.3/progs/tic.c Sat Oct 5 14:59:41 2002
34225 +++ ncurses-5.3.20030906.orig/progs/tic.c Sun Jul 20 14:02:09 2003
34227 /****************************************************************************
34228 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
34229 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
34231 * Permission is hereby granted, free of charge, to any person obtaining a *
34232 * copy of this software and associated documentation files (the *
34234 #include <term_entry.h>
34235 #include <transform.h>
34237 -MODULE_ID("$Id: tic.c,v 1.102 2002/10/05 19:59:41 tom Exp $")
34238 +MODULE_ID("$Id: tic.c,v 1.107 2003/07/19 20:48:24 tom Exp $")
34240 const char *_nc_progname = "tic";
34243 static void (*save_check_termtype) (TERMTYPE *);
34244 static void check_termtype(TERMTYPE * tt);
34246 -static const char usage_string[] = "[-V] [-v[n]] [-e names] [-CILNRTcfrswx1] source-file\n";
34247 +static const char usage_string[] = "[-V] [-v[n]] [-e names] [-o dir] [-R name] [-CILNTcfrswx1] source-file\n";
34255 - exit(EXIT_FAILURE);
34256 + ExitProgram(EXIT_FAILURE);
34260 @@ -126,7 +126,7 @@
34261 fputs(tbl[j], stderr);
34262 putc('\n', stderr);
34264 - exit(EXIT_FAILURE);
34265 + ExitProgram(EXIT_FAILURE);
34268 #define L_BRACE '{'
34269 @@ -317,12 +317,12 @@
34272 fprintf(stderr, "%s: Can't open %s\n", _nc_progname, filename);
34273 - exit(EXIT_FAILURE);
34274 + ExitProgram(EXIT_FAILURE);
34276 if (fstat(fileno(fp), &sb) < 0
34277 || (sb.st_mode & S_IFMT) != S_IFREG) {
34278 fprintf(stderr, "%s: %s is not a file\n", _nc_progname, filename);
34279 - exit(EXIT_FAILURE);
34280 + ExitProgram(EXIT_FAILURE);
34284 @@ -769,6 +769,205 @@
34288 + * Check if the alternate character-set capabilities are consistent.
34291 +check_acs(TERMTYPE * tp)
34293 + if (VALID_STRING(acs_chars)) {
34294 + const char *boxes = "lmkjtuvwqxn";
34295 + char mapped[256];
34296 + char missing[256];
34300 + memset(mapped, 0, sizeof(mapped));
34301 + for (p = acs_chars; *p != '\0'; p += 2) {
34302 + if (p[1] == '\0') {
34303 + _nc_warning("acsc has odd number of characters");
34306 + mapped[UChar(p[0])] = p[1];
34308 + if (mapped['I'] && !mapped['i']) {
34309 + _nc_warning("acsc refers to 'I', which is probably an error");
34311 + for (p = boxes, q = missing; *p != '\0'; ++p) {
34312 + if (!mapped[UChar(p[0])]) {
34317 + if (*missing != '\0' && strcmp(missing, boxes)) {
34318 + _nc_warning("acsc is missing some line-drawing mapping: %s", missing);
34324 + * Check if the color capabilities are consistent
34327 +check_colors(TERMTYPE * tp)
34329 + if ((max_colors > 0) != (max_pairs > 0)
34330 + || ((max_colors > max_pairs) && (initialize_pair == 0)))
34331 + _nc_warning("inconsistent values for max_colors (%d) and max_pairs (%d)",
34332 + max_colors, max_pairs);
34334 + PAIRED(set_foreground, set_background);
34335 + PAIRED(set_a_foreground, set_a_background);
34336 + PAIRED(set_color_pair, initialize_pair);
34338 + if (VALID_STRING(set_foreground)
34339 + && VALID_STRING(set_a_foreground)
34340 + && !strcmp(set_foreground, set_a_foreground))
34341 + _nc_warning("expected setf/setaf to be different");
34343 + if (VALID_STRING(set_background)
34344 + && VALID_STRING(set_a_background)
34345 + && !strcmp(set_background, set_a_background))
34346 + _nc_warning("expected setb/setab to be different");
34350 +keypad_final(const char *string)
34352 + int result = '\0';
34354 + if (VALID_STRING(string)
34355 + && *string++ == '\033'
34356 + && *string++ == 'O'
34357 + && strlen(string) == 1) {
34358 + result = *string;
34365 +keypad_index(const char *string)
34368 + const char *list = "PQRSwxymtuvlqrsPpn"; /* app-keypad except "Enter" */
34372 + if ((ch = keypad_final(string)) != '\0') {
34373 + test = strchr(list, ch);
34375 + result = (test - list);
34381 + * Do a quick sanity-check for vt100-style keypads to see if the 5-key keypad
34382 + * is mapped inconsistently.
34385 +check_keypad(TERMTYPE * tp)
34389 + if (VALID_STRING(key_a1) &&
34390 + VALID_STRING(key_a3) &&
34391 + VALID_STRING(key_b2) &&
34392 + VALID_STRING(key_c1) &&
34393 + VALID_STRING(key_c3)) {
34396 + int increase = 0;
34401 + final[0] = keypad_final(key_a1);
34402 + final[1] = keypad_final(key_a3);
34403 + final[2] = keypad_final(key_b2);
34404 + final[3] = keypad_final(key_c1);
34405 + final[4] = keypad_final(key_c3);
34408 + /* special case: legacy coding using 1,2,3,0,. on the bottom */
34409 + if (!strcmp(final, "qsrpn"))
34412 + list[0] = keypad_index(key_a1);
34413 + list[1] = keypad_index(key_a3);
34414 + list[2] = keypad_index(key_b2);
34415 + list[3] = keypad_index(key_c1);
34416 + list[4] = keypad_index(key_c3);
34418 + /* check that they're all vt100 keys */
34419 + for (j = 0; j < 5; ++j) {
34420 + if (list[j] < 0) {
34425 + /* check if they're all in increasing order */
34426 + for (j = 1; j < 5; ++j) {
34427 + if (list[j] > list[j - 1]) {
34431 + if (increase != 4) {
34434 + for (j = 0, last = -1; j < 5; ++j) {
34435 + for (k = 0, kk = -1, test = 100; k < 5; ++k) {
34436 + if (list[k] > last &&
34437 + list[k] < test) {
34445 + strcat(show, " ka1");
34448 + strcat(show, " ka3");
34451 + strcat(show, " kb2");
34454 + strcat(show, " kc1");
34457 + strcat(show, " kc3");
34462 + _nc_warning("vt100 keypad order inconsistent: %s", show);
34465 + } else if (VALID_STRING(key_a1) ||
34466 + VALID_STRING(key_a3) ||
34467 + VALID_STRING(key_b2) ||
34468 + VALID_STRING(key_c1) ||
34469 + VALID_STRING(key_c3)) {
34471 + if (keypad_index(key_a1) >= 0)
34472 + strcat(show, " ka1");
34473 + if (keypad_index(key_a3) >= 0)
34474 + strcat(show, " ka3");
34475 + if (keypad_index(key_b2) >= 0)
34476 + strcat(show, " kb2");
34477 + if (keypad_index(key_c1) >= 0)
34478 + strcat(show, " kc1");
34479 + if (keypad_index(key_c3) >= 0)
34480 + strcat(show, " kc3");
34481 + if (*show != '\0')
34482 + _nc_warning("vt100 keypad map incomplete:%s", show);
34487 * Returns the expected number of parameters for the given capability.
34490 @@ -1076,17 +1275,9 @@
34491 check_params(tp, ExtStrname(tp, j, strnames), a);
34495 - * Quick check for color. We could also check if the ANSI versus
34496 - * non-ANSI strings are misused.
34498 - if ((max_colors > 0) != (max_pairs > 0)
34499 - || ((max_colors > max_pairs) && (initialize_pair == 0)))
34500 - _nc_warning("inconsistent values for max_colors (%d) and max_pairs (%d)",
34501 - max_colors, max_pairs);
34503 - PAIRED(set_foreground, set_background);
34504 - PAIRED(set_a_foreground, set_a_background);
34506 + check_colors(tp);
34507 + check_keypad(tp);
34510 * These may be mismatched because the terminal description relies on
34511 diff -urNd -urNd ncurses-5.3/progs/tput.c ncurses-5.3.20030906.orig/progs/tput.c
34512 --- ncurses-5.3/progs/tput.c Sat Jul 20 14:09:47 2002
34513 +++ ncurses-5.3.20030906.orig/progs/tput.c Tue May 13 20:08:23 2003
34515 /****************************************************************************
34516 - * Copyright (c) 1998,1999,2000,2001 Free Software Foundation, Inc. *
34517 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
34519 * Permission is hereby granted, free of charge, to any person obtaining a *
34520 * copy of this software and associated documentation files (the *
34523 #include <transform.h>
34525 -MODULE_ID("$Id: tput.c,v 1.31 2002/07/20 19:09:47 tom Exp $")
34526 +MODULE_ID("$Id: tput.c,v 1.33 2003/02/22 22:10:34 tom Exp $")
34528 #define PUTS(s) fputs(s, stdout)
34529 #define PUTCHAR(c) putchar(c)
34530 @@ -70,14 +70,14 @@
34531 vfprintf(stderr, fmt, argp);
34532 fprintf(stderr, "\n");
34535 + ExitProgram(status);
34541 fprintf(stderr, "usage: %s [-V] [-S] [-T term] capname\n", prg_name);
34542 - exit(EXIT_FAILURE);
34543 + ExitProgram(EXIT_FAILURE);
34547 @@ -297,8 +297,10 @@
34552 - char *strings[10];
34554 + long numbers[1 + NUM_PARM];
34555 + char *strings[1 + NUM_PARM];
34556 + char *p_is_s[NUM_PARM];
34558 /* Nasty hack time. The tparm function needs to see numeric
34559 * parameters as numbers, not as pointers to their string
34560 @@ -312,7 +314,7 @@
34561 if (tmp == 0 || *tmp != 0)
34564 - for (k = argc; k <= 9; k++) {
34565 + for (k = argc; k <= NUM_PARM; k++) {
34569 @@ -325,10 +327,18 @@
34570 s = tparm(s, numbers[1], strings[2], strings[3]);
34573 + (void) _nc_tparm_analyze(s, p_is_s, &popcount);
34574 +#define myParam(n) (p_is_s[n - 1] != 0 ? ((long) strings[n]) : numbers[n])
34576 - numbers[1], numbers[2], numbers[3],
34577 - numbers[4], numbers[5], numbers[6],
34578 - numbers[7], numbers[8], numbers[9]);
34591 diff -urNd -urNd ncurses-5.3/progs/tset.c ncurses-5.3.20030906.orig/progs/tset.c
34592 --- ncurses-5.3/progs/tset.c Sat Aug 24 18:18:16 2002
34593 +++ ncurses-5.3.20030906.orig/progs/tset.c Tue May 13 20:08:23 2003
34595 /****************************************************************************
34596 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
34597 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
34599 * Permission is hereby granted, free of charge, to any person obtaining a *
34600 * copy of this software and associated documentation files (the *
34601 @@ -103,7 +103,7 @@
34602 #include <dump_entry.h>
34603 #include <transform.h>
34605 -MODULE_ID("$Id: tset.c,v 0.53 2002/08/24 23:18:16 tom Exp $")
34606 +MODULE_ID("$Id: tset.c,v 0.55 2003/02/09 00:30:09 tom Exp $")
34608 extern char **environ;
34610 @@ -142,7 +142,7 @@
34611 SET_TTY(STDERR_FILENO, &original);
34612 (void) fprintf(stderr, "\n");
34614 - exit(EXIT_FAILURE);
34615 + ExitProgram(EXIT_FAILURE);
34619 @@ -627,8 +627,10 @@
34620 **************************************************************************/
34622 /* some BSD systems have these built in, some systems are missing
34623 - * one or more definitions. The safest solution is to override.
34624 + * one or more definitions. The safest solution is to override unless the
34625 + * commonly-altered ones are defined.
34627 +#if !(defined(CERASE) && defined(CINTR) && defined(CKILL) && defined(CQUIT))
34631 @@ -639,18 +641,39 @@
34637 /* control-character defaults */
34639 #define CEOF CTRL('D')
34642 #define CERASE CTRL('H')
34645 #define CINTR 127 /* ^? */
34648 #define CKILL CTRL('U')
34651 #define CLNEXT CTRL('v')
34654 #define CRPRNT CTRL('r')
34657 #define CQUIT CTRL('\\')
34660 #define CSTART CTRL('Q')
34663 #define CSTOP CTRL('S')
34666 #define CSUSP CTRL('Z')
34669 #define CHK(val, dft) ((int)val <= 0 ? dft : val)
34671 @@ -1183,8 +1206,8 @@
34674 report("Erase", VERASE, CERASE);
34675 - report("Kill", VKILL, CINTR);
34676 - report("Interrupt", VINTR, CKILL);
34677 + report("Kill", VKILL, CKILL);
34678 + report("Interrupt", VINTR, CINTR);
34682 @@ -1193,12 +1216,14 @@
34683 err("The -S option is not supported under terminfo.");
34688 * Figure out what shell we're using. A hack, we look for an
34689 * environmental variable SHELL ending in "csh".
34691 if ((p = getenv("SHELL")) != 0
34692 - && !strcmp(p + strlen(p) - 3, "csh"))
34693 + && (len = strlen(p)) >= 3
34694 + && !strcmp(p + len - 3, "csh"))
34695 p = "set noglob;\nsetenv TERM %s;\nunset noglob;\n";
34698 @@ -1207,5 +1232,3 @@
34700 return EXIT_SUCCESS;
34703 -/* tset.c ends here */
34704 diff -urNd -urNd ncurses-5.3/tack/Makefile.in ncurses-5.3.20030906.orig/tack/Makefile.in
34705 --- ncurses-5.3/tack/Makefile.in Sat Dec 8 12:48:01 2001
34706 +++ ncurses-5.3.20030906.orig/tack/Makefile.in Fri Sep 12 16:42:40 2003
34708 -# $Id: Makefile.in,v 1.27 2001/12/08 18:48:01 tom Exp $
34709 +# $Id: Makefile.in,v 1.29 2003/08/23 23:24:08 tom Exp $
34710 # Makefile for tack
34712 # The variable 'srcdir' refers to the source-distribution, and can be set with
34714 datadir = @datadir@
34716 LIBTOOL = @LIBTOOL@
34717 +LIBTOOL_CLEAN = @LIB_CLEAN@
34718 +LIBTOOL_COMPILE = @LIB_COMPILE@
34719 +LIBTOOL_LINK = @LIB_LINK@
34720 +LIBTOOL_INSTALL = @LIB_INSTALL@
34721 +LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
34723 INSTALL = @INSTALL@
34724 INSTALL_PROGRAM = @INSTALL_PROGRAM@
34725 @@ -55,15 +60,15 @@
34726 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
34729 -LINK = @LINK_PROGS@ $(LIBTOOL) $(CC)
34730 +LINK = @LINK_PROGS@ $(LIBTOOL_LINK) $(CC)
34731 LDFLAGS = @EXTRA_LDFLAGS@ \
34732 @PROG_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ @EXTRA_LIBS@
34734 -LDFLAGS_LIBTOOL = $(LDFLAGS)
34735 -LDFLAGS_NORMAL = $(LDFLAGS)
34736 -LDFLAGS_DEBUG = $(LDFLAGS) @CC_G_OPT@
34737 -LDFLAGS_PROFILE = $(LDFLAGS) -pg
34738 -LDFLAGS_SHARED = $(LDFLAGS) @LD_SHARED_OPTS@
34739 +LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
34740 +LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL)
34741 +LDFLAGS_DEBUG = $(LDFLAGS) $(CFLAGS_DEBUG)
34742 +LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
34743 +LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
34745 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
34747 @@ -92,11 +97,11 @@
34748 install.tack: $(PROGS) \
34749 $(DESTDIR)$(bindir) \
34750 $(DESTDIR)$(mandir)
34751 - $(LIBTOOL) $(INSTALL_PROGRAM) tack$x $(DESTDIR)$(bindir)/tack$x
34752 + $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) tack$x $(DESTDIR)$(bindir)/tack$x
34753 $(INSTALL_DATA) $(srcdir)/tack.1 $(DESTDIR)$(mandir)/tack.1
34756 - -@$(LIBTOOL) rm -f $(DESTDIR)$(bindir)/tack$x
34757 + -@$(LIBTOOL_UNINSTALL) rm -f $(DESTDIR)$(bindir)/tack$x
34758 -@rm -f $(DESTDIR)$(mandir)/tack.1
34760 $(DESTDIR)$(bindir) \
34761 diff -urNd -urNd ncurses-5.3/tar-copy.sh ncurses-5.3.20030906.orig/tar-copy.sh
34762 --- ncurses-5.3/tar-copy.sh Wed Feb 11 06:14:03 1998
34763 +++ ncurses-5.3.20030906.orig/tar-copy.sh Tue May 13 20:08:23 2003
34766 -# $Id: tar-copy.sh,v 1.3 1998/02/11 12:14:03 tom Exp $
34767 +# $Id: tar-copy.sh,v 1.4 2003/05/11 00:23:28 tom Exp $
34768 ##############################################################################
34769 -# Copyright (c) 1998 Free Software Foundation, Inc. #
34770 +# Copyright (c) 1998,2003 Free Software Foundation, Inc. #
34772 # Permission is hereby granted, free of charge, to any person obtaining a #
34773 # copy of this software and associated documentation files (the "Software"), #
34776 ##############################################################################
34778 -# Author: Thomas E. Dickey <dickey@clark.net> 1997,1998
34779 +# Author: Thomas E. Dickey
34781 # Copy a collection of files using 'tar', so that their dates and links are
34783 @@ -55,16 +55,24 @@
34787 -trap "rm -f $TMP" 0 1 2 5 15
34790 -if ( tar cf $TMP $1 )
34791 +TEST=`ls -d $1 2>/dev/null`
34792 +if test -z "$TEST"
34795 - LIST=`tar tf $TMP 2>&1`
34796 - $DOIT rm -rf $LIST 2>/dev/null
34797 - $DOIT tar xvf $TMP
34798 + echo "... no match for \"$1\" in $2"
34800 - echo "Cannot create tar of $1 files"
34802 + echo "... installing files matching \"$1\" in $2"
34803 + trap "rm -f $TMP" 0 1 2 5 15
34804 + if ( tar cf $TMP $1 )
34807 + LIST=`tar tf $TMP 2>&1`
34808 + $DOIT rm -rf $LIST 2>/dev/null
34809 + $DOIT tar xvf $TMP
34812 + echo "Cannot create tar of $1 files"
34816 diff -urNd -urNd ncurses-5.3/test/Makefile.in ncurses-5.3.20030906.orig/test/Makefile.in
34817 --- ncurses-5.3/test/Makefile.in Sat Feb 2 18:54:10 2002
34818 +++ ncurses-5.3.20030906.orig/test/Makefile.in Fri Sep 12 16:42:40 2003
34820 -# $Id: Makefile.in,v 1.63 2002/02/03 00:54:10 china Exp $
34821 +# $Id: Makefile.in,v 1.73 2003/08/24 00:05:14 tom Exp $
34822 ##############################################################################
34823 -# Copyright (c) 1998,1999,2000,2001 Free Software Foundation, Inc. #
34824 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
34826 # Permission is hereby granted, free of charge, to any person obtaining a #
34827 # copy of this software and associated documentation files (the "Software"), #
34830 ##############################################################################
34832 -# Author: Thomas E. Dickey <dickey@clark.net> 1996,1997,1998
34833 +# Author: Thomas E. Dickey 1996-2002
34835 # Makefile for ncurses tests.
34837 @@ -46,12 +46,15 @@
34838 includedir = @includedir@
34840 LIBTOOL = @LIBTOOL@
34841 +LIBTOOL_CLEAN = @LIB_CLEAN@
34842 +LIBTOOL_COMPILE = @LIB_COMPILE@
34843 +LIBTOOL_LINK = @LIB_LINK@
34849 -CPPFLAGS = -I../test -I$(srcdir) @CPPFLAGS@ -DHAVE_CONFIG_H
34850 +CPPFLAGS = -I../test -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@
34852 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
34854 @@ -69,15 +72,15 @@
34855 MATH_LIB = @MATH_LIB@
34858 -LINK = @LINK_TESTS@ $(LIBTOOL) $(CC) $(CFLAGS)
34859 +LINK = @LINK_TESTS@ $(LIBTOOL_LINK) $(CC) $(CFLAGS)
34861 LDFLAGS = @LD_MODEL@ @TEST_ARGS@ @LIBS@ @EXTRA_LIBS@ @LOCAL_LDFLAGS@ @LDFLAGS@
34863 -LDFLAGS_LIBTOOL = $(LDFLAGS)
34864 -LDFLAGS_NORMAL = $(LDFLAGS)
34865 -LDFLAGS_DEBUG = $(LDFLAGS) @CC_G_OPT@
34866 -LDFLAGS_PROFILE = $(LDFLAGS) -pg
34867 -LDFLAGS_SHARED = $(LDFLAGS) @LD_SHARED_OPTS@
34868 +LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
34869 +LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL)
34870 +LDFLAGS_DEBUG = $(LDFLAGS) $(CFLAGS_DEBUG)
34871 +LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
34872 +LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
34874 LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
34888 @@ -97,13 +105,15 @@
34905 @@ -125,6 +135,21 @@
34906 cardfile$x: $(MODEL)/cardfile.o $(LOCAL_LIBS)
34907 @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/cardfile.o $(LDFLAGS_DEFAULT)
34909 +demo_defkey$x: $(MODEL)/demo_defkey.o $(LOCAL_LIBS)
34910 + @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/demo_defkey.o $(LDFLAGS_DEFAULT)
34912 +demo_forms$x: $(MODEL)/demo_forms.o $(MODEL)/edit_field.o $(LOCAL_LIBS)
34913 + @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/demo_forms.o $(MODEL)/edit_field.o $(LDFLAGS_DEFAULT)
34915 +demo_keyok$x: $(MODEL)/demo_keyok.o $(LOCAL_LIBS)
34916 + @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/demo_keyok.o $(LDFLAGS_DEFAULT)
34918 +demo_menus$x: $(MODEL)/demo_menus.o $(LOCAL_LIBS)
34919 + @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/demo_menus.o $(LDFLAGS_DEFAULT)
34921 +demo_panels$x: $(MODEL)/demo_panels.o $(LOCAL_LIBS)
34922 + @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/demo_panels.o $(LDFLAGS_DEFAULT)
34924 ditto$x: $(MODEL)/ditto.o $(LOCAL_LIBS)
34925 @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/ditto.o $(LDFLAGS_DEFAULT)
34927 @@ -149,6 +174,12 @@
34928 hashtest$x: $(MODEL)/hashtest.o $(LOCAL_LIBS)
34929 @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/hashtest.o $(LDFLAGS_DEFAULT)
34931 +inserts$x: $(MODEL)/inserts.o $(LOCAL_LIBS)
34932 + @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/inserts.o $(LDFLAGS_DEFAULT)
34934 +ins_wide$x: $(MODEL)/ins_wide.o $(LOCAL_LIBS)
34935 + @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/ins_wide.o $(LDFLAGS_DEFAULT)
34937 keynames$x: $(MODEL)/keynames.o $(LOCAL_LIBS)
34938 @ECHO_LINK@ $(LINK) -o $@ $(MODEL)/keynames.o $(LDFLAGS_DEFAULT)
34940 @@ -213,9 +244,3 @@
34943 sh -c 'for N in $(TESTS); do echo LINT:$$N; $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/$$N.c $(LINT_LIBS); done'
34945 -# Use this to get a list of test-programs for the standalone configure script.
34950 diff -urNd -urNd ncurses-5.3/test/README ncurses-5.3.20030906.orig/test/README
34951 --- ncurses-5.3/test/README Sat Nov 25 01:11:22 1995
34952 +++ ncurses-5.3.20030906.orig/test/README Sun Jul 20 14:02:09 2003
34954 +-- $Id: README,v 1.15 2003/07/05 19:17:49 tom Exp $
34955 +-------------------------------------------------------------------------------
34957 The programs in this directory are designed to test your newest toy :-)
34958 Check the sources for any further details.
34960 @@ -20,3 +23,601 @@
34961 This directory also contains:
34963 tracemunch - Perl script to crunch trace scripts to make them easier to read
34965 +-------------------------------------------------------------------------------
34966 +-------------------------------------------------------------------------------
34968 +These programs provide examples of use, but do not comprise a complete set of
34969 +tests. Here is a list of library externals, noting those that are used:
34973 +TYPE_ALNUM test: demo_forms
34974 +TYPE_ALPHA test: demo_forms ncurses
34975 +TYPE_ENUM test: demo_forms
34976 +TYPE_INTEGER test: demo_forms
34978 +TYPE_NUMERIC test: demo_forms
34979 +TYPE_REGEXP test: demo_forms
34980 +current_field test: demo_forms edit_field ncurses
34984 +dynamic_field_info -
34987 +field_buffer test: cardfile demo_forms edit_field ncurses
34990 +field_index test: demo_forms
34991 +field_info test: ncurses
34994 +field_opts test: demo_forms ncurses
34995 +field_opts_off test: cardfile
35000 +field_type test: demo_forms
35001 +field_userptr test: ncurses
35002 +form_driver test: cardfile demo_forms edit_field ncurses
35003 +form_fields test: cardfile
35009 +form_request_by_name -
35010 +form_request_name test: edit_field
35011 +form_sub test: cardfile demo_forms ncurses
35014 +form_win test: cardfile demo_forms edit_field ncurses
35015 +free_field test: cardfile demo_forms ncurses
35017 +free_form test: cardfile demo_forms ncurses
35021 +new_field test: cardfile demo_forms ncurses
35022 +new_fieldtype test: ncurses
35023 +new_form test: cardfile demo_forms ncurses
35026 +post_form test: cardfile demo_forms ncurses
35027 +scale_form test: demo_forms ncurses
35028 +set_current_field -
35029 +set_field_back test: cardfile demo_forms edit_field ncurses
35030 +set_field_buffer test: cardfile demo_forms edit_field ncurses
35033 +set_field_just test: cardfile
35034 +set_field_opts test: demo_forms ncurses
35036 +set_field_status -
35038 +set_field_type test: demo_forms ncurses
35039 +set_field_userptr test: demo_forms ncurses
35040 +set_fieldtype_arg -
35041 +set_fieldtype_choice -
35046 +set_form_sub test: cardfile demo_forms ncurses
35048 +set_form_userptr -
35049 +set_form_win test: cardfile demo_forms ncurses
35051 +set_new_page test: demo_forms
35052 +unpost_form test: cardfile demo_forms ncurses
35056 +current_item test: ncurses
35057 +free_item test: ncurses
35058 +free_menu test: ncurses
35060 +item_description -
35061 +item_index test: ncurses
35063 +item_name test: ncurses
35069 +item_value test: ncurses
35072 +menu_driver test: ncurses
35077 +menu_items test: ncurses
35080 +menu_opts_off test: ncurses
35084 +menu_request_by_name -
35085 +menu_request_name -
35090 +menu_win test: ncurses
35091 +new_item test: ncurses
35092 +new_menu test: ncurses
35093 +pos_menu_cursor lib: menu
35094 +post_menu test: ncurses
35095 +scale_menu test: ncurses
35096 +set_current_item -
35100 +set_item_userptr -
35101 +set_item_value test: ncurses
35104 +set_menu_format test: ncurses
35111 +set_menu_pattern -
35112 +set_menu_spacing -
35113 +set_menu_sub test: ncurses
35115 +set_menu_userptr -
35116 +set_menu_win test: ncurses
35119 +unpost_menu test: ncurses
35124 +COLORS test: ncurses xmas
35125 +COLOR_PAIR test: blue bs demo_forms filter firework gdc hanoi ins_wide inserts knight ncurses newdemo rain tclock testaddch testcurs view worm xmas
35126 +COLOR_PAIRS test: ncurses newdemo
35127 +COLS test: cardfile demo_defkey demo_forms demo_keyok edit_field firework hashtest ins_wide inserts lrtest ncurses newdemo rain tclock testcurs view worm
35128 +ESCDELAY lib: ncurses
35129 +LINES test: cardfile demo_defkey demo_keyok edit_field firework hanoi hashtest ins_wide inserts lrtest ncurses newdemo rain tclock testcurs view worm xmas
35130 +PAIR_NUMBER lib: ncurses
35135 +acs_map test: gdc ins_wide inserts knight ncurses newdemo testcurs
35137 +add_wchnstr test: ncurses
35138 +add_wchstr test: view
35139 +addch test: blue bs ditto hashtest ncurses testaddch view worm
35144 +addstr test: blue bs cardfile gdc hanoi lrtest ncurses
35146 +assume_default_colors test: ncurses
35148 +attr_off test: ncurses
35149 +attr_on test: ncurses
35151 +attroff test: filter gdc ncurses tclock
35152 +attron test: bs filter gdc ncurses
35153 +attrset test: bs firework gdc hanoi ncurses rain tclock testaddch testcurs
35154 +baudrate lib: ncurses
35155 +beep test: blue bs cardfile demo_forms edit_field hanoi ins_wide inserts knight ncurses tclock testcurs view xmas
35156 +bkgd test: demo_forms ncurses tclock view
35157 +bkgdset test: ncurses testaddch
35160 +boolcodes progs: dump_entry
35161 +boolfnames progs: dump_entry
35162 +boolnames progs: dump_entry infocmp
35165 +box test: cardfile demo_forms edit_field ins_wide inserts lrtest ncurses newdemo testcurs
35166 +box_set test: ncurses
35167 +can_change_color test: ncurses
35168 +cbreak test: blue bs cardfile demo_defkey demo_forms demo_keyok ditto filter firework gdc hanoi hashtest ins_wide inserts knight lrtest ncurses newdemo tclock testcurs view worm xmas
35170 +clear test: blue bs gdc ncurses testcurs xmas
35171 +clearok test: bs knight
35172 +clrtobot test: ncurses
35173 +clrtoeol test: blue bs hanoi hashtest ncurses view
35174 +color_content test: ncurses
35176 +copywin test: testcurs
35177 +cur_term test: dots lrtest progs: clear tic tput tset
35178 +curs_set test: firework gdc hanoi lrtest newdemo rain tclock testcurs worm xmas
35179 +curscr test: edit_field knight lrtest ncurses tclock view
35180 +curses_version test: ncurses progs: infocmp tic toe tput tset
35181 +def_prog_mode test: bs ncurses
35182 +def_shell_mode lib: ncurses
35183 +define_key test: demo_defkey
35184 +del_curterm lib: ncurses
35189 +delwin test: cardfile demo_forms edit_field ncurses newdemo testcurs
35190 +derwin test: cardfile demo_forms ncurses
35191 +doupdate test: cardfile edit_field ins_wide inserts knight ncurses
35192 +dupwin test: edit_field
35193 +echo test: bs hanoi ncurses testcurs testscanw
35194 +echo_wchar test: ncurses
35195 +echochar test: ncurses
35196 +endwin test: blue bs cardfile demo_defkey demo_forms demo_keyok ditto filter firework firstlast gdc hanoi hashtest ins_wide inserts knight lrtest ncurses newdemo rain tclock testaddch testcurs testscanw view worm xmas
35197 +erase test: cardfile filter firework firstlast hanoi lrtest ncurses tclock testcurs
35198 +erasechar lib: ncurses
35200 +filter test: filter
35201 +flash test: cardfile lrtest ncurses tclock testcurs
35202 +flushinp test: ncurses newdemo testcurs
35205 +getbkgd test: ncurses
35207 +getcchar test: view
35208 +getch test: blue bs ditto firework firstlast hanoi hashtest lrtest rain tclock testaddch testcurs view worm xmas
35209 +getmouse test: bs knight ncurses
35211 +getnstr test: filter ncurses
35213 +getwin test: ncurses
35214 +halfdelay test: view
35215 +has_colors test: bs demo_forms filter firework gdc hanoi ins_wide inserts knight ncurses newdemo rain tclock testcurs view worm xmas
35216 +has_ic test: lrtest
35217 +has_il lib: ncurses
35218 +has_key lib: ncurses
35219 +hline test: gdc ncurses
35222 +idlok test: ncurses testscanw view
35230 +init_color test: ncurses
35231 +init_pair test: blue bs demo_forms filter firework gdc hanoi ins_wide inserts knight ncurses newdemo rain tclock testaddch testcurs view worm xmas
35232 +initscr test: blue bs cardfile demo_defkey demo_forms demo_keyok firework firstlast gdc hanoi hashtest ins_wide inserts knight lrtest ncurses newdemo rain tclock testaddch testcurs testscanw view worm xmas
35244 +intrflush test: demo_forms
35246 +is_linetouched lib: form
35248 +is_wintouched lib: ncurses
35250 +key_defined test: demo_defkey
35251 +key_name test: ncurses
35252 +keybound test: demo_defkey
35253 +keyname test: demo_defkey demo_keyok edit_field keynames ncurses testcurs view progs: tic
35254 +keyok test: demo_keyok
35255 +keypad test: bs cardfile demo_defkey demo_forms demo_keyok edit_field filter firework hashtest ins_wide inserts knight lrtest ncurses tclock testcurs testscanw view
35256 +killchar lib: ncurses
35258 +leaveok test: hanoi
35259 +longname test: testcurs progs: tput
35261 +meta test: ncurses
35264 +mousemask test: bs knight ncurses
35265 +move test: blue bs cardfile gdc hanoi hashtest knight lrtest ncurses testscanw view worm xmas
35266 +mvadd_wch test: ncurses
35269 +mvaddch test: bs gdc hanoi lrtest ncurses rain tclock xmas
35270 +mvaddchnstr test: gdc
35274 +mvaddstr test: bs demo_forms gdc hanoi knight ncurses rain tclock testcurs xmas
35277 +mvcur lib: ncurses
35279 +mvderwin lib: menu
35286 +mvhline test: ncurses
35287 +mvhline_set test: ncurses
35292 +mvinchnstr test: gdc
35304 +mvprintw test: bs firework hanoi ncurses tclock view
35306 +mvvline test: ncurses
35307 +mvvline_set test: ncurses
35311 +mvwaddch test: newdemo testcurs xmas
35314 +mvwaddnstr test: newdemo testcurs
35316 +mvwaddstr test: firstlast ins_wide inserts knight ncurses newdemo testcurs xmas
35319 +mvwdelch test: ncurses
35326 +mvwhline lib: ncurses
35328 +mvwin test: cardfile testcurs xmas
35332 +mvwinch test: newdemo testcurs
35335 +mvwinnstr test: testcurs
35338 +mvwins_wch test: ins_wide
35339 +mvwins_wstr test: ins_wide
35340 +mvwinsch test: ins_wide inserts
35342 +mvwinsstr test: inserts testcurs
35345 +mvwprintw test: ncurses testcurs
35346 +mvwscanw test: testcurs
35347 +mvwvline test: ins_wide inserts
35349 +napms test: firework gdc hanoi lrtest ncurses newdemo railroad rain tclock testcurs view worm xmas progs: tset
35350 +newpad test: edit_field ncurses testcurs
35351 +newscr lib: ncurses
35352 +newterm test: ditto filter gdc
35353 +newwin test: cardfile demo_defkey demo_forms demo_keyok edit_field firstlast ins_wide inserts knight ncurses newdemo testcurs xmas
35354 +nl test: demo_forms ncurses rain testcurs
35355 +nocbreak test: testcurs
35356 +nodelay test: firework gdc lrtest ncurses newdemo rain tclock view xmas
35357 +noecho test: bs cardfile demo_defkey demo_forms demo_keyok ditto firework firstlast gdc hanoi hashtest ins_wide inserts knight lrtest ncurses rain tclock testcurs view worm xmas
35358 +nonl test: bs demo_forms hashtest ncurses view worm xmas
35360 +noraw test: demo_forms ncurses testcurs
35362 +numcodes progs: dump_entry
35363 +numfnames progs: dump_entry
35364 +numnames progs: dump_entry infocmp
35365 +ospeed progs: tset
35366 +overlay test: testcurs xmas
35367 +overwrite test: ncurses
35368 +pair_content lib: ncurses
35370 +pnoutrefresh test: edit_field ncurses
35371 +prefresh test: testcurs
35372 +printw test: blue bs demo_defkey demo_keyok filter ncurses testcurs testscanw view
35374 +putwin test: ncurses
35376 +raw test: demo_forms ncurses testcurs
35378 +refresh test: blue bs demo_defkey demo_forms demo_keyok ditto filter firstlast gdc hanoi hashtest lrtest ncurses tclock testcurs view worm xmas
35379 +reset_prog_mode test: filter ncurses
35380 +reset_shell_mode test: bs filter
35382 +resize_term test: view
35383 +resizeterm lib: ncurses
35385 +ripoffline test: ncurses
35387 +scanw test: testcurs testscanw
35393 +scroll test: testcurs
35394 +scrollok test: demo_defkey demo_keyok ditto hashtest knight ncurses testcurs testscanw view
35395 +set_curterm lib: ncurses
35396 +set_term test: ditto
35397 +setcchar test: ins_wide ncurses view
35398 +setscrreg test: view
35399 +setupterm test: dots progs: clear tput tset
35404 +slk_attroff lib: ncurses
35405 +slk_attron lib: ncurses
35407 +slk_clear test: ncurses
35408 +slk_color test: ncurses
35409 +slk_init test: ncurses
35410 +slk_label test: ncurses
35411 +slk_noutrefresh test: ncurses
35412 +slk_refresh test: ncurses
35413 +slk_restore test: ncurses
35414 +slk_set test: ncurses
35415 +slk_touch test: ncurses
35416 +slk_wset test: ncurses
35417 +standend test: blue gdc ncurses worm
35418 +standout test: blue ncurses
35419 +start_color test: blue bs demo_forms filter firework gdc hanoi ins_wide inserts knight ncurses newdemo rain tclock testaddch testcurs view worm xmas
35420 +stdscr test: bs demo_forms ditto filter firework gdc hanoi hashtest ins_wide inserts knight lrtest ncurses rain tclock testcurs testscanw view xmas
35421 +strcodes progs: dump_entry
35422 +strfnames progs: dump_entry
35423 +strnames progs: dump_entry infocmp tic
35424 +subpad test: testcurs
35425 +subwin test: ncurses newdemo testcurs
35428 +termattrs test: ncurses testcurs
35429 +termname test: testcurs
35430 +tgetent test: railroad
35432 +tgetnum test: railroad
35433 +tgetstr test: railroad
35434 +tgoto test: railroad
35435 +tigetflag progs: tput
35436 +tigetnum test: ncurses progs: tput
35437 +tigetstr test: blue demo_defkey testcurs progs: tput
35438 +timeout test: rain
35439 +touchline lib: ncurses
35440 +touchwin test: edit_field filter firstlast ncurses xmas
35441 +tparm test: dots progs: tic tput
35442 +tputs test: dots railroad progs: clear tset
35443 +trace test: hanoi hashtest lrtest ncurses testcurs view worm
35444 +ttytype lib: ncurses
35445 +typeahead test: testcurs
35446 +unctrl test: ncurses testcurs
35448 +ungetch test: bs knight
35451 +use_default_colors test: filter firework gdc hanoi knight ncurses rain tclock worm xmas
35452 +use_env progs: tput
35453 +use_extended_names progs: infocmp tic
35456 +vidattr lib: ncurses
35457 +vidputs lib: ncurses
35458 +vline test: gdc ncurses
35462 +vwprintw lib: ncurses
35463 +vwscanw lib: ncurses
35464 +wadd_wch lib: ncurses
35465 +wadd_wchnstr lib: ncurses
35467 +waddch test: firstlast knight ncurses
35468 +waddchnstr lib: ncurses
35470 +waddnstr lib: form
35471 +waddnwstr test: ncurses
35472 +waddstr test: demo_forms edit_field firstlast ins_wide knight ncurses testcurs
35473 +waddwstr test: ins_wide
35475 +wattr_off lib: menu
35476 +wattr_on lib: menu
35478 +wattroff test: demo_forms ncurses testcurs xmas
35479 +wattron test: testcurs xmas
35480 +wattrset test: demo_forms ncurses newdemo testcurs xmas
35481 +wbkgd test: demo_forms ncurses newdemo testcurs
35482 +wbkgdset test: ins_wide inserts ncurses
35483 +wbkgrnd lib: ncurses
35484 +wbkgrndset lib: ncurses
35485 +wborder lib: ncurses
35486 +wborder_set lib: ncurses
35488 +wclear test: ncurses testcurs
35489 +wclrtobot test: firstlast ncurses testcurs
35490 +wclrtoeol test: demo_defkey demo_keyok firstlast ins_wide inserts knight ncurses testcurs
35491 +wcolor_set lib: ncurses
35492 +wcursyncup lib: form
35493 +wdelch test: ncurses testcurs
35494 +wdeleteln test: testcurs
35495 +wecho_wchar lib: ncurses
35496 +wechochar lib: ncurses
35497 +wenclose lib: menu
35498 +werase test: cardfile demo_forms edit_field firstlast knight ncurses newdemo testcurs xmas
35499 +wget_wch test: ins_wide ncurses
35501 +wgetch test: cardfile demo_defkey demo_keyok edit_field gdc inserts knight ncurses newdemo testcurs
35502 +wgetn_wstr test: ncurses
35503 +wgetnstr test: ncurses
35505 +whline test: testcurs
35506 +whline_set lib: ncurses
35507 +win_wch lib: ncurses
35508 +win_wchnstr lib: ncurses
35510 +winch test: knight testcurs
35511 +winchnstr lib: ncurses
35513 +winnstr test: demo_defkey
35514 +winnwstr lib: ncurses
35515 +wins_nwstr lib: ncurses
35516 +wins_wch lib: ncurses
35518 +winsch test: testcurs
35519 +winsdelln lib: form
35520 +winsertln test: testcurs
35521 +winsnstr lib: form
35524 +winwstr lib: ncurses
35525 +wmouse_trafo lib: menu
35526 +wmove test: demo_defkey demo_keyok firstlast ins_wide inserts knight ncurses newdemo testcurs
35527 +wnoutrefresh test: edit_field ins_wide inserts knight ncurses
35528 +wprintw test: demo_defkey demo_forms demo_keyok edit_field ins_wide inserts knight ncurses testcurs
35529 +wredrawln lib: ncurses
35530 +wrefresh test: demo_forms demo_keyok edit_field firstlast knight lrtest ncurses newdemo tclock testcurs view xmas
35531 +wresize test: cardfile ncurses
35532 +wscanw test: testcurs
35533 +wscrl test: ncurses testcurs view
35534 +wsetscrreg test: ncurses testcurs
35535 +wstandend test: xmas
35536 +wstandout test: xmas
35537 +wsyncdown lib: ncurses
35539 +wtimeout test: ncurses
35540 +wtouchln lib: form
35542 +wvline test: testcurs
35543 +wvline_set lib: ncurses
35547 +bottom_panel test: ncurses
35548 +del_panel test: ncurses
35549 +hide_panel test: ncurses
35550 +move_panel test: ncurses
35551 +new_panel test: cardfile ncurses
35555 +panel_userptr test: ncurses
35556 +panel_window test: cardfile ncurses
35558 +set_panel_userptr test: ncurses
35559 +show_panel test: ncurses
35560 +top_panel test: cardfile ncurses
35561 +update_panels test: cardfile ncurses
35562 diff -urNd -urNd ncurses-5.3/test/aclocal.m4 ncurses-5.3.20030906.orig/test/aclocal.m4
35563 --- ncurses-5.3/test/aclocal.m4 Wed Dec 31 18:00:00 1969
35564 +++ ncurses-5.3.20030906.orig/test/aclocal.m4 Sun Jul 20 14:02:08 2003
35566 +dnl $Id: aclocal.m4,v 1.4 2003/05/17 22:22:52 tom Exp $
35567 +dnl ---------------------------------------------------------------------------
35568 +dnl ---------------------------------------------------------------------------
35569 +dnl CF_ADD_INCDIR version: 4 updated: 2002/12/21 14:25:52
35571 +dnl Add an include-directory to $CPPFLAGS. Don't add /usr/include, since it's
35572 +dnl redundant. We don't normally need to add -I/usr/local/include for gcc,
35573 +dnl but old versions (and some misinstalled ones) need that. To make things
35574 +dnl worse, gcc 3.x gives error messages if -I/usr/local/include is added to
35575 +dnl the include-path).
35576 +AC_DEFUN([CF_ADD_INCDIR],
35578 +for cf_add_incdir in $1
35582 + case $cf_add_incdir in
35583 + /usr/include) # (vi
35585 + /usr/local/include) # (vi
35586 + if test "$GCC" = yes
35588 + cf_save_CPPFLAGS="$CPPFLAGS"
35589 + CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
35590 + AC_TRY_COMPILE([#include <stdio.h>],
35591 + [printf("Hello")],
35593 + [CPPFLAGS="$cf_save_CPPFLAGS"])
35597 + CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
35600 + cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
35601 + test "$cf_top_incdir" = "$cf_add_incdir" && break
35602 + cf_add_incdir="$cf_top_incdir"
35606 +dnl ---------------------------------------------------------------------------
35607 +dnl CF_CHECK_CACHE version: 7 updated: 2001/12/19 00:50:10
35608 +dnl --------------
35609 +dnl Check if we're accidentally using a cache from a different machine.
35610 +dnl Derive the system name, as a check for reusing the autoconf cache.
35612 +dnl If we've packaged config.guess and config.sub, run that (since it does a
35613 +dnl better job than uname). Normally we'll use AC_CANONICAL_HOST, but allow
35614 +dnl an extra parameter that we may override, e.g., for AC_CANONICAL_SYSTEM
35615 +dnl which is useful in cross-compiles.
35616 +AC_DEFUN([CF_CHECK_CACHE],
35618 +if test -f $srcdir/config.guess ; then
35619 + ifelse([$1],,[AC_CANONICAL_HOST],[$1])
35620 + system_name="$host_os"
35622 + system_name="`(uname -s -r) 2>/dev/null`"
35623 + if test -z "$system_name" ; then
35624 + system_name="`(hostname) 2>/dev/null`"
35627 +test -n "$system_name" && AC_DEFINE_UNQUOTED(SYSTEM_NAME,"$system_name")
35628 +AC_CACHE_VAL(cf_cv_system_name,[cf_cv_system_name="$system_name"])
35630 +test -z "$system_name" && system_name="$cf_cv_system_name"
35631 +test -n "$cf_cv_system_name" && AC_MSG_RESULT(Configuring for $cf_cv_system_name)
35633 +if test ".$system_name" != ".$cf_cv_system_name" ; then
35634 + AC_MSG_RESULT(Cached system name ($system_name) does not agree with actual ($cf_cv_system_name))
35635 + AC_ERROR("Please remove config.cache and try again.")
35638 +dnl ---------------------------------------------------------------------------
35639 +dnl CF_CURSES_ACS_MAP version: 3 updated: 2003/05/17 22:19:02
35640 +dnl -----------------
35641 +dnl Check for likely values of acs_map[]:
35642 +AC_DEFUN([CF_CURSES_ACS_MAP],
35644 +AC_CACHE_CHECK(for alternate character set array, cf_cv_curses_acs_map,[
35645 +cf_cv_curses_acs_map=unknown
35646 +for name in acs_map _acs_map __acs_map _nc_acs_map
35649 +#include <${cf_cv_ncurses_header-curses.h}>
35651 +$name['k'] = ACS_PLUS
35652 +],[cf_cv_curses_acs_map=$name; break])
35656 +test "$cf_cv_curses_acs_map" != unknown && AC_DEFINE_UNQUOTED(CURSES_ACS_ARRAY,$cf_cv_curses_acs_map)
35658 +dnl ---------------------------------------------------------------------------
35659 +dnl CF_CURSES_CHECK_TYPE version: 2 updated: 2003/03/01 23:40:33
35660 +dnl --------------------
35661 +dnl Check if curses.h defines the given type
35662 +AC_DEFUN([CF_CURSES_CHECK_TYPE],
35664 +AC_MSG_CHECKING(for type $1 in ${cf_cv_ncurses_header-curses.h})
35666 +#ifndef _XOPEN_SOURCE_EXTENDED
35667 +#define _XOPEN_SOURCE_EXTENDED
35669 +#include <${cf_cv_ncurses_header-curses.h}>],[
35671 +],cf_result=yes,cf_result=no)
35672 +AC_MSG_RESULT($cf_result)
35673 +if test $cf_result = yes ; then
35674 + CF_UPPER(cf_result,have_type_$1)
35675 + AC_DEFINE_UNQUOTED($cf_result)
35677 + AC_DEFINE_UNQUOTED($1,$2)
35680 +dnl ---------------------------------------------------------------------------
35681 +dnl CF_CURSES_CPPFLAGS version: 6 updated: 2002/10/27 18:21:42
35682 +dnl ------------------
35683 +dnl Look for the curses headers.
35684 +AC_DEFUN([CF_CURSES_CPPFLAGS],[
35686 +AC_CACHE_CHECK(for extra include directories,cf_cv_curses_incdir,[
35687 +cf_cv_curses_incdir=no
35688 +case $host_os in #(vi
35689 +hpux10.*|hpux11.*) #(vi
35690 + test -d /usr/include/curses_colr && \
35691 + cf_cv_curses_incdir="-I/usr/include/curses_colr"
35694 + test -d /usr/5lib && \
35695 + test -d /usr/5include && \
35696 + cf_cv_curses_incdir="-I/usr/5include"
35700 +test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
35702 +AC_CACHE_CHECK(if we have identified curses headers,cf_cv_ncurses_header,[
35703 +cf_cv_ncurses_header=none
35704 +for cf_header in \
35707 + ncurses/curses.h \
35708 + ncurses/ncurses.h
35710 +AC_TRY_COMPILE([#include <${cf_header}>],
35711 + [initscr(); tgoto("?", 0,0)],
35712 + [cf_cv_ncurses_header=$cf_header; break],[])
35716 +if test "$cf_cv_ncurses_header" = none ; then
35717 + AC_MSG_ERROR(No curses header-files found)
35720 +# cheat, to get the right #define's for HAVE_NCURSES_H, etc.
35721 +AC_CHECK_HEADERS($cf_cv_ncurses_header)
35724 +dnl ---------------------------------------------------------------------------
35725 +dnl CF_CURSES_LIBS version: 22 updated: 2002/10/27 18:21:42
35726 +dnl --------------
35727 +dnl Look for the curses libraries. Older curses implementations may require
35728 +dnl termcap/termlib to be linked as well. Call CF_CURSES_CPPFLAGS first.
35729 +AC_DEFUN([CF_CURSES_LIBS],[
35731 +AC_MSG_CHECKING(if we have identified curses libraries)
35732 +AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
35733 + [initscr(); tgoto("?", 0,0)],
35736 +AC_MSG_RESULT($cf_result)
35738 +if test "$cf_result" = no ; then
35739 +case $host_os in #(vi
35741 + AC_CHECK_LIB(mytinfo,tgoto,[LIBS="-lmytinfo $LIBS"])
35743 +hpux10.*|hpux11.*) #(vi
35744 + AC_CHECK_LIB(cur_colr,initscr,[
35745 + LIBS="-lcur_colr $LIBS"
35746 + ac_cv_func_initscr=yes
35748 + AC_CHECK_LIB(Hcurses,initscr,[
35749 + # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
35750 + LIBS="-lHcurses $LIBS"
35751 + CPPFLAGS="-D__HP_CURSES -D_HP_CURSES $CPPFLAGS"
35752 + ac_cv_func_initscr=yes
35755 +linux*) # Suse Linux does not follow /usr/lib convention
35756 + LIBS="$LIBS -L/lib"
35759 + test -d /usr/5lib && \
35760 + LIBS="$LIBS -L/usr/5lib -lcurses -ltermcap"
35761 + ac_cv_func_initscr=yes
35765 +if test ".$ac_cv_func_initscr" != .yes ; then
35766 + cf_save_LIBS="$LIBS"
35770 + if test ".${cf_cv_ncurses_version-no}" != .no
35772 + cf_check_list="ncurses curses cursesX"
35774 + cf_check_list="cursesX curses ncurses"
35777 + # Check for library containing tgoto. Do this before curses library
35778 + # because it may be needed to link the test-case for initscr.
35779 + AC_CHECK_FUNC(tgoto,[cf_term_lib=predefined],[
35780 + for cf_term_lib in $cf_check_list termcap termlib unknown
35782 + AC_CHECK_LIB($cf_term_lib,tgoto,[break])
35786 + # Check for library containing initscr
35787 + test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
35788 + for cf_curs_lib in $cf_check_list xcurses jcurses unknown
35790 + AC_CHECK_LIB($cf_curs_lib,initscr,[break])
35792 + test $cf_curs_lib = unknown && AC_ERROR(no curses library found)
35794 + LIBS="-l$cf_curs_lib $cf_save_LIBS"
35795 + if test "$cf_term_lib" = unknown ; then
35796 + AC_MSG_CHECKING(if we can link with $cf_curs_lib library)
35797 + AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
35801 + AC_MSG_RESULT($cf_result)
35802 + test $cf_result = no && AC_ERROR(Cannot link curses library)
35803 + elif test "$cf_curs_lib" = "$cf_term_lib" ; then
35805 + elif test "$cf_term_lib" != predefined ; then
35806 + AC_MSG_CHECKING(if we need both $cf_curs_lib and $cf_term_lib libraries)
35807 + AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
35808 + [initscr(); tgoto((char *)0, 0, 0);],
35811 + LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
35812 + AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
35815 + [cf_result=error])
35817 + AC_MSG_RESULT($cf_result)
35823 +dnl ---------------------------------------------------------------------------
35824 +dnl CF_CURSES_WACS_MAP version: 3 updated: 2003/05/17 22:19:02
35825 +dnl ------------------
35826 +dnl Check for likely values of wacs_map[]:
35827 +AC_DEFUN([CF_CURSES_WACS_MAP],
35829 +AC_CACHE_CHECK(for wide alternate character set array, cf_cv_curses_wacs_map,[
35830 + cf_cv_curses_wacs_map=unknown
35831 + for name in wacs_map _wacs_map __wacs_map _nc_wacs
35834 +#ifndef _XOPEN_SOURCE_EXTENDED
35835 +#define _XOPEN_SOURCE_EXTENDED
35837 +#include <${cf_cv_ncurses_header-curses.h}>],
35838 + [$name['k'] = *WACS_PLUS],
35839 + [cf_cv_curses_wacs_map=$name
35843 +dnl ---------------------------------------------------------------------------
35844 +dnl CF_DIRNAME version: 4 updated: 2002/12/21 19:25:52
35846 +dnl "dirname" is not portable, so we fake it with a shell script.
35847 +AC_DEFUN([CF_DIRNAME],[$1=`echo $2 | sed -e 's%/[[^/]]*$%%'`])dnl
35848 +dnl ---------------------------------------------------------------------------
35849 +dnl CF_FIND_LIBRARY version: 7 updated: 2000/04/13 21:38:04
35850 +dnl ---------------
35851 +dnl Look for a non-standard library, given parameters for AC_TRY_LINK. We
35852 +dnl prefer a standard location, and use -L options only if we do not find the
35853 +dnl library in the standard library location(s).
35854 +dnl $1 = library name
35855 +dnl $2 = library class, usually the same as library name
35857 +dnl $4 = code fragment to compile/link
35858 +dnl $5 = corresponding function-name
35859 +dnl $6 = flag, nonnull if failure causes an error-exit
35861 +dnl Sets the variable "$cf_libdir" as a side-effect, so we can see if we had
35862 +dnl to use a -L option.
35863 +AC_DEFUN([CF_FIND_LIBRARY],
35865 + eval 'cf_cv_have_lib_'$1'=no'
35867 + AC_CHECK_FUNC($5,
35868 + eval 'cf_cv_have_lib_'$1'=yes',[
35869 + cf_save_LIBS="$LIBS"
35870 + AC_MSG_CHECKING(for $5 in -l$1)
35871 + LIBS="-l$1 $LIBS"
35872 + AC_TRY_LINK([$3],[$4],
35873 + [AC_MSG_RESULT(yes)
35874 + eval 'cf_cv_have_lib_'$1'=yes'
35876 + [AC_MSG_RESULT(no)
35877 + CF_LIBRARY_PATH(cf_search,$2)
35878 + for cf_libdir in $cf_search
35880 + AC_MSG_CHECKING(for -l$1 in $cf_libdir)
35881 + LIBS="-L$cf_libdir -l$1 $cf_save_LIBS"
35882 + AC_TRY_LINK([$3],[$4],
35883 + [AC_MSG_RESULT(yes)
35884 + eval 'cf_cv_have_lib_'$1'=yes'
35886 + [AC_MSG_RESULT(no)
35887 + LIBS="$cf_save_LIBS"])
35891 +eval 'cf_found_library=[$]cf_cv_have_lib_'$1
35893 +if test $cf_found_library = no ; then
35894 + AC_ERROR(Cannot link $1 library)
35898 +dnl ---------------------------------------------------------------------------
35899 +dnl CF_FUNC_CURSES_VERSION version: 3 updated: 2003/05/17 22:19:02
35900 +dnl ----------------------
35901 +dnl Solaris has a data item 'curses_version', which confuses AC_CHECK_FUNCS.
35902 +dnl It's a character string "SVR4", not documented.
35903 +AC_DEFUN([CF_FUNC_CURSES_VERSION],
35905 +AC_CACHE_CHECK(for function curses_version, cf_cv_func_curses_version,[
35907 +#include <${cf_cv_ncurses_header-curses.h}>
35911 + sprintf(temp, "%s\n", curses_version());
35914 +,[cf_cv_func_curses_version=yes]
35915 +,[cf_cv_func_curses_version=no]
35916 +,[cf_cv_func_curses_version=unknown])
35918 +test "$cf_cv_func_curses_version" = yes && AC_DEFINE(HAVE_CURSES_VERSION)
35920 +dnl ---------------------------------------------------------------------------
35921 +dnl CF_HEADER_PATH version: 8 updated: 2002/11/10 14:46:59
35922 +dnl --------------
35923 +dnl Construct a search-list for a nonstandard header-file
35924 +AC_DEFUN([CF_HEADER_PATH],
35925 +[CF_SUBDIR_PATH($1,$2,include)
35926 +test "$includedir" != NONE && \
35927 +test "$includedir" != "/usr/include" && \
35928 +test -d "$includedir" && {
35929 + test -d $includedir && $1="[$]$1 $includedir"
35930 + test -d $includedir/$2 && $1="[$]$1 $includedir/$2"
35933 +test "$oldincludedir" != NONE && \
35934 +test "$oldincludedir" != "/usr/include" && \
35935 +test -d "$oldincludedir" && {
35936 + test -d $oldincludedir && $1="[$]$1 $oldincludedir"
35937 + test -d $oldincludedir/$2 && $1="[$]$1 $oldincludedir/$2"
35941 +dnl ---------------------------------------------------------------------------
35942 +dnl CF_INHERIT_SCRIPT version: 2 updated: 2003/03/01 23:50:42
35943 +dnl -----------------
35944 +dnl If we do not have a given script, look for it in the parent directory.
35945 +AC_DEFUN([CF_INHERIT_SCRIPT],
35947 +test -f $1 || ( test -f ../$1 && cp ../$1 ./ )
35949 +dnl ---------------------------------------------------------------------------
35950 +dnl CF_LIBRARY_PATH version: 7 updated: 2002/11/10 14:46:59
35951 +dnl ---------------
35952 +dnl Construct a search-list for a nonstandard library-file
35953 +AC_DEFUN([CF_LIBRARY_PATH],
35954 +[CF_SUBDIR_PATH($1,$2,lib)])dnl
35955 +dnl ---------------------------------------------------------------------------
35956 +dnl CF_NCURSES_CC_CHECK version: 3 updated: 2003/01/12 18:59:28
35957 +dnl -------------------
35958 +dnl Check if we can compile with ncurses' header file
35959 +dnl $1 is the cache variable to set
35960 +dnl $2 is the header-file to include
35961 +dnl $3 is the root name (ncurses or ncursesw)
35962 +AC_DEFUN([CF_NCURSES_CC_CHECK],[
35964 +]ifelse($3,ncursesw,[
35965 +#define _XOPEN_SOURCE_EXTENDED
35966 +#undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
35967 +#define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
35970 +#ifdef NCURSES_VERSION
35971 +]ifelse($3,ncursesw,[
35976 +printf("%s\n", NCURSES_VERSION);
35978 +#ifdef __NCURSES_H
35988 +dnl ---------------------------------------------------------------------------
35989 +dnl CF_NCURSES_CPPFLAGS version: 16 updated: 2002/12/29 18:30:46
35990 +dnl -------------------
35991 +dnl Look for the SVr4 curses clone 'ncurses' in the standard places, adjusting
35992 +dnl the CPPFLAGS variable so we can include its header.
35994 +dnl The header files may be installed as either curses.h, or ncurses.h (would
35995 +dnl be obsolete, except that some packagers prefer this name to distinguish it
35996 +dnl from a "native" curses implementation). If not installed for overwrite,
35997 +dnl the curses.h file would be in an ncurses subdirectory (e.g.,
35998 +dnl /usr/include/ncurses), but someone may have installed overwriting the
35999 +dnl vendor's curses. Only very old versions (pre-1.9.2d, the first autoconf'd
36000 +dnl version) of ncurses don't define either __NCURSES_H or NCURSES_VERSION in
36003 +dnl If the installer has set $CFLAGS or $CPPFLAGS so that the ncurses header
36004 +dnl is already in the include-path, don't even bother with this, since we cannot
36005 +dnl easily determine which file it is. In this case, it has to be <curses.h>.
36007 +dnl The optional parameter gives the root name of the library, in case it is
36008 +dnl not installed as the default curses library. That is how the
36009 +dnl wide-character version of ncurses is installed.
36010 +AC_DEFUN([CF_NCURSES_CPPFLAGS],
36011 +[AC_REQUIRE([CF_WITH_CURSES_DIR])
36013 +cf_ncuhdr_root=ifelse($1,,ncurses,$1)
36015 +test -n "$cf_cv_curses_dir" && \
36016 +test "$cf_cv_curses_dir" != "no" && \
36017 +CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
36019 +AC_CACHE_CHECK(for $cf_ncuhdr_root header in include-path, cf_cv_ncurses_h,[
36020 + cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
36021 + ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
36022 + for cf_header in $cf_header_list
36024 + CF_NCURSES_CC_CHECK(cf_cv_ncurses_h,$cf_header,$1)
36025 + test "$cf_cv_ncurses_h" != no && break
36029 +if test "$cf_cv_ncurses_h" != no ; then
36030 + cf_cv_ncurses_header=$cf_cv_ncurses_h
36032 +AC_CACHE_CHECK(for $cf_ncuhdr_root include-path, cf_cv_ncurses_h2,[
36033 + test -n "$verbose" && echo
36034 + CF_HEADER_PATH(cf_search,$cf_ncuhdr_root)
36035 + test -n "$verbose" && echo search path $cf_search
36036 + cf_save2_CPPFLAGS="$CPPFLAGS"
36037 + for cf_incdir in $cf_search
36039 + CF_ADD_INCDIR($cf_incdir)
36040 + for cf_header in \
36044 + CF_NCURSES_CC_CHECK(cf_cv_ncurses_h2,$cf_header,$1)
36045 + if test "$cf_cv_ncurses_h2" != no ; then
36046 + cf_cv_ncurses_h2=$cf_incdir/$cf_header
36047 + test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&AC_FD_MSG
36050 + test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&AC_FD_MSG
36052 + CPPFLAGS="$cf_save2_CPPFLAGS"
36053 + test "$cf_cv_ncurses_h2" != no && break
36055 + test "$cf_cv_ncurses_h2" = no && AC_ERROR(not found)
36058 + CF_DIRNAME(cf_1st_incdir,$cf_cv_ncurses_h2)
36059 + cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
36060 + if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
36061 + cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
36063 + CF_ADD_INCDIR($cf_1st_incdir)
36067 +AC_DEFINE(NCURSES)
36069 +case $cf_cv_ncurses_header in # (vi
36071 + AC_DEFINE(HAVE_NCURSES_H)
36075 +case $cf_cv_ncurses_header in # (vi
36076 +ncurses/curses.h|ncurses/ncurses.h)
36077 + AC_DEFINE(HAVE_NCURSES_NCURSES_H)
36079 +ncursesw/curses.h|ncursesw/ncurses.h)
36080 + AC_DEFINE(HAVE_NCURSESW_NCURSES_H)
36084 +CF_NCURSES_VERSION
36086 +dnl ---------------------------------------------------------------------------
36087 +dnl CF_NCURSES_LIBS version: 11 updated: 2002/12/22 14:22:25
36088 +dnl ---------------
36089 +dnl Look for the ncurses library. This is a little complicated on Linux,
36090 +dnl because it may be linked with the gpm (general purpose mouse) library.
36091 +dnl Some distributions have gpm linked with (bsd) curses, which makes it
36092 +dnl unusable with ncurses. However, we don't want to link with gpm unless
36093 +dnl ncurses has a dependency, since gpm is normally set up as a shared library,
36094 +dnl and the linker will record a dependency.
36096 +dnl The optional parameter gives the root name of the library, in case it is
36097 +dnl not installed as the default curses library. That is how the
36098 +dnl wide-character version of ncurses is installed.
36099 +AC_DEFUN([CF_NCURSES_LIBS],
36100 +[AC_REQUIRE([CF_NCURSES_CPPFLAGS])
36102 +cf_nculib_root=ifelse($1,,ncurses,$1)
36103 + # This works, except for the special case where we find gpm, but
36104 + # ncurses is in a nonstandard location via $LIBS, and we really want
36106 +cf_ncurses_LIBS=""
36107 +cf_ncurses_SAVE="$LIBS"
36108 +AC_CHECK_LIB(gpm,Gpm_Open,
36109 + [AC_CHECK_LIB(gpm,initscr,
36110 + [LIBS="$cf_ncurses_SAVE"],
36111 + [cf_ncurses_LIBS="-lgpm"])])
36113 +case $host_os in #(vi
36115 + # This is only necessary if you are linking against an obsolete
36116 + # version of ncurses (but it should do no harm, since it's static).
36117 + AC_CHECK_LIB(mytinfo,tgoto,[cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"])
36121 +LIBS="$cf_ncurses_LIBS $LIBS"
36123 +if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
36125 + LIBS="-L$cf_cv_curses_dir/lib -l$cf_nculib_root $LIBS"
36127 + CF_FIND_LIBRARY($cf_nculib_root,$cf_nculib_root,
36128 + [#include <${cf_cv_ncurses_header-curses.h}>],
36133 +if test -n "$cf_ncurses_LIBS" ; then
36134 + AC_MSG_CHECKING(if we can link $cf_nculib_root without $cf_ncurses_LIBS)
36135 + cf_ncurses_SAVE="$LIBS"
36136 + for p in $cf_ncurses_LIBS ; do
36137 + q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
36138 + if test "$q" != "$LIBS" ; then
36142 + AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
36143 + [initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);],
36144 + [AC_MSG_RESULT(yes)],
36145 + [AC_MSG_RESULT(no)
36146 + LIBS="$cf_ncurses_SAVE"])
36149 +CF_UPPER(cf_nculib_ROOT,HAVE_LIB$cf_nculib_root)
36150 +AC_DEFINE_UNQUOTED($cf_nculib_ROOT)
36152 +dnl ---------------------------------------------------------------------------
36153 +dnl CF_NCURSES_VERSION version: 10 updated: 2002/10/27 18:21:42
36154 +dnl ------------------
36155 +dnl Check for the version of ncurses, to aid in reporting bugs, etc.
36156 +dnl Call CF_CURSES_CPPFLAGS first, or CF_NCURSES_CPPFLAGS. We don't use
36157 +dnl AC_REQUIRE since that does not work with the shell's if/then/else/fi.
36158 +AC_DEFUN([CF_NCURSES_VERSION],
36160 +AC_CACHE_CHECK(for ncurses version, cf_cv_ncurses_version,[
36161 + cf_cv_ncurses_version=no
36162 + cf_tempfile=out$$
36163 + rm -f $cf_tempfile
36165 +#include <${cf_cv_ncurses_header-curses.h}>
36166 +#include <stdio.h>
36169 + FILE *fp = fopen("$cf_tempfile", "w");
36170 +#ifdef NCURSES_VERSION
36171 +# ifdef NCURSES_VERSION_PATCH
36172 + fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
36174 + fprintf(fp, "%s\n", NCURSES_VERSION);
36177 +# ifdef __NCURSES_H
36178 + fprintf(fp, "old\n");
36185 + cf_cv_ncurses_version=`cat $cf_tempfile`],,[
36187 + # This will not work if the preprocessor splits the line after the
36188 + # Autoconf token. The 'unproto' program does that.
36189 + cat > conftest.$ac_ext <<EOF
36190 +#include <${cf_cv_ncurses_header-curses.h}>
36192 +#ifdef NCURSES_VERSION
36193 +Autoconf NCURSES_VERSION
36195 +#ifdef __NCURSES_H
36201 + cf_try="$ac_cpp conftest.$ac_ext 2>&AC_FD_CC | grep '^Autoconf ' >conftest.out"
36202 + AC_TRY_EVAL(cf_try)
36203 + if test -f conftest.out ; then
36204 + cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[[^"]]*"%%' -e 's%".*%%'`
36205 + test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
36206 + rm -f conftest.out
36209 + rm -f $cf_tempfile
36211 +test "$cf_cv_ncurses_version" = no || AC_DEFINE(NCURSES)
36213 +dnl ---------------------------------------------------------------------------
36214 +dnl CF_PATH_SYNTAX version: 9 updated: 2002/09/17 23:03:38
36215 +dnl --------------
36216 +dnl Check the argument to see that it looks like a pathname. Rewrite it if it
36217 +dnl begins with one of the prefix/exec_prefix variables, and then again if the
36218 +dnl result begins with 'NONE'. This is necessary to work around autoconf's
36219 +dnl delayed evaluation of those symbols.
36220 +AC_DEFUN([CF_PATH_SYNTAX],[
36221 +case ".[$]$1" in #(vi
36222 +.\[$]\(*\)*|.\'*\'*) #(vi
36226 +.[[a-zA-Z]]:[[\\/]]*) #(vi OS/2 EMX
36228 +.\[$]{*prefix}*) #(vi
36230 + case ".[$]$1" in #(vi
36232 + $1=`echo [$]$1 | sed -e s%NONE%$ac_default_prefix%`
36237 + $1=`echo [$]$1 | sed -e s%NONE%$ac_default_prefix%`
36240 + ifelse($2,,[AC_ERROR([expected a pathname, not \"[$]$1\"])],$2)
36244 +dnl ---------------------------------------------------------------------------
36245 +dnl CF_SUBDIR_PATH version: 3 updated: 2002/12/29 18:30:46
36246 +dnl --------------
36247 +dnl Construct a search-list for a nonstandard header/lib-file
36248 +dnl $1 = the variable to return as result
36249 +dnl $2 = the package name
36250 +dnl $3 = the subdirectory, e.g., bin, include or lib
36251 +AC_DEFUN([CF_SUBDIR_PATH],
36254 +test -d [$]HOME && {
36255 + test -n "$verbose" && echo " ... testing $3-directories under [$]HOME"
36256 + test -d [$]HOME/$3 && $1="[$]$1 [$]HOME/$3"
36257 + test -d [$]HOME/$3/$2 && $1="[$]$1 [$]HOME/$3/$2"
36258 + test -d [$]HOME/$3/$2/$3 && $1="[$]$1 [$]HOME/$3/$2/$3"
36261 +# For other stuff under the home directory, it should be sufficient to put
36262 +# a symbolic link for $HOME/$2 to the actual package location:
36263 +test -d [$]HOME/$2 && {
36264 + test -n "$verbose" && echo " ... testing $3-directories under [$]HOME/$2"
36265 + test -d [$]HOME/$2/$3 && $1="[$]$1 [$]HOME/$2/$3"
36266 + test -d [$]HOME/$2/$3/$2 && $1="[$]$1 [$]HOME/$2/$3/$2"
36269 +test "$prefix" != /usr/local && \
36270 +test -d /usr/local && {
36271 + test -n "$verbose" && echo " ... testing $3-directories under /usr/local"
36272 + test -d /usr/local/$3 && $1="[$]$1 /usr/local/$3"
36273 + test -d /usr/local/$3/$2 && $1="[$]$1 /usr/local/$3/$2"
36274 + test -d /usr/local/$3/$2/$3 && $1="[$]$1 /usr/local/$3/$2/$3"
36275 + test -d /usr/local/$2/$3 && $1="[$]$1 /usr/local/$2/$3"
36276 + test -d /usr/local/$2/$3/$2 && $1="[$]$1 /usr/local/$2/$3/$2"
36279 +test "$prefix" != NONE && \
36280 +test -d $prefix && {
36281 + test -n "$verbose" && echo " ... testing $3-directories under $prefix"
36282 + test -d $prefix/$3 && $1="[$]$1 $prefix/$3"
36283 + test -d $prefix/$3/$2 && $1="[$]$1 $prefix/$3/$2"
36284 + test -d $prefix/$3/$2/$3 && $1="[$]$1 $prefix/$3/$2/$3"
36285 + test -d $prefix/$2/$3 && $1="[$]$1 $prefix/$2/$3"
36286 + test -d $prefix/$2/$3/$2 && $1="[$]$1 $prefix/$2/$3/$2"
36289 +test "$prefix" != /opt && \
36291 + test -n "$verbose" && echo " ... testing $3-directories under /opt"
36292 + test -d /opt/$3 && $1="[$]$1 /opt/$3"
36293 + test -d /opt/$3/$2 && $1="[$]$1 /opt/$3/$2"
36294 + test -d /opt/$3/$2/$3 && $1="[$]$1 /opt/$3/$2/$3"
36295 + test -d /opt/$2/$3 && $1="[$]$1 /opt/$2/$3"
36296 + test -d /opt/$2/$3/$2 && $1="[$]$1 /opt/$2/$3/$2"
36299 +test "$prefix" != /usr && \
36301 + test -n "$verbose" && echo " ... testing $3-directories under /usr"
36302 + test -d /usr/$3 && $1="[$]$1 /usr/$3"
36303 + test -d /usr/$3/$2 && $1="[$]$1 /usr/$3/$2"
36304 + test -d /usr/$3/$2/$3 && $1="[$]$1 /usr/$3/$2/$3"
36305 + test -d /usr/$2/$3 && $1="[$]$1 /usr/$2/$3"
36308 +dnl ---------------------------------------------------------------------------
36309 +dnl CF_SYS_TIME_SELECT version: 4 updated: 2000/10/04 09:18:40
36310 +dnl ------------------
36311 +dnl Check if we can include <sys/time.h> with <sys/select.h>; this breaks on
36312 +dnl older SCO configurations.
36313 +AC_DEFUN([CF_SYS_TIME_SELECT],
36315 +AC_MSG_CHECKING(if sys/time.h works with sys/select.h)
36316 +AC_CACHE_VAL(cf_cv_sys_time_select,[
36318 +#include <sys/types.h>
36319 +#ifdef HAVE_SYS_TIME_H
36320 +#include <sys/time.h>
36322 +#ifdef HAVE_SYS_SELECT_H
36323 +#include <sys/select.h>
36325 +],[],[cf_cv_sys_time_select=yes],
36326 + [cf_cv_sys_time_select=no])
36328 +AC_MSG_RESULT($cf_cv_sys_time_select)
36329 +test "$cf_cv_sys_time_select" = yes && AC_DEFINE(HAVE_SYS_TIME_SELECT)
36331 +dnl ---------------------------------------------------------------------------
36332 +dnl CF_UPPER version: 5 updated: 2001/01/29 23:40:59
36334 +dnl Make an uppercase version of a variable
36335 +dnl $1=uppercase($2)
36336 +AC_DEFUN([CF_UPPER],
36338 +$1=`echo "$2" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
36340 +dnl ---------------------------------------------------------------------------
36341 +dnl CF_UTF8_LIB version: 4 updated: 2003/03/01 18:36:42
36343 +dnl Check for multibyte support, and if not found, utf8 compatibility library
36344 +AC_DEFUN([CF_UTF8_LIB],
36346 +AC_CACHE_CHECK(for multibyte character support,cf_cv_utf8_lib,[
36347 + cf_save_LIBS="$LIBS"
36349 +#include <stdlib.h>],[putwc(0,0);],
36350 + [cf_cv_utf8_lib=yes],
36351 + [LIBS="-lutf8 $LIBS"
36353 +#include <libutf8.h>],[putwc(0,0);],
36354 + [cf_cv_utf8_lib=add-on],
36355 + [cf_cv_utf8_lib=no])
36356 + LIBS="$cf_save_LIBS"
36359 +# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
36360 +# ncurses/ncursesw:
36361 +if test "$cf_cv_utf8_lib" = "add-on" ; then
36362 + AC_DEFINE(HAVE_LIBUTF8_H)
36363 + LIBS="-lutf8 $LIBS"
36366 +dnl ---------------------------------------------------------------------------
36367 +dnl CF_WITH_CURSES_DIR version: 2 updated: 2002/11/10 14:46:59
36368 +dnl ------------------
36369 +dnl Wrapper for AC_ARG_WITH to specify directory under which to look for curses
36371 +AC_DEFUN([CF_WITH_CURSES_DIR],[
36372 +AC_ARG_WITH(curses-dir,
36373 + [ --with-curses-dir=DIR directory in which (n)curses is installed],
36374 + [CF_PATH_SYNTAX(withval)
36375 + cf_cv_curses_dir=$withval],
36376 + [cf_cv_curses_dir=no])
36378 diff -urNd -urNd ncurses-5.3/test/bs.c ncurses-5.3.20030906.orig/test/bs.c
36379 --- ncurses-5.3/test/bs.c Sat Jun 29 18:32:18 2002
36380 +++ ncurses-5.3.20030906.orig/test/bs.c Tue May 13 20:08:23 2003
36382 * v2.0 featuring strict ANSI/POSIX conformance, November 1993.
36383 * v2.1 with ncurses mouse support, September 1995
36385 - * $Id: bs.c,v 1.36 2002/06/29 23:32:18 tom Exp $
36386 + * $Id: bs.c,v 1.37 2002/10/19 22:11:47 tom Exp $
36389 -#include <ctype.h>
36390 -#include <assert.h>
36393 #include <test.priv.h>
36394 diff -urNd -urNd ncurses-5.3/test/cardfile.c ncurses-5.3.20030906.orig/test/cardfile.c
36395 --- ncurses-5.3/test/cardfile.c Sun Sep 1 12:59:48 2002
36396 +++ ncurses-5.3.20030906.orig/test/cardfile.c Tue May 13 20:08:23 2003
36398 /****************************************************************************
36399 - * Copyright (c) 1999-2001,2002 Free Software Foundation, Inc. *
36400 + * Copyright (c) 1999-2002,2003 Free Software Foundation, Inc. *
36402 * Permission is hereby granted, free of charge, to any person obtaining a *
36403 * copy of this software and associated documentation files (the *
36404 @@ -29,26 +29,28 @@
36406 * Author: Thomas E. Dickey <dickey@clark.net> 1999
36408 - * $Id: cardfile.c,v 1.19 2002/09/01 17:59:48 tom Exp $
36409 + * $Id: cardfile.c,v 1.23 2003/04/26 16:43:56 tom Exp $
36411 - * File format: text beginning in column 1 is a title; other text forms the content.
36412 + * File format: text beginning in column 1 is a title; other text is content.
36415 #include <test.priv.h>
36417 -#if HAVE_FORM_H && HAVE_PANEL_H && HAVE_LIBFORM && HAVE_LIBPANEL
36418 +#if USE_LIBFORM && USE_LIBPANEL
36423 -#include <ctype.h>
36425 #define VISIBLE_CARDS 10
36426 #define OFFSET_CARD 2
36429 -#define CTRL(x) ((x) & 0x1f)
36432 + MY_CTRL_x = MAX_FORM_COMMAND
36439 typedef struct _card {
36440 struct _card *link;
36441 @@ -273,14 +275,14 @@
36445 - return (MAX_FORM_COMMAND + 4);
36446 + return (MY_CTRL_W);
36448 - return (MAX_FORM_COMMAND + 3);
36449 + return (MY_CTRL_N);
36451 - return (MAX_FORM_COMMAND + 2);
36452 + return (MY_CTRL_P);
36455 - return (MAX_FORM_COMMAND + 1);
36456 + return (MY_CTRL_Q);
36458 case KEY_BACKSPACE:
36459 return (REQ_DEL_PREV);
36460 @@ -311,10 +313,12 @@
36461 f[0] = new_field(1, form_wide, 0, 0, 0, 0);
36462 set_field_back(f[0], A_REVERSE);
36463 set_field_buffer(f[0], 0, p->title);
36464 + field_opts_off(f[0], O_BLANK);
36466 f[1] = new_field(form_high - 1, form_wide, 1, 0, 0, 0);
36467 set_field_buffer(f[1], 0, p->content);
36468 set_field_just(f[1], JUSTIFY_LEFT);
36469 + field_opts_off(f[1], O_BLANK);
36473 @@ -394,18 +398,19 @@
36475 case E_UNKNOWN_COMMAND:
36477 - case MAX_FORM_COMMAND + 1:
36481 - case MAX_FORM_COMMAND + 2:
36483 top_card = prev_card(top_card);
36484 order_cards(top_card, visible_cards);
36486 - case MAX_FORM_COMMAND + 3:
36488 top_card = next_card(top_card);
36489 order_cards(top_card, visible_cards);
36491 - case MAX_FORM_COMMAND + 4:
36493 + form_driver(top_card->form, REQ_VALIDATION);
36496 #if defined(KEY_RESIZE) && HAVE_WRESIZE
36497 diff -urNd -urNd ncurses-5.3/test/configure ncurses-5.3.20030906.orig/test/configure
36498 --- ncurses-5.3/test/configure Sat Apr 6 17:16:16 2002
36499 +++ ncurses-5.3.20030906.orig/test/configure Sun Jul 20 14:02:08 2003
36503 # Guess values for system-dependent variables and create Makefiles.
36504 -# Generated automatically using autoconf version 2.13.20000819
36505 +# Generated automatically using autoconf version 2.13.20020210
36506 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
36508 # This configure script is free software; the Free Software Foundation
36509 @@ -183,6 +183,7 @@
36512 --enable and --with options recognized:
36513 + --with-curses-dir=DIR directory in which (n)curses is installed
36514 --with-5lib use SunOS sysv-libraries
36515 --with-ncursesw use wide ncurses-libraries (installed)
36516 --with-ncurses use ncurses-libraries (installed)
36517 @@ -336,7 +337,7 @@
36520 -version | --version | --versio | --versi | --vers)
36521 - echo "configure generated by autoconf version 2.13.20000819"
36522 + echo "configure generated by autoconf version 2.13.20020210"
36525 -with-* | --with-*)
36526 @@ -526,10 +527,91 @@
36531 +test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
36534 +test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
36537 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
36538 + if test -f $ac_dir/install-sh; then
36539 + ac_aux_dir=$ac_dir
36540 + ac_install_sh="$ac_aux_dir/install-sh -c"
36542 + elif test -f $ac_dir/install.sh; then
36543 + ac_aux_dir=$ac_dir
36544 + ac_install_sh="$ac_aux_dir/install.sh -c"
36548 +if test -z "$ac_aux_dir"; then
36549 + { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
36551 +ac_config_guess=$ac_aux_dir/config.guess
36552 +ac_config_sub=$ac_aux_dir/config.sub
36553 +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
36556 +if test -f $srcdir/config.guess ; then
36558 +# Make sure we can run config.sub.
36559 +if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
36560 +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
36563 +echo $ac_n "checking host system type""... $ac_c" 1>&6
36564 +echo "configure:565: checking host system type" >&5
36567 +case "$host_alias" in
36571 + if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
36572 + else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
36574 + *) host_alias=$nonopt ;;
36578 +host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
36579 +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
36580 +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
36581 +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
36582 +echo "$ac_t""$host" 1>&6
36584 + system_name="$host_os"
36586 + system_name="`(uname -s -r) 2>/dev/null`"
36587 + if test -z "$system_name" ; then
36588 + system_name="`(hostname) 2>/dev/null`"
36591 +test -n "$system_name" && cat >> confdefs.h <<EOF
36592 +#define SYSTEM_NAME "$system_name"
36595 +if eval "test \"`echo '$''{'cf_cv_system_name'+set}'`\" = set"; then
36596 + echo $ac_n "(cached) $ac_c" 1>&6
36598 + cf_cv_system_name="$system_name"
36602 +test -z "$system_name" && system_name="$cf_cv_system_name"
36603 +test -n "$cf_cv_system_name" && echo "$ac_t""Configuring for $cf_cv_system_name" 1>&6
36605 +if test ".$system_name" != ".$cf_cv_system_name" ; then
36606 + echo "$ac_t""Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" 1>&6
36607 + { echo "configure: error: "Please remove config.cache and try again."" 1>&2; exit 1; }
36611 # Extract the first word of "gcc", so it can be a program name with args.
36612 set dummy gcc; ac_word=$2
36613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
36614 -echo "configure:533: checking for $ac_word" >&5
36615 +echo "configure:615: checking for $ac_word" >&5
36616 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
36617 echo $ac_n "(cached) $ac_c" 1>&6
36619 @@ -559,7 +641,7 @@
36620 # Extract the first word of "cc", so it can be a program name with args.
36621 set dummy cc; ac_word=$2
36622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
36623 -echo "configure:563: checking for $ac_word" >&5
36624 +echo "configure:645: checking for $ac_word" >&5
36625 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
36626 echo $ac_n "(cached) $ac_c" 1>&6
36628 @@ -610,7 +692,7 @@
36629 # Extract the first word of "cl", so it can be a program name with args.
36630 set dummy cl; ac_word=$2
36631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
36632 -echo "configure:614: checking for $ac_word" >&5
36633 +echo "configure:696: checking for $ac_word" >&5
36634 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
36635 echo $ac_n "(cached) $ac_c" 1>&6
36637 @@ -642,7 +724,7 @@
36640 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
36641 -echo "configure:646: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
36642 +echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
36645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
36646 @@ -653,12 +735,12 @@
36648 cat > conftest.$ac_ext << EOF
36650 -#line 657 "configure"
36651 +#line 739 "configure"
36652 #include "confdefs.h"
36656 -if { (eval echo configure:662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
36657 +if { (eval echo configure:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
36658 ac_cv_prog_cc_works=yes
36659 # If we can't run a trivial program, we are probably using a cross compiler.
36660 if (./conftest; exit) 2>/dev/null; then
36661 @@ -684,12 +766,12 @@
36662 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
36664 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
36665 -echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
36666 +echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
36667 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
36668 cross_compiling=$ac_cv_prog_cc_cross
36670 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
36671 -echo "configure:693: checking whether we are using GNU C" >&5
36672 +echo "configure:775: checking whether we are using GNU C" >&5
36673 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
36674 echo $ac_n "(cached) $ac_c" 1>&6
36676 @@ -698,7 +780,7 @@
36680 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
36681 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
36685 @@ -717,7 +799,7 @@
36686 ac_save_CFLAGS="$CFLAGS"
36688 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
36689 -echo "configure:721: checking whether ${CC-cc} accepts -g" >&5
36690 +echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
36691 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
36692 echo $ac_n "(cached) $ac_c" 1>&6
36694 @@ -748,6 +830,86 @@
36698 +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
36699 +echo "configure:835: checking how to run the C preprocessor" >&5
36700 +# On Suns, sometimes $CPP names a directory.
36701 +if test -n "$CPP" && test -d "$CPP"; then
36704 +if test -z "$CPP"; then
36705 +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
36706 + echo $ac_n "(cached) $ac_c" 1>&6
36708 + # This must be in double quotes, not single quotes, because CPP may get
36709 + # substituted into the Makefile and "${CC-cc}" will confuse make.
36710 + CPP="${CC-cc} -E"
36711 + # On the NeXT, cc -E runs the code through the compiler's parser,
36712 + # not just through cpp.
36713 + cat > conftest.$ac_ext <<EOF
36714 +#line 850 "configure"
36715 +#include "confdefs.h"
36716 +#include <assert.h>
36719 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
36720 +{ (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
36721 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
36722 +if test -z "$ac_err"; then
36725 + echo "$ac_err" >&5
36726 + echo "configure: failed program was:" >&5
36727 + cat conftest.$ac_ext >&5
36729 + CPP="${CC-cc} -E -traditional-cpp"
36730 + cat > conftest.$ac_ext <<EOF
36731 +#line 867 "configure"
36732 +#include "confdefs.h"
36733 +#include <assert.h>
36736 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
36737 +{ (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
36738 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
36739 +if test -z "$ac_err"; then
36742 + echo "$ac_err" >&5
36743 + echo "configure: failed program was:" >&5
36744 + cat conftest.$ac_ext >&5
36746 + CPP="${CC-cc} -nologo -E"
36747 + cat > conftest.$ac_ext <<EOF
36748 +#line 884 "configure"
36749 +#include "confdefs.h"
36750 +#include <assert.h>
36753 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
36754 +{ (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
36755 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
36756 +if test -z "$ac_err"; then
36759 + echo "$ac_err" >&5
36760 + echo "configure: failed program was:" >&5
36761 + cat conftest.$ac_ext >&5
36770 + ac_cv_prog_CPP="$CPP"
36772 + CPP="$ac_cv_prog_CPP"
36774 + ac_cv_prog_CPP="$CPP"
36776 +echo "$ac_t""$CPP" 1>&6
36780 CC_SHARED_OPTS=unknown
36781 @@ -775,6 +937,45 @@
36782 cf_cv_abi_version=""
36783 cf_cv_rel_version=""
36785 +cf_cv_screen=curses
36790 +# Check whether --with-curses-dir or --without-curses-dir was given.
36791 +if test "${with_curses_dir+set}" = set; then
36792 + withval="$with_curses_dir"
36794 +case ".$withval" in #(vi
36795 +.\$\(*\)*|.\'*\'*) #(vi
36799 +.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
36801 +.\${*prefix}*) #(vi
36802 + eval withval="$withval"
36803 + case ".$withval" in #(vi
36805 + withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
36810 + withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
36813 + { echo "configure: error: expected a pathname, not \"$withval\"" 1>&2; exit 1; }
36817 + cf_cv_curses_dir=$withval
36819 + cf_cv_curses_dir=no
36825 # Check whether --with-5lib or --without-5lib was given.
36826 if test "${with_5lib+set}" = set; then
36827 @@ -785,87 +986,303 @@
36832 # Check whether --with-ncursesw or --without-ncursesw was given.
36833 if test "${with_ncursesw+set}" = set; then
36834 withval="$with_ncursesw"
36835 + cf_cv_screen=ncursesw
36840 +# Check whether --with-ncurses or --without-ncurses was given.
36841 +if test "${with_ncurses+set}" = set; then
36842 + withval="$with_ncurses"
36843 + cf_cv_screen=ncurses
36847 +case $cf_cv_screen in
36851 +echo $ac_n "checking for extra include directories""... $ac_c" 1>&6
36852 +echo "configure:1010: checking for extra include directories" >&5
36853 +if eval "test \"`echo '$''{'cf_cv_curses_incdir'+set}'`\" = set"; then
36854 + echo $ac_n "(cached) $ac_c" 1>&6
36857 - cat >> confdefs.h <<\EOF
36858 -#define _GNU_SOURCE 1
36860 +cf_cv_curses_incdir=no
36861 +case $host_os in #(vi
36862 +hpux10.*|hpux11.*) #(vi
36863 + test -d /usr/include/curses_colr && \
36864 + cf_cv_curses_incdir="-I/usr/include/curses_colr"
36867 + test -d /usr/5lib && \
36868 + test -d /usr/5include && \
36869 + cf_cv_curses_incdir="-I/usr/5include"
36873 - cat >> confdefs.h <<\EOF
36874 -#define _XOPEN_SOURCE_EXTENDED 1
36877 +echo "$ac_t""$cf_cv_curses_incdir" 1>&6
36878 +test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
36880 +echo $ac_n "checking if we have identified curses headers""... $ac_c" 1>&6
36881 +echo "configure:1034: checking if we have identified curses headers" >&5
36882 +if eval "test \"`echo '$''{'cf_cv_ncurses_header'+set}'`\" = set"; then
36883 + echo $ac_n "(cached) $ac_c" 1>&6
36886 +cf_cv_ncurses_header=none
36887 +for cf_header in \
36890 + ncurses/curses.h \
36891 + ncurses/ncurses.h
36893 +cat > conftest.$ac_ext <<EOF
36894 +#line 1047 "configure"
36895 +#include "confdefs.h"
36896 +#include <${cf_header}>
36898 +initscr(); tgoto("?", 0,0)
36901 +if { (eval echo configure:1054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
36903 + cf_cv_ncurses_header=$cf_header; break
36905 + echo "configure: failed program was:" >&5
36906 + cat conftest.$ac_ext >&5
36911 - echo $ac_n "checking for initscr""... $ac_c" 1>&6
36912 -echo "configure:803: checking for initscr" >&5
36913 -if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
36916 +echo "$ac_t""$cf_cv_ncurses_header" 1>&6
36918 +if test "$cf_cv_ncurses_header" = none ; then
36919 + { echo "configure: error: No curses header-files found" 1>&2; exit 1; }
36922 +# cheat, to get the right #define's for HAVE_NCURSES_H, etc.
36923 +for ac_hdr in $cf_cv_ncurses_header
36925 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
36926 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
36927 +echo "configure:1077: checking for $ac_hdr" >&5
36928 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
36929 echo $ac_n "(cached) $ac_c" 1>&6
36931 cat > conftest.$ac_ext <<EOF
36932 -#line 808 "configure"
36933 +#line 1082 "configure"
36934 #include "confdefs.h"
36935 -/* System header to define __stub macros and hopefully few prototypes,
36936 - which can conflict with char initscr(); below. */
36937 -#include <assert.h>
36938 -/* Override any gcc2 internal prototype to avoid an error. */
36939 -/* We use char because int might match the return type of a gcc2
36940 - builtin and then its argument prototype would still apply. */
36942 +#include <$ac_hdr>
36944 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
36945 +{ (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
36946 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
36947 +if test -z "$ac_err"; then
36949 + eval "ac_cv_header_$ac_safe=yes"
36951 + echo "$ac_err" >&5
36952 + echo "configure: failed program was:" >&5
36953 + cat conftest.$ac_ext >&5
36955 + eval "ac_cv_header_$ac_safe=no"
36959 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
36960 + echo "$ac_t""yes" 1>&6
36961 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
36962 + cat >> confdefs.h <<EOF
36963 +#define $ac_tr_hdr 1
36967 + echo "$ac_t""no" 1>&6
36973 -/* The GNU C library defines this for functions which it implements
36974 - to always fail with ENOSYS. Some functions are actually named
36975 - something starting with __ and the normal name is an alias. */
36976 -#if defined (__stub_initscr) || defined (__stub___initscr)
36980 +echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
36981 +echo "configure:1117: checking for ncurses version" >&5
36982 +if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
36983 + echo $ac_n "(cached) $ac_c" 1>&6
36986 + cf_cv_ncurses_version=no
36987 + cf_tempfile=out$$
36988 + rm -f $cf_tempfile
36989 + if test "$cross_compiling" = yes; then
36992 + # This will not work if the preprocessor splits the line after the
36993 + # Autoconf token. The 'unproto' program does that.
36994 + cat > conftest.$ac_ext <<EOF
36995 +#include <${cf_cv_ncurses_header-curses.h}>
36997 +#ifdef NCURSES_VERSION
36998 +Autoconf NCURSES_VERSION
37001 +#ifdef __NCURSES_H
37007 + cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
37008 + { (eval echo configure:1143: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
37009 + if test -f conftest.out ; then
37010 + cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
37011 + test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
37012 + rm -f conftest.out
37016 + cat > conftest.$ac_ext <<EOF
37017 +#line 1152 "configure"
37018 +#include "confdefs.h"
37020 +#include <${cf_cv_ncurses_header-curses.h}>
37021 +#include <stdio.h>
37024 + FILE *fp = fopen("$cf_tempfile", "w");
37025 +#ifdef NCURSES_VERSION
37026 +# ifdef NCURSES_VERSION_PATCH
37027 + fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
37029 + fprintf(fp, "%s\n", NCURSES_VERSION);
37032 +# ifdef __NCURSES_H
37033 + fprintf(fp, "old\n");
37041 +if { (eval echo configure:1176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
37044 + cf_cv_ncurses_version=`cat $cf_tempfile`
37046 + echo "configure: failed program was:" >&5
37047 + cat conftest.$ac_ext >&5
37052 + rm -f $cf_tempfile
37056 +echo "$ac_t""$cf_cv_ncurses_version" 1>&6
37057 +test "$cf_cv_ncurses_version" = no || cat >> confdefs.h <<\EOF
37064 +echo $ac_n "checking if we have identified curses libraries""... $ac_c" 1>&6
37065 +echo "configure:1200: checking if we have identified curses libraries" >&5
37066 +cat > conftest.$ac_ext <<EOF
37067 +#line 1202 "configure"
37068 +#include "confdefs.h"
37069 +#include <${cf_cv_ncurses_header-curses.h}>
37071 +initscr(); tgoto("?", 0,0)
37074 -if { (eval echo configure:831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37075 +if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37077 - eval "ac_cv_func_initscr=yes"
37080 echo "configure: failed program was:" >&5
37081 cat conftest.$ac_ext >&5
37083 - eval "ac_cv_func_initscr=no"
37087 +echo "$ac_t""$cf_result" 1>&6
37089 +if test "$cf_result" = no ; then
37090 +case $host_os in #(vi
37092 + echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
37093 +echo "configure:1225: checking for tgoto in -lmytinfo" >&5
37094 +ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
37095 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
37096 + echo $ac_n "(cached) $ac_c" 1>&6
37098 + ac_save_LIBS="$LIBS"
37099 +LIBS="-lmytinfo $LIBS"
37100 +cat > conftest.$ac_ext <<EOF
37101 +#line 1233 "configure"
37102 +#include "confdefs.h"
37103 +/* Override any gcc2 internal prototype to avoid an error. */
37104 +/* We use char because int might match the return type of a gcc2
37105 + builtin and then its argument prototype would still apply. */
37112 +if { (eval echo configure:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37114 + eval "ac_cv_lib_$ac_lib_var=yes"
37116 + echo "configure: failed program was:" >&5
37117 + cat conftest.$ac_ext >&5
37119 + eval "ac_cv_lib_$ac_lib_var=no"
37122 +LIBS="$ac_save_LIBS"
37124 -if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
37126 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
37127 echo "$ac_t""yes" 1>&6
37129 + LIBS="-lmytinfo $LIBS"
37131 echo "$ac_t""no" 1>&6
37134 - echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
37135 -echo "configure:850: checking for Gpm_Open in -lgpm" >&5
37136 -ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
37138 +hpux10.*|hpux11.*) #(vi
37139 + echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
37140 +echo "configure:1267: checking for initscr in -lcur_colr" >&5
37141 +ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
37142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
37143 echo $ac_n "(cached) $ac_c" 1>&6
37145 ac_save_LIBS="$LIBS"
37146 -LIBS="-lgpm $LIBS"
37147 +LIBS="-lcur_colr $LIBS"
37148 cat > conftest.$ac_ext <<EOF
37149 -#line 858 "configure"
37150 +#line 1275 "configure"
37151 #include "confdefs.h"
37152 /* Override any gcc2 internal prototype to avoid an error. */
37153 /* We use char because int might match the return type of a gcc2
37154 builtin and then its argument prototype would still apply. */
37163 -if { (eval echo configure:869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37164 +if { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37166 eval "ac_cv_lib_$ac_lib_var=yes"
37168 @@ -880,144 +1297,857 @@
37170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
37171 echo "$ac_t""yes" 1>&6
37172 - ac_tr_lib=HAVE_LIB`echo gpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
37173 - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
37174 - cat >> confdefs.h <<EOF
37175 -#define $ac_tr_lib 1
37178 + LIBS="-lcur_colr $LIBS"
37179 + ac_cv_func_initscr=yes
37182 + echo "$ac_t""no" 1>&6
37184 - LIBS="-lgpm $LIBS"
37185 + echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
37186 +echo "configure:1309: checking for initscr in -lHcurses" >&5
37187 +ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
37188 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
37189 + echo $ac_n "(cached) $ac_c" 1>&6
37191 + ac_save_LIBS="$LIBS"
37192 +LIBS="-lHcurses $LIBS"
37193 +cat > conftest.$ac_ext <<EOF
37194 +#line 1317 "configure"
37195 +#include "confdefs.h"
37196 +/* Override any gcc2 internal prototype to avoid an error. */
37197 +/* We use char because int might match the return type of a gcc2
37198 + builtin and then its argument prototype would still apply. */
37205 +if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37207 + eval "ac_cv_lib_$ac_lib_var=yes"
37209 + echo "configure: failed program was:" >&5
37210 + cat conftest.$ac_ext >&5
37212 + eval "ac_cv_lib_$ac_lib_var=no"
37215 +LIBS="$ac_save_LIBS"
37218 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
37219 + echo "$ac_t""yes" 1>&6
37221 + # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
37222 + LIBS="-lHcurses $LIBS"
37223 + CPPFLAGS="-D__HP_CURSES -D_HP_CURSES $CPPFLAGS"
37224 + ac_cv_func_initscr=yes
37227 echo "$ac_t""no" 1>&6
37230 - LIB_NAME=ncursesw
37231 - echo $ac_n "checking for putwc""... $ac_c" 1>&6
37232 -echo "configure:898: checking for putwc" >&5
37233 -if eval "test \"`echo '$''{'ac_cv_func_putwc'+set}'`\" = set"; then
37237 +linux*) # Suse Linux does not follow /usr/lib convention
37238 + LIBS="$LIBS -L/lib"
37241 + test -d /usr/5lib && \
37242 + LIBS="$LIBS -L/usr/5lib -lcurses -ltermcap"
37243 + ac_cv_func_initscr=yes
37247 +if test ".$ac_cv_func_initscr" != .yes ; then
37248 + cf_save_LIBS="$LIBS"
37252 + if test ".${cf_cv_ncurses_version-no}" != .no
37254 + cf_check_list="ncurses curses cursesX"
37256 + cf_check_list="cursesX curses ncurses"
37259 + # Check for library containing tgoto. Do this before curses library
37260 + # because it may be needed to link the test-case for initscr.
37261 + echo $ac_n "checking for tgoto""... $ac_c" 1>&6
37262 +echo "configure:1381: checking for tgoto" >&5
37263 +if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
37264 echo $ac_n "(cached) $ac_c" 1>&6
37266 cat > conftest.$ac_ext <<EOF
37267 -#line 903 "configure"
37268 +#line 1386 "configure"
37269 #include "confdefs.h"
37270 /* System header to define __stub macros and hopefully few prototypes,
37271 - which can conflict with char putwc(); below. */
37272 + which can conflict with char tgoto(); below. */
37273 #include <assert.h>
37274 /* Override any gcc2 internal prototype to avoid an error. */
37275 /* We use char because int might match the return type of a gcc2
37276 builtin and then its argument prototype would still apply. */
37282 /* The GNU C library defines this for functions which it implements
37283 to always fail with ENOSYS. Some functions are actually named
37284 something starting with __ and the normal name is an alias. */
37285 -#if defined (__stub_putwc) || defined (__stub___putwc)
37286 +#if defined (__stub_tgoto) || defined (__stub___tgoto)
37295 -if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37296 +if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37298 - eval "ac_cv_func_putwc=yes"
37299 + eval "ac_cv_func_tgoto=yes"
37301 echo "configure: failed program was:" >&5
37302 cat conftest.$ac_ext >&5
37304 - eval "ac_cv_func_putwc=no"
37305 + eval "ac_cv_func_tgoto=no"
37310 -if eval "test \"`echo '$ac_cv_func_'putwc`\" = yes"; then
37311 +if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
37312 echo "$ac_t""yes" 1>&6
37314 + cf_term_lib=predefined
37316 echo "$ac_t""no" 1>&6
37318 -echo $ac_n "checking for putwc in libutf8""... $ac_c" 1>&6
37319 -echo "configure:945: checking for putwc in libutf8" >&5
37320 -if eval "test \"`echo '$''{'cf_cv_libutf8'+set}'`\" = set"; then
37321 + for cf_term_lib in $cf_check_list termcap termlib unknown
37323 + echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
37324 +echo "configure:1430: checking for tgoto in -l$cf_term_lib" >&5
37325 +ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
37326 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
37327 echo $ac_n "(cached) $ac_c" 1>&6
37330 - cf_save_LIBS="$LIBS"
37331 - LIBS="-lutf8 $LIBS"
37332 + ac_save_LIBS="$LIBS"
37333 +LIBS="-l$cf_term_lib $LIBS"
37334 cat > conftest.$ac_ext <<EOF
37335 -#line 953 "configure"
37336 +#line 1438 "configure"
37337 #include "confdefs.h"
37338 +/* Override any gcc2 internal prototype to avoid an error. */
37339 +/* We use char because int might match the return type of a gcc2
37340 + builtin and then its argument prototype would still apply. */
37343 -#include <libutf8.h>
37349 -if { (eval echo configure:961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37350 +if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37352 - cf_cv_libutf8=yes
37353 + eval "ac_cv_lib_$ac_lib_var=yes"
37355 echo "configure: failed program was:" >&5
37356 cat conftest.$ac_ext >&5
37359 + eval "ac_cv_lib_$ac_lib_var=no"
37362 - LIBS="$cf_save_LIBS"
37363 +LIBS="$ac_save_LIBS"
37366 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
37367 + echo "$ac_t""yes" 1>&6
37370 + echo "$ac_t""no" 1>&6
37373 -echo "$ac_t""$cf_cv_libutf8" 1>&6
37378 -if test "$cf_cv_libutf8" = yes ; then
37379 - cat >> confdefs.h <<\EOF
37380 -#define HAVE_LIBUTF8_H 1
37382 + # Check for library containing initscr
37383 + test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
37384 + for cf_curs_lib in $cf_check_list xcurses jcurses unknown
37386 + echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
37387 +echo "configure:1479: checking for initscr in -l$cf_curs_lib" >&5
37388 +ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
37389 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
37390 + echo $ac_n "(cached) $ac_c" 1>&6
37392 + ac_save_LIBS="$LIBS"
37393 +LIBS="-l$cf_curs_lib $LIBS"
37394 +cat > conftest.$ac_ext <<EOF
37395 +#line 1487 "configure"
37396 +#include "confdefs.h"
37397 +/* Override any gcc2 internal prototype to avoid an error. */
37398 +/* We use char because int might match the return type of a gcc2
37399 + builtin and then its argument prototype would still apply. */
37406 +if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37408 + eval "ac_cv_lib_$ac_lib_var=yes"
37410 + echo "configure: failed program was:" >&5
37411 + cat conftest.$ac_ext >&5
37413 + eval "ac_cv_lib_$ac_lib_var=no"
37416 +LIBS="$ac_save_LIBS"
37418 - LIBS="-lutf8 $LIBS"
37420 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
37421 + echo "$ac_t""yes" 1>&6
37424 + echo "$ac_t""no" 1>&6
37428 + test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
37430 + LIBS="-l$cf_curs_lib $cf_save_LIBS"
37431 + if test "$cf_term_lib" = unknown ; then
37432 + echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
37433 +echo "configure:1524: checking if we can link with $cf_curs_lib library" >&5
37434 + cat > conftest.$ac_ext <<EOF
37435 +#line 1526 "configure"
37436 +#include "confdefs.h"
37437 +#include <${cf_cv_ncurses_header-curses.h}>
37442 +if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37446 + echo "configure: failed program was:" >&5
37447 + cat conftest.$ac_ext >&5
37452 + echo "$ac_t""$cf_result" 1>&6
37453 + test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
37454 + elif test "$cf_curs_lib" = "$cf_term_lib" ; then
37456 + elif test "$cf_term_lib" != predefined ; then
37457 + echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
37458 +echo "configure:1549: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
37459 + cat > conftest.$ac_ext <<EOF
37460 +#line 1551 "configure"
37461 +#include "confdefs.h"
37462 +#include <${cf_cv_ncurses_header-curses.h}>
37464 +initscr(); tgoto((char *)0, 0, 0);
37467 +if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37471 + echo "configure: failed program was:" >&5
37472 + cat conftest.$ac_ext >&5
37475 + LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
37476 + cat > conftest.$ac_ext <<EOF
37477 +#line 1568 "configure"
37478 +#include "confdefs.h"
37479 +#include <${cf_cv_ncurses_header-curses.h}>
37484 +if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37488 + echo "configure: failed program was:" >&5
37489 + cat conftest.$ac_ext >&5
37497 + echo "$ac_t""$cf_result" 1>&6
37502 - for p in $HOME /usr/local /usr
37504 - if test -f $p/include/ncursesw/curses.h
37506 - CPPFLAGS="$CPPFLAGS -I$p/include/ncursesw"
37507 - test $p != /usr && CPPFLAGS="$CPPFLAGS -I$p/include"
37508 - test $p != /usr && LIBS="-L$p/lib $LIBS"
37510 - elif test $p != /usr
37512 - if test -f $p/include/curses.h
37518 +cf_ncuhdr_root=ncurses
37520 +test -n "$cf_cv_curses_dir" && \
37521 +test "$cf_cv_curses_dir" != "no" && \
37522 +CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
37524 +echo $ac_n "checking for $cf_ncuhdr_root header in include-path""... $ac_c" 1>&6
37525 +echo "configure:1605: checking for $cf_ncuhdr_root header in include-path" >&5
37526 +if eval "test \"`echo '$''{'cf_cv_ncurses_h'+set}'`\" = set"; then
37527 + echo $ac_n "(cached) $ac_c" 1>&6
37530 + cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
37531 + ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
37532 + for cf_header in $cf_header_list
37535 + cat > conftest.$ac_ext <<EOF
37536 +#line 1616 "configure"
37537 +#include "confdefs.h"
37540 +#include <$cf_header>
37543 +#ifdef NCURSES_VERSION
37545 +printf("%s\n", NCURSES_VERSION);
37547 +#ifdef __NCURSES_H
37557 +if { (eval echo configure:1637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37559 + cf_cv_ncurses_h=$cf_header
37562 + echo "configure: failed program was:" >&5
37563 + cat conftest.$ac_ext >&5
37565 + cf_cv_ncurses_h=no
37569 + test "$cf_cv_ncurses_h" != no && break
37574 +echo "$ac_t""$cf_cv_ncurses_h" 1>&6
37576 +if test "$cf_cv_ncurses_h" != no ; then
37577 + cf_cv_ncurses_header=$cf_cv_ncurses_h
37579 +echo $ac_n "checking for $cf_ncuhdr_root include-path""... $ac_c" 1>&6
37580 +echo "configure:1660: checking for $cf_ncuhdr_root include-path" >&5
37581 +if eval "test \"`echo '$''{'cf_cv_ncurses_h2'+set}'`\" = set"; then
37582 + echo $ac_n "(cached) $ac_c" 1>&6
37585 + test -n "$verbose" && echo
37588 +test -d $HOME && {
37589 + test -n "$verbose" && echo " ... testing include-directories under $HOME"
37590 + test -d $HOME/include && cf_search="$cf_search $HOME/include"
37591 + test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
37592 + test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
37595 +# For other stuff under the home directory, it should be sufficient to put
37596 +# a symbolic link for $HOME/$cf_ncuhdr_root to the actual package location:
37597 +test -d $HOME/$cf_ncuhdr_root && {
37598 + test -n "$verbose" && echo " ... testing include-directories under $HOME/$cf_ncuhdr_root"
37599 + test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
37600 + test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
37603 +test "$prefix" != /usr/local && \
37604 +test -d /usr/local && {
37605 + test -n "$verbose" && echo " ... testing include-directories under /usr/local"
37606 + test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
37607 + test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
37608 + test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
37609 + test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
37610 + test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
37613 +test "$prefix" != NONE && \
37614 +test -d $prefix && {
37615 + test -n "$verbose" && echo " ... testing include-directories under $prefix"
37616 + test -d $prefix/include && cf_search="$cf_search $prefix/include"
37617 + test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
37618 + test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
37619 + test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
37620 + test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
37623 +test "$prefix" != /opt && \
37625 + test -n "$verbose" && echo " ... testing include-directories under /opt"
37626 + test -d /opt/include && cf_search="$cf_search /opt/include"
37627 + test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
37628 + test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
37629 + test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
37630 + test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
37633 +test "$prefix" != /usr && \
37635 + test -n "$verbose" && echo " ... testing include-directories under /usr"
37636 + test -d /usr/include && cf_search="$cf_search /usr/include"
37637 + test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
37638 + test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
37639 + test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
37642 +test "$includedir" != NONE && \
37643 +test "$includedir" != "/usr/include" && \
37644 +test -d "$includedir" && {
37645 + test -d $includedir && cf_search="$cf_search $includedir"
37646 + test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
37649 +test "$oldincludedir" != NONE && \
37650 +test "$oldincludedir" != "/usr/include" && \
37651 +test -d "$oldincludedir" && {
37652 + test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
37653 + test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
37657 + test -n "$verbose" && echo search path $cf_search
37658 + cf_save2_CPPFLAGS="$CPPFLAGS"
37659 + for cf_incdir in $cf_search
37662 +for cf_add_incdir in $cf_incdir
37666 + case $cf_add_incdir in
37667 + /usr/include) # (vi
37669 + /usr/local/include) # (vi
37670 + if test "$GCC" = yes
37672 - CPPFLAGS="$CPPFLAGS -I$p/include"
37673 - LIBS="-L$p/lib $LIBS"
37674 + cf_save_CPPFLAGS="$CPPFLAGS"
37675 + CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
37676 + cat > conftest.$ac_ext <<EOF
37677 +#line 1755 "configure"
37678 +#include "confdefs.h"
37679 +#include <stdio.h>
37684 +if { (eval echo configure:1762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37687 + echo "configure: failed program was:" >&5
37688 + cat conftest.$ac_ext >&5
37690 + CPPFLAGS="$cf_save_CPPFLAGS"
37696 + CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
37699 + cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
37700 + test "$cf_top_incdir" = "$cf_add_incdir" && break
37701 + cf_add_incdir="$cf_top_incdir"
37705 + for cf_header in \
37710 + cat > conftest.$ac_ext <<EOF
37711 +#line 1789 "configure"
37712 +#include "confdefs.h"
37715 +#include <$cf_header>
37718 +#ifdef NCURSES_VERSION
37720 +printf("%s\n", NCURSES_VERSION);
37722 +#ifdef __NCURSES_H
37732 +if { (eval echo configure:1810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37734 + cf_cv_ncurses_h2=$cf_header
37737 + echo "configure: failed program was:" >&5
37738 + cat conftest.$ac_ext >&5
37740 + cf_cv_ncurses_h2=no
37744 + if test "$cf_cv_ncurses_h2" != no ; then
37745 + cf_cv_ncurses_h2=$cf_incdir/$cf_header
37746 + test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
37751 + test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
37753 + CPPFLAGS="$cf_save2_CPPFLAGS"
37754 + test "$cf_cv_ncurses_h2" != no && break
37756 + test "$cf_cv_ncurses_h2" = no && { echo "configure: error: not found" 1>&2; exit 1; }
37760 +echo "$ac_t""$cf_cv_ncurses_h2" 1>&6
37762 + cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
37763 + cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
37764 + if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
37765 + cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
37768 +for cf_add_incdir in $cf_1st_incdir
37772 + case $cf_add_incdir in
37773 + /usr/include) # (vi
37775 + /usr/local/include) # (vi
37776 + if test "$GCC" = yes
37778 + cf_save_CPPFLAGS="$CPPFLAGS"
37779 + CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
37780 + cat > conftest.$ac_ext <<EOF
37781 +#line 1857 "configure"
37782 +#include "confdefs.h"
37783 +#include <stdio.h>
37788 +if { (eval echo configure:1864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37791 + echo "configure: failed program was:" >&5
37792 + cat conftest.$ac_ext >&5
37794 + CPPFLAGS="$cf_save_CPPFLAGS"
37800 + CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
37803 + cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
37804 + test "$cf_top_incdir" = "$cf_add_incdir" && break
37805 + cf_add_incdir="$cf_top_incdir"
37812 +cat >> confdefs.h <<\EOF
37817 -# Check whether --with-ncurses or --without-ncurses was given.
37818 -if test "${with_ncurses+set}" = set; then
37819 - withval="$with_ncurses"
37820 - echo $ac_n "checking for initscr""... $ac_c" 1>&6
37821 -echo "configure:1016: checking for initscr" >&5
37822 +case $cf_cv_ncurses_header in # (vi
37824 + cat >> confdefs.h <<\EOF
37825 +#define HAVE_NCURSES_H 1
37831 +case $cf_cv_ncurses_header in # (vi
37832 +ncurses/curses.h|ncurses/ncurses.h)
37833 + cat >> confdefs.h <<\EOF
37834 +#define HAVE_NCURSES_NCURSES_H 1
37838 +ncursesw/curses.h|ncursesw/ncurses.h)
37839 + cat >> confdefs.h <<\EOF
37840 +#define HAVE_NCURSESW_NCURSES_H 1
37847 +echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
37848 +echo "configure:1919: checking for ncurses version" >&5
37849 +if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
37850 + echo $ac_n "(cached) $ac_c" 1>&6
37853 + cf_cv_ncurses_version=no
37854 + cf_tempfile=out$$
37855 + rm -f $cf_tempfile
37856 + if test "$cross_compiling" = yes; then
37859 + # This will not work if the preprocessor splits the line after the
37860 + # Autoconf token. The 'unproto' program does that.
37861 + cat > conftest.$ac_ext <<EOF
37862 +#include <${cf_cv_ncurses_header-curses.h}>
37864 +#ifdef NCURSES_VERSION
37865 +Autoconf NCURSES_VERSION
37867 +#ifdef __NCURSES_H
37873 + cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
37874 + { (eval echo configure:1945: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
37875 + if test -f conftest.out ; then
37876 + cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
37877 + test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
37878 + rm -f conftest.out
37882 + cat > conftest.$ac_ext <<EOF
37883 +#line 1954 "configure"
37884 +#include "confdefs.h"
37886 +#include <${cf_cv_ncurses_header-curses.h}>
37887 +#include <stdio.h>
37890 + FILE *fp = fopen("$cf_tempfile", "w");
37891 +#ifdef NCURSES_VERSION
37892 +# ifdef NCURSES_VERSION_PATCH
37893 + fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
37895 + fprintf(fp, "%s\n", NCURSES_VERSION);
37898 +# ifdef __NCURSES_H
37899 + fprintf(fp, "old\n");
37907 +if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
37910 + cf_cv_ncurses_version=`cat $cf_tempfile`
37912 + echo "configure: failed program was:" >&5
37913 + cat conftest.$ac_ext >&5
37918 + rm -f $cf_tempfile
37922 +echo "$ac_t""$cf_cv_ncurses_version" 1>&6
37923 +test "$cf_cv_ncurses_version" = no || cat >> confdefs.h <<\EOF
37931 +cf_nculib_root=ncurses
37932 + # This works, except for the special case where we find gpm, but
37933 + # ncurses is in a nonstandard location via $LIBS, and we really want
37935 +cf_ncurses_LIBS=""
37936 +cf_ncurses_SAVE="$LIBS"
37937 +echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
37938 +echo "configure:2009: checking for Gpm_Open in -lgpm" >&5
37939 +ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
37940 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
37941 + echo $ac_n "(cached) $ac_c" 1>&6
37943 + ac_save_LIBS="$LIBS"
37944 +LIBS="-lgpm $LIBS"
37945 +cat > conftest.$ac_ext <<EOF
37946 +#line 2017 "configure"
37947 +#include "confdefs.h"
37948 +/* Override any gcc2 internal prototype to avoid an error. */
37949 +/* We use char because int might match the return type of a gcc2
37950 + builtin and then its argument prototype would still apply. */
37957 +if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37959 + eval "ac_cv_lib_$ac_lib_var=yes"
37961 + echo "configure: failed program was:" >&5
37962 + cat conftest.$ac_ext >&5
37964 + eval "ac_cv_lib_$ac_lib_var=no"
37967 +LIBS="$ac_save_LIBS"
37970 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
37971 + echo "$ac_t""yes" 1>&6
37972 + echo $ac_n "checking for initscr in -lgpm""... $ac_c" 1>&6
37973 +echo "configure:2044: checking for initscr in -lgpm" >&5
37974 +ac_lib_var=`echo gpm'_'initscr | sed 'y%./+-%__p_%'`
37975 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
37976 + echo $ac_n "(cached) $ac_c" 1>&6
37978 + ac_save_LIBS="$LIBS"
37979 +LIBS="-lgpm $LIBS"
37980 +cat > conftest.$ac_ext <<EOF
37981 +#line 2052 "configure"
37982 +#include "confdefs.h"
37983 +/* Override any gcc2 internal prototype to avoid an error. */
37984 +/* We use char because int might match the return type of a gcc2
37985 + builtin and then its argument prototype would still apply. */
37992 +if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37994 + eval "ac_cv_lib_$ac_lib_var=yes"
37996 + echo "configure: failed program was:" >&5
37997 + cat conftest.$ac_ext >&5
37999 + eval "ac_cv_lib_$ac_lib_var=no"
38002 +LIBS="$ac_save_LIBS"
38005 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
38006 + echo "$ac_t""yes" 1>&6
38007 + LIBS="$cf_ncurses_SAVE"
38009 + echo "$ac_t""no" 1>&6
38010 +cf_ncurses_LIBS="-lgpm"
38014 + echo "$ac_t""no" 1>&6
38018 +case $host_os in #(vi
38020 + # This is only necessary if you are linking against an obsolete
38021 + # version of ncurses (but it should do no harm, since it's static).
38022 + echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
38023 +echo "configure:2094: checking for tgoto in -lmytinfo" >&5
38024 +ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
38025 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
38026 + echo $ac_n "(cached) $ac_c" 1>&6
38028 + ac_save_LIBS="$LIBS"
38029 +LIBS="-lmytinfo $LIBS"
38030 +cat > conftest.$ac_ext <<EOF
38031 +#line 2102 "configure"
38032 +#include "confdefs.h"
38033 +/* Override any gcc2 internal prototype to avoid an error. */
38034 +/* We use char because int might match the return type of a gcc2
38035 + builtin and then its argument prototype would still apply. */
38042 +if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38044 + eval "ac_cv_lib_$ac_lib_var=yes"
38046 + echo "configure: failed program was:" >&5
38047 + cat conftest.$ac_ext >&5
38049 + eval "ac_cv_lib_$ac_lib_var=no"
38052 +LIBS="$ac_save_LIBS"
38055 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
38056 + echo "$ac_t""yes" 1>&6
38057 + cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
38059 + echo "$ac_t""no" 1>&6
38065 +LIBS="$cf_ncurses_LIBS $LIBS"
38067 +if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
38069 + LIBS="-L$cf_cv_curses_dir/lib -l$cf_nculib_root $LIBS"
38072 + eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
38074 + echo $ac_n "checking for initscr""... $ac_c" 1>&6
38075 +echo "configure:2146: checking for initscr" >&5
38076 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
38077 echo $ac_n "(cached) $ac_c" 1>&6
38079 cat > conftest.$ac_ext <<EOF
38080 -#line 1021 "configure"
38081 +#line 2151 "configure"
38082 #include "confdefs.h"
38083 /* System header to define __stub macros and hopefully few prototypes,
38084 which can conflict with char initscr(); below. */
38085 @@ -1040,7 +2170,7 @@
38089 -if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38090 +if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38092 eval "ac_cv_func_initscr=yes"
38094 @@ -1054,12 +2184,665 @@
38096 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
38097 echo "$ac_t""yes" 1>&6
38099 + eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
38101 echo "$ac_t""no" 1>&6
38103 - echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
38104 -echo "configure:1063: checking for Gpm_Open in -lgpm" >&5
38105 + cf_save_LIBS="$LIBS"
38106 + echo $ac_n "checking for initscr in -l$cf_nculib_root""... $ac_c" 1>&6
38107 +echo "configure:2194: checking for initscr in -l$cf_nculib_root" >&5
38108 + LIBS="-l$cf_nculib_root $LIBS"
38109 + cat > conftest.$ac_ext <<EOF
38110 +#line 2197 "configure"
38111 +#include "confdefs.h"
38112 +#include <${cf_cv_ncurses_header-curses.h}>
38117 +if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38119 + echo "$ac_t""yes" 1>&6
38120 + eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
38123 + echo "configure: failed program was:" >&5
38124 + cat conftest.$ac_ext >&5
38126 + echo "$ac_t""no" 1>&6
38129 +test -d $HOME && {
38130 + test -n "$verbose" && echo " ... testing lib-directories under $HOME"
38131 + test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
38132 + test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
38133 + test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
38136 +# For other stuff under the home directory, it should be sufficient to put
38137 +# a symbolic link for $HOME/$cf_nculib_root to the actual package location:
38138 +test -d $HOME/$cf_nculib_root && {
38139 + test -n "$verbose" && echo " ... testing lib-directories under $HOME/$cf_nculib_root"
38140 + test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
38141 + test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
38144 +test "$prefix" != /usr/local && \
38145 +test -d /usr/local && {
38146 + test -n "$verbose" && echo " ... testing lib-directories under /usr/local"
38147 + test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
38148 + test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
38149 + test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
38150 + test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
38151 + test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
38154 +test "$prefix" != NONE && \
38155 +test -d $prefix && {
38156 + test -n "$verbose" && echo " ... testing lib-directories under $prefix"
38157 + test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
38158 + test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
38159 + test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
38160 + test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
38161 + test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
38164 +test "$prefix" != /opt && \
38166 + test -n "$verbose" && echo " ... testing lib-directories under /opt"
38167 + test -d /opt/lib && cf_search="$cf_search /opt/lib"
38168 + test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
38169 + test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
38170 + test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
38171 + test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
38174 +test "$prefix" != /usr && \
38176 + test -n "$verbose" && echo " ... testing lib-directories under /usr"
38177 + test -d /usr/lib && cf_search="$cf_search /usr/lib"
38178 + test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
38179 + test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
38180 + test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
38183 + for cf_libdir in $cf_search
38185 + echo $ac_n "checking for -l$cf_nculib_root in $cf_libdir""... $ac_c" 1>&6
38186 +echo "configure:2273: checking for -l$cf_nculib_root in $cf_libdir" >&5
38187 + LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
38188 + cat > conftest.$ac_ext <<EOF
38189 +#line 2276 "configure"
38190 +#include "confdefs.h"
38191 +#include <${cf_cv_ncurses_header-curses.h}>
38196 +if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38198 + echo "$ac_t""yes" 1>&6
38199 + eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
38202 + echo "configure: failed program was:" >&5
38203 + cat conftest.$ac_ext >&5
38205 + echo "$ac_t""no" 1>&6
38206 + LIBS="$cf_save_LIBS"
38216 +eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
38218 +if test $cf_found_library = no ; then
38219 + { echo "configure: error: Cannot link $cf_nculib_root library" 1>&2; exit 1; }
38225 +if test -n "$cf_ncurses_LIBS" ; then
38226 + echo $ac_n "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS""... $ac_c" 1>&6
38227 +echo "configure:2314: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
38228 + cf_ncurses_SAVE="$LIBS"
38229 + for p in $cf_ncurses_LIBS ; do
38230 + q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
38231 + if test "$q" != "$LIBS" ; then
38235 + cat > conftest.$ac_ext <<EOF
38236 +#line 2323 "configure"
38237 +#include "confdefs.h"
38238 +#include <${cf_cv_ncurses_header-curses.h}>
38240 +initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
38243 +if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38245 + echo "$ac_t""yes" 1>&6
38247 + echo "configure: failed program was:" >&5
38248 + cat conftest.$ac_ext >&5
38250 + echo "$ac_t""no" 1>&6
38251 + LIBS="$cf_ncurses_SAVE"
38257 +cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
38259 +cat >> confdefs.h <<EOF
38260 +#define $cf_nculib_ROOT 1
38269 +echo $ac_n "checking for multibyte character support""... $ac_c" 1>&6
38270 +echo "configure:2357: checking for multibyte character support" >&5
38271 +if eval "test \"`echo '$''{'cf_cv_utf8_lib'+set}'`\" = set"; then
38272 + echo $ac_n "(cached) $ac_c" 1>&6
38275 + cf_save_LIBS="$LIBS"
38276 + cat > conftest.$ac_ext <<EOF
38277 +#line 2364 "configure"
38278 +#include "confdefs.h"
38280 +#include <stdlib.h>
38285 +if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38287 + cf_cv_utf8_lib=yes
38289 + echo "configure: failed program was:" >&5
38290 + cat conftest.$ac_ext >&5
38292 + LIBS="-lutf8 $LIBS"
38293 + cat > conftest.$ac_ext <<EOF
38294 +#line 2381 "configure"
38295 +#include "confdefs.h"
38297 +#include <libutf8.h>
38302 +if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38304 + cf_cv_utf8_lib=add-on
38306 + echo "configure: failed program was:" >&5
38307 + cat conftest.$ac_ext >&5
38309 + cf_cv_utf8_lib=no
38312 + LIBS="$cf_save_LIBS"
38318 +echo "$ac_t""$cf_cv_utf8_lib" 1>&6
38320 +# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
38321 +# ncurses/ncursesw:
38322 +if test "$cf_cv_utf8_lib" = "add-on" ; then
38323 + cat >> confdefs.h <<\EOF
38324 +#define HAVE_LIBUTF8_H 1
38327 + LIBS="-lutf8 $LIBS"
38332 +cf_ncuhdr_root=ncursesw
38334 +test -n "$cf_cv_curses_dir" && \
38335 +test "$cf_cv_curses_dir" != "no" && \
38336 +CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
38338 +echo $ac_n "checking for $cf_ncuhdr_root header in include-path""... $ac_c" 1>&6
38339 +echo "configure:2426: checking for $cf_ncuhdr_root header in include-path" >&5
38340 +if eval "test \"`echo '$''{'cf_cv_ncurses_h'+set}'`\" = set"; then
38341 + echo $ac_n "(cached) $ac_c" 1>&6
38344 + cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
38345 + ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
38346 + for cf_header in $cf_header_list
38349 + cat > conftest.$ac_ext <<EOF
38350 +#line 2437 "configure"
38351 +#include "confdefs.h"
38354 +#define _XOPEN_SOURCE_EXTENDED
38355 +#undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
38356 +#define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
38358 +#include <$cf_header>
38361 +#ifdef NCURSES_VERSION
38367 +printf("%s\n", NCURSES_VERSION);
38369 +#ifdef __NCURSES_H
38379 +if { (eval echo configure:2466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38381 + cf_cv_ncurses_h=$cf_header
38384 + echo "configure: failed program was:" >&5
38385 + cat conftest.$ac_ext >&5
38387 + cf_cv_ncurses_h=no
38391 + test "$cf_cv_ncurses_h" != no && break
38396 +echo "$ac_t""$cf_cv_ncurses_h" 1>&6
38398 +if test "$cf_cv_ncurses_h" != no ; then
38399 + cf_cv_ncurses_header=$cf_cv_ncurses_h
38401 +echo $ac_n "checking for $cf_ncuhdr_root include-path""... $ac_c" 1>&6
38402 +echo "configure:2489: checking for $cf_ncuhdr_root include-path" >&5
38403 +if eval "test \"`echo '$''{'cf_cv_ncurses_h2'+set}'`\" = set"; then
38404 + echo $ac_n "(cached) $ac_c" 1>&6
38407 + test -n "$verbose" && echo
38410 +test -d $HOME && {
38411 + test -n "$verbose" && echo " ... testing include-directories under $HOME"
38412 + test -d $HOME/include && cf_search="$cf_search $HOME/include"
38413 + test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
38414 + test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
38417 +# For other stuff under the home directory, it should be sufficient to put
38418 +# a symbolic link for $HOME/$cf_ncuhdr_root to the actual package location:
38419 +test -d $HOME/$cf_ncuhdr_root && {
38420 + test -n "$verbose" && echo " ... testing include-directories under $HOME/$cf_ncuhdr_root"
38421 + test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
38422 + test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
38425 +test "$prefix" != /usr/local && \
38426 +test -d /usr/local && {
38427 + test -n "$verbose" && echo " ... testing include-directories under /usr/local"
38428 + test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
38429 + test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
38430 + test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
38431 + test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
38432 + test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
38435 +test "$prefix" != NONE && \
38436 +test -d $prefix && {
38437 + test -n "$verbose" && echo " ... testing include-directories under $prefix"
38438 + test -d $prefix/include && cf_search="$cf_search $prefix/include"
38439 + test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
38440 + test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
38441 + test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
38442 + test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
38445 +test "$prefix" != /opt && \
38447 + test -n "$verbose" && echo " ... testing include-directories under /opt"
38448 + test -d /opt/include && cf_search="$cf_search /opt/include"
38449 + test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
38450 + test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
38451 + test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
38452 + test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
38455 +test "$prefix" != /usr && \
38457 + test -n "$verbose" && echo " ... testing include-directories under /usr"
38458 + test -d /usr/include && cf_search="$cf_search /usr/include"
38459 + test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
38460 + test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
38461 + test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
38464 +test "$includedir" != NONE && \
38465 +test "$includedir" != "/usr/include" && \
38466 +test -d "$includedir" && {
38467 + test -d $includedir && cf_search="$cf_search $includedir"
38468 + test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
38471 +test "$oldincludedir" != NONE && \
38472 +test "$oldincludedir" != "/usr/include" && \
38473 +test -d "$oldincludedir" && {
38474 + test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
38475 + test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
38479 + test -n "$verbose" && echo search path $cf_search
38480 + cf_save2_CPPFLAGS="$CPPFLAGS"
38481 + for cf_incdir in $cf_search
38484 +for cf_add_incdir in $cf_incdir
38488 + case $cf_add_incdir in
38489 + /usr/include) # (vi
38491 + /usr/local/include) # (vi
38492 + if test "$GCC" = yes
38494 + cf_save_CPPFLAGS="$CPPFLAGS"
38495 + CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
38496 + cat > conftest.$ac_ext <<EOF
38497 +#line 2584 "configure"
38498 +#include "confdefs.h"
38499 +#include <stdio.h>
38504 +if { (eval echo configure:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38507 + echo "configure: failed program was:" >&5
38508 + cat conftest.$ac_ext >&5
38510 + CPPFLAGS="$cf_save_CPPFLAGS"
38516 + CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
38519 + cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
38520 + test "$cf_top_incdir" = "$cf_add_incdir" && break
38521 + cf_add_incdir="$cf_top_incdir"
38525 + for cf_header in \
38530 + cat > conftest.$ac_ext <<EOF
38531 +#line 2618 "configure"
38532 +#include "confdefs.h"
38535 +#define _XOPEN_SOURCE_EXTENDED
38536 +#undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
38537 +#define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
38539 +#include <$cf_header>
38542 +#ifdef NCURSES_VERSION
38548 +printf("%s\n", NCURSES_VERSION);
38550 +#ifdef __NCURSES_H
38560 +if { (eval echo configure:2647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38562 + cf_cv_ncurses_h2=$cf_header
38565 + echo "configure: failed program was:" >&5
38566 + cat conftest.$ac_ext >&5
38568 + cf_cv_ncurses_h2=no
38572 + if test "$cf_cv_ncurses_h2" != no ; then
38573 + cf_cv_ncurses_h2=$cf_incdir/$cf_header
38574 + test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
38577 + test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
38579 + CPPFLAGS="$cf_save2_CPPFLAGS"
38580 + test "$cf_cv_ncurses_h2" != no && break
38582 + test "$cf_cv_ncurses_h2" = no && { echo "configure: error: not found" 1>&2; exit 1; }
38586 +echo "$ac_t""$cf_cv_ncurses_h2" 1>&6
38588 + cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
38589 + cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
38590 + if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
38591 + cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
38594 +for cf_add_incdir in $cf_1st_incdir
38598 + case $cf_add_incdir in
38599 + /usr/include) # (vi
38601 + /usr/local/include) # (vi
38602 + if test "$GCC" = yes
38604 + cf_save_CPPFLAGS="$CPPFLAGS"
38605 + CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
38606 + cat > conftest.$ac_ext <<EOF
38607 +#line 2694 "configure"
38608 +#include "confdefs.h"
38609 +#include <stdio.h>
38614 +if { (eval echo configure:2701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38617 + echo "configure: failed program was:" >&5
38618 + cat conftest.$ac_ext >&5
38620 + CPPFLAGS="$cf_save_CPPFLAGS"
38626 + CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
38629 + cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
38630 + test "$cf_top_incdir" = "$cf_add_incdir" && break
38631 + cf_add_incdir="$cf_top_incdir"
38638 +cat >> confdefs.h <<\EOF
38643 +case $cf_cv_ncurses_header in # (vi
38645 + cat >> confdefs.h <<\EOF
38646 +#define HAVE_NCURSES_H 1
38652 +case $cf_cv_ncurses_header in # (vi
38653 +ncurses/curses.h|ncurses/ncurses.h)
38654 + cat >> confdefs.h <<\EOF
38655 +#define HAVE_NCURSES_NCURSES_H 1
38659 +ncursesw/curses.h|ncursesw/ncurses.h)
38660 + cat >> confdefs.h <<\EOF
38661 +#define HAVE_NCURSESW_NCURSES_H 1
38668 +echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
38669 +echo "configure:2756: checking for ncurses version" >&5
38670 +if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
38671 + echo $ac_n "(cached) $ac_c" 1>&6
38674 + cf_cv_ncurses_version=no
38675 + cf_tempfile=out$$
38676 + rm -f $cf_tempfile
38677 + if test "$cross_compiling" = yes; then
38680 + # This will not work if the preprocessor splits the line after the
38681 + # Autoconf token. The 'unproto' program does that.
38682 + cat > conftest.$ac_ext <<EOF
38683 +#include <${cf_cv_ncurses_header-curses.h}>
38685 +#ifdef NCURSES_VERSION
38686 +Autoconf NCURSES_VERSION
38688 +#ifdef __NCURSES_H
38694 + cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
38695 + { (eval echo configure:2782: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
38696 + if test -f conftest.out ; then
38697 + cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
38698 + test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
38699 + rm -f conftest.out
38703 + cat > conftest.$ac_ext <<EOF
38704 +#line 2791 "configure"
38705 +#include "confdefs.h"
38707 +#include <${cf_cv_ncurses_header-curses.h}>
38708 +#include <stdio.h>
38711 + FILE *fp = fopen("$cf_tempfile", "w");
38712 +#ifdef NCURSES_VERSION
38713 +# ifdef NCURSES_VERSION_PATCH
38714 + fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
38716 + fprintf(fp, "%s\n", NCURSES_VERSION);
38719 +# ifdef __NCURSES_H
38720 + fprintf(fp, "old\n");
38728 +if { (eval echo configure:2815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
38731 + cf_cv_ncurses_version=`cat $cf_tempfile`
38733 + echo "configure: failed program was:" >&5
38734 + cat conftest.$ac_ext >&5
38739 + rm -f $cf_tempfile
38743 +echo "$ac_t""$cf_cv_ncurses_version" 1>&6
38744 +test "$cf_cv_ncurses_version" = no || cat >> confdefs.h <<\EOF
38752 +cf_nculib_root=ncursesw
38753 + # This works, except for the special case where we find gpm, but
38754 + # ncurses is in a nonstandard location via $LIBS, and we really want
38756 +cf_ncurses_LIBS=""
38757 +cf_ncurses_SAVE="$LIBS"
38758 +echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
38759 +echo "configure:2846: checking for Gpm_Open in -lgpm" >&5
38760 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
38761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
38762 echo $ac_n "(cached) $ac_c" 1>&6
38763 @@ -1067,7 +2850,7 @@
38764 ac_save_LIBS="$LIBS"
38766 cat > conftest.$ac_ext <<EOF
38767 -#line 1071 "configure"
38768 +#line 2854 "configure"
38769 #include "confdefs.h"
38770 /* Override any gcc2 internal prototype to avoid an error. */
38771 /* We use char because int might match the return type of a gcc2
38772 @@ -1078,7 +2861,7 @@
38776 -if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38777 +if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38779 eval "ac_cv_lib_$ac_lib_var=yes"
38781 @@ -1093,52 +2876,115 @@
38783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
38784 echo "$ac_t""yes" 1>&6
38785 - ac_tr_lib=HAVE_LIB`echo gpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
38786 - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
38787 - cat >> confdefs.h <<EOF
38788 -#define $ac_tr_lib 1
38790 + echo $ac_n "checking for initscr in -lgpm""... $ac_c" 1>&6
38791 +echo "configure:2881: checking for initscr in -lgpm" >&5
38792 +ac_lib_var=`echo gpm'_'initscr | sed 'y%./+-%__p_%'`
38793 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
38794 + echo $ac_n "(cached) $ac_c" 1>&6
38796 + ac_save_LIBS="$LIBS"
38797 +LIBS="-lgpm $LIBS"
38798 +cat > conftest.$ac_ext <<EOF
38799 +#line 2889 "configure"
38800 +#include "confdefs.h"
38801 +/* Override any gcc2 internal prototype to avoid an error. */
38802 +/* We use char because int might match the return type of a gcc2
38803 + builtin and then its argument prototype would still apply. */
38806 - LIBS="-lgpm $LIBS"
38811 +if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38813 + eval "ac_cv_lib_$ac_lib_var=yes"
38815 + echo "configure: failed program was:" >&5
38816 + cat conftest.$ac_ext >&5
38818 + eval "ac_cv_lib_$ac_lib_var=no"
38821 +LIBS="$ac_save_LIBS"
38824 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
38825 + echo "$ac_t""yes" 1>&6
38826 + LIBS="$cf_ncurses_SAVE"
38828 echo "$ac_t""no" 1>&6
38829 +cf_ncurses_LIBS="-lgpm"
38833 - for p in $HOME /usr/local /usr
38835 - if test -f $p/include/ncurses/curses.h
38837 - CPPFLAGS="$CPPFLAGS -I$p/include/ncurses"
38838 - test $p != /usr && CPPFLAGS="$CPPFLAGS -I$p/include"
38839 - test $p != /usr && LIBS="-L$p/lib $LIBS"
38841 - elif test $p != /usr
38843 - if test -f $p/include/curses.h
38845 - CPPFLAGS="$CPPFLAGS -I$p/include"
38846 - LIBS="-L$p/lib $LIBS"
38853 + echo "$ac_t""no" 1>&6
38857 +case $host_os in #(vi
38859 + # This is only necessary if you are linking against an obsolete
38860 + # version of ncurses (but it should do no harm, since it's static).
38861 + echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
38862 +echo "configure:2931: checking for tgoto in -lmytinfo" >&5
38863 +ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
38864 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
38865 + echo $ac_n "(cached) $ac_c" 1>&6
38867 + ac_save_LIBS="$LIBS"
38868 +LIBS="-lmytinfo $LIBS"
38869 +cat > conftest.$ac_ext <<EOF
38870 +#line 2939 "configure"
38871 +#include "confdefs.h"
38872 +/* Override any gcc2 internal prototype to avoid an error. */
38873 +/* We use char because int might match the return type of a gcc2
38874 + builtin and then its argument prototype would still apply. */
38881 +if { (eval echo configure:2950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38883 + eval "ac_cv_lib_$ac_lib_var=yes"
38885 + echo "configure: failed program was:" >&5
38886 + cat conftest.$ac_ext >&5
38888 + eval "ac_cv_lib_$ac_lib_var=no"
38891 +LIBS="$ac_save_LIBS"
38894 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
38895 + echo "$ac_t""yes" 1>&6
38896 + cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
38898 + echo "$ac_t""no" 1>&6
38904 +LIBS="$cf_ncurses_LIBS $LIBS"
38906 -echo $ac_n "checking for initscr""... $ac_c" 1>&6
38907 -echo "configure:1137: checking for initscr" >&5
38908 +if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
38910 + LIBS="-L$cf_cv_curses_dir/lib -l$cf_nculib_root $LIBS"
38913 + eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
38915 + echo $ac_n "checking for initscr""... $ac_c" 1>&6
38916 +echo "configure:2983: checking for initscr" >&5
38917 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
38918 echo $ac_n "(cached) $ac_c" 1>&6
38920 cat > conftest.$ac_ext <<EOF
38921 -#line 1142 "configure"
38922 +#line 2988 "configure"
38923 #include "confdefs.h"
38924 /* System header to define __stub macros and hopefully few prototypes,
38925 which can conflict with char initscr(); below. */
38926 @@ -1161,7 +3007,7 @@
38930 -if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38931 +if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38933 eval "ac_cv_func_initscr=yes"
38935 @@ -1175,69 +3021,185 @@
38937 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
38938 echo "$ac_t""yes" 1>&6
38940 + eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
38942 echo "$ac_t""no" 1>&6
38944 -echo $ac_n "checking for initscr in -l$LIB_NAME""... $ac_c" 1>&6
38945 -echo "configure:1184: checking for initscr in -l$LIB_NAME" >&5
38946 -ac_lib_var=`echo $LIB_NAME'_'initscr | sed 'y%./+-%__p_%'`
38947 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
38948 - echo $ac_n "(cached) $ac_c" 1>&6
38950 - ac_save_LIBS="$LIBS"
38951 -LIBS="-l$LIB_NAME $LIBS"
38952 -cat > conftest.$ac_ext <<EOF
38953 -#line 1192 "configure"
38954 + cf_save_LIBS="$LIBS"
38955 + echo $ac_n "checking for initscr in -l$cf_nculib_root""... $ac_c" 1>&6
38956 +echo "configure:3031: checking for initscr in -l$cf_nculib_root" >&5
38957 + LIBS="-l$cf_nculib_root $LIBS"
38958 + cat > conftest.$ac_ext <<EOF
38959 +#line 3034 "configure"
38960 #include "confdefs.h"
38961 -/* Override any gcc2 internal prototype to avoid an error. */
38962 -/* We use char because int might match the return type of a gcc2
38963 - builtin and then its argument prototype would still apply. */
38965 +#include <${cf_cv_ncurses_header-curses.h}>
38970 +if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38972 + echo "$ac_t""yes" 1>&6
38973 + eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
38976 + echo "configure: failed program was:" >&5
38977 + cat conftest.$ac_ext >&5
38979 + echo "$ac_t""no" 1>&6
38982 +test -d $HOME && {
38983 + test -n "$verbose" && echo " ... testing lib-directories under $HOME"
38984 + test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
38985 + test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
38986 + test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
38989 +# For other stuff under the home directory, it should be sufficient to put
38990 +# a symbolic link for $HOME/$cf_nculib_root to the actual package location:
38991 +test -d $HOME/$cf_nculib_root && {
38992 + test -n "$verbose" && echo " ... testing lib-directories under $HOME/$cf_nculib_root"
38993 + test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
38994 + test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
38997 +test "$prefix" != /usr/local && \
38998 +test -d /usr/local && {
38999 + test -n "$verbose" && echo " ... testing lib-directories under /usr/local"
39000 + test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
39001 + test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
39002 + test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
39003 + test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
39004 + test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
39007 +test "$prefix" != NONE && \
39008 +test -d $prefix && {
39009 + test -n "$verbose" && echo " ... testing lib-directories under $prefix"
39010 + test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
39011 + test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
39012 + test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
39013 + test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
39014 + test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
39017 +test "$prefix" != /opt && \
39019 + test -n "$verbose" && echo " ... testing lib-directories under /opt"
39020 + test -d /opt/lib && cf_search="$cf_search /opt/lib"
39021 + test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
39022 + test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
39023 + test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
39024 + test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
39027 +test "$prefix" != /usr && \
39029 + test -n "$verbose" && echo " ... testing lib-directories under /usr"
39030 + test -d /usr/lib && cf_search="$cf_search /usr/lib"
39031 + test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
39032 + test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
39033 + test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
39036 + for cf_libdir in $cf_search
39038 + echo $ac_n "checking for -l$cf_nculib_root in $cf_libdir""... $ac_c" 1>&6
39039 +echo "configure:3110: checking for -l$cf_nculib_root in $cf_libdir" >&5
39040 + LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
39041 + cat > conftest.$ac_ext <<EOF
39042 +#line 3113 "configure"
39043 +#include "confdefs.h"
39044 +#include <${cf_cv_ncurses_header-curses.h}>
39049 -if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39050 +if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39052 - eval "ac_cv_lib_$ac_lib_var=yes"
39053 + echo "$ac_t""yes" 1>&6
39054 + eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
39057 echo "configure: failed program was:" >&5
39058 cat conftest.$ac_ext >&5
39060 - eval "ac_cv_lib_$ac_lib_var=no"
39061 + echo "$ac_t""no" 1>&6
39062 + LIBS="$cf_save_LIBS"
39065 -LIBS="$ac_save_LIBS"
39073 +eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
39075 +if test $cf_found_library = no ; then
39076 + { echo "configure: error: Cannot link $cf_nculib_root library" 1>&2; exit 1; }
39078 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
39079 - echo "$ac_t""yes" 1>&6
39080 - ac_tr_lib=HAVE_LIB`echo $LIB_NAME | sed -e 's/[^a-zA-Z0-9_]/_/g' \
39081 - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
39082 - cat >> confdefs.h <<EOF
39083 -#define $ac_tr_lib 1
39086 - LIBS="-l$LIB_NAME $LIBS"
39090 +if test -n "$cf_ncurses_LIBS" ; then
39091 + echo $ac_n "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS""... $ac_c" 1>&6
39092 +echo "configure:3151: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
39093 + cf_ncurses_SAVE="$LIBS"
39094 + for p in $cf_ncurses_LIBS ; do
39095 + q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
39096 + if test "$q" != "$LIBS" ; then
39100 + cat > conftest.$ac_ext <<EOF
39101 +#line 3160 "configure"
39102 +#include "confdefs.h"
39103 +#include <${cf_cv_ncurses_header-curses.h}>
39105 +initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
39108 +if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39110 + echo "$ac_t""yes" 1>&6
39112 + echo "configure: failed program was:" >&5
39113 + cat conftest.$ac_ext >&5
39115 echo "$ac_t""no" 1>&6
39116 + LIBS="$cf_ncurses_SAVE"
39122 -echo $ac_n "checking for form_driver in -lform""... $ac_c" 1>&6
39123 -echo "configure:1233: checking for form_driver in -lform" >&5
39124 -ac_lib_var=`echo form'_'form_driver | sed 'y%./+-%__p_%'`
39126 +cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
39128 +cat >> confdefs.h <<EOF
39129 +#define $cf_nculib_ROOT 1
39133 + LIB_NAME=ncursesw
39139 +echo $ac_n "checking for form_driver in -lform$cf_cv_libtype""... $ac_c" 1>&6
39140 +echo "configure:3195: checking for form_driver in -lform$cf_cv_libtype" >&5
39141 +ac_lib_var=`echo form$cf_cv_libtype'_'form_driver | sed 'y%./+-%__p_%'`
39142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
39143 echo $ac_n "(cached) $ac_c" 1>&6
39145 ac_save_LIBS="$LIBS"
39146 -LIBS="-lform $LIBS"
39147 +LIBS="-lform$cf_cv_libtype $LIBS"
39148 cat > conftest.$ac_ext <<EOF
39149 -#line 1241 "configure"
39150 +#line 3203 "configure"
39151 #include "confdefs.h"
39152 /* Override any gcc2 internal prototype to avoid an error. */
39153 /* We use char because int might match the return type of a gcc2
39154 @@ -1248,7 +3210,7 @@
39158 -if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39159 +if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39161 eval "ac_cv_lib_$ac_lib_var=yes"
39163 @@ -1263,28 +3225,28 @@
39165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
39166 echo "$ac_t""yes" 1>&6
39167 - ac_tr_lib=HAVE_LIB`echo form | sed -e 's/[^a-zA-Z0-9_]/_/g' \
39168 + ac_tr_lib=HAVE_LIB`echo form$cf_cv_libtype | sed -e 's/[^a-zA-Z0-9_]/_/g' \
39169 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
39170 cat >> confdefs.h <<EOF
39171 #define $ac_tr_lib 1
39174 - LIBS="-lform $LIBS"
39175 + LIBS="-lform$cf_cv_libtype $LIBS"
39178 echo "$ac_t""no" 1>&6
39181 -echo $ac_n "checking for menu_driver in -lmenu""... $ac_c" 1>&6
39182 -echo "configure:1280: checking for menu_driver in -lmenu" >&5
39183 -ac_lib_var=`echo menu'_'menu_driver | sed 'y%./+-%__p_%'`
39184 +echo $ac_n "checking for menu_driver in -lmenu$cf_cv_libtype""... $ac_c" 1>&6
39185 +echo "configure:3242: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
39186 +ac_lib_var=`echo menu$cf_cv_libtype'_'menu_driver | sed 'y%./+-%__p_%'`
39187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
39188 echo $ac_n "(cached) $ac_c" 1>&6
39190 ac_save_LIBS="$LIBS"
39191 -LIBS="-lmenu $LIBS"
39192 +LIBS="-lmenu$cf_cv_libtype $LIBS"
39193 cat > conftest.$ac_ext <<EOF
39194 -#line 1288 "configure"
39195 +#line 3250 "configure"
39196 #include "confdefs.h"
39197 /* Override any gcc2 internal prototype to avoid an error. */
39198 /* We use char because int might match the return type of a gcc2
39199 @@ -1295,7 +3257,7 @@
39203 -if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39204 +if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39206 eval "ac_cv_lib_$ac_lib_var=yes"
39208 @@ -1310,28 +3272,28 @@
39210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
39211 echo "$ac_t""yes" 1>&6
39212 - ac_tr_lib=HAVE_LIB`echo menu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
39213 + ac_tr_lib=HAVE_LIB`echo menu$cf_cv_libtype | sed -e 's/[^a-zA-Z0-9_]/_/g' \
39214 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
39215 cat >> confdefs.h <<EOF
39216 #define $ac_tr_lib 1
39219 - LIBS="-lmenu $LIBS"
39220 + LIBS="-lmenu$cf_cv_libtype $LIBS"
39223 echo "$ac_t""no" 1>&6
39226 -echo $ac_n "checking for new_panel in -lpanel""... $ac_c" 1>&6
39227 -echo "configure:1327: checking for new_panel in -lpanel" >&5
39228 -ac_lib_var=`echo panel'_'new_panel | sed 'y%./+-%__p_%'`
39229 +echo $ac_n "checking for new_panel in -lpanel$cf_cv_libtype""... $ac_c" 1>&6
39230 +echo "configure:3289: checking for new_panel in -lpanel$cf_cv_libtype" >&5
39231 +ac_lib_var=`echo panel$cf_cv_libtype'_'new_panel | sed 'y%./+-%__p_%'`
39232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
39233 echo $ac_n "(cached) $ac_c" 1>&6
39235 ac_save_LIBS="$LIBS"
39236 -LIBS="-lpanel $LIBS"
39237 +LIBS="-lpanel$cf_cv_libtype $LIBS"
39238 cat > conftest.$ac_ext <<EOF
39239 -#line 1335 "configure"
39240 +#line 3297 "configure"
39241 #include "confdefs.h"
39242 /* Override any gcc2 internal prototype to avoid an error. */
39243 /* We use char because int might match the return type of a gcc2
39244 @@ -1342,7 +3304,7 @@
39248 -if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39249 +if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39251 eval "ac_cv_lib_$ac_lib_var=yes"
39253 @@ -1357,13 +3319,13 @@
39255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
39256 echo "$ac_t""yes" 1>&6
39257 - ac_tr_lib=HAVE_LIB`echo panel | sed -e 's/[^a-zA-Z0-9_]/_/g' \
39258 + ac_tr_lib=HAVE_LIB`echo panel$cf_cv_libtype | sed -e 's/[^a-zA-Z0-9_]/_/g' \
39259 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
39260 cat >> confdefs.h <<EOF
39261 #define $ac_tr_lib 1
39264 - LIBS="-lpanel $LIBS"
39265 + LIBS="-lpanel$cf_cv_libtype $LIBS"
39268 echo "$ac_t""no" 1>&6
39269 @@ -1371,12 +3333,12 @@
39272 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
39273 -echo "configure:1375: checking return type of signal handlers" >&5
39274 +echo "configure:3337: checking return type of signal handlers" >&5
39275 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
39276 echo $ac_n "(cached) $ac_c" 1>&6
39278 cat > conftest.$ac_ext <<EOF
39279 -#line 1380 "configure"
39280 +#line 3342 "configure"
39281 #include "confdefs.h"
39282 #include <sys/types.h>
39283 #include <signal.h>
39284 @@ -1393,7 +3355,7 @@
39288 -if { (eval echo configure:1397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39289 +if { (eval echo configure:3359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39291 ac_cv_type_signal=void
39293 @@ -1412,93 +3374,13 @@
39297 -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
39298 -echo "configure:1417: checking how to run the C preprocessor" >&5
39299 -# On Suns, sometimes $CPP names a directory.
39300 -if test -n "$CPP" && test -d "$CPP"; then
39303 -if test -z "$CPP"; then
39304 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
39305 - echo $ac_n "(cached) $ac_c" 1>&6
39307 - # This must be in double quotes, not single quotes, because CPP may get
39308 - # substituted into the Makefile and "${CC-cc}" will confuse make.
39309 - CPP="${CC-cc} -E"
39310 - # On the NeXT, cc -E runs the code through the compiler's parser,
39311 - # not just through cpp.
39312 - cat > conftest.$ac_ext <<EOF
39313 -#line 1432 "configure"
39314 -#include "confdefs.h"
39315 -#include <assert.h>
39318 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
39319 -{ (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
39320 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
39321 -if test -z "$ac_err"; then
39324 - echo "$ac_err" >&5
39325 - echo "configure: failed program was:" >&5
39326 - cat conftest.$ac_ext >&5
39328 - CPP="${CC-cc} -E -traditional-cpp"
39329 - cat > conftest.$ac_ext <<EOF
39330 -#line 1449 "configure"
39331 -#include "confdefs.h"
39332 -#include <assert.h>
39335 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
39336 -{ (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
39337 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
39338 -if test -z "$ac_err"; then
39341 - echo "$ac_err" >&5
39342 - echo "configure: failed program was:" >&5
39343 - cat conftest.$ac_ext >&5
39345 - CPP="${CC-cc} -nologo -E"
39346 - cat > conftest.$ac_ext <<EOF
39347 -#line 1466 "configure"
39348 -#include "confdefs.h"
39349 -#include <assert.h>
39352 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
39353 -{ (eval echo configure:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
39354 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
39355 -if test -z "$ac_err"; then
39358 - echo "$ac_err" >&5
39359 - echo "configure: failed program was:" >&5
39360 - cat conftest.$ac_ext >&5
39369 - ac_cv_prog_CPP="$CPP"
39371 - CPP="$ac_cv_prog_CPP"
39373 - ac_cv_prog_CPP="$CPP"
39375 -echo "$ac_t""$CPP" 1>&6
39377 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
39378 -echo "configure:1497: checking for ANSI C header files" >&5
39379 +echo "configure:3379: checking for ANSI C header files" >&5
39380 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
39381 echo $ac_n "(cached) $ac_c" 1>&6
39383 cat > conftest.$ac_ext <<EOF
39384 -#line 1502 "configure"
39385 +#line 3384 "configure"
39386 #include "confdefs.h"
39387 #include <stdlib.h>
39388 #include <stdarg.h>
39389 @@ -1506,7 +3388,7 @@
39392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
39393 -{ (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
39394 +{ (eval echo configure:3392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
39395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
39396 if test -z "$ac_err"; then
39398 @@ -1523,7 +3405,7 @@
39399 if test $ac_cv_header_stdc = yes; then
39400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
39401 cat > conftest.$ac_ext <<EOF
39402 -#line 1527 "configure"
39403 +#line 3409 "configure"
39404 #include "confdefs.h"
39405 #include <string.h>
39407 @@ -1541,7 +3423,7 @@
39408 if test $ac_cv_header_stdc = yes; then
39409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
39410 cat > conftest.$ac_ext <<EOF
39411 -#line 1545 "configure"
39412 +#line 3427 "configure"
39413 #include "confdefs.h"
39414 #include <stdlib.h>
39416 @@ -1562,7 +3444,7 @@
39419 cat > conftest.$ac_ext <<EOF
39420 -#line 1566 "configure"
39421 +#line 3448 "configure"
39422 #include "confdefs.h"
39424 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
39425 @@ -1573,7 +3455,7 @@
39429 -if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
39430 +if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
39434 @@ -1597,12 +3479,12 @@
39437 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
39438 -echo "configure:1601: checking whether time.h and sys/time.h may both be included" >&5
39439 +echo "configure:3483: checking whether time.h and sys/time.h may both be included" >&5
39440 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
39441 echo $ac_n "(cached) $ac_c" 1>&6
39443 cat > conftest.$ac_ext <<EOF
39444 -#line 1606 "configure"
39445 +#line 3488 "configure"
39446 #include "confdefs.h"
39447 #include <sys/types.h>
39448 #include <sys/time.h>
39449 @@ -1611,7 +3493,7 @@
39453 -if { (eval echo configure:1615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39454 +if { (eval echo configure:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39456 ac_cv_header_time=yes
39458 @@ -1648,17 +3530,17 @@
39460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
39461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
39462 -echo "configure:1652: checking for $ac_hdr" >&5
39463 +echo "configure:3534: checking for $ac_hdr" >&5
39464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
39465 echo $ac_n "(cached) $ac_c" 1>&6
39467 cat > conftest.$ac_ext <<EOF
39468 -#line 1657 "configure"
39469 +#line 3539 "configure"
39470 #include "confdefs.h"
39473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
39474 -{ (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
39475 +{ (eval echo configure:3544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
39476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
39477 if test -z "$ac_err"; then
39479 @@ -1691,19 +3573,21 @@
39485 use_default_colors \
39491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
39492 -echo "configure:1702: checking for $ac_func" >&5
39493 +echo "configure:3586: checking for $ac_func" >&5
39494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
39495 echo $ac_n "(cached) $ac_c" 1>&6
39497 cat > conftest.$ac_ext <<EOF
39498 -#line 1707 "configure"
39499 +#line 3591 "configure"
39500 #include "confdefs.h"
39501 /* System header to define __stub macros and hopefully few prototypes,
39502 which can conflict with char $ac_func(); below. */
39503 @@ -1726,7 +3610,7 @@
39507 -if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39508 +if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39510 eval "ac_cv_func_$ac_func=yes"
39512 @@ -1751,8 +3635,85 @@
39516 +cat > conftest.$ac_ext <<EOF
39517 +#line 3640 "configure"
39518 +#include "confdefs.h"
39520 +#include <${cf_cv_ncurses_header-curses.h}>
39523 + (void) assume_default_colors (0, 0);
39524 + (void) curses_version ();
39525 + (void) define_key (0, 0);
39526 + (void) is_term_resized (0, 0);
39527 + (void) key_defined (0);
39528 + (void) keybound (0, 0);
39529 + (void) keyok (0, 0);
39530 + (void) resize_term (0, 0);
39531 + (void) resizeterm (0, 0);
39532 + (void) use_default_colors ();
39533 + (void) use_extended_names (0);
39534 + (void) wresize (0, 0, 0);
39538 +if { (eval echo configure:3661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39540 + cat >> confdefs.h <<\EOF
39541 +#define NCURSES_EXT_FUNCS 1
39545 + echo "configure: failed program was:" >&5
39546 + cat conftest.$ac_ext >&5
39551 +echo $ac_n "checking if sys/time.h works with sys/select.h""... $ac_c" 1>&6
39552 +echo "configure:3675: checking if sys/time.h works with sys/select.h" >&5
39553 +if eval "test \"`echo '$''{'cf_cv_sys_time_select'+set}'`\" = set"; then
39554 + echo $ac_n "(cached) $ac_c" 1>&6
39557 +cat > conftest.$ac_ext <<EOF
39558 +#line 3681 "configure"
39559 +#include "confdefs.h"
39561 +#include <sys/types.h>
39562 +#ifdef HAVE_SYS_TIME_H
39563 +#include <sys/time.h>
39565 +#ifdef HAVE_SYS_SELECT_H
39566 +#include <sys/select.h>
39573 +if { (eval echo configure:3696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39575 + cf_cv_sys_time_select=yes
39577 + echo "configure: failed program was:" >&5
39578 + cat conftest.$ac_ext >&5
39580 + cf_cv_sys_time_select=no
39586 +echo "$ac_t""$cf_cv_sys_time_select" 1>&6
39587 +test "$cf_cv_sys_time_select" = yes && cat >> confdefs.h <<\EOF
39588 +#define HAVE_SYS_TIME_SELECT 1
39593 echo $ac_n "checking for function curses_version""... $ac_c" 1>&6
39594 -echo "configure:1756: checking for function curses_version" >&5
39595 +echo "configure:3717: checking for function curses_version" >&5
39596 if eval "test \"`echo '$''{'cf_cv_func_curses_version'+set}'`\" = set"; then
39597 echo $ac_n "(cached) $ac_c" 1>&6
39599 @@ -1761,10 +3722,10 @@
39600 cf_cv_func_curses_version=unknown
39602 cat > conftest.$ac_ext <<EOF
39603 -#line 1765 "configure"
39604 +#line 3726 "configure"
39605 #include "confdefs.h"
39607 -#include <curses.h>
39608 +#include <${cf_cv_ncurses_header-curses.h}>
39612 @@ -1773,7 +3734,7 @@
39616 -if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
39617 +if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
39619 cf_cv_func_curses_version=yes
39621 @@ -1796,8 +3757,9 @@
39626 echo $ac_n "checking for alternate character set array""... $ac_c" 1>&6
39627 -echo "configure:1801: checking for alternate character set array" >&5
39628 +echo "configure:3763: checking for alternate character set array" >&5
39629 if eval "test \"`echo '$''{'cf_cv_curses_acs_map'+set}'`\" = set"; then
39630 echo $ac_n "(cached) $ac_c" 1>&6
39632 @@ -1806,10 +3768,10 @@
39633 for name in acs_map _acs_map __acs_map _nc_acs_map
39635 cat > conftest.$ac_ext <<EOF
39636 -#line 1810 "configure"
39637 +#line 3772 "configure"
39638 #include "confdefs.h"
39640 -#include <curses.h>
39641 +#include <${cf_cv_ncurses_header-curses.h}>
39645 @@ -1817,7 +3779,7 @@
39649 -if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39650 +if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39652 cf_cv_curses_acs_map=$name; break
39654 @@ -1836,69 +3798,60 @@
39659 echo $ac_n "checking for wide alternate character set array""... $ac_c" 1>&6
39660 -echo "configure:1841: checking for wide alternate character set array" >&5
39661 +echo "configure:3804: checking for wide alternate character set array" >&5
39662 if eval "test \"`echo '$''{'cf_cv_curses_wacs_map'+set}'`\" = set"; then
39663 echo $ac_n "(cached) $ac_c" 1>&6
39666 -cf_cv_curses_wacs_map=unknown
39667 -for name in wacs_map _wacs_map __wacs_map _nc_wacs
39669 -cat > conftest.$ac_ext <<EOF
39670 -#line 1850 "configure"
39671 + cf_cv_curses_wacs_map=unknown
39672 + for name in wacs_map _wacs_map __wacs_map _nc_wacs
39674 + cat > conftest.$ac_ext <<EOF
39675 +#line 3813 "configure"
39676 #include "confdefs.h"
39678 #ifndef _XOPEN_SOURCE_EXTENDED
39679 #define _XOPEN_SOURCE_EXTENDED
39681 -#include <curses.h>
39683 +#include <${cf_cv_ncurses_header-curses.h}>
39686 -$name['k'] = *WACS_PLUS
39688 +$name['k'] = *WACS_PLUS
39691 -if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39692 +if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39694 - cf_cv_curses_wacs_map=$name; break
39695 + cf_cv_curses_wacs_map=$name
39698 echo "configure: failed program was:" >&5
39699 cat conftest.$ac_ext >&5
39707 echo "$ac_t""$cf_cv_curses_wacs_map" 1>&6
39709 -test "$cf_cv_curses_wacs_map" != unknown && cat >> confdefs.h <<EOF
39710 -#define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
39717 -echo $ac_n "checking for type attr_t in curses.h""... $ac_c" 1>&6
39718 -echo "configure:1887: checking for type attr_t in curses.h" >&5
39719 +echo $ac_n "checking for type attr_t in ${cf_cv_ncurses_header-curses.h}""... $ac_c" 1>&6
39720 +echo "configure:3840: checking for type attr_t in ${cf_cv_ncurses_header-curses.h}" >&5
39721 cat > conftest.$ac_ext <<EOF
39722 -#line 1889 "configure"
39723 +#line 3842 "configure"
39724 #include "confdefs.h"
39726 #ifndef _XOPEN_SOURCE_EXTENDED
39727 #define _XOPEN_SOURCE_EXTENDED
39729 -#include <curses.h>
39730 +#include <${cf_cv_ncurses_header-curses.h}>
39737 -if { (eval echo configure:1902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39738 +if { (eval echo configure:3855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39742 @@ -1910,7 +3863,7 @@
39744 echo "$ac_t""$cf_result" 1>&6
39745 if test $cf_result = yes ; then
39748 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
39750 cat >> confdefs.h <<EOF
39751 @@ -1925,23 +3878,23 @@
39755 -echo $ac_n "checking for type mbstate_t in curses.h""... $ac_c" 1>&6
39756 -echo "configure:1930: checking for type mbstate_t in curses.h" >&5
39757 +echo $ac_n "checking for type mbstate_t in ${cf_cv_ncurses_header-curses.h}""... $ac_c" 1>&6
39758 +echo "configure:3883: checking for type mbstate_t in ${cf_cv_ncurses_header-curses.h}" >&5
39759 cat > conftest.$ac_ext <<EOF
39760 -#line 1932 "configure"
39761 +#line 3885 "configure"
39762 #include "confdefs.h"
39764 #ifndef _XOPEN_SOURCE_EXTENDED
39765 #define _XOPEN_SOURCE_EXTENDED
39767 -#include <curses.h>
39768 +#include <${cf_cv_ncurses_header-curses.h}>
39775 -if { (eval echo configure:1945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39776 +if { (eval echo configure:3898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39780 @@ -1953,7 +3906,7 @@
39782 echo "$ac_t""$cf_result" 1>&6
39783 if test $cf_result = yes ; then
39786 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
39788 cat >> confdefs.h <<EOF
39789 @@ -1969,48 +3922,6 @@
39793 -echo $ac_n "checking if sys/time.h works with sys/select.h""... $ac_c" 1>&6
39794 -echo "configure:1974: checking if sys/time.h works with sys/select.h" >&5
39795 -if eval "test \"`echo '$''{'cf_cv_sys_time_select'+set}'`\" = set"; then
39796 - echo $ac_n "(cached) $ac_c" 1>&6
39799 -cat > conftest.$ac_ext <<EOF
39800 -#line 1980 "configure"
39801 -#include "confdefs.h"
39803 -#include <sys/types.h>
39804 -#ifdef HAVE_SYS_TIME_H
39805 -#include <sys/time.h>
39807 -#ifdef HAVE_SYS_SELECT_H
39808 -#include <sys/select.h>
39815 -if { (eval echo configure:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39817 - cf_cv_sys_time_select=yes
39819 - echo "configure: failed program was:" >&5
39820 - cat conftest.$ac_ext >&5
39822 - cf_cv_sys_time_select=no
39828 -echo "$ac_t""$cf_cv_sys_time_select" 1>&6
39829 -test "$cf_cv_sys_time_select" = yes && cat >> confdefs.h <<\EOF
39830 -#define HAVE_SYS_TIME_SELECT 1
39836 cat > confcache <<\EOF
39837 # This file is a shell script that caches the results of configure
39838 @@ -2101,7 +4012,7 @@
39839 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
39840 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
39841 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
39842 - echo "$CONFIG_STATUS generated by autoconf version 2.13.20000819"
39843 + echo "$CONFIG_STATUS generated by autoconf version 2.13.20020210"
39845 -help | --help | --hel | --he | --h)
39846 echo "\$ac_cs_usage"; exit 0 ;;
39847 @@ -2143,7 +4054,13 @@
39848 s%@oldincludedir@%$oldincludedir%g
39849 s%@infodir@%$infodir%g
39850 s%@mandir@%$mandir%g
39852 +s%@host_alias@%$host_alias%g
39853 +s%@host_cpu@%$host_cpu%g
39854 +s%@host_vendor@%$host_vendor%g
39855 +s%@host_os@%$host_os%g
39858 s%@CC_G_OPT@%$CC_G_OPT%g
39859 s%@CC_SHARED_OPTS@%$CC_SHARED_OPTS%g
39860 s%@DFT_DEP_SUFFIX@%$DFT_DEP_SUFFIX%g
39861 @@ -2168,7 +4085,6 @@
39862 s%@TEST_DEPS@%$TEST_DEPS%g
39863 s%@cf_cv_abi_version@%$cf_cv_abi_version%g
39864 s%@cf_cv_rel_version@%$cf_cv_rel_version%g
39869 @@ -2379,11 +4295,9 @@
39870 # work consistently for different make-programs (the '\$(MODEL)/' confuses
39871 # some, and the '\$x' confuses others).
39873 -LIST=`make echo_tests`
39874 -LAST=`make echo_suffix`
39876 +LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
39879 - N=`echo $n | sed -e s/${LAST}\$//`
39880 cat >>Makefile <<TEST_EOF
39882 \$(MODEL)/$N.o : $N.c \\
39883 diff -urNd -urNd ncurses-5.3/test/configure.in ncurses-5.3.20030906.orig/test/configure.in
39884 --- ncurses-5.3/test/configure.in Sat Sep 7 11:55:23 2002
39885 +++ ncurses-5.3.20030906.orig/test/configure.in Sun Jul 20 14:02:08 2003
39887 dnl***************************************************************************
39888 -dnl Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
39889 +dnl Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
39891 dnl Permission is hereby granted, free of charge, to any person obtaining a *
39892 dnl copy of this software and associated documentation files (the *
39895 dnl Author: Thomas E. Dickey 1996, etc.
39897 -dnl $Id: configure.in,v 1.36 2002/09/07 16:55:23 tom Exp $
39898 +dnl $Id: configure.in,v 1.43 2003/05/17 21:56:58 tom Exp $
39899 dnl This is a simple configuration-script for the ncurses test programs that
39900 dnl allows the test-directory to be separately configured against a reference
39901 dnl system (i.e., sysvr4 curses)
39902 @@ -38,11 +38,16 @@
39904 dnl See http://invisible-island.net/autoconf/ for additional information.
39905 dnl ---------------------------------------------------------------------------
39906 -AC_PREREQ(2.13.20000819)
39907 +AC_PREREQ(2.13.20020210)
39909 AC_CONFIG_HEADER(ncurses_cfg.h:ncurses_tst.hin)
39911 +CF_INHERIT_SCRIPT(config.guess)
39912 +CF_INHERIT_SCRIPT(config.sub)
39918 dnl Things that we don't need (or must override) if we're not building ncurses
39919 CC_G_OPT="-g" AC_SUBST(CC_G_OPT)
39921 cf_cv_abi_version="" AC_SUBST(cf_cv_abi_version)
39922 cf_cv_rel_version="" AC_SUBST(cf_cv_rel_version)
39924 +cf_cv_screen=curses
39927 +CF_WITH_CURSES_DIR
39931 [ --with-5lib use SunOS sysv-libraries],
39932 @@ -78,92 +88,44 @@
39933 CPPFLAGS="$CPPFLAGS -I/usr/5include"])
39935 dnl ---------------------------------------------------------------------------
39936 -dnl Check for libutf8
39937 -AC_DEFUN([CF_LIBUTF8],
39939 -AC_CACHE_CHECK(for putwc in libutf8,cf_cv_libutf8,[
39940 - cf_save_LIBS="$LIBS"
39941 - LIBS="-lutf8 $LIBS"
39943 -#include <libutf8.h>],[putwc(0,0);],
39944 - [cf_cv_libutf8=yes],
39945 - [cf_cv_libutf8=no])
39946 - LIBS="$cf_save_LIBS"
39949 -if test "$cf_cv_libutf8" = yes ; then
39950 - AC_DEFINE(HAVE_LIBUTF8_H)
39951 - LIBS="-lutf8 $LIBS"
39955 -dnl ---------------------------------------------------------------------------
39956 dnl NcursesW, installed in conventional location
39957 AC_ARG_WITH(ncursesw,
39958 [ --with-ncursesw use wide ncurses-libraries (installed)],
39960 - AC_DEFINE(_GNU_SOURCE)
39961 - AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
39962 - AC_CHECK_FUNC(initscr,,[
39963 - AC_CHECK_LIB(gpm,Gpm_Open)
39964 - LIB_NAME=ncursesw
39965 - AC_CHECK_FUNC(putwc,,[CF_LIBUTF8])
39966 - for p in $HOME /usr/local /usr
39968 - if test -f $p/include/ncursesw/curses.h
39970 - CPPFLAGS="$CPPFLAGS -I$p/include/ncursesw"
39971 - test $p != /usr && CPPFLAGS="$CPPFLAGS -I$p/include"
39972 - test $p != /usr && LIBS="-L$p/lib $LIBS"
39974 - elif test $p != /usr
39976 - if test -f $p/include/curses.h
39978 - CPPFLAGS="$CPPFLAGS -I$p/include"
39979 - LIBS="-L$p/lib $LIBS"
39984 - ],[test -d /usr/ccs/lib && LIBS="-L/usr/ccs/lib $LIBS"])])
39985 + [cf_cv_screen=ncursesw])
39987 dnl Ncurses, installed in conventional location
39988 AC_ARG_WITH(ncurses,
39989 [ --with-ncurses use ncurses-libraries (installed)],
39990 - [AC_CHECK_FUNC(initscr,,[
39991 - AC_CHECK_LIB(gpm,Gpm_Open)
39993 - for p in $HOME /usr/local /usr
39995 - if test -f $p/include/ncurses/curses.h
39997 - CPPFLAGS="$CPPFLAGS -I$p/include/ncurses"
39998 - test $p != /usr && CPPFLAGS="$CPPFLAGS -I$p/include"
39999 - test $p != /usr && LIBS="-L$p/lib $LIBS"
40001 - elif test $p != /usr
40003 - if test -f $p/include/curses.h
40005 - CPPFLAGS="$CPPFLAGS -I$p/include"
40006 - LIBS="-L$p/lib $LIBS"
40011 - ],[test -d /usr/ccs/lib && LIBS="-L/usr/ccs/lib $LIBS"])])
40012 + [cf_cv_screen=ncurses])
40014 +case $cf_cv_screen in
40016 + CF_CURSES_CPPFLAGS
40017 + CF_NCURSES_VERSION
40021 + CF_NCURSES_CPPFLAGS
40028 + CF_NCURSES_CPPFLAGS(ncursesw)
40029 + CF_NCURSES_LIBS(ncursesw)
40030 + LIB_NAME=ncursesw
40034 dnl If we've not specified a library, assume we're using sysvr4 libraries
40035 dnl installed conventionally (e.g., SunOS 5.x - solaris).
40037 dnl Autoconf builds up the $LIBS in reverse order
40039 -AC_CHECK_FUNC(initscr,,[
40040 -AC_CHECK_LIB($LIB_NAME,initscr)])
40041 -AC_CHECK_LIB(form,form_driver)
40042 -AC_CHECK_LIB(menu,menu_driver)
40043 -AC_CHECK_LIB(panel,new_panel)
40044 +AC_CHECK_LIB(form$cf_cv_libtype,form_driver)
40045 +AC_CHECK_LIB(menu$cf_cv_libtype,menu_driver)
40046 +AC_CHECK_LIB(panel$cf_cv_libtype,new_panel)
40050 @@ -190,117 +152,37 @@
40056 use_default_colors \
40062 -dnl ---------------------------------------------------------------------------
40063 -dnl Solaris has a data item 'curses_version', which confuses AC_CHECK_FUNCS.
40064 -dnl It's a character string "SVR4", not documented.
40065 -AC_CACHE_CHECK(for function curses_version, cf_cv_func_curses_version,[
40067 -#include <curses.h>
40071 - sprintf(temp, "%s\n", curses_version());
40074 -,[cf_cv_func_curses_version=yes]
40075 -,[cf_cv_func_curses_version=no]
40076 -,[cf_cv_func_curses_version=unknown])
40078 -test "$cf_cv_func_curses_version" = yes && AC_DEFINE(HAVE_CURSES_VERSION)
40080 -dnl ---------------------------------------------------------------------------
40081 -dnl Check for likely values of acs_map[]:
40082 -AC_CACHE_CHECK(for alternate character set array, cf_cv_curses_acs_map,[
40083 -cf_cv_curses_acs_map=unknown
40084 -for name in acs_map _acs_map __acs_map _nc_acs_map
40087 -#include <curses.h>
40089 -$name['k'] = ACS_PLUS
40090 -],[cf_cv_curses_acs_map=$name; break])
40094 -test "$cf_cv_curses_acs_map" != unknown && AC_DEFINE_UNQUOTED(CURSES_ACS_ARRAY,$cf_cv_curses_acs_map)
40096 -dnl ---------------------------------------------------------------------------
40097 -dnl Check for likely values of wacs_map[]:
40098 -AC_CACHE_CHECK(for wide alternate character set array, cf_cv_curses_wacs_map,[
40099 -cf_cv_curses_wacs_map=unknown
40100 -for name in wacs_map _wacs_map __wacs_map _nc_wacs
40103 -#ifndef _XOPEN_SOURCE_EXTENDED
40104 -#define _XOPEN_SOURCE_EXTENDED
40106 -#include <curses.h>
40108 -$name['k'] = *WACS_PLUS
40109 -],[cf_cv_curses_wacs_map=$name; break])
40113 -test "$cf_cv_curses_wacs_map" != unknown && AC_DEFINE_UNQUOTED(CURSES_WACS_ARRAY,$cf_cv_curses_wacs_map)
40115 -dnl ---------------------------------------------------------------------------
40116 -dnl Make an uppercase version of a variable
40117 -dnl $1=uppercase($2)
40118 -AC_DEFUN([CF_UPPER],
40120 -$1=`echo "$2" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
40123 -dnl ---------------------------------------------------------------------------
40124 -dnl Check if curses.h defines the given type
40125 -AC_DEFUN([CF_CURSES_TYPE],
40126 +#include <${cf_cv_ncurses_header-curses.h}>],
40128 -AC_MSG_CHECKING(for type $1 in curses.h)
40130 -#ifndef _XOPEN_SOURCE_EXTENDED
40131 -#define _XOPEN_SOURCE_EXTENDED
40133 -#include <curses.h>],[
40135 -],cf_result=yes,cf_result=no)
40136 -AC_MSG_RESULT($cf_result)
40137 -if test $cf_result = yes ; then
40138 - CF_UPPER(cf_result,have_type_$1)
40139 - AC_DEFINE_UNQUOTED($cf_result)
40141 - AC_DEFINE_UNQUOTED($1,$2)
40145 -CF_CURSES_TYPE(attr_t,long)
40146 -CF_CURSES_TYPE(mbstate_t,long)
40148 -dnl ---------------------------------------------------------------------------
40149 -dnl Check if we can include <sys/time.h> with <sys/select.h>; this breaks on
40150 -dnl older SCO configurations.
40151 -dnl [CF_SYS_TIME_SELECT]
40152 + (void) assume_default_colors (0, 0);
40153 + (void) curses_version ();
40154 + (void) define_key (0, 0);
40155 + (void) is_term_resized (0, 0);
40156 + (void) key_defined (0);
40157 + (void) keybound (0, 0);
40158 + (void) keyok (0, 0);
40159 + (void) resize_term (0, 0);
40160 + (void) resizeterm (0, 0);
40161 + (void) use_default_colors ();
40162 + (void) use_extended_names (0);
40163 + (void) wresize (0, 0, 0);
40164 + ],[AC_DEFINE(NCURSES_EXT_FUNCS)])
40166 -AC_MSG_CHECKING(if sys/time.h works with sys/select.h)
40167 -AC_CACHE_VAL(cf_cv_sys_time_select,[
40169 -#include <sys/types.h>
40170 -#ifdef HAVE_SYS_TIME_H
40171 -#include <sys/time.h>
40173 -#ifdef HAVE_SYS_SELECT_H
40174 -#include <sys/select.h>
40176 -],[],[cf_cv_sys_time_select=yes],
40177 - [cf_cv_sys_time_select=no])
40179 -AC_MSG_RESULT($cf_cv_sys_time_select)
40180 -test "$cf_cv_sys_time_select" = yes && AC_DEFINE(HAVE_SYS_TIME_SELECT)
40181 +CF_SYS_TIME_SELECT
40182 +CF_FUNC_CURSES_VERSION
40184 +CF_CURSES_WACS_MAP
40185 +CF_CURSES_CHECK_TYPE(attr_t,long)
40186 +CF_CURSES_CHECK_TYPE(mbstate_t,long)
40188 dnl ---------------------------------------------------------------------------
40190 @@ -311,11 +193,9 @@
40191 # work consistently for different make-programs (the '\$(MODEL)/' confuses
40192 # some, and the '\$x' confuses others).
40194 -LIST=`make echo_tests`
40195 -LAST=`make echo_suffix`
40197 +LIST=`sed -e 's/[[ ]].*//' -e '/^[[#@]]/d' $srcdir/modules`
40200 - N=`echo $n | sed -e s/${LAST}\$//`
40201 cat >>Makefile <<TEST_EOF
40203 \$(MODEL)/$N.o : $N.c \\
40204 diff -urNd -urNd ncurses-5.3/test/demo_defkey.c ncurses-5.3.20030906.orig/test/demo_defkey.c
40205 --- ncurses-5.3/test/demo_defkey.c Wed Dec 31 18:00:00 1969
40206 +++ ncurses-5.3.20030906.orig/test/demo_defkey.c Sun Jul 20 14:02:08 2003
40209 + * $Id: demo_defkey.c,v 1.11 2003/05/17 23:33:28 tom Exp $
40211 + * Demonstrate the define_key() function.
40212 + * Thomas Dickey - 2002/11/23
40215 +#include <test.priv.h>
40217 +#if defined(NCURSES_VERSION) && NCURSES_EXT_FUNCS
40221 +#define MY_LOGFILE "demo_defkey.log"
40224 + * Log the most recently-written line to our logfile
40227 +log_last_line(WINDOW *win)
40233 + if ((fp = fopen(MY_LOGFILE, "a")) != 0) {
40234 + getyx(win, y, x);
40235 + wmove(win, y - 1, 0);
40236 + n = winnstr(win, temp, sizeof(temp));
40237 + while (n-- > 0) {
40238 + if (isspace(temp[n]))
40243 + wmove(win, y, x);
40244 + fprintf(fp, "%s\n", temp);
40250 + * Convert a character to visible form.
40255 + static char temp[10];
40258 + if (ch == '\\') {
40259 + strcpy(temp, "\\\\");
40260 + } else if (ch == '\033') {
40261 + strcpy(temp, "\\E");
40262 + } else if (ch < ' ') {
40263 + sprintf(temp, "\\%03o", ch);
40264 + } else if (ch >= 127) {
40265 + sprintf(temp, "\\%03o", ch);
40267 + sprintf(temp, "%c", ch);
40273 + * Convert a string to visible form.
40276 +visible(const char *string)
40278 + char *result = 0;
40279 + unsigned need = 1;
40283 + if (string != 0 && *string != '\0') {
40284 + for (pass = 0; pass < 2; ++pass) {
40285 + for (n = 0; string[n] != '\0'; ++n) {
40287 + strcpy(temp, visichar(string[n]));
40289 + strcat(result, temp);
40291 + need += strlen(temp);
40294 + result = calloc(need, 1);
40297 + result = calloc(1, 1);
40303 +really_define_key(WINDOW *win, const char *new_string, int code)
40306 + const char *code_name = keyname(code);
40307 + char *old_string;
40308 + char *vis_string = 0;
40311 + if (code_name == 0) {
40312 + sprintf(temp, "Keycode %d", code);
40313 + code_name = temp;
40316 + if ((old_string = keybound(code, 0)) != 0) {
40317 + wprintw(win, "%s is %s\n",
40319 + vis_string = visible(old_string));
40321 + wprintw(win, "%s is not bound\n",
40324 + log_last_line(win);
40325 + if (vis_string != 0) {
40326 + free(vis_string);
40330 + vis_string = visible(new_string);
40331 + if ((rc = key_defined(new_string)) > 0) {
40332 + wprintw(win, "%s was bound to %s\n", vis_string, keyname(rc));
40333 + log_last_line(win);
40334 + } else if (new_string != 0 && rc < 0) {
40335 + wprintw(win, "%s conflicts with longer strings\n", vis_string);
40336 + log_last_line(win);
40338 + rc = define_key(new_string, code);
40340 + wprintw(win, "%s unchanged\n", code_name);
40341 + log_last_line(win);
40342 + } else if (new_string != 0) {
40343 + wprintw(win, "%s is now bound to %s\n",
40346 + log_last_line(win);
40347 + } else if (old_string != 0) {
40348 + wprintw(win, "%s deleted\n", code_name);
40349 + log_last_line(win);
40351 + if (vis_string != 0 && *vis_string != 0)
40352 + free(vis_string);
40353 + if (old_string != 0)
40354 + free(old_string);
40358 +duplicate(WINDOW *win, NCURSES_CONST char *name, int code)
40360 + char *value = tigetstr(name);
40362 + if (value != 0) {
40363 + const char *prefix = 0;
40364 + char temp[BUFSIZ];
40366 + if (!strncmp(value, "\033[", 2)) {
40367 + prefix = "\033O";
40368 + } else if (!strncmp(value, "\033O", 2)) {
40369 + prefix = "\033[";
40371 + if (prefix != 0) {
40372 + sprintf(temp, "%s%s", prefix, value + 2);
40373 + really_define_key(win, temp, code);
40379 +redefine(WINDOW *win, char *string, int code)
40381 + really_define_key(win, string, code);
40385 +remove_definition(WINDOW *win, int code)
40387 + really_define_key(win, 0, code);
40391 +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
40398 + unlink(MY_LOGFILE);
40401 + (void) cbreak(); /* take input chars one at a time, no wait for \n */
40402 + (void) noecho(); /* don't echo input */
40404 + printw("This demo is best on xterm: it reverses the definitions for f1-f12,\n");
40405 + printw("adds duplicate definitions for cursor application and normal modes,\n");
40406 + printw("and removes any definitions for the mini keypad. Type any of those:\n");
40409 + win = newwin(LINES - 3, COLS, 3, 0);
40410 + scrollok(win, TRUE);
40411 + keypad(win, TRUE);
40412 + wmove(win, 0, 0);
40414 + /* we do the define_key() calls after keypad(), since the first call to
40415 + * keypad() initializes the corresponding data.
40417 + for (n = 0; n < 12; ++n) {
40419 + sprintf(name, "kf%d", n + 1);
40420 + fkeys[n] = tigetstr(name);
40422 + for (n = 0; n < 12; ++n) {
40423 + redefine(win, fkeys[11 - n], KEY_F(n + 1));
40426 + duplicate(win, "kcub1", KEY_LEFT);
40427 + duplicate(win, "kcuu1", KEY_UP);
40428 + duplicate(win, "kcud1", KEY_DOWN);
40429 + duplicate(win, "kcuf1", KEY_RIGHT);
40431 + remove_definition(win, KEY_A1);
40432 + remove_definition(win, KEY_A3);
40433 + remove_definition(win, KEY_B2);
40434 + remove_definition(win, KEY_C1);
40435 + remove_definition(win, KEY_C3);
40437 + really_define_key(win, "\033O", 1023);
40439 + while ((ch = wgetch(win)) != ERR) {
40440 + const char *name = keyname(ch);
40441 + wprintw(win, "Keycode %d, name %s\n",
40443 + name != 0 ? name : "<null>");
40444 + log_last_line(win);
40448 + return EXIT_SUCCESS;
40454 + printf("This program requires the ncurses library\n");
40455 + ExitProgram(EXIT_FAILURE);
40458 diff -urNd -urNd ncurses-5.3/test/demo_forms.c ncurses-5.3.20030906.orig/test/demo_forms.c
40459 --- ncurses-5.3/test/demo_forms.c Wed Dec 31 18:00:00 1969
40460 +++ ncurses-5.3.20030906.orig/test/demo_forms.c Tue May 13 20:08:23 2003
40463 + * $Id: demo_forms.c,v 1.3 2003/05/03 22:08:20 tom Exp $
40465 + * Demonstrate a variety of functions from the form library.
40466 + * Thomas Dickey - 2003/4/26
40478 +dynamic_field_info -
40495 +form_request_by_name -
40504 +set_current_field -
40508 +set_field_status -
40510 +set_fieldtype_arg -
40511 +set_fieldtype_choice -
40517 +set_form_userptr -
40521 +#include <test.priv.h>
40525 +#include <edit_field.h>
40528 +make_label(int frow, int fcol, NCURSES_CONST char *label)
40530 + FIELD *f = new_field(1, strlen(label), frow, fcol, 0, 0);
40533 + set_field_buffer(f, 0, label);
40534 + set_field_opts(f, field_opts(f) & ~O_ACTIVE);
40540 + * Define each field with an extra one, for reflecting "actual" text.
40543 +make_field(int frow, int fcol, int rows, int cols)
40545 + FIELD *f = new_field(rows, cols, frow, fcol, 0, 1);
40548 + set_field_back(f, A_UNDERLINE);
40549 + set_field_userptr(f, (void *) 0);
40555 +display_form(FORM * f)
40560 + scale_form(f, &rows, &cols);
40563 + * Put the form at the upper-left corner of the display, with just a box
40566 + if ((w = newwin(rows + 2, cols + 4, 0, 0)) != (WINDOW *) 0) {
40567 + set_form_win(f, w);
40568 + set_form_sub(f, derwin(w, rows, cols, 1, 2));
40573 + if (post_form(f) != E_OK)
40578 +erase_form(FORM * f)
40580 + WINDOW *w = form_win(f);
40581 + WINDOW *s = form_sub(f);
40591 +my_form_driver(FORM * form, int c)
40594 + case EDIT_FIELD('q'):
40595 + if (form_driver(form, REQ_VALIDATION) == E_OK)
40598 + case EDIT_FIELD('h'):
40599 + help_edit_field();
40609 +show_current_field(WINDOW *win, FORM * form)
40616 + if (has_colors()) {
40617 + wbkgd(win, COLOR_PAIR(1));
40620 + wprintw(win, "Cursor: %d,%d\n", form->currow, form->curcol);
40621 + if ((field = current_field(form)) != 0) {
40622 + wprintw(win, "Field %d:", field_index(field));
40623 + if ((type = field_type(field)) != 0) {
40624 + if (type == TYPE_ALNUM)
40625 + waddstr(win, "ALNUM");
40626 + else if (type == TYPE_ALPHA)
40627 + waddstr(win, "ALPHA");
40628 + else if (type == TYPE_ENUM)
40629 + waddstr(win, "ENUM");
40630 + else if (type == TYPE_INTEGER)
40631 + waddstr(win, "INTEGER");
40632 + else if (type == TYPE_NUMERIC)
40633 + waddstr(win, "NUMERIC");
40634 + else if (type == TYPE_REGEXP)
40635 + waddstr(win, "REGEXP");
40637 + waddstr(win, "other");
40639 + waddstr(win, "\n");
40640 + for (nbuf = 0; nbuf <= 2; ++nbuf) {
40641 + if ((buffer = field_buffer(field, nbuf)) != 0) {
40642 + wprintw(win, "buffer %d:", nbuf);
40643 + wattrset(win, A_REVERSE);
40644 + waddstr(win, buffer);
40645 + wattroff(win, A_REVERSE);
40646 + waddstr(win, "\n");
40659 + int finished = 0, c;
40664 + help_edit_field();
40666 + mvaddstr(4, 57, "Forms Entry Test");
40670 + /* describe the form */
40671 + for (pg = 0; pg < 3; ++pg) {
40673 + sprintf(label, "Sample Form Page %d", pg + 1);
40674 + f[n++] = make_label(0, 15, label);
40675 + set_new_page(f[n - 1], TRUE);
40677 + f[n++] = make_label(2, 0, "Last Name");
40678 + f[n++] = make_field(3, 0, 1, 18);
40679 + set_field_type(f[n - 1], TYPE_ALPHA, 1);
40681 + f[n++] = make_label(2, 20, "First Name");
40682 + f[n++] = make_field(3, 20, 1, 12);
40683 + set_field_type(f[n - 1], TYPE_ALPHA, 1);
40685 + f[n++] = make_label(2, 34, "Middle Name");
40686 + f[n++] = make_field(3, 34, 1, 12);
40687 + set_field_type(f[n - 1], TYPE_ALPHA, 1);
40689 + f[n++] = make_label(5, 0, "Comments");
40690 + f[n++] = make_field(6, 0, 4, 46);
40693 + f[n++] = (FIELD *) 0;
40695 + form = new_form(f);
40697 + display_form(form);
40699 + w = form_win(form);
40700 + also = newwin(getmaxy(stdscr) - getmaxy(w), COLS, getmaxy(w), 0);
40701 + show_current_field(also, form);
40703 + while (!finished) {
40704 + switch (edit_field(form, &c)) {
40707 + case E_UNKNOWN_COMMAND:
40708 + finished = my_form_driver(form, c);
40714 + show_current_field(also, form);
40717 + erase_form(form);
40720 + for (c = 0; f[c] != 0; c++)
40721 + free_field(f[c]);
40727 +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
40733 + nonl(); /* lets us read ^M's */
40734 + intrflush(stdscr, FALSE);
40735 + keypad(stdscr, TRUE);
40737 + if (has_colors()) {
40739 + init_pair(1, COLOR_WHITE, COLOR_BLUE);
40740 + bkgd(COLOR_PAIR(1));
40747 + return EXIT_SUCCESS;
40753 + printf("This program requires the curses form library\n");
40754 + ExitProgram(EXIT_FAILURE);
40757 diff -urNd -urNd ncurses-5.3/test/demo_keyok.c ncurses-5.3.20030906.orig/test/demo_keyok.c
40758 --- ncurses-5.3/test/demo_keyok.c Wed Dec 31 18:00:00 1969
40759 +++ ncurses-5.3.20030906.orig/test/demo_keyok.c Sun Jul 20 14:02:08 2003
40762 + * $Id: demo_keyok.c,v 1.3 2003/05/17 23:18:34 tom Exp $
40764 + * Demonstrate the keyok() function.
40765 + * Thomas Dickey - 2002/11/23
40768 +#include <test.priv.h>
40770 +#if defined(NCURSES_VERSION) && NCURSES_EXT_FUNCS
40772 +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
40774 + int lastch = ERR;
40779 + (void) cbreak(); /* take input chars one at a time, no wait for \n */
40780 + (void) noecho(); /* don't echo input */
40782 + printw("Typing any function key will disable it, but typing it twice in\n");
40783 + printw("a row will turn it back on (just for a demo).");
40786 + win = newwin(LINES - 2, COLS, 2, 0);
40787 + scrollok(win, TRUE);
40788 + keypad(win, TRUE);
40789 + wmove(win, 0, 0);
40791 + while ((ch = wgetch(win)) != ERR) {
40792 + const char *name = keyname(ch);
40793 + wprintw(win, "Keycode %d, name %s\n",
40795 + name != 0 ? name : "<null>");
40798 + if (ch >= KEY_MIN) {
40799 + keyok(ch, FALSE);
40801 + } else if (lastch >= KEY_MIN) {
40802 + keyok(lastch, TRUE);
40806 + return EXIT_SUCCESS;
40812 + printf("This program requires the ncurses library\n");
40813 + ExitProgram(EXIT_FAILURE);
40816 diff -urNd -urNd ncurses-5.3/test/demo_menus.c ncurses-5.3.20030906.orig/test/demo_menus.c
40817 --- ncurses-5.3/test/demo_menus.c Wed Dec 31 18:00:00 1969
40818 +++ ncurses-5.3.20030906.orig/test/demo_menus.c Tue May 13 20:08:23 2003
40821 + * $Id: demo_menus.c,v 1.1 2003/04/26 22:10:43 tom Exp $
40823 + * Demonstrate a variety of functions from the menu library.
40824 + * Thomas Dickey - 2003/4/26
40828 +item_description -
40846 +menu_request_by_name -
40847 +menu_request_name -
40852 +set_current_item -
40856 +set_item_userptr -
40865 +set_menu_pattern -
40866 +set_menu_spacing -
40868 +set_menu_userptr -
40873 +#include <test.priv.h>
40880 +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
40882 + printf("Not implemented - demo for menu library\n");
40883 + return EXIT_SUCCESS;
40889 + printf("This program requires the curses menu library\n");
40890 + ExitProgram(EXIT_FAILURE);
40893 diff -urNd -urNd ncurses-5.3/test/demo_panels.c ncurses-5.3.20030906.orig/test/demo_panels.c
40894 --- ncurses-5.3/test/demo_panels.c Wed Dec 31 18:00:00 1969
40895 +++ ncurses-5.3.20030906.orig/test/demo_panels.c Tue May 13 20:08:23 2003
40898 + * $Id: demo_panels.c,v 1.1 2003/04/26 22:11:23 tom Exp $
40900 + * Demonstrate a variety of functions from the panel library.
40901 + * Thomas Dickey - 2003/4/26
40910 +#include <test.priv.h>
40914 +#include <panel.h>
40917 +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
40919 + printf("Not implemented - demo for panel library\n");
40920 + return EXIT_SUCCESS;
40926 + printf("This program requires the curses panel library\n");
40927 + ExitProgram(EXIT_FAILURE);
40930 diff -urNd -urNd ncurses-5.3/test/edit_field.c ncurses-5.3.20030906.orig/test/edit_field.c
40931 --- ncurses-5.3/test/edit_field.c Wed Dec 31 18:00:00 1969
40932 +++ ncurses-5.3.20030906.orig/test/edit_field.c Sun Jul 20 14:02:08 2003
40935 + * $Id: edit_field.c,v 1.7 2003/05/17 23:16:13 tom Exp $
40937 + * A wrapper for form_driver() which keeps track of the user's editing changes
40938 + * for each field, and makes the result available as a null-terminated string
40939 + * in field_buffer(field,1).
40941 + * Thomas Dickey - 2003/4/26.
40944 +#include <test.priv.h>
40948 +#include <edit_field.h>
40950 +#define MY_QUIT EDIT_FIELD('q')
40951 +#define MY_INS_MODE EDIT_FIELD('t')
40956 + const char *help;
40960 + CTRL('A'), REQ_NEXT_CHOICE, ""
40963 + CTRL('B'), REQ_PREV_WORD, "go to previous word"
40966 + CTRL('C'), REQ_CLR_EOL, "clear to end of line"
40969 + CTRL('D'), REQ_DOWN_FIELD, "move downward to field"
40972 + CTRL('E'), REQ_END_FIELD, "go to end of field"
40975 + CTRL('F'), REQ_NEXT_PAGE, "go to next page"
40978 + CTRL('G'), REQ_DEL_WORD, "delete current word"
40981 + CTRL('H'), REQ_DEL_PREV, "delete previous character"
40984 + CTRL('I'), REQ_INS_CHAR, "insert character"
40987 + CTRL('K'), REQ_CLR_EOF, "clear to end of field"
40990 + CTRL('L'), REQ_LEFT_FIELD, "go to field to left"
40993 + CTRL('M'), REQ_NEW_LINE, "insert/overlay new line"
40996 + CTRL('N'), REQ_NEXT_FIELD, "go to next field"
40999 + CTRL('O'), REQ_INS_LINE, "insert blank line at cursor"
41002 + CTRL('P'), REQ_PREV_FIELD, "go to previous field"
41005 + CTRL('Q'), MY_QUIT, "exit form"
41008 + CTRL('R'), REQ_RIGHT_FIELD, "go to field to right"
41011 + CTRL('S'), REQ_BEG_FIELD, "go to beginning of field"
41014 + CTRL('U'), REQ_UP_FIELD, "move upward to field"
41017 + CTRL('V'), REQ_DEL_CHAR, "delete character"
41020 + CTRL('W'), REQ_NEXT_WORD, "go to next word"
41023 + CTRL('X'), REQ_CLR_FIELD, "clear field"
41026 + CTRL('Y'), REQ_DEL_LINE, "delete line"
41029 + CTRL('Z'), REQ_PREV_CHOICE, ""
41032 + CTRL('['), MY_QUIT, "exit form"
41035 + CTRL(']'), MY_INS_MODE, "toggle REQ_INS_MODE/REQ_OVL_MODE",
41038 + KEY_F(1), EDIT_FIELD('h'), "show this screen",
41041 + KEY_BACKSPACE, REQ_DEL_PREV, "delete previous character"
41044 + KEY_DOWN, REQ_DOWN_CHAR, "move down 1 character"
41047 + KEY_END, REQ_LAST_FIELD, "go to last field"
41050 + KEY_HOME, REQ_FIRST_FIELD, "go to first field"
41053 + KEY_LEFT, REQ_LEFT_CHAR, "move left 1 character"
41056 + KEY_LL, REQ_LAST_FIELD, "go to last field"
41059 + KEY_NEXT, REQ_NEXT_FIELD, "go to next field"
41062 + KEY_NPAGE, REQ_NEXT_PAGE, "go to next page"
41065 + KEY_PPAGE, REQ_PREV_PAGE, "go to previous page"
41068 + KEY_PREVIOUS, REQ_PREV_FIELD, "go to previous field"
41071 + KEY_RIGHT, REQ_RIGHT_CHAR, "move right 1 character"
41074 + KEY_UP, REQ_UP_CHAR, "move up 1 character"
41078 +static WINDOW *old_window;
41084 + old_window = dupwin(curscr);
41090 + touchwin(old_window);
41091 + wnoutrefresh(old_window);
41093 + delwin(old_window);
41097 + * Display a temporary window listing the keystroke-commands we recognize.
41100 +help_edit_field(void)
41106 + int wide = COLS - ((x0 + 1) * 2);
41107 + int high = LINES - ((y0 + 1) * 2);
41108 + WINDOW *help = newwin(high, wide, y0, x0);
41109 + WINDOW *data = newpad(2 + SIZEOF(commands), wide - 4);
41115 + keypad(help, TRUE);
41116 + keypad(data, TRUE);
41117 + waddstr(data, "Defined form-traversal keys:\n");
41118 + for (n = 0; n < SIZEOF(commands); ++n) {
41119 + const char *name;
41120 +#ifdef NCURSES_VERSION
41121 + if ((name = form_request_name(commands[n].result)) == 0)
41123 + name = commands[n].help;
41124 + wprintw(data, "%s -- %s\n",
41125 + keyname(commands[n].code),
41126 + name != 0 ? name : commands[n].help);
41128 + waddstr(data, "Arrow keys move within a field as you would expect.");
41129 + y2 = getcury(data);
41155 + wnoutrefresh(help);
41156 + pnoutrefresh(data, y1, 0, y0 + 1, x0 + 1, high, wide);
41158 + } while ((ch = wgetch(data)) != ERR && ch != QUIT && ch != ESCAPE);
41168 +offset_in_field(FORM * form)
41170 + FIELD *field = current_field(form);
41171 + return form->curcol + form->currow * field->dcols;
41175 +edit_field(FORM * form, int *result)
41177 + int ch = wgetch(form_win(form));
41182 + char lengths[80];
41185 + int before_row = form->currow;
41186 + int before_col = form->curcol;
41187 + int before_off = offset_in_field(form);
41189 + before = current_field(form);
41190 + set_field_back(before, A_NORMAL);
41191 + if (ch <= KEY_MAX) {
41192 + set_field_back(before, A_REVERSE);
41193 + } else if (ch <= MAX_FORM_COMMAND) {
41194 + set_field_back(before, A_UNDERLINE);
41198 + for (n = 0; n < SIZEOF(commands); ++n) {
41199 + if (commands[n].code == ch) {
41200 + *result = commands[n].result;
41205 + status = form_driver(form, *result);
41207 + if (status == E_OK) {
41208 + bool modified = TRUE;
41211 + if ((buffer = field_buffer(before, 1)) != 0)
41212 + length = atoi(buffer);
41213 + if (length < before_off)
41214 + length = before_off;
41215 + switch (*result) {
41216 + case REQ_CLR_EOF:
41217 + length = before_off;
41219 + case REQ_CLR_EOL:
41220 + if (before_row + 1 == before->rows)
41221 + length = before_off;
41223 + case REQ_CLR_FIELD:
41226 + case REQ_DEL_CHAR:
41227 + if (length > before_off)
41230 + case REQ_DEL_PREV:
41231 + if (length > 0) {
41232 + if (before_col > 0) {
41234 + } else if (before_row > 0) {
41235 + length -= before->cols + before_col;
41239 + case REQ_NEW_LINE:
41240 + length += before->cols;
41243 + /* FIXME: finish these */
41244 + case REQ_DEL_LINE: /* delete line */
41245 + case REQ_DEL_WORD: /* delete word at cursor */
41246 + case REQ_INS_CHAR: /* insert blank char at cursor */
41247 + case REQ_INS_LINE: /* insert blank line at cursor */
41248 + case REQ_INS_MODE: /* begin insert mode */
41249 + case REQ_OVL_MODE: /* begin overlay mode */
41251 + /* ignore all of the motion commands */
41252 + case REQ_SCR_BCHAR: /* FALLTHRU */
41253 + case REQ_SCR_BHPAGE: /* FALLTHRU */
41254 + case REQ_SCR_BLINE: /* FALLTHRU */
41255 + case REQ_SCR_BPAGE: /* FALLTHRU */
41256 + case REQ_SCR_FCHAR: /* FALLTHRU */
41257 + case REQ_SCR_FHPAGE: /* FALLTHRU */
41258 + case REQ_SCR_FLINE: /* FALLTHRU */
41259 + case REQ_SCR_FPAGE: /* FALLTHRU */
41260 + case REQ_SCR_HBHALF: /* FALLTHRU */
41261 + case REQ_SCR_HBLINE: /* FALLTHRU */
41262 + case REQ_SCR_HFHALF: /* FALLTHRU */
41263 + case REQ_SCR_HFLINE: /* FALLTHRU */
41264 + case REQ_BEG_FIELD: /* FALLTHRU */
41265 + case REQ_BEG_LINE: /* FALLTHRU */
41266 + case REQ_DOWN_CHAR: /* FALLTHRU */
41267 + case REQ_DOWN_FIELD: /* FALLTHRU */
41268 + case REQ_END_FIELD: /* FALLTHRU */
41269 + case REQ_END_LINE: /* FALLTHRU */
41270 + case REQ_FIRST_FIELD: /* FALLTHRU */
41271 + case REQ_FIRST_PAGE: /* FALLTHRU */
41272 + case REQ_LAST_FIELD: /* FALLTHRU */
41273 + case REQ_LAST_PAGE: /* FALLTHRU */
41274 + case REQ_LEFT_CHAR: /* FALLTHRU */
41275 + case REQ_LEFT_FIELD: /* FALLTHRU */
41276 + case REQ_NEXT_CHAR: /* FALLTHRU */
41277 + case REQ_NEXT_CHOICE: /* FALLTHRU */
41278 + case REQ_NEXT_FIELD: /* FALLTHRU */
41279 + case REQ_NEXT_LINE: /* FALLTHRU */
41280 + case REQ_NEXT_PAGE: /* FALLTHRU */
41281 + case REQ_NEXT_WORD: /* FALLTHRU */
41282 + case REQ_PREV_CHAR: /* FALLTHRU */
41283 + case REQ_PREV_CHOICE: /* FALLTHRU */
41284 + case REQ_PREV_FIELD: /* FALLTHRU */
41285 + case REQ_PREV_LINE: /* FALLTHRU */
41286 + case REQ_PREV_PAGE: /* FALLTHRU */
41287 + case REQ_PREV_WORD: /* FALLTHRU */
41288 + case REQ_RIGHT_CHAR: /* FALLTHRU */
41289 + case REQ_RIGHT_FIELD: /* FALLTHRU */
41290 + case REQ_SFIRST_FIELD: /* FALLTHRU */
41291 + case REQ_SLAST_FIELD: /* FALLTHRU */
41292 + case REQ_SNEXT_FIELD: /* FALLTHRU */
41293 + case REQ_SPREV_FIELD: /* FALLTHRU */
41294 + case REQ_UP_CHAR: /* FALLTHRU */
41295 + case REQ_UP_FIELD: /* FALLTHRU */
41296 + case REQ_VALIDATION: /* FALLTHRU */
41297 + modified = FALSE;
41301 + modified = FALSE;
41302 + if (ch >= MIN_FORM_COMMAND) {
41304 + } else if (isprint(ch)) {
41311 + * If we do not force a re-validation, then field_buffer 0 will
41312 + * be lagging by one character.
41314 + if (modified && form_driver(form, REQ_VALIDATION) == E_OK && *result
41315 + < MIN_FORM_COMMAND)
41318 + sprintf(lengths, "%d", length);
41319 + set_field_buffer(before, 1, lengths);
41322 + if ((after = current_field(form)) != before)
41323 + set_field_back(before, A_UNDERLINE);
41328 +extern void no_edit_field(void);
41331 +no_edit_field(void)
41336 diff -urNd -urNd ncurses-5.3/test/edit_field.h ncurses-5.3.20030906.orig/test/edit_field.h
41337 --- ncurses-5.3/test/edit_field.h Wed Dec 31 18:00:00 1969
41338 +++ ncurses-5.3.20030906.orig/test/edit_field.h Tue May 13 20:08:23 2003
41341 + * $Id: edit_field.h,v 1.1 2003/04/26 22:54:50 tom Exp $
41343 + * Interface of edit_field.c
41346 +#ifndef EDIT_FORM_H_incl
41347 +#define EDIT_FORM_H_incl 1
41351 +#define EDIT_FIELD(c) (MAX_FORM_COMMAND + c)
41353 +extern void help_edit_field(void);
41354 +extern int edit_field(FORM * form, int *result);
41356 +#endif /* EDIT_FORM_H_incl */
41357 diff -urNd -urNd ncurses-5.3/test/gdc.6 ncurses-5.3.20030906.orig/test/gdc.6
41358 --- ncurses-5.3/test/gdc.6 Wed Dec 7 00:29:08 1994
41359 +++ ncurses-5.3.20030906.orig/test/gdc.6 Tue May 13 20:08:23 2003
41361 +.\" $Id: gdc.6,v 1.2 2003/03/15 20:50:03 tom Exp $
41364 gdc \- grand digital clock (curses)
41366 seconds (default never).
41369 -flag makes digits scroll as they change. In this curses mode implementation,
41370 +flag makes digits scroll as they change. In some curses mode implementations,
41371 the scrolling option has trouble keeping up.
41373 Amos Shapir, modified for curses by John Lupien.
41374 diff -urNd -urNd ncurses-5.3/test/hashtest.c ncurses-5.3.20030906.orig/test/hashtest.c
41375 --- ncurses-5.3/test/hashtest.c Sat Jun 29 18:32:18 2002
41376 +++ ncurses-5.3.20030906.orig/test/hashtest.c Tue May 13 20:08:23 2003
41379 * Generate timing statistics for vertical-motion optimization.
41381 - * $Id: hashtest.c,v 1.22 2002/06/29 23:32:18 tom Exp $
41382 + * $Id: hashtest.c,v 1.23 2002/10/19 22:11:24 tom Exp $
41387 #define USE_TRACE 0
41390 -#include <ctype.h>
41392 #include <test.priv.h>
41394 #define LO_CHAR ' '
41395 diff -urNd -urNd ncurses-5.3/test/ins_wide.c ncurses-5.3.20030906.orig/test/ins_wide.c
41396 --- ncurses-5.3/test/ins_wide.c Wed Dec 31 18:00:00 1969
41397 +++ ncurses-5.3.20030906.orig/test/ins_wide.c Fri Sep 12 16:41:56 2003
41400 + * $Id: ins_wide.c,v 1.3 2003/08/09 22:07:23 tom Exp $
41402 + * Demonstrate the wins_wstr() and wins_wch functions.
41403 + * Thomas Dickey - 2002/11/23
41405 + * Note: to provide inputs for *ins_wch(), we use setcchar(). A quirk of the
41406 + * X/Open definition for that function is that the string contains no
41407 + * characters with negative width. Any control character (such as tab) falls
41408 + * into that category. So it follows that *ins_wch() cannot render a tab
41409 + * character because there is no legal way to construct a cchar_t containing
41410 + * one. X/Open does not document this, and it would be logical to assume that
41411 + * *ins_wstr() has the same limitation, but it uses a wchar_t string directly,
41412 + * and does not document how tabs are handled.
41415 +#include <test.priv.h>
41419 +#if USE_WIDEC_SUPPORT
41420 +static int margin = (2 * TABSIZE) - 1;
41423 +legend(WINDOW *win, wchar_t * buffer, int length)
41425 + wmove(win, 0, 0);
41427 + "The Strings/Chars displays should match. Enter any characters.\n");
41429 + "Use down-arrow or ^N to repeat on the next line, 'q' to exit.\n");
41431 + wprintw(win, "Inserted %d characters <", length);
41432 + waddwstr(win, buffer);
41433 + waddstr(win, ">");
41437 +ColOf(wchar_t * buffer, int length)
41442 + for (n = 0, result = margin + 1; n < length; ++n) {
41443 + int ch = buffer[n];
41446 + /* actually newline should clear the remainder of the line
41447 + * and move to the next line - but that seems a little awkward
41448 + * in this example.
41458 + result += (TABSIZE - (result % TABSIZE));
41474 +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
41476 + cchar_t tmp_cchar;
41477 + wchar_t tmp_wchar[2];
41484 + wchar_t buffer[BUFSIZ];
41488 + putenv("TABSIZE=8");
41490 + (void) cbreak(); /* take input chars one at a time, no wait for \n */
41491 + (void) noecho(); /* don't echo input */
41492 + keypad(stdscr, TRUE);
41494 + limit = LINES - 5;
41495 + work = newwin(limit, COLS, 0, 0);
41496 + show = newwin(4, COLS, limit + 1, 0);
41497 + keypad(work, TRUE);
41499 + for (col = margin + 1; col < COLS; col += TABSIZE)
41500 + mvwvline(work, row, col, '.', limit - 2);
41503 + mvwvline(work, row, margin, ACS_VLINE, limit - 2);
41504 + mvwvline(work, row, margin + 1, ACS_VLINE, limit - 2);
41507 + mvwaddstr(work, 1, 2, "String");
41508 + mvwaddstr(work, limit + 1, 2, "Chars");
41509 + wnoutrefresh(work);
41511 + buffer[length = 0] = '\0';
41512 + legend(show, buffer, length);
41513 + wnoutrefresh(show);
41518 + * Show the characters inserted in color, to distinguish from those that
41521 + if (has_colors()) {
41523 + init_pair(1, COLOR_WHITE, COLOR_BLUE);
41524 + wbkgdset(work, COLOR_PAIR(1) | ' ');
41527 + while ((code = wget_wch(work, &ch)) != ERR) {
41530 + case KEY_CODE_YES:
41535 + case KEY_BACKSPACE:
41547 + wmove(work, row, margin + 1);
41548 + if (ch == CTRL('N')) {
41549 + if (row < limit) {
41551 + /* put the whole string in, all at once */
41552 + mvwins_wstr(work, row, margin + 1, buffer);
41554 + /* do the corresponding single-character insertion */
41555 + for (col = 0; col < length; ++col) {
41556 + memset(&tmp_cchar, 0, sizeof(tmp_cchar));
41557 + if (setcchar(&tmp_cchar,
41561 + (void *) 0) != ERR) {
41562 + mvwins_wch(work, limit + row, ColOf(buffer, col), &tmp_cchar);
41564 + beep(); /* even for tabs! */
41567 + ColOf(buffer, col), buffer[col]);
41574 + buffer[length++] = ch;
41575 + buffer[length] = '\0';
41576 + /* put the string in, one character at a time */
41577 + mvwins_wstr(work,
41579 + ColOf(buffer, length - 1), buffer + length - 1);
41581 + /* do the corresponding single-character insertion */
41582 + tmp_wchar[0] = ch;
41583 + tmp_wchar[1] = 0;
41584 + if (setcchar(&tmp_cchar,
41588 + (void *) 0) != ERR) {
41591 + ColOf(buffer, length - 1), &tmp_cchar);
41593 + beep(); /* even for tabs! */
41596 + ColOf(buffer, length - 1), ch);
41598 + wnoutrefresh(work);
41600 + legend(show, buffer, length);
41601 + wnoutrefresh(show);
41607 + ExitProgram(EXIT_SUCCESS);
41613 + printf("This program requires the wide-ncurses library\n");
41614 + ExitProgram(EXIT_FAILURE);
41617 diff -urNd -urNd ncurses-5.3/test/inserts.c ncurses-5.3.20030906.orig/test/inserts.c
41618 --- ncurses-5.3/test/inserts.c Wed Dec 31 18:00:00 1969
41619 +++ ncurses-5.3.20030906.orig/test/inserts.c Fri Sep 12 16:41:56 2003
41622 + * $Id: inserts.c,v 1.5 2003/08/09 22:07:06 tom Exp $
41624 + * Demonstrate the winsstr() and winsch functions.
41625 + * Thomas Dickey - 2002/10/19
41628 +#include <test.priv.h>
41632 +static int margin = (2 * TABSIZE) - 1;
41635 +legend(WINDOW *win, char *buffer, int length)
41637 + wmove(win, 0, 0);
41639 + "The Strings/Chars displays should match. Enter any characters.\n");
41641 + "Use down-arrow or ^N to repeat on the next line, 'q' to exit.\n");
41643 + wprintw(win, "Inserted %d characters <%s>", length, buffer);
41647 +ColOf(char *buffer, int length)
41652 + for (n = 0, result = margin + 1; n < length; ++n) {
41653 + int ch = UChar(buffer[n]);
41656 + /* actually newline should clear the remainder of the line
41657 + * and move to the next line - but that seems a little awkward
41658 + * in this example.
41668 + result += (TABSIZE - (result % TABSIZE));
41684 +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
41691 + char buffer[BUFSIZ];
41695 + putenv("TABSIZE=8");
41697 + (void) cbreak(); /* take input chars one at a time, no wait for \n */
41698 + (void) noecho(); /* don't echo input */
41699 + keypad(stdscr, TRUE);
41701 + limit = LINES - 5;
41702 + work = newwin(limit, COLS, 0, 0);
41703 + show = newwin(4, COLS, limit + 1, 0);
41704 + keypad(work, TRUE);
41706 + for (col = margin + 1; col < COLS; col += TABSIZE)
41707 + mvwvline(work, row, col, '.', limit - 2);
41710 + mvwvline(work, row, margin, ACS_VLINE, limit - 2);
41711 + mvwvline(work, row, margin + 1, ACS_VLINE, limit - 2);
41714 + mvwaddstr(work, 1, 2, "String");
41715 + mvwaddstr(work, limit + 1, 2, "Chars");
41716 + wnoutrefresh(work);
41718 + buffer[length = 0] = '\0';
41719 + legend(show, buffer, length);
41720 + wnoutrefresh(show);
41725 + * Show the characters inserted in color, to distinguish from those that
41728 + if (has_colors()) {
41730 + init_pair(1, COLOR_WHITE, COLOR_BLUE);
41731 + wbkgdset(work, COLOR_PAIR(1) | ' ');
41734 + while ((ch = wgetch(work)) != 'q') {
41735 + wmove(work, row, margin + 1);
41739 + if (row < limit) {
41741 + /* put the whole string in, all at once */
41742 + mvwinsstr(work, row, margin + 1, buffer);
41744 + /* do the corresponding single-character insertion */
41745 + for (col = 0; col < length; ++col) {
41746 + mvwinsch(work, limit + row, ColOf(buffer, col), buffer[col]);
41752 + case KEY_BACKSPACE:
41756 + if (ch <= 0 || ch > 255) {
41760 + buffer[length++] = ch;
41761 + buffer[length] = '\0';
41762 + /* put the string in, one character at a time */
41765 + ColOf(buffer, length - 1), buffer + length - 1);
41767 + /* do the corresponding single-character insertion */
41770 + ColOf(buffer, length - 1), ch);
41771 + wnoutrefresh(work);
41773 + legend(show, buffer, length);
41774 + wnoutrefresh(show);
41781 + ExitProgram(EXIT_SUCCESS);
41783 diff -urNd -urNd ncurses-5.3/test/keynames.c ncurses-5.3.20030906.orig/test/keynames.c
41784 --- ncurses-5.3/test/keynames.c Sun Sep 1 14:42:42 2002
41785 +++ ncurses-5.3.20030906.orig/test/keynames.c Sun Jul 20 14:02:08 2003
41788 - * $Id: keynames.c,v 1.4 2002/09/01 19:42:42 tom Exp $
41789 + * $Id: keynames.c,v 1.5 2003/05/17 23:18:49 tom Exp $
41792 #include <test.priv.h>
41796 for (n = -1; n < 512; n++) {
41797 - char *result = keyname(n);
41798 + const char *result = keyname(n);
41800 printf("%d(%5o):%s\n", n, n, result);
41802 diff -urNd -urNd ncurses-5.3/test/knight.c ncurses-5.3.20030906.orig/test/knight.c
41803 --- ncurses-5.3/test/knight.c Sat Jun 29 18:32:18 2002
41804 +++ ncurses-5.3.20030906.orig/test/knight.c Tue May 13 20:08:23 2003
41806 * Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995. Mouse support
41807 * added September 20th 1995.
41809 - * $Id: knight.c,v 1.25 2002/06/29 23:32:18 tom Exp $
41810 + * $Id: knight.c,v 1.26 2002/10/19 22:11:24 tom Exp $
41813 -#include <ctype.h>
41815 #include <test.priv.h>
41818 diff -urNd -urNd ncurses-5.3/test/listused.sh ncurses-5.3.20030906.orig/test/listused.sh
41819 --- ncurses-5.3/test/listused.sh Wed Dec 31 18:00:00 1969
41820 +++ ncurses-5.3.20030906.orig/test/listused.sh Sun Jul 20 14:02:09 2003
41823 +# $Id: listused.sh,v 1.5 2003/07/05 19:02:41 tom Exp $
41824 +# A very simple script to list entrypoints that are used by either a test
41825 +# program, or within the libraries. This relies on the output format of 'nm',
41826 +# and assumes that the libraries are configured with TRACE defined, and using
41828 +# --disable-macros
41830 +# Static libraries are used, to provide some filtering based on internal usage
41831 +# of the different symbols.
41833 +# keep the sorting independent of locale:
41834 +if test "${LANGUAGE+set}" = set; then LANGUAGE=C; export LANGUAGE; fi
41835 +if test "${LANG+set}" = set; then LANG=C; export LANG; fi
41836 +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
41837 +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
41838 +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
41839 +if test "${LC_COLLATE+set}" = set; then LC_COLLATE=C; export LC_COLLATE; fi
41843 +if test ! -d ../objects ; then
41844 + echo "? need objects to run this script"
41846 +elif test ! -d ../lib ; then
41847 + echo "? need libraries to run this script"
41852 +for name in `(echo "test:";sort modules; echo "progs:";sort ../progs/modules) |sed -e 's/[ ].*//' -e '/^[#@]/d'`
41856 + PROGS="$PROGS $name"
41859 + NAME=../objects/${name}.o
41862 + PROGS="$PROGS $NAME"
41868 +# For each library -
41869 +for lib in ../lib/*.a
41871 + LIB=`basename $lib .a`
41878 + tmp=`echo $LIB|sed -e 's/w$//'`
41881 + echo $tmp |sed -e 's/./-/g'
41882 + # Construct a list of public externals provided by the library.
41883 + WANT=`nm $NM_OPTS $lib |\
41884 + sed -e 's/^[^ ]*//' \
41886 + -e '/^[ a-z] /d' \
41890 + -e 's/^[A-Z] //' \
41893 + # List programs which use that external.
41894 + for name in $WANT
41899 + for prog in $PROGS
41906 + TEST=`nm $NM_OPTS $prog |\
41907 + sed -e 's/^[^ ]*//' \
41909 + -e '/^[ a-z] /d' \
41912 + -e 's/^[A-Z] //' \
41914 + -e 's/^'${name}'$/_/' \
41916 + if test -n "$TEST"
41918 + have=`basename $prog .o`
41919 + if test -n "$HAVE"
41921 + if test "$last" = "$tags"
41923 + HAVE="$HAVE $have"
41925 + HAVE="$HAVE $tags $have"
41928 + HAVE="$tags $have"
41935 + # if we did not find a program using it directly, see if it
41936 + # is used within a library.
41937 + if test -z "$HAVE"
41939 + for tmp in ../lib/*.a
41946 + TEST=`nm $NM_OPTS $tmp |\
41947 + sed -e 's/^[^ ]*//' \
41949 + -e '/^[ a-z] /d' \
41952 + -e '/^[A-TV-Z] /d' \
41953 + -e 's/^[A-Z] //' \
41955 + -e 's/^'${name}'$/_/' \
41957 + if test -n "$TEST"
41959 + tmp=`basename $tmp .a |sed -e 's/w$//'`
41960 + HAVE=`echo $tmp | sed -e 's/lib/lib: /'`
41965 + test -z "$HAVE" && HAVE="-"
41966 + lenn=`expr 39 - length $name`
41967 + lenn=`expr $lenn / 8`
41969 + while test $lenn != 0
41972 + lenn=`expr $lenn - 1`
41974 + echo "${name}${tabs}${HAVE}"
41977 diff -urNd -urNd ncurses-5.3/test/modules ncurses-5.3.20030906.orig/test/modules
41978 --- ncurses-5.3/test/modules Sat Feb 12 19:05:13 2000
41979 +++ ncurses-5.3.20030906.orig/test/modules Tue May 13 20:08:23 2003
41981 # Test-Program modules
41982 -# $Id: modules,v 1.13 2000/02/13 01:05:13 tom Exp $
41983 +# $Id: modules,v 1.19 2003/04/26 16:31:10 tom Exp $
41984 ##############################################################################
41985 -# Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. #
41986 +# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. #
41988 # Permission is hereby granted, free of charge, to any person obtaining a #
41989 # copy of this software and associated documentation files (the "Software"), #
41990 @@ -28,28 +28,36 @@
41992 ##############################################################################
41994 -# Author: Thomas E. Dickey <dickey@clark.net> 1997
41995 +# Author: Thomas E. Dickey 1997-2003
41999 blue progs $(srcdir) ../include/term.h
42001 -cardfile progs $(srcdir) ../include/panel.h ../include/menu.h ../include/form.h
42002 +cardfile progs $(srcdir) ../include/panel.h ../include/form.h
42003 +demo_defkey progs $(srcdir)
42004 +demo_keyok progs $(srcdir)
42005 +demo_forms progs $(srcdir) ../include/form.h
42006 +demo_menus progs $(srcdir) ../include/menu.h
42007 +demo_panels progs $(srcdir) ../include/panel.h
42008 ditto progs $(srcdir)
42009 dots progs $(srcdir) ../include/term.h
42010 -filter progs $(srcdir)
42011 +edit_field progs $(srcdir)
42012 +filter progs $(srcdir) ../include/form.h
42013 firework progs $(srcdir) ../include/term.h
42014 firstlast progs $(srcdir)
42015 gdc progs $(srcdir)
42016 hanoi progs $(srcdir)
42017 hashtest progs $(srcdir)
42018 +ins_wide progs $(srcdir)
42019 +inserts progs $(srcdir)
42020 keynames progs $(srcdir)
42021 knight progs $(srcdir)
42022 lrtest progs $(srcdir)
42023 ncurses progs $(srcdir) ../include/panel.h ../include/menu.h ../include/form.h
42024 newdemo progs $(srcdir)
42025 -rain progs $(srcdir) ../include/term.h
42026 railroad progs $(srcdir) ../include/termcap.h
42027 +rain progs $(srcdir) ../include/term.h
42028 tclock progs $(srcdir)
42029 testaddch progs $(srcdir)
42030 testcurs progs $(srcdir)
42031 diff -urNd -urNd ncurses-5.3/test/ncurses.c ncurses-5.3.20030906.orig/test/ncurses.c
42032 --- ncurses-5.3/test/ncurses.c Sat Sep 14 19:39:33 2002
42033 +++ ncurses-5.3.20030906.orig/test/ncurses.c Sun Jul 20 14:02:09 2003
42035 /****************************************************************************
42036 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
42037 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
42039 * Permission is hereby granted, free of charge, to any person obtaining a *
42040 * copy of this software and associated documentation files (the *
42041 @@ -40,14 +40,10 @@
42042 Author: Eric S. Raymond <esr@snark.thyrsus.com> 1993
42043 Thomas E. Dickey (beginning revision 1.27 in 1996).
42045 -$Id: ncurses.c,v 1.180 2002/09/15 00:39:33 tom Exp $
42046 +$Id: ncurses.c,v 1.197 2003/07/06 00:06:06 tom Exp $
42048 ***************************************************************************/
42050 -#include <stdio.h>
42051 -#include <ctype.h>
42052 -#include <assert.h>
42054 #include <test.priv.h>
42056 #if HAVE_GETTIMEOFDAY
42057 @@ -59,25 +55,16 @@
42061 -#if HAVE_PANEL_H && HAVE_LIBPANEL
42062 -#define USE_LIBPANEL 1
42066 -#define USE_LIBPANEL 0
42069 -#if HAVE_MENU_H && HAVE_LIBMENU
42070 -#define USE_LIBMENU 1
42074 -#define USE_LIBMENU 0
42077 -#if HAVE_FORM_H && HAVE_LIBFORM
42078 -#define USE_LIBFORM 1
42082 -#define USE_LIBFORM 0
42085 #ifdef NCURSES_VERSION
42086 @@ -122,13 +109,7 @@
42089 #define P(string) printw("%s\n", string)
42093 -#define CTRL(x) ((x) & 0x1f)
42095 -#define QUIT CTRL('Q')
42096 -#define ESCAPE CTRL('[')
42097 #define BLANK ' ' /* this is the background character */
42100 @@ -181,6 +162,74 @@
42102 #define Getchar() wGetchar(stdscr)
42104 +/* replaces wgetnstr(), since we want to be able to edit values */
42106 +wGetstring(WINDOW *win, char *buffer, int limit)
42108 + int y0, x0, x, ch;
42109 + bool done = FALSE;
42112 + getyx(win, y0, x0);
42113 + wattrset(win, A_REVERSE);
42115 + x = strlen(buffer);
42117 + if (x > (int) strlen(buffer))
42118 + x = (int) strlen(buffer);
42119 + wmove(win, y0, x0);
42120 + wprintw(win, "%-*s", limit, buffer);
42121 + wmove(win, y0, x0 + x);
42122 + switch (ch = wGetchar(win)) {
42131 + case KEY_BACKSPACE:
42135 + for (j = --x; (buffer[j] = buffer[j + 1]) != '\0'; ++j) {
42153 + if (!isprint(ch) || ch >= KEY_MIN) {
42155 + } else if ((int) strlen(buffer) < limit) {
42157 + for (j = strlen(buffer) + 1; j > x; --j) {
42158 + buffer[j] = buffer[j - 1];
42160 + buffer[x++] = ch;
42167 + wattroff(win, A_REVERSE);
42168 + wmove(win, y0, x0);
42172 #if USE_WIDEC_SUPPORT
42174 wGet_wchar(WINDOW *win, wint_t * result)
42175 @@ -206,6 +255,98 @@
42177 #define Get_wchar(result) wGet_wchar(stdscr, result)
42179 +/* replaces wgetn_wstr(), since we want to be able to edit values */
42181 +wGet_wstring(WINDOW *win, wchar_t * buffer, int limit)
42185 + bool done = FALSE;
42188 + getyx(win, y0, x0);
42189 + wattrset(win, A_REVERSE);
42191 + x = wcslen(buffer);
42193 + if (x > (int) wcslen(buffer))
42194 + x = (int) wcslen(buffer);
42195 + wmove(win, y0, x0);
42196 + waddnwstr(win, buffer, limit);
42198 + wprintw(win, "%*s", limit - x, " ");
42199 + wmove(win, y0, x0 + x);
42200 + switch (wGet_wchar(win, &ch)) {
42201 + case KEY_CODE_YES:
42206 + case KEY_BACKSPACE:
42234 + for (j = --x; (buffer[j] = buffer[j + 1]) != '\0'; ++j) {
42252 + if (!isprint(ch) || ch >= KEY_MIN) {
42254 + } else if ((int) wcslen(buffer) < limit) {
42256 + for (j = wcslen(buffer) + 1; j > x; --j) {
42257 + buffer[j] = buffer[j - 1];
42259 + buffer[x++] = ch;
42266 + wattroff(win, A_REVERSE);
42267 + wmove(win, y0, x0);
42274 @@ -606,6 +747,7 @@
42275 * For wgetch_test(), we create pairs of windows - one for a box, one for text.
42276 * Resize both and paint the box in the parent.
42280 resize_wide_boxes(int level, WINDOW *win)
42282 @@ -640,17 +782,39 @@
42286 +#endif /* KEY_RESIZE */
42289 +wcstos(const wchar_t * src)
42293 + char *result = 0;
42294 + const wchar_t *tmp = src;
42296 + memset(&state, 0, sizeof(state));
42297 + if ((need = wcsrtombs(0, &tmp, 0, &state)) > 0) {
42298 + result = calloc(need + 1, 1);
42300 + if (wcsrtombs(result, &tmp, need, &state) != (size_t) need) {
42309 wget_wch_test(int level, WINDOW *win, int delay)
42311 - char buf[BUFSIZ];
42312 + wchar_t buf[BUFSIZ];
42313 int first_y, first_x;
42317 bool blocking = (delay < 0);
42321 memset(flags, FALSE, sizeof(flags));
42322 flags['k'] = (win == stdscr);
42323 @@ -686,9 +850,14 @@
42324 } else if (c == 'g') {
42325 waddstr(win, "getstr test: ");
42327 - wgetnstr(win, buf, sizeof(buf) - 1);
42328 + wgetn_wstr(win, (wint_t *) buf, sizeof(buf) - 1);
42330 - wprintw(win, "I saw %d characters:\n\t`%s'.", strlen(buf), buf);
42331 + if ((temp = wcstos(buf)) != 0) {
42332 + wprintw(win, "I saw %d characters:\n\t`%s'.", wcslen(buf), temp);
42335 + wprintw(win, "I saw %d characters (cannot convert).", wcslen(buf));
42338 wgetch_wrap(win, first_y);
42339 } else if (c == 'k') {
42340 @@ -782,11 +951,40 @@
42342 ****************************************************************************/
42344 +#define MAX_ATTRSTRING 31
42345 +#define LEN_ATTRSTRING 26
42347 +static char attr_test_string[] = "abcde fghij klmno pqrst uvwxy z";
42350 +adjust_attr_string(int adjust)
42352 + int first = ((int) UChar(attr_test_string[0])) + adjust;
42353 + int last = first + LEN_ATTRSTRING;
42355 + if (first >= ' ' && last <= '~') { /* 32..126 */
42357 + for (j = 0, k = first; k <= last; ++j, ++k) {
42358 + attr_test_string[j] = k;
42359 + if (((k + 1 - first) % 5) == 0) {
42361 + if (j < MAX_ATTRSTRING)
42362 + attr_test_string[j] = ' ';
42365 + while (j < MAX_ATTRSTRING)
42366 + attr_test_string[j++] = ' ';
42367 + attr_test_string[j] = '\0';
42374 show_attr(int row, int skip, chtype attr, const char *name)
42376 - static const char *string = "abcde fghij klmno pqrst uvwxy z";
42377 int ncv = tigetnum("ncv");
42378 + chtype test = attr & ~A_ALTCHARSET;
42380 mvprintw(row, 8, "%s mode:", name);
42381 mvprintw(row, 24, "|");
42382 @@ -804,29 +1002,24 @@
42383 * is possible to turn off the A_ALTCHARSET flag for the characters which
42384 * are added, and it would be an unexpected result to have the mapped
42385 * characters visible on the screen.
42387 - * This example works because the indices into acs_map[] are mostly from
42388 - * the lowercase characters.
42390 if (attr & A_ALTCHARSET) {
42391 - const char *s = string;
42394 -#ifdef CURSES_ACS_ARRAY
42395 - if ((ch = CURSES_ACS_ARRAY[ch]) == 0)
42401 + for (s = attr_test_string; *s != '\0'; ++s) {
42407 + addstr(attr_test_string);
42411 printw("%*s", skip, " ");
42413 - if (attr != A_NORMAL) {
42414 - if (!(termattrs() & attr)) {
42415 + if (test != A_NORMAL) {
42416 + if (!(termattrs() & test)) {
42418 } else if (ncv > 0 && (getbkgd(stdscr) & A_COLOR)) {
42419 static const chtype table[] =
42420 @@ -867,7 +1060,8 @@
42421 } else if (ch == CTRL('L')) {
42424 - } else if (has_colors()) {
42425 + wrefresh(curscr);
42430 @@ -875,39 +1069,40 @@
42432 *ac = A_ALTCHARSET;
42443 + adjust_attr_string(-1);
42448 + adjust_attr_string(1);
42453 - if (*fg >= max_colors)
42456 - *fg = max_colors - 1;
42457 - if (*bg >= max_colors)
42460 - *bg = max_colors - 1;
42467 - *ac = A_ALTCHARSET;
42468 + if (has_colors()) {
42485 + if (*fg >= max_colors)
42488 + *fg = max_colors - 1;
42489 + if (*bg >= max_colors)
42492 + *bg = max_colors - 1;
42500 @@ -965,12 +1160,12 @@
42501 mvprintw(row + 1, 8,
42502 "Enter a digit to set gaps on each side of displayed attributes");
42503 mvprintw(row + 2, 8,
42505 + "^L repaints, </> shifts, ");
42507 - printw(". f/F/b/F toggle colors (now %d/%d), a/A altcharset (%d)",
42508 + printw("f/F/b/F toggle color (now %d/%d), a/A ACS (%d)",
42511 - printw(". a/A altcharset (%d)", ac != 0);
42512 + printw("a/A ACS (%d)", ac != 0);
42515 } while (attr_getc(&n, &fg, &bg, &ac));
42516 @@ -1241,15 +1436,73 @@
42518 ****************************************************************************/
42520 +#define SLK_HELP 17
42521 +#define SLK_WORK (SLK_HELP + 3)
42526 + static const char *table[] =
42528 + "Available commands are:"
42530 + ,"^L -- repaint this message and activate soft keys"
42531 + ,"a/d -- activate/disable soft keys"
42532 + ,"c -- set centered format for labels"
42533 + ,"l -- set left-justified format for labels"
42534 + ,"r -- set right-justified format for labels"
42535 + ,"[12345678] -- set label; labels are numbered 1 through 8"
42536 + ,"e -- erase stdscr (should not erase labels)"
42537 + ,"s -- test scrolling of shortened screen"
42538 +#if HAVE_SLK_COLOR
42539 + ,"F/B -- cycle through foreground/background colors"
42541 + ,"x, q -- return to main menu"
42543 + ,"Note: if activating the soft keys causes your terminal to scroll up"
42544 + ,"one line, your terminal auto-scrolls when anything is written to the"
42545 + ,"last screen position. The ncurses code does not yet handle this"
42551 + for (j = 0; j < SIZEOF(table); ++j) {
42559 /* exercise the soft keys */
42564 +#if HAVE_SLK_COLOR
42565 + short fg = COLOR_BLACK;
42566 + short bg = COLOR_WHITE;
42567 + bool new_color = FALSE;
42571 +#if HAVE_SLK_COLOR
42572 + if (has_colors()) {
42573 + new_color = TRUE;
42578 +#if HAVE_SLK_COLOR
42580 + init_pair(1, bg, fg);
42582 + new_color = FALSE;
42583 + mvprintw(SLK_WORK, 0, "Colors %d/%d\n", fg, bg);
42590 @@ -1258,25 +1511,7 @@
42591 mvaddstr(0, 20, "Soft Key Exerciser");
42595 - P("Available commands are:");
42597 - P("^L -- refresh screen");
42598 - P("a -- activate or restore soft keys");
42599 - P("d -- disable soft keys");
42600 - P("c -- set centered format for labels");
42601 - P("l -- set left-justified format for labels");
42602 - P("r -- set right-justified format for labels");
42603 - P("[12345678] -- set label; labels are numbered 1 through 8");
42604 - P("e -- erase stdscr (should not erase labels)");
42605 - P("s -- test scrolling of shortened screen");
42606 - P("x, q -- return to main menu");
42608 - P("Note: if activating the soft keys causes your terminal to");
42609 - P("scroll up one line, your terminal auto-scrolls when anything");
42610 - P("is written to the last screen position. The ncurses code");
42611 - P("does not yet handle this gracefully.");
42617 @@ -1288,7 +1523,7 @@
42621 - mvprintw(20, 0, "Press Q to stop the scrolling-test: ");
42622 + mvprintw(SLK_WORK, 0, "Press Q to stop the scrolling-test: ");
42623 while ((c = Getchar()) != 'Q' && (c != ERR))
42626 @@ -1317,20 +1552,155 @@
42630 - (void) mvaddstr(20, 0, "Please enter the label value: ");
42632 - wgetnstr(stdscr, buf, 8);
42634 + (void) mvaddstr(SLK_WORK, 0, "Please enter the label value: ");
42636 + if ((s = slk_label(c - '0')) != 0) {
42637 + strncpy(buf, s, 8);
42639 + wGetstring(stdscr, buf, 8);
42640 slk_set((c - '0'), buf, fmt);
42644 + move(SLK_WORK, 0);
42652 +#if HAVE_SLK_COLOR
42654 + if (has_colors()) {
42655 + fg = (fg + 1) % max_colors;
42656 + new_color = TRUE;
42660 + if (has_colors()) {
42661 + bg = (bg + 1) % max_colors;
42662 + new_color = TRUE;
42671 + ((c = Getchar()) != EOF);
42678 +#if USE_WIDEC_SUPPORT
42680 +wide_slk_test(void)
42681 +/* exercise the soft keys */
42686 + short fg = COLOR_BLACK;
42687 + short bg = COLOR_WHITE;
42688 + bool new_color = FALSE;
42691 + if (has_colors()) {
42692 + new_color = TRUE;
42696 + init_pair(1, bg, fg);
42698 + new_color = FALSE;
42699 + mvprintw(SLK_WORK, 0, "Colors %d/%d\n", fg, bg);
42706 + attr_on(WA_BOLD, NULL);
42707 + mvaddstr(0, 20, "Soft Key Exerciser");
42708 + attr_off(WA_BOLD, NULL);
42711 + /* fall through */
42722 + mvprintw(SLK_WORK, 0, "Press Q to stop the scrolling-test: ");
42723 + while ((c = Getchar()) != 'Q' && (c != ERR))
42724 + addch((chtype) c);
42751 + (void) mvaddstr(SLK_WORK, 0, "Please enter the label value: ");
42753 + if ((s = slk_label(c - '0')) != 0) {
42755 + for (j = 0; j < 8; ++j) {
42756 + if ((buf[j] = UChar(s[j])) == 0)
42761 + wGet_wstring(stdscr, buf, 8);
42762 + slk_wset((c - '0'), buf, fmt);
42764 + move(SLK_WORK, 0);
42773 + if (has_colors()) {
42774 + fg = (fg + 1) % max_colors;
42775 + new_color = TRUE;
42779 + if (has_colors()) {
42780 + bg = (bg + 1) % max_colors;
42781 + new_color = TRUE;
42788 @@ -1341,6 +1711,7 @@
42794 /****************************************************************************
42796 @@ -1624,13 +1995,15 @@
42800 -show_2_wacs(int n, const char *name, char *code)
42801 +show_2_wacs(int n, const char *name, const char *code)
42803 const int height = 16;
42804 int row = 4 + (n % height);
42805 int col = (n / height) * COLS / 2;
42808 mvprintw(row, col, "%*s : ", COLS / 4, name);
42810 + addstr(strcpy(temp, code));
42814 @@ -1683,7 +2056,8 @@
42815 n = show_2_wacs(n, "WACS_S3", "\342\216\273");
42816 n = show_2_wacs(n, "WACS_S7", "\342\216\274");
42817 n = show_2_wacs(n, "WACS_S9", "\342\216\275");
42818 - /* *INDENT-OFF* */
42819 + /* *INDENT-ON* */
42824 @@ -3747,12 +4121,80 @@
42829 + * Allow a middle initial, optionally with a '.' to end it.
42832 +mi_field_check(FIELD * fld, const void *data GCC_UNUSED)
42834 + char *s = field_buffer(fld, 0);
42838 + for (n = 0; s[n] != '\0'; ++n) {
42841 + if (s[n] == '.') {
42845 + } else if (isspace(UChar(s[n]))) {
42850 + if (!isspace(UChar(s[n])))
42856 + /* force the form to display a leading capital */
42857 + if (islower(UChar(s[0]))) {
42858 + s[0] = toupper(UChar(s[0]));
42859 + set_field_buffer(fld, 0, s);
42865 +mi_char_check(int ch, const void *data GCC_UNUSED)
42867 + return ((isalpha(ch) || ch == '.') ? TRUE : FALSE);
42871 + * Passwords should be at least 6 characters.
42874 +pw_field_check(FIELD * fld, const void *data GCC_UNUSED)
42876 + char *s = field_buffer(fld, 0);
42879 + for (n = 0; s[n] != '\0'; ++n) {
42880 + if (isspace(UChar(s[n]))) {
42889 +pw_char_check(int ch, const void *data GCC_UNUSED)
42891 + return (isgraph(ch) ? TRUE : FALSE);
42899 FIELD *f[12], *secure;
42900 + FIELDTYPE *fty_middle = new_fieldtype(mi_field_check, mi_char_check);
42901 + FIELDTYPE *fty_passwd = new_fieldtype(pw_field_check, pw_char_check);
42902 int finished = 0, c;
42905 @@ -3775,17 +4217,26 @@
42907 /* describe the form */
42908 f[n++] = make_label(0, 15, "Sample Form");
42910 f[n++] = make_label(2, 0, "Last Name");
42911 f[n++] = make_field(3, 0, 1, 18, FALSE);
42912 + set_field_type(f[n - 1], TYPE_ALPHA, 1);
42914 f[n++] = make_label(2, 20, "First Name");
42915 f[n++] = make_field(3, 20, 1, 12, FALSE);
42916 + set_field_type(f[n - 1], TYPE_ALPHA, 1);
42918 f[n++] = make_label(2, 34, "Middle Name");
42919 f[n++] = make_field(3, 34, 1, 12, FALSE);
42920 + set_field_type(f[n - 1], fty_middle);
42922 f[n++] = make_label(5, 0, "Comments");
42923 f[n++] = make_field(6, 0, 4, 46, FALSE);
42925 f[n++] = make_label(5, 20, "Password:");
42927 f[n++] = make_field(5, 30, 1, 9, TRUE);
42928 + set_field_type(f[n - 1], fty_passwd);
42929 f[n++] = (FIELD *) 0;
42931 form = new_form(f);
42932 @@ -3982,6 +4433,11 @@
42936 +#if USE_WIDEC_SUPPORT
42944 @@ -4252,6 +4708,9 @@
42945 (void) puts("c = color test pattern");
42946 (void) puts("d = edit RGB color values");
42947 (void) puts("e = exercise soft keys");
42948 +#if USE_WIDEC_SUPPORT
42949 + (void) puts("E = exercise soft keys using wide-characters");
42951 (void) puts("f = display ACS characters");
42952 #if USE_WIDEC_SUPPORT
42953 (void) puts("F = display Wide-ACS characters");
42954 diff -urNd -urNd ncurses-5.3/test/railroad.c ncurses-5.3.20030906.orig/test/railroad.c
42955 --- ncurses-5.3/test/railroad.c Sat Apr 6 14:45:22 2002
42956 +++ ncurses-5.3.20030906.orig/test/railroad.c Tue May 13 20:08:23 2003
42957 @@ -29,14 +29,12 @@
42959 * Author: Thomas E. Dickey <dickey@clark.net> 2000
42961 - * $Id: railroad.c,v 1.10 2002/04/06 20:45:22 tom Exp $
42962 + * $Id: railroad.c,v 1.11 2002/10/19 22:11:24 tom Exp $
42964 * A simple demo of the termcap interface.
42966 #include <test.priv.h>
42968 -#include <ctype.h>
42970 static char *wipeit;
42971 static char *moveit;
42973 diff -urNd -urNd ncurses-5.3/test/tclock.c ncurses-5.3.20030906.orig/test/tclock.c
42974 --- ncurses-5.3/test/tclock.c Sat Jun 29 18:34:13 2002
42975 +++ ncurses-5.3.20030906.orig/test/tclock.c Tue May 13 20:08:23 2003
42977 -/* $Id: tclock.c,v 1.22 2002/06/29 23:34:13 tom Exp $ */
42978 +/* $Id: tclock.c,v 1.24 2002/12/29 01:40:30 tom Exp $ */
42980 -#include "test.priv.h"
42981 +#include <test.priv.h>
42985 @@ -125,9 +125,11 @@
42989 + bool odd = FALSE;
42994 int my_bg = COLOR_BLACK;
42995 #if HAVE_GETTIMEOFDAY
42996 struct timeval current;
42997 @@ -151,6 +153,7 @@
42998 init_pair(1, COLOR_RED, my_bg);
42999 init_pair(2, COLOR_MAGENTA, my_bg);
43000 init_pair(3, COLOR_GREEN, my_bg);
43001 + init_pair(4, COLOR_WHITE, COLOR_BLUE);
43004 keypad(stdscr, TRUE);
43005 @@ -218,11 +221,16 @@
43007 attrset(COLOR_PAIR(0));
43009 - mvaddstr(LINES - 2, 0, ctime(&tim));
43010 + text = ctime(&tim);
43011 + mvprintw(2, 0, "%.*s", (int) (strlen(text) - 1), text);
43013 if ((t->tm_sec % 5) == 0
43014 && t->tm_sec != lastbeep) {
43015 lastbeep = t->tm_sec;
43016 + if (has_colors()) {
43018 + bkgd(odd ? COLOR_PAIR(4) : COLOR_PAIR(0));
43023 diff -urNd -urNd ncurses-5.3/test/test.priv.h ncurses-5.3.20030906.orig/test/test.priv.h
43024 --- ncurses-5.3/test/test.priv.h Sat Jun 29 18:36:12 2002
43025 +++ ncurses-5.3.20030906.orig/test/test.priv.h Tue May 13 20:08:23 2003
43027 /****************************************************************************
43028 - * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc. *
43029 + * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc. *
43031 * Permission is hereby granted, free of charge, to any person obtaining a *
43032 * copy of this software and associated documentation files (the *
43033 @@ -29,17 +29,32 @@
43034 /****************************************************************************
43035 * Author: Thomas E. Dickey <dickey@clark.net> 1996 *
43036 ****************************************************************************/
43037 -/* $Id: test.priv.h,v 1.35 2002/06/29 23:36:12 tom Exp $ */
43038 +/* $Id: test.priv.h,v 1.45 2003/04/26 18:23:36 tom Exp $ */
43040 +#ifndef __TEST_PRIV_H
43041 +#define __TEST_PRIV_H 1
43044 #include <ncurses_cfg.h>
43046 -#define HAVE_CURSES_VERSION 0
43047 -#define HAVE_RESIZETERM 0
43048 -#define HAVE_USE_DEFAULT_COLORS 0
43049 -#define HAVE_WRESIZE 0
43052 + * Fix ifdef's that look for the form/menu/panel libraries, if we are building
43053 + * with wide-character ncurses.
43055 +#ifdef HAVE_LIBFORMW
43056 +#define HAVE_LIBFORM 1
43059 +#ifdef HAVE_LIBMENUW
43060 +#define HAVE_LIBMENU 1
43063 +#ifdef HAVE_LIBPANELW
43064 +#define HAVE_LIBPANEL 1
43068 + * Fallback definitions to accommodate broken compilers
43070 #ifndef HAVE_CURSES_VERSION
43071 #define HAVE_CURSES_VERSION 0
43073 @@ -80,10 +95,18 @@
43074 #define HAVE_PANEL_H 0
43077 +#ifndef HAVE_SLK_COLOR
43078 +#define HAVE_SLK_COLOR 0
43081 #ifndef HAVE_WRESIZE
43082 #define HAVE_WRESIZE 0
43085 +#ifndef NCURSES_EXT_FUNCS
43086 +#define NCURSES_EXT_FUNCS 0
43089 #ifndef NCURSES_NOMACROS
43090 #define NCURSES_NOMACROS 0
43092 @@ -125,6 +148,9 @@
43093 #define setlocale(name,string) /* nothing */
43096 +#include <assert.h>
43097 +#include <ctype.h>
43099 #ifndef GCC_NORETURN
43100 #define GCC_NORETURN /* nothing */
43102 @@ -144,24 +170,48 @@
43106 +#if HAVE_PANEL_H && HAVE_LIBPANEL
43107 +#define USE_LIBPANEL 1
43109 +#define USE_LIBPANEL 0
43112 +#if HAVE_MENU_H && HAVE_LIBMENU
43113 +#define USE_LIBMENU 1
43115 +#define USE_LIBMENU 0
43118 +#if HAVE_FORM_H && HAVE_LIBFORM
43119 +#define USE_LIBFORM 1
43121 +#define USE_LIBFORM 0
43124 #ifndef HAVE_TYPE_ATTR_T
43125 #if !USE_WIDEC_SUPPORT
43126 #define attr_t long
43130 -#ifndef NCURSES_CH_T
43131 +#undef NCURSES_CH_T
43132 #if !USE_WIDEC_SUPPORT
43133 #define NCURSES_CH_T chtype
43135 #define NCURSES_CH_T cchar_t
43140 #define CCHARW_MAX 5
43144 +#define CTRL(x) ((x) & 0x1f)
43147 +#define QUIT CTRL('Q')
43148 +#define ESCAPE CTRL('[')
43151 #define KEY_MIN 256 /* not defined in Solaris 8 */
43153 @@ -216,3 +266,21 @@
43154 #ifndef NCURSES_CONST
43155 #define NCURSES_CONST /* nothing */
43158 +/* out-of-band values for representing absent capabilities */
43159 +#define ABSENT_BOOLEAN (-1) /* 255 */
43160 +#define ABSENT_NUMERIC (-1)
43161 +#define ABSENT_STRING (char *)0
43163 +/* out-of-band values for representing cancels */
43164 +#define CANCELLED_BOOLEAN (char)(-2) /* 254 */
43165 +#define CANCELLED_NUMERIC (-2)
43166 +#define CANCELLED_STRING (char *)(-1)
43168 +#define VALID_BOOLEAN(s) ((unsigned char)(s) <= 1) /* reject "-1" */
43169 +#define VALID_NUMERIC(s) ((s) >= 0)
43170 +#define VALID_STRING(s) ((s) != CANCELLED_STRING && (s) != ABSENT_STRING)
43172 +#define VT_ACSC "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~"
43174 +#endif /* __TEST_PRIV_H */
43175 diff -urNd -urNd ncurses-5.3/test/testcurs.c ncurses-5.3.20030906.orig/test/testcurs.c
43176 --- ncurses-5.3/test/testcurs.c Sat Sep 14 17:45:15 2002
43177 +++ ncurses-5.3.20030906.orig/test/testcurs.c Tue May 13 20:08:23 2003
43179 * wrs(5/28/93) -- modified to be consistent (perform identically) with either
43180 * PDCurses or under Unix System V, R4
43182 - * $Id: testcurs.c,v 1.31 2002/09/14 22:45:15 tom Exp $
43183 + * $Id: testcurs.c,v 1.32 2002/10/19 22:11:24 tom Exp $
43186 #include <test.priv.h>
43187 -#include <ctype.h>
43189 #if defined(XCURSES)
43190 char *XCursesProgramName = "testcurs";
43191 diff -urNd -urNd ncurses-5.3/test/testscanw.c ncurses-5.3.20030906.orig/test/testscanw.c
43192 --- ncurses-5.3/test/testscanw.c Sat Jun 29 18:32:18 2002
43193 +++ ncurses-5.3.20030906.orig/test/testscanw.c Tue May 13 20:08:23 2003
43196 * From: bayern@morpheus.cis.yale.edu
43198 - * $Id: testscanw.c,v 1.9 2002/06/29 23:32:18 tom Exp $
43199 + * $Id: testscanw.c,v 1.10 2002/10/19 22:11:24 tom Exp $
43201 #include <test.priv.h>
43202 -#include <ctype.h>
43205 main(int argc, char *argv[])
43206 diff -urNd -urNd ncurses-5.3/test/view.c ncurses-5.3.20030906.orig/test/view.c
43207 --- ncurses-5.3/test/view.c Sat Jun 29 18:28:27 2002
43208 +++ ncurses-5.3.20030906.orig/test/view.c Sun Jul 20 14:02:08 2003
43210 * scroll operation worked, and the refresh() code only had to do a
43213 - * $Id: view.c,v 1.53 2002/06/29 23:28:27 tom Exp $
43214 + * $Id: view.c,v 1.57 2003/05/17 21:58:43 tom Exp $
43217 -#include <ctype.h>
43220 #include <test.priv.h>
43222 static RETSIGTYPE finish(int sig) GCC_NORETURN;
43223 static void show_all(const char *tag);
43225 -#if defined(SIGWINCH) && defined(TIOCGWINSZ) && HAVE_RESIZETERM
43226 +#if defined(SIGWINCH) && defined(TIOCGWINSZ) && HAVE_RESIZE_TERM
43227 #define CAN_RESIZE 1
43229 #define CAN_RESIZE 0
43230 @@ -496,14 +495,17 @@
43232 if ((s = lptr[i - 1]) != 0) {
43233 int len = ch_len(s);
43235 + if (len > shift) {
43236 #if USE_WIDEC_SUPPORT
43237 add_wchstr(s + shift);
43239 addchstr(s + shift);
43242 +#if defined(NCURSES_VERSION) || defined(HAVE_WCHGAT)
43244 wchgat(stdscr, -1, A_NORMAL, my_pair, NULL);
43248 setscrreg(1, LINES - 1);