1 .\"***************************************************************************
2 .\" Copyright 2019-2020,2021 Thomas E. Dickey *
3 .\" Copyright 2010-2014,2016 Free Software Foundation, Inc. *
5 .\" Permission is hereby granted, free of charge, to any person obtaining a *
6 .\" copy of this software and associated documentation files (the *
7 .\" "Software"), to deal in the Software without restriction, including *
8 .\" without limitation the rights to use, copy, modify, merge, publish, *
9 .\" distribute, distribute with modifications, sublicense, and/or sell *
10 .\" copies of the Software, and to permit persons to whom the Software is *
11 .\" furnished to do so, subject to the following conditions: *
13 .\" The above copyright notice and this permission notice shall be included *
14 .\" in all copies or substantial portions of the Software. *
16 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
24 .\" Except as contained in this notice, the name(s) of the above copyright *
25 .\" holders shall not be used in advertising or otherwise to promote the *
26 .\" sale, use or other dealings in this Software without prior written *
28 .\"***************************************************************************
30 .\" $Id: MKada_config.in,v 1.15 2021/12/25 17:39:16 tom Exp $
31 .ds C adacurses@USE_CFG_SUFFIX@\-config
32 .TH ADACURSES 1 2021-12-25 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "User commands"
34 adacurses@USE_CFG_SUFFIX@\-config \- helper script for @ADA_LIBNAME@ libraries
39 This is a shell script which simplifies configuring an application to use
40 the @ADA_LIBNAME@ library binding to ncurses.
44 echos the gnat (Ada compiler) flags needed to compile with @ADA_LIBNAME@.
47 echos the gnat libraries needed to link with @ADA_LIBNAME@.
50 echos the release+patchdate version of the ncurses libraries used
51 to configure and build @ADA_LIBNAME@.
54 prints a list of the \fB\*C\fP script's options.
56 If no options are given, \fB\*C\fP prints the combination
60 that \fBgnatmake\fP expects (see example).
63 For example, supposing that you want to compile the "Hello World!"
64 program for @ADA_LIBNAME@.
65 Make a file named "hello.adb":
69 with Terminal_Interface.Curses; use Terminal_Interface.Curses;
73 Visibility : Cursor_Visibility := Invisible;
74 done : Boolean := False;
80 Set_Echo_Mode (False);
82 Set_Cursor_Visibility (Visibility);
83 Set_Timeout_Mode (Standard_Window, Non_Blocking, 0);
85 Move_Cursor (Line => Lines / 2, Column => (Columns - 12) / 2);
86 Add (Str => "Hello World!");
90 c := Get_Keystroke (Standard_Window);
92 when Character'Pos ('q') => done := True;
96 Nap_Milli_Seconds (50);
108 gnatmake `adacurses-config --cflags` hello -largs `adacurses-config --libs`
115 gnatmake hello `adacurses-config`
119 you will compile and link the program.
123 This describes \fBncurses\fP
124 version @NCURSES_MAJOR@.@NCURSES_MINOR@ (patch @NCURSES_PATCH@).