path: root/mcon/U/d_ckeypad.U
diff options
Diffstat (limited to 'mcon/U/d_ckeypad.U')
1 files changed, 54 insertions, 0 deletions
diff --git a/mcon/U/d_ckeypad.U b/mcon/U/d_ckeypad.U
new file mode 100644
index 0000000..c1f8307
--- /dev/null
+++ b/mcon/U/d_ckeypad.U
@@ -0,0 +1,54 @@
+?RCS: $Id: d_ckeypad.U,v 3.0 1993/08/18 12:05:50 ram Exp $
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS: $Log: d_ckeypad.U,v $
+?RCS: Revision 3.0 1993/08/18 12:05:50 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?MAKE:d_ckeypad: cat cc termlib Setvar
+?MAKE: -pick add $@ %<
+?S: This variable controls the definition of HAS_CURSES_KEYPAD,
+?S: which tells the application that the keypad() curses function
+?S: is available.
+?C: This symbol indicates the availability of the keypad() function
+?C: of the curses library.
+?H:#$d_ckeypad HAS_CURSES_KEYPAD /**/
+?LINT:set d_ckeypad
+: check for the keypad() function in the curses library
+echo " "
+case "$termlib" in
+ echo "You don't have a curses library, so I won't waste time looking" >&4
+ echo "to see if has the keypad() function." >&4
+echo "Checking the curses library ($termlib) for the keypad() function..." >&4
+ $cat >c_keypad.c <<'EOCP'
+#include <curses.h>
+main() {
+ keypad(stdscr, TRUE);
+ exit(0);
+ if $cc c_keypad.c >c_keypad.out 2>&1 ; then
+ val=$define
+ echo "It appears to have the keypad() function."
+ else
+ val=$undef
+ echo "Your curses library doesn't appear to have the keypad() function."
+ fi
+set d_ckeypad
+eval $setvar