2 ****************************************************************************
3 * Copyright 2019-2021,2023 Thomas E. Dickey *
4 * Copyright 2010-2014,2016 Free Software Foundation, Inc. *
6 * Permission is hereby granted, free of charge, to any person obtaining a *
7 * copy of this software and associated documentation files (the *
8 * "Software"), to deal in the Software without restriction, including *
9 * without limitation the rights to use, copy, modify, merge, publish, *
10 * distribute, distribute with modifications, sublicense, and/or sell *
11 * copies of the Software, and to permit persons to whom the Software is *
12 * furnished to do so, subject to the following conditions: *
14 * The above copyright notice and this permission notice shall be included *
15 * in all copies or substantial portions of the Software. *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
20 * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
21 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
22 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
23 * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
25 * Except as contained in this notice, the name(s) of the above copyright *
26 * holders shall not be used in advertising or otherwise to promote the *
27 * sale, use or other dealings in this Software without prior written *
29 ****************************************************************************
30 * @Id: MKada_config.in,v 1.28 2023/09/30 23:55:34 tom Exp @
34 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
37 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
38 <meta name="generator" content="Manpage converted by man2html - see https://invisible-island.net/scripts/readme.html#others_scripts">
39 <TITLE>adacurses6\-config 1 2023-09-30 ncurses 6.4 User commands</TITLE>
40 <link rel="author" href="mailto:bug-ncurses@gnu.org">
44 <H1 class="no-header">adacurses6\-config 1 2023-09-30 ncurses 6.4 User commands</H1>
46 <STRONG><A HREF="adacurses6-config.1.html">adacurses6-config(1)</A></STRONG> User commands <STRONG><A HREF="adacurses6-config.1.html">adacurses6-config(1)</A></STRONG>
51 </PRE><H2><a name="h2-NAME">NAME</a></H2><PRE>
52 <STRONG>adacurses6-config</STRONG> - configuration helper for <EM>AdaCurses</EM> libraries
55 </PRE><H2><a name="h2-SYNOPSIS">SYNOPSIS</a></H2><PRE>
56 <STRONG>adacurses6-config</STRONG> [<STRONG>--cflags</STRONG>] [<STRONG>--libs</STRONG>]
58 <STRONG>adacurses6-config</STRONG> <STRONG>--version</STRONG>
60 <STRONG>adacurses6-config</STRONG> <STRONG>--help</STRONG>
63 </PRE><H2><a name="h2-DESCRIPTION">DESCRIPTION</a></H2><PRE>
64 This program development aid simplifies the process of configuring
65 applications to use the <EM>AdaCurses</EM> library binding to <EM>ncurses</EM>.
68 </PRE><H2><a name="h2-OPTIONS">OPTIONS</a></H2><PRE>
69 <STRONG>--cflags</STRONG> reports the GNAT (Ada compiler) flags needed to compile with
72 <STRONG>--libs</STRONG> reports the GNAT libraries needed to link with <EM>AdaCurses</EM>.
74 <STRONG>--version</STRONG> reports the release and patch date information of the
75 <EM>ncurses</EM> libraries used to configure and build <EM>AdaCurses</EM> and
78 <STRONG>--help</STRONG> issues a usage message and exits successfully.
80 Omitting options implies "<STRONG>--cflags</STRONG> <STRONG>--libs</STRONG>".
83 </PRE><H2><a name="h2-EXAMPLE">EXAMPLE</a></H2><PRE>
84 Consider a program using <EM>AdaCurses</EM> to write the message "Hello, world!"
85 in the center of the screen and wait for the user to press the "q" key
86 before exiting. Populate a file <EM>hello.adb</EM> with the following.
88 with Terminal_Interface.Curses; use Terminal_Interface.Curses;
91 Visibility : Cursor_Visibility := Invisible;
92 Message : constant String := "Hello, World!";
93 done : Boolean := False;
97 Set_Echo_Mode (False);
98 Set_Cursor_Visibility (Visibility);
99 Set_Timeout_Mode (Standard_Window, Non_Blocking, 0);
101 Move_Cursor (Line => Lines / 2,
102 Column => (Columns - Message'Length) / 2);
103 Add (Str => Message);
106 c := Get_Keystroke (Standard_Window);
109 when Character'Pos ('q') => done := True;
110 when others => null;
113 Nap_Milli_Seconds (50);
121 gnatmake `adacurses6-config --cflags` hello \
122 -largs `adacurses6-config --libs`
124 gnatmake hello `adacurses6-config`
125 you can compile and link the program.
128 </PRE><H2><a name="h2-SEE-ALSO">SEE ALSO</a></H2><PRE>
129 <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>
133 ncurses 6.4 2023-09-30 <STRONG><A HREF="adacurses6-config.1.html">adacurses6-config(1)</A></STRONG>
137 <li><a href="#h2-NAME">NAME</a></li>
138 <li><a href="#h2-SYNOPSIS">SYNOPSIS</a></li>
139 <li><a href="#h2-DESCRIPTION">DESCRIPTION</a></li>
140 <li><a href="#h2-OPTIONS">OPTIONS</a></li>
141 <li><a href="#h2-EXAMPLE">EXAMPLE</a></li>
142 <li><a href="#h2-SEE-ALSO">SEE ALSO</a></li>