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