addch.3cur

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

3CUR
155
字号
.TH addch 3cur.SH Nameaddch, waddch, mvaddch, mvwaddch \- add character to window.SH Syntax.B#include <cursesX.h>.PP.br.Bint addch(ch).br.Bchtype ch;.PP.Bint waddch(win, ch).br.BWINDOW \(**win;.br.Bchtype ch;.PP.Bint mvaddch(y, x, ch).br.Bint y, x;.br.Bchtype ch;.PP.Bint mvwaddch(win, y, x, ch).br.BWINDOW \(**win;.br.Bint y, x;.br.Bchtype ch;.SH Description.NXR "addch macro".NXR "waddch subroutine".NXR "mvaddch macro".NXR "mvwaddch macro".NXA "addch macro" "putchar subroutine"The routine .PN addch inserts the character.PN chinto the default window at the current cursor position andthe window cursor is advanced. The character is of the type.PN chtypewhich is defined in the.PN <cursesX.h>header file, as containing both data and attributes..PPThe routine .PN waddch inserts the character.PN chinto the specified window at the current cursor position.The cursor position is advanced..PPThe routine .PN mvaddchmoves the cursor to the specified (y, x) position and  inserts the character.PN chinto the default window.The cursor position is advanced after the character has been inserted..PPThe routine .PN mvwaddch moves the cursor to the specified (y, x) position and  inserts the character.PN chinto the specified window.The cursor position is advanced after the character has been inserted..PPAll these routines aresimilar to .PN putchar .The following information applies to all the routines..PPIf the cursor moves on to the right margin, an automatic newline is performed.If .PN scrollok is enabled,and a character is added to the bottom right corner of the screen,the scrolling region will be scrolled up one line.If scrolling is not allowed, ERR will be returned..PPIf .PN chis a tab, newline, or backspace, the cursor will be moved appropriatelywithin the window.If .PN chis a newline, the .PN clrtoeol routine is called before the cursor is moved to the beginning of the next line.If newline mapping is off, the cursor will be moved to the next line, but the x coordinate will be unchanged.If .PN chis a tab the cursor is moved to the next tab position within the window.If .PN chis another control character, it will be drawn in the ^X notation.Calling the .PN inch routine after adding a control character returns the representation of the control character,not the control character..PPVideo attributes can be combined with a character by or-ingtheminto the parameter.This will result in these attributes being set.The intent here is that text, including attributes, can becopied from one place to another using .PN inch and .PN addch .For further information, see .MS standout 3cur ..PPThe .PN addch, .PN mvaddch, and .PN mvwaddchroutines are macros..SH Return ValuesThe.PN addch ,.PN waddch ,.PN mvaddch ,and.PN mvwaddchfunctions return OK on success and ERR on error..SH See Alsoclrtoeol(3cur), inch(3cur), scrollok(3cur), standout(3cur), putchar(3s)

⌨️ 快捷键说明

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