]> ncurses.scripts.mit.edu Git - ncurses.git/blob - doc/html/man/adacurses-config.1.html
ncurses 5.9 - patch 20150523
[ncurses.git] / doc / html / man / adacurses-config.1.html
1 <!-- 
2   ****************************************************************************
3   * Copyright (c) 2010-2011,2014 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.8 2014/06/07 19:32:52 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>ADACURSES 1   User Commands</H1>
42 <HR>
43 <PRE>
44 <STRONG><A HREF="ADACURSES.1.html">ADACURSES(1)</A></STRONG>                 User Commands                 <STRONG><A HREF="ADACURSES.1.html">ADACURSES(1)</A></STRONG>
45
46
47
48
49 </PRE>
50 <H2><a name="h2-NAME">NAME</a></H2><PRE>
51        adacurses-config - helper script for AdaCurses libraries
52
53
54 </PRE>
55 <H2><a name="h2-SYNOPSIS">SYNOPSIS</a></H2><PRE>
56        <STRONG>adacurses-config</STRONG> [<EM>options</EM>]
57
58
59 </PRE>
60 <H2><a name="h2-DESCRIPTION">DESCRIPTION</a></H2><PRE>
61        This  is  a  shell  script which simplifies configuring an
62        application  to  use  the  AdaCurses  library  binding  to
63        ncurses.
64
65
66 </PRE>
67 <H2><a name="h2-OPTIONS">OPTIONS</a></H2><PRE>
68        <STRONG>--cflags</STRONG>
69               echos  the gnat (Ada compiler) flags needed to com-
70               pile with AdaCurses.
71
72        <STRONG>--libs</STRONG> echos  the  gnat  libraries  needed  to  link  with
73               AdaCurses.
74
75        <STRONG>--version</STRONG>
76               echos  the release+patchdate version of the ncurses
77               libraries used to configure and build AdaCurses.
78
79        <STRONG>--help</STRONG> prints a  list  of  the  <STRONG>adacurses-config</STRONG>  script's
80               options.
81
82        If  no options are given, <STRONG>adacurses-config</STRONG> prints the com-
83        bination of <STRONG>--cflags</STRONG> and <STRONG>--libs</STRONG> that <STRONG>gnatmake</STRONG> expects (see
84        example).
85
86
87 </PRE>
88 <H2><a name="h2-EXAMPLE">EXAMPLE</a></H2><PRE>
89        For example, supposing that you want to compile the "Hello
90        World!"   program  for  AdaCurses.   Make  a  file   named
91        "hello.adb":
92               with Terminal_Interface.Curses; use Terminal_Interface.Curses;
93
94               procedure Hello is
95
96                  Visibility : Cursor_Visibility := Invisible;
97                  done : Boolean := False;
98                  c : Key_Code;
99
100               begin
101
102                  Init_Screen;
103                  Set_Echo_Mode (False);
104
105                  Set_Cursor_Visibility (Visibility);
106                  Set_Timeout_Mode (Standard_Window, Non_Blocking, 0);
107
108                  Move_Cursor (Line =&gt; Lines / 2, Column =&gt; (Columns - 12) / 2);
109                  Add (Str =&gt; "Hello World!");
110
111                  while not done loop
112
113                     c := Get_Keystroke (Standard_Window);
114                     case c is
115                     when Character'Pos ('q') =&gt; done := True;
116                     when others =&gt; null;
117                     end case;
118
119                     Nap_Milli_Seconds (50);
120
121                  end loop;
122
123                  End_Windows;
124
125               end Hello;
126
127        Then, using
128               gnatmake  `adacurses-config  --cflags` hello -largs
129               `adacurses-config --libs`
130
131        or (simpler):
132               gnatmake hello `adacurses-config`
133
134        you will compile and link the program.
135
136
137 </PRE>
138 <H2><a name="h2-SEE-ALSO">SEE ALSO</a></H2><PRE>
139        <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>
140
141        This describes <STRONG>ncurses</STRONG> version 5.9 (patch 20150215).
142
143
144
145                                                            <STRONG><A HREF="ADACURSES.1.html">ADACURSES(1)</A></STRONG>
146 </PRE>
147 <div class="nav">
148 <ul>
149 <li><a href="#h2-NAME">NAME</a></li>
150 <li><a href="#h2-SYNOPSIS">SYNOPSIS</a></li>
151 <li><a href="#h2-DESCRIPTION">DESCRIPTION</a></li>
152 <li><a href="#h2-OPTIONS">OPTIONS</a></li>
153 <li><a href="#h2-EXAMPLE">EXAMPLE</a></li>
154 <li><a href="#h2-SEE-ALSO">SEE ALSO</a></li>
155 </ul>
156 </div>
157 </BODY>
158 </HTML>