1 .\"***************************************************************************
2 .\" Copyright (c) 1998,2000 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: curs_window.3x,v 1.9 2000/07/01 20:08:37 tom Exp $
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 ¥¦¥£¥ó¥É¥¦¤òÀ¸À®¡£
36 \fB#include <curses.h>\fR
38 \fBWINDOW *newwin(int nlines, int ncols, int begin_y,\fR \fBint begin_x);\fR
40 \fBint delwin(WINDOW *win);\fR
42 \fBint mvwin(WINDOW *win, int y, int x);\fR
44 \fBWINDOW *subwin(WINDOW *orig, int nlines, int ncols,\fR \fBint begin_y, int
47 \fBWINDOW *derwin(WINDOW *orig, int nlines, int ncols,\fR \fBint begin_y, int
50 \fBint mvderwin(WINDOW *win, int par_y, int par_x);\fR
52 \fBWINDOW *dupwin(WINDOW *win);\fR
54 \fBvoid wsyncup(WINDOW *win);\fR
56 \fBint syncok(WINDOW *win, bool bf);\fR
58 \fBvoid wcursyncup(WINDOW *win);\fR
60 \fBvoid wsyncdown(WINDOW *win);\fR
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.
70 \fBnewwin\fR´Ø¿ô¤ò¸Æ¤Ö¤È¡¢Í¿¤¨¤é¤ì¤¿Îó¿ô¤È¹Ô¿ô¤ò»ý¤Ä¿·µ¬¥¦¥£¥ó¥É¥¦¤òÀ¸À®¤·¡¢
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
76 ¿·µ¬¤Î¥Õ¥ë¥¹¥¯¥ê¡¼¥ó¥¦¥£¥ó¥É¥¦¤Ï\fBnewwin(0,0,0,0)\fR¤ò¸Æ¤Ö¤³¤È¤ÇÀ¸À®¤µ¤ì¤ë¡£
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
83 \fBdelwin\fR´Ø¿ô¤Ï´û¸¤Î¥¦¥£¥ó¥É¥¦¤òºï½ü¤·¡¢´ØÏ¢¤Å¤±¤é¤ì¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥á¥â¥ê¤ò³«Êü¤¹¤ë¡£
84 ¥á¥¤¥ó¥¦¥£¥ó¥É¥¦¤Îºï½üÁ°¤Ë¥µ¥Ö¥¦¥£¥ó¥É¥¦¤¬ºï½ü¤µ¤ì¤Í¤Ð¤Ê¤é¤Ê¤¤¡£
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.
91 \fBmvwin\fR´Ø¿ô¤Ï¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤·¡¢¤½¤Î·ë²Ìº¸¾å¤¬ (\fIx\fR, \fIy\fR)¤È¤Ê¤ë¡£
92 ¤â¤·¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤¹¤³¤È¤Ç¥¹¥¯¥ê¡¼¥ó¤«¤é¤Ï¤ß¤À¤·¤Æ¤·¤Þ¤¦¤Ê¤é¤Ð¥¨¥é¡¼¤È¤Ê¤ê¡¢
93 ¥¦¥£¥ó¥É¥¦¤ÏÆ°¤«¤µ¤ì¤Ê¤¤¡£
94 ¥µ¥Ö¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤¹»ö¤Ïµö¤µ¤ì¤Æ¤Ï¤¤¤ë¤¬¡¢Èò¤±¤ë¤Ù¤¤Ç¤¢¤ë¡£
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.
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 ¤ò¸Æ¤ÖɬÍפ¬¤¢¤ë¡£
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.
122 \fBderwin\fR´Ø¿ô¤Ï \fBsubwin\fR ¤ò¸Æ¤Ö¤Î¤ÈƱÍͤǤ¢¤ê¡¢\fIbegin\fR_\fIy\fR ¤È
123 \fIbegin\fR_\fIx\fR ¤¬¥¹¥¯¥ê¡¼¥ó¤Ç¤Ï¤Ê¤¯ \fIorig\fR
124 ¥¦¥£¥ó¥É¥¦¤ËÁêÂÐŪ¤Ç¤¢¤ëÅÀ¤ò½ü¤¤¤Æ¤Ï¡¢¥µ¥Ö¥¦¥£¥ó¥É¥¦¤È¤Î°ã¤¤¤Ï¤Ê¤¤¡£
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
132 \fBmvderwin\fR´Ø¿ô¤Ï¿Æ¥¦¥£¥ó¥É¥¦ÆâÉô¤ÇÆÀ¤é¤ì¤ë¥¦¥£¥ó¥É¥¦(¤¢¤ë¤¤¤Ï¥µ¥Ö¥¦¥£¥ó¥É¥¦)¤òÆ°¤«¤¹¡£
133 ¥¹¥¯¥ê¡¼¥ó¤ËÂФ·¤ÆÁêÂÐŪ¤Ç¤¢¤ë¥¦¥£¥ó¥É¥¦¤Î°ú¿ô¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
134 ¤³¤Î´Ø¿ô¤Ï¥¹¥¯¥ê¡¼¥ó¾å¤ÇʪÍýŪ¤ËƱ¤¸°ÌÃ֤ˤ¢¤ë¿Æ¥¦¥£¥ó¥É¥¦¤È¤Îº¹°ÛÅÀ¤òÉÁ²è¤¹¤ë
137 .\"O Calling \fBdupwin\fR creates an exact duplicate of the window \fIwin\fR.
139 \fBdupwin\fR´Ø¿ô¤Ï \fIwin\fR ¥¦¥£¥ó¥É¥¦¤ÎÀµ³Î¤ÊÊ£À½¤òÀ¸À®¤¹¤ë¡£
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.
146 \fBwsyncup\fR´Ø¿ô¤Ï \fIwin\fR ¤ÇÊѹ¹¤¬¤Ê¤µ¤ì¤¿ \fIwin\fR ¤ÎÁÄÀè¤Î¤¢¤é¤æ¤ë°ÌÃÖ¾ðÊó
148 ¤â¤· \fBsyncok\fR ¤¬ÂèÆó°ú¿ô¤È¤·¤Æ \fBTRUE\fR ¤È¤È¤â¤Ë¸Æ¤Ó½Ð¤µ¤ì¤¿¤é¤Ê¤é¤Ð¡¢
149 ¥¦¥£¥ó¥É¥¦¤ËÊѹ¹¤¬¤¢¤ë¤È¤¤Ï¤¤¤Ä¤Ç¤â \fBwsyncup\fR ¤¬¼«Æ°Åª¤Ë¸Æ¤Ð¤ì¤ë¡£
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.
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
158 \fBwsyncdown\fR´Ø¿ô¤ÏÁÄÀè¤Î¥¦¥£¥ó¥É¥¦¤ÎÊѹ¹ÅÀ¤ò \fIwin\fR ¤Ø¤ÈÈ¿±Ç¤¹¤ë¡£
159 ¤³¤Î´Ø¿ô¤Ï \fBwrefresh\fR ¤Ë¤è¤ê¸Æ¤Ó½Ð¤µ¤ì¡¢¼êÆ°¤Ç¸Æ¤Ó½Ð¤¹É¬ÍפϤʤ¤¤Ï¤º¤À¡£
161 \fBwcursyncup\fR´Ø¿ô¤Ï¥¦¥£¥ó¥É¥¦¤Î¥«¡¼¥½¥ë°ÌÃÖ¤òÈ¿±Ç¤¹¤ë¤¿¤á¤Ë¡¢
162 Á´¤Æ¤ÎÁÄÀè¤Î¥¦¥£¥ó¥É¥¦¤Î¥«¡¼¥½¥ë°ÌÃÖ¤ò¹¹¿·¤¹¤ë¡£
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.
169 À°¿ô¤òÊÖ¤¹´Ø¿ô¤ÏÀ°¿ôÃÍ \fBERR\fR ¤ò¼ºÇÔ»þÅÀ¤ÇÊÖ¤·¡¢\fBOK\fR (SVr4 ¤Ç¤Ï
170 "\fBERR\fR°Ê³°¤ÎÀ°¿ôÃÍ"¤ÈÌÀµ¡£)¤òÀ®¸ù»þ¤ËÊÖ¤¹¡£
172 .\"O If many small changes are made to the window, the \fBwsyncup\fR option could
173 .\"O degrade performance.
175 .\"O Note that \fBsyncok\fR may be a macro.
177 ¥¦¥£¥ó¥É¥¦¤Ø¿¤¯¤Îº³ºÙ¤ÊÊѹ¹¤¬¤Ê¤µ¤ì¤¿¾ì¹ç¡¢\fBwsyncup\fR ¥ª¥×¥·¥ç¥ó¤Ï¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤ÎÄã²¼¤ò¤â¤¿¤é¤¹¡£
179 \fBsyncok\fR ¤¬¥Þ¥¯¥í¤«¤âÃΤì¤Ê¤¤¤³¤È¤ËÃí°Õ¡£
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.
185 ¥µ¥Ö¥¦¥£¥ó¥É¥¦´Ø¿ô(\fIsubwin\fR, \fIderwin\fR, \fImvderwin\fR,
186 \fBwsyncup\fR, \fBwsyncdown\fR, \fBwcursyncup\fR, \fBsyncok\fR)¤Ï
187 ÉÔ´°Á´¤Ê¼ÂÁõ¤Ç¤¢¤ê¡¢½¼Ê¬¤Ë¥Æ¥¹¥È¤¬¤Ê¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
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 »ÅÍͤÏÃÙ¡¹¤È¤·¤Ê¤¬¤é¤â¹¹¿·¤µ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
201 .\"O The XSI Curses standard, Issue 4 describes these functions.
202 XSI Curses ½àµò¡¢Âè4¾Ï¤Ç¤³¤ì¤é¤Î´Ø¿ô¤Ë¤Ä¤¤¤Æ´û½Ò¤¬¤¢¤ë¡£
205 \fBcurses\fR(3X), \fBcurs_refresh\fR(3X), \fBcurs_touch\fR(3X)
207 .\"# The following sets edit modes for GNU EMACS
208 .\"# Local Variables:
217 mail: linjian@bj.wakwak.com
218 name: HAYASHI Kentaro
221 .\"***************************************************************************
222 .\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
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: *
232 .\" The above copyright notice and this permission notice shall be included *
233 .\" in all copies or substantial portions of the Software. *
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. *
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 *
247 .\"***************************************************************************
249 .\" $Id: curs_window.3x,v 1.9 2000/07/01 20:08:37 tom Exp $
250 .TH curs_window 3X ""
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 ¥¦¥£¥ó¥É¥¦¤òÀ¸À®¡£
256 \fB#include <curses.h>\fR
258 \fBWINDOW *newwin(int nlines, int ncols, int begin_y,\fR \fBint begin_x);\fR
260 \fBint delwin(WINDOW *win);\fR
262 \fBint mvwin(WINDOW *win, int y, int x);\fR
264 \fBWINDOW *subwin(WINDOW *orig, int nlines, int ncols,\fR \fBint begin_y, int
267 \fBWINDOW *derwin(WINDOW *orig, int nlines, int ncols,\fR \fBint begin_y, int
270 \fBint mvderwin(WINDOW *win, int par_y, int par_x);\fR
272 \fBWINDOW *dupwin(WINDOW *win);\fR
274 \fBvoid wsyncup(WINDOW *win);\fR
276 \fBint syncok(WINDOW *win, bool bf);\fR
278 \fBvoid wcursyncup(WINDOW *win);\fR
280 \fBvoid wsyncdown(WINDOW *win);\fR
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.
290 \fBnewwin\fR´Ø¿ô¤ò¸Æ¤Ö¤È¡¢Í¿¤¨¤é¤ì¤¿Îó¿ô¤È¹Ô¿ô¤ò»ý¤Ä¿·µ¬¥¦¥£¥ó¥É¥¦¤òÀ¸À®¤·¡¢
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
296 ¿·µ¬¤Î¥Õ¥ë¥¹¥¯¥ê¡¼¥ó¥¦¥£¥ó¥É¥¦¤Ï¡ÀfBnewwin(0,0,0,0)\fR¤ò¸Æ¤Ö¤³¤È¤ÇÀ¸À®¤µ¤ì¤ë¡£
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
303 \fBdelwin\fR´Ø¿ô¤Ï´û¸¤Î¥¦¥£¥ó¥É¥¦¤òºï½ü¤·¡¢´ØÏ¢¤Å¤±¤é¤ì¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥á¥â¥ê¤ò³«Êü¤¹¤ë¡£
304 ¥á¥¤¥ó¥¦¥£¥ó¥É¥¦¤Îºï½üÁ°¤Ë¥µ¥Ö¥¦¥£¥ó¥É¥¦¤¬ºï½ü¤µ¤ì¤Í¤Ð¤Ê¤é¤Ê¤¤¡£
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.
311 \fBmvwin\fR´Ø¿ô¤Ï¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤·¡¢¤½¤Î·ë²Ìº¸¾å¤¬ (\fIx\fR, \fIy\fR)¤È¤Ê¤ë¡£
312 ¤â¤·¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤¹¤³¤È¤Ç¥¹¥¯¥ê¡¼¥ó¤«¤é¤Ï¤ß¤À¤·¤Æ¤·¤Þ¤¦¤Ê¤é¤Ð¥¨¥é¡¼¤È¤Ê¤ê¡¢
313 ¥¦¥£¥ó¥É¥¦¤ÏÆ°¤«¤µ¤ì¤Ê¤¤¡£
314 ¥µ¥Ö¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤¹»ö¤Ïµö¤µ¤ì¤Æ¤Ï¤¤¤ë¤¬¡¢Èò¤±¤ë¤Ù¤¤Ç¤¢¤ë¡£
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.
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 ¤ò¸Æ¤ÖɬÍפ¬¤¢¤ë¡£
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.
342 \fBderwin\fR´Ø¿ô¤Ï \fBsubwin\fR ¤ò¸Æ¤Ö¤Î¤ÈƱÍͤǤ¢¤ê¡¢¡ÀfIbegin\fR_\fIy\fR ¤È
343 \fIbegin\fR_\fIx\fR ¤¬¥¹¥¯¥ê¡¼¥ó¤Ç¤Ï¤Ê¤¯ \fIorig\fR
344 ¥¦¥£¥ó¥É¥¦¤ËÁêÂÐŪ¤Ç¤¢¤ëÅÀ¤ò½ü¤¤¤Æ¤Ï¡¢¥µ¥Ö¥¦¥£¥ó¥É¥¦¤È¤Î°ã¤¤¤Ï¤Ê¤¤¡£
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
352 \fBmvderwin\fR´Ø¿ô¤Ï¿Æ¥¦¥£¥ó¥É¥¦ÆâÉô¤ÇÆÀ¤é¤ì¤ë¥¦¥£¥ó¥É¥¦(¤¢¤ë¤¤¤Ï¥µ¥Ö¥¦¥£¥ó¥É¥¦)
354 ¥¹¥¯¥ê¡¼¥ó¤ËÂФ·¤ÆÁêÂÐŪ¤Ç¤¢¤ë¥¦¥£¥ó¥É¥¦¤Î°ú¿ô¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
355 ¤³¤Î´Ø¿ô¤Ï¥¹¥¯¥ê¡¼¥ó¾å¤ÇʪÍýŪ¤ËƱ¤¸°ÌÃ֤ˤ¢¤ë¿Æ¥¦¥£¥ó¥É¥¦¤È¤Îº¹°ÛÅÀ¤òÉÁ²è¤¹¤ë
358 .\"O Calling \fBdupwin\fR creates an exact duplicate of the window \fIwin\fR.
360 \fBdupwin\fR´Ø¿ô¤Ï \fIwin\fR ¥¦¥£¥ó¥É¥¦¤ÎÀµ³Î¤ÊÊ£À½¤òÀ¸À®¤¹¤ë¡£
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.
367 \fBwsyncup\fR´Ø¿ô¤Ï \fIwin\fR ¤ÇÊѹ¹¤¬¤Ê¤µ¤ì¤¿ \fIwin\fR ¤ÎÁÄÀè¤Î¤¢¤é¤æ¤ë°ÌÃÖ¾ðÊó
369 ¤â¤· \fBsyncok\fR ¤¬ÂèÆó°ú¿ô¤È¤·¤Æ \fBTRUE\fR ¤È¤È¤â¤Ë¸Æ¤Ó½Ð¤µ¤ì¤¿¤é¤Ê¤é¤Ð¡¢
370 ¥¦¥£¥ó¥É¥¦¤ËÊѹ¹¤¬¤¢¤ë¤È¤¤Ï¤¤¤Ä¤Ç¤â \fBwsyncup\fR ¤¬¼«Æ°Åª¤Ë¸Æ¤Ð¤ì¤ë¡£
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.
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
379 \fBwsyncdown\fR´Ø¿ô¤ÏÁÄÀè¤Î¥¦¥£¥ó¥É¥¦¤ÎÊѹ¹ÅÀ¤ò \fIwin\fR ¤Ø¤ÈÈ¿±Ç¤¹¤ë¡£
380 ¤³¤Î´Ø¿ô¤Ï \fBwrefresh\fR ¤Ë¤è¤ê¸Æ¤Ó½Ð¤µ¤ì¡¢¼êÆ°¤Ç¸Æ¤Ó½Ð¤¹É¬ÍפϤʤ¤¤Ï¤º¤À¡£
382 \fBwcursyncup\fR´Ø¿ô¤Ï¥¦¥£¥ó¥É¥¦¤Î¥«¡¼¥½¥ë°ÌÃÖ¤òÈ¿±Ç¤¹¤ë¤¿¤á¤Ë¡¢
383 Á´¤Æ¤ÎÁÄÀè¤Î¥¦¥£¥ó¥É¥¦¤Î¥«¡¼¥½¥ë°ÌÃÖ¤ò¹¹¿·¤¹¤ë¡£
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.
390 À°¿ô¤òÊÖ¤¹´Ø¿ô¤ÏÀ°¿ôÃÍ \fBERR\fR ¤ò¼ºÇÔ»þÅÀ¤ÇÊÖ¤·¡¢¡ÀfBOK\fR (SVr4 ¤Ç¤Ï
391 "\fBERR\fR°Ê³°¤ÎÀ°¿ôÃÍ"¤ÈÌÀµ¡£)¤òÀ®¸ù»þ¤ËÊÖ¤¹¡£
393 .\"O If many small changes are made to the window, the \fBwsyncup\fR option could
394 .\"O degrade performance.
396 .\"O Note that \fBsyncok\fR may be a macro.
398 ¥¦¥£¥ó¥É¥¦¤Ø¿¤¯¤Îº³ºÙ¤ÊÊѹ¹¤¬¤Ê¤µ¤ì¤¿¾ì¹ç¡¢¡ÀfBwsyncup\fR
399 ¥ª¥×¥·¥ç¥ó¤Ï¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤ÎÄã²¼¤ò¤â¤¿¤é¤¹¡£
401 \fBsyncok\fR ¤¬¥Þ¥¯¥í¤«¤âÃΤì¤Ê¤¤¤³¤È¤ËÃí°Õ¡£
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.
407 ¥µ¥Ö¥¦¥£¥ó¥É¥¦´Ø¿ô(\fIsubwin\fR, \fIderwin\fR, \fImvderwin\fR,
408 \fBwsyncup\fR, \fBwsyncdown\fR, \fBwcursyncup\fR, \fBsyncok\fR)¤Ï
409 ÉÔ´°Á´¤Ê¼ÂÁõ¤Ç¤¢¤ê¡¢½¼Ê¬¤Ë¥Æ¥¹¥È¤¬¤Ê¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
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 »ÅÍͤÏÃÙ¡¹¤È¤·¤Ê¤¬¤é¤â¹¹¿·¤µ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
423 .\"O The XSI Curses standard, Issue 4 describes these functions.
424 XSI Curses ½àµò¡¢Âè4¾Ï¤Ç¤³¤ì¤é¤Î´Ø¿ô¤Ë¤Ä¤¤¤Æ´û½Ò¤¬¤¢¤ë¡£
427 \fBcurses\fR(3X), \fBcurs_refresh\fR(3X), \fBcurs_touch\fR(3X)
429 .\"# The following sets edit modes for GNU EMACS
430 .\"# Local Variables:
435 .\" Japanese Version Copyright (c) 2002 HAYASHI Kentaro
436 .\" all rights reserved.