OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / ncurses / draft / man3 / curs_window.3
1 .\"***************************************************************************
2 .\" Copyright (c) 1998,2000 Free Software Foundation, Inc.                   *
3 .\"                                                                          *
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:                 *
11 .\"                                                                          *
12 .\" The above copyright notice and this permission notice shall be included  *
13 .\" in all copies or substantial portions of the Software.                   *
14 .\"                                                                          *
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.                               *
22 .\"                                                                          *
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       *
26 .\" authorization.                                                           *
27 .\"***************************************************************************
28 .\"
29 .\" $Id: curs_window.3x,v 1.9 2000/07/01 20:08:37 tom Exp $
30 .TH curs_window 3X ""
31 .SH Ì¾Á°
32 \fBnewwin\fR, \fBdelwin\fR, \fBmvwin\fR, \fBsubwin\fR, \fBderwin\fR,
33 \fBmvderwin\fR, \fBdupwin\fR, \fBwsyncup\fR, \fBsyncok\fR, \fBwcursyncup\fR,
34 \fBwsyncdown\fR - \fBcurses\fR ¥¦¥£¥ó¥É¥¦¤òÀ¸À®¡£
35 .SH ½ñ¼°
36 \fB#include <curses.h>\fR
37  
38 \fBWINDOW *newwin(int nlines, int ncols, int begin_y,\fR \fBint begin_x);\fR
39 .br
40 \fBint delwin(WINDOW *win);\fR
41 .br
42 \fBint mvwin(WINDOW *win, int y, int x);\fR
43 .br
44 \fBWINDOW *subwin(WINDOW *orig, int nlines, int ncols,\fR \fBint begin_y, int
45 begin_x);\fR
46 .br
47 \fBWINDOW *derwin(WINDOW *orig, int nlines, int ncols,\fR \fBint begin_y, int
48 begin_x);\fR
49 .br
50 \fBint mvderwin(WINDOW *win, int par_y, int par_x);\fR
51 .br
52 \fBWINDOW *dupwin(WINDOW *win);\fR
53 .br
54 \fBvoid wsyncup(WINDOW *win);\fR
55 .br
56 \fBint syncok(WINDOW *win, bool bf);\fR
57 .br
58 \fBvoid wcursyncup(WINDOW *win);\fR
59 .br
60 \fBvoid wsyncdown(WINDOW *win);\fR
61 .br
62 .SH ÀâÌÀ
63 .\"O Calling \fBnewwin\fR creates and returns a pointer to a new window with the
64 .\"O given number of lines and columns.  The upper left-hand corner of the window is
65 .\"O at line \fIbegin\fR_\fIy\fR, column \fIbegin\fR_\fIx\fR.  If either
66 .\"O \fInlines\fR or \fIncols\fR is zero, they default to \fBLINES -\fR
67 .\"O \fIbegin\fR_\fIy\fR and \fBCOLS -\fR \fIbegin\fR_\fIx\fR.  A new full-screen
68 .\"O window is created by calling \fBnewwin(0,0,0,0)\fR.
69 .\"O 
70 \fBnewwin\fR´Ø¿ô¤ò¸Æ¤Ö¤È¡¢Í¿¤¨¤é¤ì¤¿Îó¿ô¤È¹Ô¿ô¤ò»ý¤Ä¿·µ¬¥¦¥£¥ó¥É¥¦¤òÀ¸À®¤·¡¢
71 ¤½¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
72 ¥¦¥£¥ó¥É¥¦¤Îº¸¾å¤Î¹Ô¤¬ \fIbegin\fR_\fIy\fR, Î󤬠\fIbegin\fR_\fIx\fR¤Ç¤¢¤ë¡£
73 ¤â¤·¡¢\fInlines\fR Ëô¤Ï \fIncols\fR ¤Î¤É¤Á¤é¤«¤¬¥¼¥í¤Ê¤é¤Ð¡¢
74 ¥Ç¥Õ¥©¥ë¥È¤È¤·¤Æ \fBLINES -\fR \fIbegin\fR_\fIy\fR µÚ¤Ó \fBCOLS -\fIbegin\fR_\fIx\fR
75  ¤¬ÀßÄꤵ¤ì¤ë¡£
76 ¿·µ¬¤Î¥Õ¥ë¥¹¥¯¥ê¡¼¥ó¥¦¥£¥ó¥É¥¦¤Ï\fBnewwin(0,0,0,0)\fR¤ò¸Æ¤Ö¤³¤È¤ÇÀ¸À®¤µ¤ì¤ë¡£
77
78 .\"O Calling \fBdelwin\fR deletes the named window, freeing all memory
79 .\"O associated with it (it does not actually erase the window's screen
80 .\"O image).  Subwindows must be deleted before the main window can be
81 .\"O deleted.
82 .\"O 
83 \fBdelwin\fR´Ø¿ô¤Ï´û¸¤Î¥¦¥£¥ó¥É¥¦¤òºï½ü¤·¡¢´ØÏ¢¤Å¤±¤é¤ì¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥á¥â¥ê¤ò³«Êü¤¹¤ë¡£
84 ¥á¥¤¥ó¥¦¥£¥ó¥É¥¦¤Îºï½üÁ°¤Ë¥µ¥Ö¥¦¥£¥ó¥É¥¦¤¬ºï½ü¤µ¤ì¤Í¤Ð¤Ê¤é¤Ê¤¤¡£
85
86 .\"O Calling \fBmvwin\fR moves the window so that the upper left-hand
87 .\"O corner is at position (\fIx\fR, \fIy\fR).  If the move would cause the
88 .\"O window to be off the screen, it is an error and the window is not
89 .\"O moved.  Moving subwindows is allowed, but should be avoided.
90 .\"O 
91 \fBmvwin\fR´Ø¿ô¤Ï¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤·¡¢¤½¤Î·ë²Ìº¸¾å¤¬ (\fIx\fR, \fIy\fR)¤È¤Ê¤ë¡£
92 ¤â¤·¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤¹¤³¤È¤Ç¥¹¥¯¥ê¡¼¥ó¤«¤é¤Ï¤ß¤À¤·¤Æ¤·¤Þ¤¦¤Ê¤é¤Ð¥¨¥é¡¼¤È¤Ê¤ê¡¢
93 ¥¦¥£¥ó¥É¥¦¤ÏÆ°¤«¤µ¤ì¤Ê¤¤¡£
94 ¥µ¥Ö¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤¹»ö¤Ïµö¤µ¤ì¤Æ¤Ï¤¤¤ë¤¬¡¢Èò¤±¤ë¤Ù¤­¤Ç¤¢¤ë¡£
95
96 .\"O Calling \fBsubwin\fR creates and returns a pointer to a new window
97 .\"O with the given number of lines, \fInlines\fR, and columns,
98 .\"O \fIncols\fR.  The window is at position (\fIbegin\fR_\fIy\fR,
99 .\"O \fIbegin\fR_\fIx\fR) on the screen.  (This position is relative to the
100 .\"O screen, and not to the window \fIorig\fR.)  The window is made in the
101 .\"O middle of the window \fIorig\fR, so that changes made to one window
102 .\"O will affect both windows.  The subwindow shares memory with the window
103 .\"O \fIorig\fR.  When using this routine, it is necessary to call
104 .\"O \fBtouchwin\fR or \fBtouchline\fR on \fIorig\fR before calling
105 .\"O \fBwrefresh\fR on the subwindow.
106 .\"O 
107 \fBsubwin\fR´Ø¿ô¤ÏÍ¿¤¨¤é¤ì¤¿¹Ô¿ô \fInlines\fR¡¢Îó¿ô \fIncols\fR
108  ¤Î¿·µ¬¥¦¥£¥ó¥É¥¦¤òÀ¸À®¤·¡¢¤½¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
109 ¥¦¥£¥ó¥É¥¦¤Ï¥¹¥¯¥ê¡¼¥ó¾å(\fIbegin\fR_\fIy\fR, \fIbegin\fR_\fIx\fR)¤Ë¤¢¤ë¡£
110 (¤³¤Î°ÌÃ֤ϥ¹¥¯¥ê¡¼¥ó¤ËÂФ·¤ÆÁêÂÐŪ¤Ê¤â¤Î¤Ç¡¢ \fIorig\fR ¥¦¥£¥ó¥É¥¦¤ËÂФ·¤Æ¤Ç¤Ï¤Ê¤¤¡£)
111 ¥µ¥Ö¥¦¥£¥ó¥É¥¦¤Ï \fIorig\fR ¥¦¥£¥ó¥É¥¦¤ÎÃæ¿´¤ÇÀ¸À®¤µ¤ì¡¢°ìÊý¤Î¥¦¥£¥ó¥É¥¦¤Ø¤ÎÊѹ¹¤Ï
112 ÁÐÊý¤Î¥¦¥£¥ó¥É¥¦¤ËÂФ·¤Æ±Æ¶Á¤òµÚ¤Ü¤¹¡£
113 ¥µ¥Ö¥¦¥£¥ó¥É¥¦¤Ï \fIorig\fR ¥¦¥£¥ó¥É¥¦¤È¥á¥â¥ê¤ò¶¦Í­¤¹¤ë¡£
114 ¤³¤Î´Ø¿ô¤ò»ÈÍѤ¹¤ëºÝ¤Ë¤Ï¡¢¥µ¥Ö¥¦¥£¥ó¥É¥¦¾å¤Ç \fBwrefresh\fR ¤ò¸Æ¤ÖÁ°¤Ë
115  \fIorig\fR¾å¤Ç \fBtouchwin\fR Ëô¤Ï \fBtouchline\fR ¤ò¸Æ¤ÖɬÍפ¬¤¢¤ë¡£
116  
117 .\"O Calling \fBderwin\fR is the same as calling \fBsubwin,\fR except that
118 .\"O \fIbegin\fR_\fIy\fR and \fIbegin\fR_\fIx\fR are relative to the origin
119 .\"O of the window \fIorig\fR rather than the screen.  There is no
120 .\"O difference between the subwindows and the derived windows.
121 .\"O 
122 \fBderwin\fR´Ø¿ô¤Ï \fBsubwin\fR ¤ò¸Æ¤Ö¤Î¤ÈƱÍͤǤ¢¤ê¡¢\fIbegin\fR_\fIy\fR ¤È
123  \fIbegin\fR_\fIx\fR ¤¬¥¹¥¯¥ê¡¼¥ó¤Ç¤Ï¤Ê¤¯ \fIorig\fR
124  ¥¦¥£¥ó¥É¥¦¤ËÁêÂÐŪ¤Ç¤¢¤ëÅÀ¤ò½ü¤¤¤Æ¤Ï¡¢¥µ¥Ö¥¦¥£¥ó¥É¥¦¤È¤Î°ã¤¤¤Ï¤Ê¤¤¡£
125
126 .\"O Calling \fBmvderwin\fR moves a derived window (or subwindow)
127 .\"O inside its parent window.  The screen-relative parameters of the
128 .\"O window are not changed.  This routine is used to display different
129 .\"O parts of the parent window at the same physical position on the
130 .\"O screen.
131 .\"O 
132 \fBmvderwin\fR´Ø¿ô¤Ï¿Æ¥¦¥£¥ó¥É¥¦ÆâÉô¤ÇÆÀ¤é¤ì¤ë¥¦¥£¥ó¥É¥¦(¤¢¤ë¤¤¤Ï¥µ¥Ö¥¦¥£¥ó¥É¥¦)¤òÆ°¤«¤¹¡£
133 ¥¹¥¯¥ê¡¼¥ó¤ËÂФ·¤ÆÁêÂÐŪ¤Ç¤¢¤ë¥¦¥£¥ó¥É¥¦¤Î°ú¿ô¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
134 ¤³¤Î´Ø¿ô¤Ï¥¹¥¯¥ê¡¼¥ó¾å¤ÇʪÍýŪ¤ËƱ¤¸°ÌÃ֤ˤ¢¤ë¿Æ¥¦¥£¥ó¥É¥¦¤È¤Îº¹°ÛÅÀ¤òÉÁ²è¤¹¤ë
135 ¤Î¤Ë»ÈÍѤµ¤ì¤ë¡£
136
137 .\"O Calling \fBdupwin\fR creates an exact duplicate of the window \fIwin\fR.
138 .\"O 
139 \fBdupwin\fR´Ø¿ô¤Ï \fIwin\fR ¥¦¥£¥ó¥É¥¦¤ÎÀµ³Î¤ÊÊ£À½¤òÀ¸À®¤¹¤ë¡£
140
141 .\"O Calling \fBwsyncup\fR touches all locations in ancestors of \fIwin\fR that are
142 .\"O changed in \fIwin\fR.  If \fBsyncok\fR is called with second argument
143 .\"O \fBTRUE\fR then \fBwsyncup\fR is called automatically whenever there is a
144 .\"O change in the window.
145 .\"O 
146 \fBwsyncup\fR´Ø¿ô¤Ï \fIwin\fR ¤ÇÊѹ¹¤¬¤Ê¤µ¤ì¤¿ \fIwin\fR ¤ÎÁÄÀè¤Î¤¢¤é¤æ¤ë°ÌÃÖ¾ðÊó
147 ¤ò¹¹¿·¤¹¤ë¡£
148 ¤â¤· \fBsyncok\fR ¤¬ÂèÆó°ú¿ô¤È¤·¤Æ \fBTRUE\fR ¤È¤È¤â¤Ë¸Æ¤Ó½Ð¤µ¤ì¤¿¤é¤Ê¤é¤Ð¡¢
149 ¥¦¥£¥ó¥É¥¦¤ËÊѹ¹¤¬¤¢¤ë¤È¤­¤Ï¤¤¤Ä¤Ç¤â \fBwsyncup\fR ¤¬¼«Æ°Åª¤Ë¸Æ¤Ð¤ì¤ë¡£
150  
151 .\"O The \fBwsyncdown\fR routine touches each location in \fIwin\fR that has been
152 .\"O touched in any of its ancestor windows.  This routine is called by
153 .\"O \fBwrefresh\fR, so it should almost never be necessary to call it manually.
154 .\"O 
155 .\"O The routine \fBwcursyncup\fR updates the current cursor position of all the
156 .\"O ancestors of the window to reflect the current cursor position of the
157 .\"O window.
158 \fBwsyncdown\fR´Ø¿ô¤ÏÁÄÀè¤Î¥¦¥£¥ó¥É¥¦¤ÎÊѹ¹ÅÀ¤ò \fIwin\fR ¤Ø¤ÈÈ¿±Ç¤¹¤ë¡£
159 ¤³¤Î´Ø¿ô¤Ï \fBwrefresh\fR ¤Ë¤è¤ê¸Æ¤Ó½Ð¤µ¤ì¡¢¼êÆ°¤Ç¸Æ¤Ó½Ð¤¹É¬ÍפϤʤ¤¤Ï¤º¤À¡£
160  
161 \fBwcursyncup\fR´Ø¿ô¤Ï¥¦¥£¥ó¥É¥¦¤Î¥«¡¼¥½¥ë°ÌÃÖ¤òÈ¿±Ç¤¹¤ë¤¿¤á¤Ë¡¢
162 Á´¤Æ¤ÎÁÄÀè¤Î¥¦¥£¥ó¥É¥¦¤Î¥«¡¼¥½¥ë°ÌÃÖ¤ò¹¹¿·¤¹¤ë¡£
163
164 .SH ÊÖ¤êÃÍ
165 .\"O Routines that return an integer return the integer \fBERR\fR upon failure and
166 .\"O \fBOK\fR (SVr4 only specifies "an integer value other than \fBERR\fR") upon
167 .\"O successful completion.
168 .\"O 
169 À°¿ô¤òÊÖ¤¹´Ø¿ô¤ÏÀ°¿ôÃÍ \fBERR\fR ¤ò¼ºÇÔ»þÅÀ¤ÇÊÖ¤·¡¢\fBOK\fR (SVr4 ¤Ç¤Ï
170  "\fBERR\fR°Ê³°¤ÎÀ°¿ôÃÍ"¤ÈÌÀµ­¡£)¤òÀ®¸ù»þ¤ËÊÖ¤¹¡£
171
172 .\"O If many small changes are made to the window, the \fBwsyncup\fR option could
173 .\"O degrade performance.
174 .\"O 
175 .\"O Note that \fBsyncok\fR may be a macro.
176 .SH Ãí°Õ
177 ¥¦¥£¥ó¥É¥¦¤Ø¿¤¯¤Îº³ºÙ¤ÊÊѹ¹¤¬¤Ê¤µ¤ì¤¿¾ì¹ç¡¢\fBwsyncup\fR ¥ª¥×¥·¥ç¥ó¤Ï¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤ÎÄã²¼¤ò¤â¤¿¤é¤¹¡£
178  
179 \fBsyncok\fR ¤¬¥Þ¥¯¥í¤«¤âÃΤì¤Ê¤¤¤³¤È¤ËÃí°Õ¡£
180 .SH ¥Ð¥°
181 .\"O The subwindow functions (\fIsubwin\fR, \fIderwin\fR, \fImvderwin\fR,
182 .\"O \fBwsyncup\fR, \fBwsyncdown\fR, \fBwcursyncup\fR, \fBsyncok\fR) are flaky,
183 .\"O incompletely implemented, and not well tested.
184 .\"O 
185 ¥µ¥Ö¥¦¥£¥ó¥É¥¦´Ø¿ô(\fIsubwin\fR, \fIderwin\fR, \fImvderwin\fR,
186 \fBwsyncup\fR, \fBwsyncdown\fR, \fBwcursyncup\fR, \fBsyncok\fR)¤Ï
187 ÉÔ´°Á´¤Ê¼ÂÁõ¤Ç¤¢¤ê¡¢½¼Ê¬¤Ë¥Æ¥¹¥È¤¬¤Ê¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
188  
189 .\"O The System V curses documentation is very unclear about what \fBwsyncup\fR
190 .\"O and \fBwsyncdown\fR actually do.  It seems to imply that they are only 
191 .\"O supposed to touch exactly those lines that are affected by ancestor changes.
192 .\"O The language here, and the behavior of the \fBcurses\fR implementation,
193 .\"O is patterned on the XPG4 curses standard.  The weaker XPG4 spec may result
194 .\"O in slower updates.
195 System V curses Ê¸½ñ¤Ï \fBwsyncup\fR µÚ¤Ó \fBwsyncdown\fR
196  ¤Î¼ÂºÝ¤Î¿¶¤ëÉñ¤¤¤Ë¤Ä¤¤¤ÆÈó¾ï¤ËÉÔÌÀÎƤǤ¢¤ë¡£
197 ¤³¤ì¤é¤Ïñ¤ËÁÄÀè¤ÎÊѹ¹¤Ë¤è¤ê±Æ¶Á¤ò¼õ¤±¤ë¹Ô¤ò¹¹¿·¤¹¤ë¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤è¤¦¤Ç¤¢¤ë¡£
198 ¤³¤³¤Ç¤Î¸À¸ì¡¢¤ª¤è¤Ó \fBcurses\fR ¤Î¼ÂÁõ¤Î¿¶¤ëÉñ¤¤¤Ï XPG4 curses É¸½à¤Ë½àµò¤·¤Æ¤¤¤ë¡£
199 XPG4 »ÅÍͤÏÃÙ¡¹¤È¤·¤Ê¤¬¤é¤â¹¹¿·¤µ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
200 .SH °Ü¿¢À­
201 .\"O The XSI Curses standard, Issue 4 describes these functions.
202 XSI Curses ½àµò¡¢Âè4¾Ï¤Ç¤³¤ì¤é¤Î´Ø¿ô¤Ë¤Ä¤¤¤Æ´û½Ò¤¬¤¢¤ë¡£
203
204 .SH ´ØÏ¢¹àÌÜ
205 \fBcurses\fR(3X), \fBcurs_refresh\fR(3X), \fBcurs_touch\fR(3X)
206 .\"#
207 .\"# The following sets edit modes for GNU EMACS
208 .\"# Local Variables:
209 .\"# mode:nroff
210 .\"# fill-column:79
211 .\"# End:
212 <STATUS>
213 stat: RO
214 ppkg: ncurses
215 page: curs_window.3
216 date: 2002/12/15
217 mail: linjian@bj.wakwak.com
218 name: HAYASHI Kentaro
219 </STATUS>
220
221 .\"***************************************************************************
222 .\" Copyright (c) 1998,2000 Free Software Foundation, Inc.                   *
223 .\"                                                                          *
224 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
225 .\" copy of this software and associated documentation files (the            *
226 .\" "Software"), to deal in the Software without restriction, including      *
227 .\" without limitation the rights to use, copy, modify, merge, publish,      *
228 .\" distribute, distribute with modifications, sublicense, and/or sell       *
229 .\" copies of the Software, and to permit persons to whom the Software is    *
230 .\" furnished to do so, subject to the following conditions:                 *
231 .\"                                                                          *
232 .\" The above copyright notice and this permission notice shall be included  *
233 .\" in all copies or substantial portions of the Software.                   *
234 .\"                                                                          *
235 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
236 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
237 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
238 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
239 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
240 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
241 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
242 .\"                                                                          *
243 .\" Except as contained in this notice, the name(s) of the above copyright   *
244 .\" holders shall not be used in advertising or otherwise to promote the     *
245 .\" sale, use or other dealings in this Software without prior written       *
246 .\" authorization.                                                           *
247 .\"***************************************************************************
248 .\"
249 .\" $Id: curs_window.3x,v 1.9 2000/07/01 20:08:37 tom Exp $
250 .TH curs_window 3X ""
251 .SH Ì¾Á°
252 \fBnewwin\fR, \fBdelwin\fR, \fBmvwin\fR, \fBsubwin\fR, \fBderwin\fR,
253 \fBmvderwin\fR, \fBdupwin\fR, \fBwsyncup\fR, \fBsyncok\fR, \fBwcursyncup\fR,
254 \fBwsyncdown\fR - \fBcurses\fR ¥¦¥£¥ó¥É¥¦¤òÀ¸À®¡£
255 .SH ½ñ¼°
256 \fB#include <curses.h>\fR
257  
258 \fBWINDOW *newwin(int nlines, int ncols, int begin_y,\fR \fBint begin_x);\fR
259 .br
260 \fBint delwin(WINDOW *win);\fR
261 .br
262 \fBint mvwin(WINDOW *win, int y, int x);\fR
263 .br
264 \fBWINDOW *subwin(WINDOW *orig, int nlines, int ncols,\fR \fBint begin_y, int
265 begin_x);\fR
266 .br
267 \fBWINDOW *derwin(WINDOW *orig, int nlines, int ncols,\fR \fBint begin_y, int
268 begin_x);\fR
269 .br
270 \fBint mvderwin(WINDOW *win, int par_y, int par_x);\fR
271 .br
272 \fBWINDOW *dupwin(WINDOW *win);\fR
273 .br
274 \fBvoid wsyncup(WINDOW *win);\fR
275 .br
276 \fBint syncok(WINDOW *win, bool bf);\fR
277 .br
278 \fBvoid wcursyncup(WINDOW *win);\fR
279 .br
280 \fBvoid wsyncdown(WINDOW *win);\fR
281 .br
282 .SH ÀâÌÀ
283 .\"O Calling \fBnewwin\fR creates and returns a pointer to a new window with the
284 .\"O given number of lines and columns.  The upper left-hand corner of the window is
285 .\"O at line \fIbegin\fR_\fIy\fR, column \fIbegin\fR_\fIx\fR.  If either
286 .\"O \fInlines\fR or \fIncols\fR is zero, they default to \fBLINES -\fR
287 .\"O \fIbegin\fR_\fIy\fR and \fBCOLS -\fR \fIbegin\fR_\fIx\fR.  A new full-screen
288 .\"O window is created by calling \fBnewwin(0,0,0,0)\fR.
289 .\"O 
290 \fBnewwin\fR´Ø¿ô¤ò¸Æ¤Ö¤È¡¢Í¿¤¨¤é¤ì¤¿Îó¿ô¤È¹Ô¿ô¤ò»ý¤Ä¿·µ¬¥¦¥£¥ó¥É¥¦¤òÀ¸À®¤·¡¢
291 ¤½¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
292 ¥¦¥£¥ó¥É¥¦¤Îº¸¾å¤Î¹Ô¤¬ \fIbegin\fR_\fIy\fR, Î󤬠\fIbegin\fR_\fIx\fR¤Ç¤¢¤ë¡£
293 ¤â¤·¡¢¡ÀfInlines\fR Ëô¤Ï \fIncols\fR ¤Î¤É¤Á¤é¤«¤¬¥¼¥í¤Ê¤é¤Ð¡¢
294 ¥Ç¥Õ¥©¥ë¥È¤È¤·¤Æ \fBLINES -\fR \fIbegin\fR_\fIy\fR µÚ¤Ó \fBCOLS -\fIbegin\fR_\fIx\fR
295  ¤¬ÀßÄꤵ¤ì¤ë¡£
296 ¿·µ¬¤Î¥Õ¥ë¥¹¥¯¥ê¡¼¥ó¥¦¥£¥ó¥É¥¦¤Ï¡ÀfBnewwin(0,0,0,0)\fR¤ò¸Æ¤Ö¤³¤È¤ÇÀ¸À®¤µ¤ì¤ë¡£
297
298 .\"O Calling \fBdelwin\fR deletes the named window, freeing all memory
299 .\"O associated with it (it does not actually erase the window's screen
300 .\"O image).  Subwindows must be deleted before the main window can be
301 .\"O deleted.
302 .\"O 
303 \fBdelwin\fR´Ø¿ô¤Ï´û¸¤Î¥¦¥£¥ó¥É¥¦¤òºï½ü¤·¡¢´ØÏ¢¤Å¤±¤é¤ì¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥á¥â¥ê¤ò³«Êü¤¹¤ë¡£
304 ¥á¥¤¥ó¥¦¥£¥ó¥É¥¦¤Îºï½üÁ°¤Ë¥µ¥Ö¥¦¥£¥ó¥É¥¦¤¬ºï½ü¤µ¤ì¤Í¤Ð¤Ê¤é¤Ê¤¤¡£
305
306 .\"O Calling \fBmvwin\fR moves the window so that the upper left-hand
307 .\"O corner is at position (\fIx\fR, \fIy\fR).  If the move would cause the
308 .\"O window to be off the screen, it is an error and the window is not
309 .\"O moved.  Moving subwindows is allowed, but should be avoided.
310 .\"O 
311 \fBmvwin\fR´Ø¿ô¤Ï¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤·¡¢¤½¤Î·ë²Ìº¸¾å¤¬ (\fIx\fR, \fIy\fR)¤È¤Ê¤ë¡£
312 ¤â¤·¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤¹¤³¤È¤Ç¥¹¥¯¥ê¡¼¥ó¤«¤é¤Ï¤ß¤À¤·¤Æ¤·¤Þ¤¦¤Ê¤é¤Ð¥¨¥é¡¼¤È¤Ê¤ê¡¢
313 ¥¦¥£¥ó¥É¥¦¤ÏÆ°¤«¤µ¤ì¤Ê¤¤¡£
314 ¥µ¥Ö¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤¹»ö¤Ïµö¤µ¤ì¤Æ¤Ï¤¤¤ë¤¬¡¢Èò¤±¤ë¤Ù¤­¤Ç¤¢¤ë¡£
315
316 .\"O Calling \fBsubwin\fR creates and returns a pointer to a new window
317 .\"O with the given number of lines, \fInlines\fR, and columns,
318 .\"O \fIncols\fR.  The window is at position (\fIbegin\fR_\fIy\fR,
319 .\"O \fIbegin\fR_\fIx\fR) on the screen.  (This position is relative to the
320 .\"O screen, and not to the window \fIorig\fR.)  The window is made in the
321 .\"O middle of the window \fIorig\fR, so that changes made to one window
322 .\"O will affect both windows.  The subwindow shares memory with the window
323 .\"O \fIorig\fR.  When using this routine, it is necessary to call
324 .\"O \fBtouchwin\fR or \fBtouchline\fR on \fIorig\fR before calling
325 .\"O \fBwrefresh\fR on the subwindow.
326 .\"O 
327 \fBsubwin\fR´Ø¿ô¤ÏÍ¿¤¨¤é¤ì¤¿¹Ô¿ô \fInlines\fR¡¢Îó¿ô \fIncols\fR
328  ¤Î¿·µ¬¥¦¥£¥ó¥É¥¦¤òÀ¸À®¤·¡¢¤½¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
329 ¥¦¥£¥ó¥É¥¦¤Ï¥¹¥¯¥ê¡¼¥ó¾å(\fIbegin\fR_\fIy\fR, \fIbegin\fR_\fIx\fR)¤Ë¤¢¤ë¡£
330 (¤³¤Î°ÌÃ֤ϥ¹¥¯¥ê¡¼¥ó¤ËÂФ·¤ÆÁêÂÐŪ¤Ê¤â¤Î¤Ç¡¢ \fIorig\fR ¥¦¥£¥ó¥É¥¦¤ËÂФ·¤Æ¤Ç¤Ï¤Ê¤¤¡£)
331 ¥µ¥Ö¥¦¥£¥ó¥É¥¦¤Ï \fIorig\fR ¥¦¥£¥ó¥É¥¦¤ÎÃæ¿´¤ÇÀ¸À®¤µ¤ì¡¢°ìÊý¤Î¥¦¥£¥ó¥É¥¦¤Ø¤ÎÊѹ¹¤Ï
332 ÁÐÊý¤Î¥¦¥£¥ó¥É¥¦¤ËÂФ·¤Æ±Æ¶Á¤òµÚ¤Ü¤¹¡£
333 ¥µ¥Ö¥¦¥£¥ó¥É¥¦¤Ï \fIorig\fR ¥¦¥£¥ó¥É¥¦¤È¥á¥â¥ê¤ò¶¦Í­¤¹¤ë¡£
334 ¤³¤Î´Ø¿ô¤ò»ÈÍѤ¹¤ëºÝ¤Ë¤Ï¡¢¥µ¥Ö¥¦¥£¥ó¥É¥¦¾å¤Ç \fBwrefresh\fR ¤ò¸Æ¤ÖÁ°¤Ë
335  \fIorig\fR¾å¤Ç \fBtouchwin\fR Ëô¤Ï \fBtouchline\fR ¤ò¸Æ¤ÖɬÍפ¬¤¢¤ë¡£
336  
337 .\"O Calling \fBderwin\fR is the same as calling \fBsubwin,\fR except that
338 .\"O \fIbegin\fR_\fIy\fR and \fIbegin\fR_\fIx\fR are relative to the origin
339 .\"O of the window \fIorig\fR rather than the screen.  There is no
340 .\"O difference between the subwindows and the derived windows.
341 .\"O 
342 \fBderwin\fR´Ø¿ô¤Ï \fBsubwin\fR ¤ò¸Æ¤Ö¤Î¤ÈƱÍͤǤ¢¤ê¡¢¡ÀfIbegin\fR_\fIy\fR ¤È
343  \fIbegin\fR_\fIx\fR ¤¬¥¹¥¯¥ê¡¼¥ó¤Ç¤Ï¤Ê¤¯ \fIorig\fR
344  ¥¦¥£¥ó¥É¥¦¤ËÁêÂÐŪ¤Ç¤¢¤ëÅÀ¤ò½ü¤¤¤Æ¤Ï¡¢¥µ¥Ö¥¦¥£¥ó¥É¥¦¤È¤Î°ã¤¤¤Ï¤Ê¤¤¡£
345
346 .\"O Calling \fBmvderwin\fR moves a derived window (or subwindow)
347 .\"O inside its parent window.  The screen-relative parameters of the
348 .\"O window are not changed.  This routine is used to display different
349 .\"O parts of the parent window at the same physical position on the
350 .\"O screen.
351 .\"O 
352 \fBmvderwin\fR´Ø¿ô¤Ï¿Æ¥¦¥£¥ó¥É¥¦ÆâÉô¤ÇÆÀ¤é¤ì¤ë¥¦¥£¥ó¥É¥¦(¤¢¤ë¤¤¤Ï¥µ¥Ö¥¦¥£¥ó¥É¥¦)
353 ¤òÆ°¤«¤¹¡£
354 ¥¹¥¯¥ê¡¼¥ó¤ËÂФ·¤ÆÁêÂÐŪ¤Ç¤¢¤ë¥¦¥£¥ó¥É¥¦¤Î°ú¿ô¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
355 ¤³¤Î´Ø¿ô¤Ï¥¹¥¯¥ê¡¼¥ó¾å¤ÇʪÍýŪ¤ËƱ¤¸°ÌÃ֤ˤ¢¤ë¿Æ¥¦¥£¥ó¥É¥¦¤È¤Îº¹°ÛÅÀ¤òÉÁ²è¤¹¤ë
356 ¤Î¤Ë»ÈÍѤµ¤ì¤ë¡£
357
358 .\"O Calling \fBdupwin\fR creates an exact duplicate of the window \fIwin\fR.
359 .\"O 
360 \fBdupwin\fR´Ø¿ô¤Ï \fIwin\fR ¥¦¥£¥ó¥É¥¦¤ÎÀµ³Î¤ÊÊ£À½¤òÀ¸À®¤¹¤ë¡£
361
362 .\"O Calling \fBwsyncup\fR touches all locations in ancestors of \fIwin\fR that are
363 .\"O changed in \fIwin\fR.  If \fBsyncok\fR is called with second argument
364 .\"O \fBTRUE\fR then \fBwsyncup\fR is called automatically whenever there is a
365 .\"O change in the window.
366 .\"O 
367 \fBwsyncup\fR´Ø¿ô¤Ï \fIwin\fR ¤ÇÊѹ¹¤¬¤Ê¤µ¤ì¤¿ \fIwin\fR ¤ÎÁÄÀè¤Î¤¢¤é¤æ¤ë°ÌÃÖ¾ðÊó
368 ¤ò¹¹¿·¤¹¤ë¡£
369 ¤â¤· \fBsyncok\fR ¤¬ÂèÆó°ú¿ô¤È¤·¤Æ \fBTRUE\fR ¤È¤È¤â¤Ë¸Æ¤Ó½Ð¤µ¤ì¤¿¤é¤Ê¤é¤Ð¡¢
370 ¥¦¥£¥ó¥É¥¦¤ËÊѹ¹¤¬¤¢¤ë¤È¤­¤Ï¤¤¤Ä¤Ç¤â \fBwsyncup\fR ¤¬¼«Æ°Åª¤Ë¸Æ¤Ð¤ì¤ë¡£
371  
372 .\"O The \fBwsyncdown\fR routine touches each location in \fIwin\fR that has been
373 .\"O touched in any of its ancestor windows.  This routine is called by
374 .\"O \fBwrefresh\fR, so it should almost never be necessary to call it manually.
375 .\"O 
376 .\"O The routine \fBwcursyncup\fR updates the current cursor position of all the
377 .\"O ancestors of the window to reflect the current cursor position of the
378 .\"O window.
379 \fBwsyncdown\fR´Ø¿ô¤ÏÁÄÀè¤Î¥¦¥£¥ó¥É¥¦¤ÎÊѹ¹ÅÀ¤ò \fIwin\fR ¤Ø¤ÈÈ¿±Ç¤¹¤ë¡£
380 ¤³¤Î´Ø¿ô¤Ï \fBwrefresh\fR ¤Ë¤è¤ê¸Æ¤Ó½Ð¤µ¤ì¡¢¼êÆ°¤Ç¸Æ¤Ó½Ð¤¹É¬ÍפϤʤ¤¤Ï¤º¤À¡£
381  
382 \fBwcursyncup\fR´Ø¿ô¤Ï¥¦¥£¥ó¥É¥¦¤Î¥«¡¼¥½¥ë°ÌÃÖ¤òÈ¿±Ç¤¹¤ë¤¿¤á¤Ë¡¢
383 Á´¤Æ¤ÎÁÄÀè¤Î¥¦¥£¥ó¥É¥¦¤Î¥«¡¼¥½¥ë°ÌÃÖ¤ò¹¹¿·¤¹¤ë¡£
384
385 .SH ÊÖ¤êÃÍ
386 .\"O Routines that return an integer return the integer \fBERR\fR upon failure and
387 .\"O \fBOK\fR (SVr4 only specifies "an integer value other than \fBERR\fR") upon
388 .\"O successful completion.
389 .\"O 
390 À°¿ô¤òÊÖ¤¹´Ø¿ô¤ÏÀ°¿ôÃÍ \fBERR\fR ¤ò¼ºÇÔ»þÅÀ¤ÇÊÖ¤·¡¢¡ÀfBOK\fR (SVr4 ¤Ç¤Ï
391  "\fBERR\fR°Ê³°¤ÎÀ°¿ôÃÍ"¤ÈÌÀµ­¡£)¤òÀ®¸ù»þ¤ËÊÖ¤¹¡£
392
393 .\"O If many small changes are made to the window, the \fBwsyncup\fR option could
394 .\"O degrade performance.
395 .\"O 
396 .\"O Note that \fBsyncok\fR may be a macro.
397 .SH Ãí°Õ
398 ¥¦¥£¥ó¥É¥¦¤Ø¿¤¯¤Îº³ºÙ¤ÊÊѹ¹¤¬¤Ê¤µ¤ì¤¿¾ì¹ç¡¢¡ÀfBwsyncup\fR
399  ¥ª¥×¥·¥ç¥ó¤Ï¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤ÎÄã²¼¤ò¤â¤¿¤é¤¹¡£
400  
401 \fBsyncok\fR ¤¬¥Þ¥¯¥í¤«¤âÃΤì¤Ê¤¤¤³¤È¤ËÃí°Õ¡£
402 .SH ¥Ð¥°
403 .\"O The subwindow functions (\fIsubwin\fR, \fIderwin\fR, \fImvderwin\fR,
404 .\"O \fBwsyncup\fR, \fBwsyncdown\fR, \fBwcursyncup\fR, \fBsyncok\fR) are flaky,
405 .\"O incompletely implemented, and not well tested.
406 .\"O 
407 ¥µ¥Ö¥¦¥£¥ó¥É¥¦´Ø¿ô(\fIsubwin\fR, \fIderwin\fR, \fImvderwin\fR,
408 \fBwsyncup\fR, \fBwsyncdown\fR, \fBwcursyncup\fR, \fBsyncok\fR)¤Ï
409 ÉÔ´°Á´¤Ê¼ÂÁõ¤Ç¤¢¤ê¡¢½¼Ê¬¤Ë¥Æ¥¹¥È¤¬¤Ê¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
410  
411 .\"O The System V curses documentation is very unclear about what \fBwsyncup\fR
412 .\"O and \fBwsyncdown\fR actually do.  It seems to imply that they are only 
413 .\"O supposed to touch exactly those lines that are affected by ancestor changes.
414 .\"O The language here, and the behavior of the \fBcurses\fR implementation,
415 .\"O is patterned on the XPG4 curses standard.  The weaker XPG4 spec may result
416 .\"O in slower updates.
417 System V curses Ê¸½ñ¤Ï \fBwsyncup\fR µÚ¤Ó \fBwsyncdown\fR
418  ¤Î¼ÂºÝ¤Î¿¶¤ëÉñ¤¤¤Ë¤Ä¤¤¤ÆÈó¾ï¤ËÉÔÌÀÎƤǤ¢¤ë¡£
419 ¤³¤ì¤é¤Ïñ¤ËÁÄÀè¤ÎÊѹ¹¤Ë¤è¤ê±Æ¶Á¤ò¼õ¤±¤ë¹Ô¤ò¹¹¿·¤¹¤ë¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤è¤¦¤Ç¤¢¤ë¡£
420 ¤³¤³¤Ç¤Î¸À¸ì¡¢¤ª¤è¤Ó \fBcurses\fR ¤Î¼ÂÁõ¤Î¿¶¤ëÉñ¤¤¤Ï XPG4 curses É¸½à¤Ë½àµò¤·¤Æ¤¤¤ë¡£
421 XPG4 »ÅÍͤÏÃÙ¡¹¤È¤·¤Ê¤¬¤é¤â¹¹¿·¤µ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
422 .SH °Ü¿¢À­
423 .\"O The XSI Curses standard, Issue 4 describes these functions.
424 XSI Curses ½àµò¡¢Âè4¾Ï¤Ç¤³¤ì¤é¤Î´Ø¿ô¤Ë¤Ä¤¤¤Æ´û½Ò¤¬¤¢¤ë¡£
425
426 .SH ´ØÏ¢¹àÌÜ
427 \fBcurses\fR(3X), \fBcurs_refresh\fR(3X), \fBcurs_touch\fR(3X)
428 .\"#
429 .\"# The following sets edit modes for GNU EMACS
430 .\"# Local Variables:
431 .\"# mode:nroff
432 .\"# fill-column:79
433 .\"# End:
434 .\"
435 .\" Japanese Version Copyright (c) 2002 HAYASHI Kentaro
436 .\"         all rights reserved.
437 .\"