attroff.3cur
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3CUR 代码 · 共 215 行
3CUR
215 行
.TH attroff 3cur .SH Nameattroff, attron, attrset, standend, standout, wstandend, wstandout, wattroff,wattron, wattrset \- attribute manipulation.SH Syntax.br.B#include <cursesX.h>.PP.br.Bint attroff(attrs).br.Bint attrs;.PP.Bint wattroff(win, attrs).br.BWINDOW \(**win;.br.Bint attrs;.PP.Bint attron(attrs).br.Bint attrs;.PP.Bint wattron(win, attrs).br.BWINDOW \(**win;.br.Bint attrs;.PP.Bint attrset(attrs).br.Bint attrs;.PP.Bint wattrset(win, attrs).br.BWINDOW \(**win;.br.Bint attrs;.PP.Bint standend(\|).PP.Bwstandend(win).br.BWINDOW \(**win;.PP.Bint standout(\|).PP.Bint wstandout(win).br.BWINDOW \(**win;.SH Description.NXR "attroff macro".NXR "attron macro".NXR "attrset macro".NXR "standend subroutine".NXR "standout subroutine".NXR "wstandend subroutine".NXR "wstandout subroutine".NXR "wattroff subroutine".NXR "wattron subroutine".NXR "wattrset subroutine"These routines manipulate the current attributes of a window..PPThe routine.PN attroffturns off the named attributes (\c.PN attrs)of the default windowwithout turning any other attributes on or off..PPThe routine.PN attronturns on the named attributes of the default windowwithout affecting any other attributes..PPThe routine.PN attrsetsets the current attributes of the default window tothe named attributes.PN attrs ,which is of the type.PN chtype , and is defined in the .PN <cursesX.h> header file..PPThe routine.PN standoutswitches on the best highlighting mode available on the terminalfor the default window and it isfunctionally the same as.PN attron(A_STANDOUT)..PPThe routine.PN standendswitches off all highlighting associated with the default window.It is functionally the same as .PN attrset (0),in that it turns off all attributes..PPThe routine.PN wattroffswitches off the named attributes,.PN attrs ,for the specified window.Other attributes are not changed..PPThe routine.PN wattronturns on the named attributes of the specified windowwithout affecting any others..PPThe routine.PN wattrsetsets the current attributes of the specified window to.PN attrs ..PPThe routine.PN wstandoutswitches on the best highlighting mode available on the terminalfor the specified window.Functionally it is the same as.PN wattron(A_STANDOUT)..PPThe routine.PN wstandendswitches off all highlighting associated with the specified window.Functionally itis the same as .PN wattrset (0);that is, it turns off all attributes..SH Attributes.PPAttributes can be any combination ofA_STANDOUT,A_REVERSE,A_BOLD,A_DIM,A_BLINK andA_UNDERLINE.These constants are defined in the .PN <cursesX.h>header file.They are also described in the .IGuide to X/Open Curses Screen-Handling..RAttributescan be combined with the C language | .PN (or)operator..PPThe current attributes of a window are applied to all characters thatare written into the window with .PN addch or.PN waddch .Attributes are properties of the character, and move with the characterthrough any scrolling and insert/delete line/character operations.Within the restrictions set by the terminal hardwarethey will bedisplayed as the graphic rendition of characters put on the screen..PPThe routines.PN attroff, .PN attronand .PN attrsetare macros..SH Return ValuesThe.PN attroff ,.PN wattroff ,.PN attron ,.PN wattron ,.PN attrset ,.PN wattrset ,.PN standend ,.PN wstandend ,.PN standout ,and.PN wstandout functions return OK on success and ERR on error..SH See Alsoaddch(3cur) .br.I "Guide to X/Open Curses Screen-Handling"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?