⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appen.b

📁 早期freebsd实现
💻 B
字号:
.\" Copyright (c) 1980, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"	@(#)appen.B	8.1 (Berkeley) 6/8/93.\".ie t .oh '\*(Ln Appendix B''PS1:19-%'.eh 'PS1:19-%''\*(Ln Appendix B'.el .he ''\fIAppendix B\fR''.bp.(x.ti 0.b "Appendix B".)x.nr $1 0.sh 1 "The WINDOW structure".ppThe WINDOW structure is defined as follows:.(l I.so win_st.gr.)l.pp.Vn \*_cury \\*.(f\**All variables not normally accessed directly by the userare named with an initial.Bq \*_to avoid conflicts with the user's variables..)fand.Vn \*_curxare the current \*y for the window.New characters added to the screenare added at this point..Vn \*_maxyand.Vn \*_maxxare the maximum values allowed for.Vn \*_cury\*,\*_curx ). (.Vn \*_begyand.Vn \*_begxare the starting \*y on the terminal for the window,.i i.e. ,the window's home..Vn \*_cury ,.Vn \*_curx ,.Vn \*_maxy ,and.Vn \*_maxxare measured relative to.Vn \*_begy\*,\*_begx ), (not the terminal's home..pp.Vn \*_cleartells if a clear-screen sequence is to be generatedon the next.Fn refreshcall.This is only meaningful for screens.The initial clear-screen for the first.Fn refreshcall is generated by initially setting clear to be TRUE for.Vn curscr ,which always generates a clear-screen if set,irrelevant of the dimensions of the window involved..Vn \*_leaveis TRUE if the current \*y and the cursorare to be left after the last character changed on the terminal,or not moved if there is no change..Vn \*_scrollis TRUEif scrolling is allowed..pp.Vn \*_yis a pointer to an array of lines which describe the terminal.Thus:.(l\*_y[i].)l.lpis a pointer to the.Vn i thline, and.(l\*_y[i][j].)l.lpis the.Vn j thcharacter on the.Vn i thline..Vn \*_flagscan have one or more valuesor'd into it..ppFor windows that are not subwindows,.Vn \*_origisNULL .For subwindows,it points to the main windowto which the window is subsidiary..Vn \*_nextpis a pointer in a circularly linked listof all the windows which are subwindows of the same main window,plus the main window itself..pp.Vn \*_firstchand.Vn \*_lastchare.Fn malloc edarrays which contain the index of thefirst and last changed characterson the line..Vn \*_ch\*_offis the x offset for the windowin the.Vn \*_firstchand.Vn \*_lastcharrays for this window.For main windows,this is always 0;for subwindowsit is the difference between the starting point of the main windowand that of the subindow,so that change markers can be set relative to the main window.This makes these markers global in scope..ppAll subwindows share the appropriate portions of.Vn _y ,.Vn _firstch ,.Vn _lastch ,and.Vn _insdelwith their main window..pp.b \*_ENDLINEsays that the end of the line for this windowis also the end of a screen..b \*_FULLWINsays that this window is a screen..b \*_SCROLLWINindicates that the last character of this screenis at the lower right-hand corner of the terminal;.i i.e. ,if a character was put there,the terminal would scroll..b \*_FULLLINEsays that the width of a line is the same as the width of the terminal.If.b \*_FLUSHis set,it says that.Fn fflush "" "" stdoutshould be called at the end of each.Fn refresh.b \*_STANDOUTsays that all characters added to the screenare in standout mode..b \*_INSDELis reserved for future use,and is set by.Fn idlok ..Vn \*_firstchis set to.b \*_NOCHANGEfor lines on which there has been no changesince the last.Fn refresh .

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -