[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ada ncurses test program
From: |
From:H. Nanosecond |
Subject: |
Ada ncurses test program |
Date: |
Sun, 29 Oct 2000 21:13:40 -0500 (EST) |
Hello,
I have translated the test program ncurses.c into Ada and would like you
to put it in your main distribution if you want.
The translation has almost all of the features of the original except
signal handling.
Here is a patch for the makefile and a tar of the sources
(unpack the tar in ncurses-5.2/Ada95/samples).
Thanks.
ncurses-ada.tar.gz
Description: ncurses sources
--- Makefile.in.original Sun Oct 29 21:06:40 2000
+++ Makefile.in Sun Oct 29 21:09:45 2000
@@ -84,9 +84,9 @@
ABASE = $(ALIB)-curses
CARGS =-cargs $(ADAFLAGS)
-LARGS =-largs -L../../lib $(LD_FLAGS) -lAdaCurses address@hidden@
-
-PROGS = tour rain
+LARGS =-largs -L../../lib @TEST_ARGS@ $(LD_FLAGS) -lAdaCurses
@EXTRA_LIBS@
+
+PROGS = tour rain ncurses
TOUR_OBJS = tour.o sample.o sample-curses_demo.o sample-explanation.o
\
sample-form_demo.o sample-function_key_setting.o
\
@@ -98,9 +98,34 @@
RAIN_OBJS = rain.o status.o
-all :: tour$x rain$x
+NCURSES_OBJS = ncurses.o ncurses2-getch_test.o \
+ncurses2-acs_and_scroll.o ncurses2-m.o \
+ncurses2-acs_display.o ncurses2-menu_test.o \
+ncurses2-attr_test.o ncurses2-overlap_test.o \
+ncurses2-color_edit.o ncurses2-slk_test.o \
+ncurses2-color_test.o ncurses2-test_sgr_attributes.o \
+ncurses2-demo_forms.o ncurses2-trace_set.o \
+ncurses2-demo_pad.o ncurses2-util.o \
+ncurses2-demo_panels.o ncurses2.o \
+ncurses2-flushinp_test.o
+
+
+all :: tour$x rain$x ncurses$x
@
+ncurses2-acs_and_scroll.adb: $(srcdir)/ncurses2-acs_and_scroll.adb.m4
+ m4 $(srcdir)/ncurses2-acs_and_scroll.adb.m4 >
ncurses2-acs_and_scroll.adb
+ncurses2-test_sgr_attributes.adb: $(srcdir)/ncurses2-test_sgr_attributes.adb.m4
+ m4 $(srcdir)/ncurses2-test_sgr_attributes.adb.m4 >
ncurses2-test_sgr_attributes.adb
+ncurses2-menu_test.adb: $(srcdir)/ncurses2-menu_test.adb.m4
+ m4 $(srcdir)/ncurses2-menu_test.adb.m4 > ncurses2-menu_test.adb
+ncurses2-demo_pad.adb: $(srcdir)/ncurses2-demo_pad.adb.m4
+ m4 $(srcdir)/ncurses2-demo_pad.adb.m4 > ncurses2-demo_pad.adb
+ncurses2-demo_forms.adb: $(srcdir)/ncurses2-demo_forms.adb.m4
+ m4 $(srcdir)/ncurses2-demo_forms.adb.m4 > ncurses2-demo_forms.adb
+ncurses2-trace_set.adb: $(srcdir)/ncurses2-trace_set.adb.m4
+ m4 $(srcdir)/ncurses2-trace_set.adb.m4 > ncurses2-trace_set.adb
+
sources :
@
@@ -112,6 +137,11 @@
uninstall \
uninstall.libs ::
@
+
+ncurses$x: ncurses2-acs_and_scroll.adb ncurses2-test_sgr_attributes.adb \
+ ncurses2-menu_test.adb ncurses2-demo_pad.adb \
+ ncurses2-demo_forms.adb ncurses2-trace_set.adb
+ $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
tour$x : explain.msg
$(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
- Ada ncurses test program,
From:H. Nanosecond <=