wnoutrefresh.3cur

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

3CUR
72
字号
.TH wnoutrefresh 3cur .SH Namewnoutrefresh, doupdate \- do efficient refresh.SH Syntax.br.B#include <cursesX.h>.PP.br.Bint wnoutrefresh(win).br.BWINDOW \(**win;.PP.Bint doupdate(\|).SH Description.NXR "wnoutrefresh subroutine".NXR "doupdate subroutine".NXA "wrefresh subroutine" "wnoutrefresh subroutine"The.PN wnoutrefreshroutineupdates screens more efficiently than using the.PN wrefresh routine by itself.The .PN wnoutrefreshroutinecopies the named window to a data structure referred to asthe virtual screen (stdscr).The virtual screen contains what a program intends to displayon the physical terminal screen.The routine.PN doupdate compares the virtual screen to the physical screen and then does the actual update.These two routines allow multiple updates with more efficiency than .PN wrefresh ..PPThe routine .PN wrefresh works by calling .PN wnoutrefresh ,and then calling .PN doupdate .If a programmer wants to output several windows at once, a series of calls to .PN wrefresh will result in alternating calls to .PN wnoutrefreshand .PN doupdate ,causing several bursts of output to the screen.If .PN wnoutrefreshis called first for each window, .PN doupdate only needs to be called once, resulting in only one burst of output.This usually results in fewer totalcharacters being transmitted and less CPU time used..SH Return ValuesThe.PN doupdateand.PN wnoutrefreshfunctions return OK on success and ERR on error..SH See Alsowrefresh(3cur)

⌨️ 快捷键说明

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