]> ncurses.scripts.mit.edu Git - ncurses.git/blob - doc/html/man/adacurses6-config.1.html
f4433a902a78231c536a85c1d7df74b6c0c19827
[ncurses.git] / doc / html / man / adacurses6-config.1.html
1 <!-- 
2   ****************************************************************************
3   * Copyright (c) 2010-2014,2016 Free Software Foundation, Inc.              *
4   *                                                                          *
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:                 *
12   *                                                                          *
13   * The above copyright notice and this permission notice shall be included  *
14   * in all copies or substantial portions of the Software.                   *
15   *                                                                          *
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.                               *
23   *                                                                          *
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       *
27   * authorization.                                                           *
28   ****************************************************************************
29   * @Id: MKada_config.in,v 1.10 2016/11/05 21:08:21 tom Exp @
30 -->
31 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
32 <HTML>
33 <HEAD>
34 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
35 <meta name="generator" content="Manpage converted by man2html - see http://invisible-island.net/scripts/readme.html#others_scripts">
36 <TITLE>ADACURSES 1   User Commands</TITLE>
37 <link rev=made href="mailto:bug-ncurses@gnu.org">
38 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
39 </HEAD>
40 <BODY>
41 <H1 class="no-header">ADACURSES 1   User Commands</H1>
42 <PRE>
43 <STRONG><A HREF="ADACURSES.1.html">ADACURSES(1)</A></STRONG>                 User Commands                 <STRONG><A HREF="ADACURSES.1.html">ADACURSES(1)</A></STRONG>
44
45
46
47
48 </PRE><H2><a name="h2-NAME">NAME</a></H2><PRE>
49        adacurses6-config - helper script for AdaCurses libraries
50
51
52 </PRE><H2><a name="h2-SYNOPSIS">SYNOPSIS</a></H2><PRE>
53        <STRONG>adacurses6-config</STRONG> [<EM>options</EM>]
54
55
56 </PRE><H2><a name="h2-DESCRIPTION">DESCRIPTION</a></H2><PRE>
57        This  is  a  shell  script which simplifies configuring an
58        application  to  use  the  AdaCurses  library  binding  to
59        ncurses.
60
61
62 </PRE><H2><a name="h2-OPTIONS">OPTIONS</a></H2><PRE>
63        <STRONG>--cflags</STRONG>
64               echos  the gnat (Ada compiler) flags needed to com-
65               pile with AdaCurses.
66
67        <STRONG>--libs</STRONG> echos  the  gnat  libraries  needed  to  link  with
68               AdaCurses.
69
70        <STRONG>--version</STRONG>
71               echos  the release+patchdate version of the ncurses
72               libraries used to configure and build AdaCurses.
73
74        <STRONG>--help</STRONG> prints a list  of  the  <STRONG>adacurses6-config</STRONG>  script's
75               options.
76
77        If no options are given, <STRONG>adacurses6-config</STRONG> prints the com-
78        bination of <STRONG>--cflags</STRONG> and <STRONG>--libs</STRONG> that <STRONG>gnatmake</STRONG> expects (see
79        example).
80
81
82 </PRE><H2><a name="h2-EXAMPLE">EXAMPLE</a></H2><PRE>
83        For example, supposing that you want to compile the "Hello
84        World!"   program  for  AdaCurses.   Make  a  file   named
85        "hello.adb":
86               with Terminal_Interface.Curses; use Terminal_Interface.Curses;
87
88               procedure Hello is
89
90                  Visibility : Cursor_Visibility := Invisible;
91                  done : Boolean := False;
92                  c : Key_Code;
93
94               begin
95
96                  Init_Screen;
97                  Set_Echo_Mode (False);
98
99                  Set_Cursor_Visibility (Visibility);
100                  Set_Timeout_Mode (Standard_Window, Non_Blocking, 0);
101
102                  Move_Cursor (Line =&gt; Lines / 2, Column =&gt; (Columns - 12) / 2);
103                  Add (Str =&gt; "Hello World!");
104
105                  while not done loop
106
107                     c := Get_Keystroke (Standard_Window);
108                     case c is
109                     when Character'Pos ('q') =&gt; done := True;
110                     when others =&gt; null;
111                     end case;
112
113                     Nap_Milli_Seconds (50);
114
115                  end loop;
116
117                  End_Windows;
118
119               end Hello;
120
121        Then, using
122               gnatmake  `adacurses-config  --cflags` hello -largs
123               `adacurses-config --libs`
124
125        or (simpler):
126               gnatmake hello `adacurses-config`
127
128        you will compile and link the program.
129
130
131 </PRE><H2><a name="h2-SEE-ALSO">SEE ALSO</a></H2><PRE>
132        <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>
133
134        This describes <STRONG>ncurses</STRONG> version 6.0 (patch 20170107).
135
136
137
138                                                            <STRONG><A HREF="ADACURSES.1.html">ADACURSES(1)</A></STRONG>
139 </PRE>
140 <div class="nav">
141 <ul>
142 <li><a href="#h2-NAME">NAME</a></li>
143 <li><a href="#h2-SYNOPSIS">SYNOPSIS</a></li>
144 <li><a href="#h2-DESCRIPTION">DESCRIPTION</a></li>
145 <li><a href="#h2-OPTIONS">OPTIONS</a></li>
146 <li><a href="#h2-EXAMPLE">EXAMPLE</a></li>
147 <li><a href="#h2-SEE-ALSO">SEE ALSO</a></li>
148 </ul>
149 </div>
150 </BODY>
151 </HTML>