prefresh.3cur

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3CUR 代码 · 共 81 行

3CUR
81
字号
.TH prefresh 3cur .SH Nameprefresh, pnoutrefresh \- refresh pad.SH Syntax.br.B#include <cursesX.h>.PP.br.Bint prefresh(pad, pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol).br.BWINDOW \(**pad;.br.Bint pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol;.PP.Bint pnoutrefresh(pad, pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol).br.BWINDOW \(**pad;.br.Bint pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol;.SH Description.NXR "prefresh subroutine".NXR "pnoutrefresh subroutine"The.PN prefresh routinecopies the specified pad to the physical terminal screen.It takes account of what is already displayed on the screen to optimize cursor movement..PPThe .PN pnoutrefreshroutine copies the named pad to the virtual screen.  It then compares the virtual screen with the physical screen andperforms the actual update..PPThese routines are analogous to the routines.PN wrefresh and .PN wnoutrefresh except that pads, instead of windows, are involved.Additional parameters are also needed to indicate what part of the pad andscreen are involved.  The upper left cornerof the part of the pad to be displayed is specified by.PN pminrowand .PN pmincol .The co-ordinates.PN sminrow ,.PN smincol ,.PN smaxrow ,and .PN smaxcolspecify the edges of the screen rectangle that will contain the selected part of the pad..PPThe lower right corner of the pad rectangle to be displayed iscalculated from the screen co-ordinates.This ensures that the screen rectangle and the pad rectangle are the same size..PPBoth rectangles must be entirely contained within their respective structures..SH Return ValuesThe.PN prefreshand.PN pnoutrefreshfunctions return OK on success and ERR on error..SH See Alsownoutrefresh(3cur), wrefresh(3cur)

⌨️ 快捷键说明

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