Merge branch 'wmcbrine:master' into HYH

This commit is contained in:
何亚红 2025-03-22 00:10:32 +08:00 committed by GitHub
commit 0ef70bd790
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
56 changed files with 1596 additions and 1375 deletions

View File

@ -9,26 +9,28 @@
Define before inclusion (only those needed):
XCURSES if building / built for X11
PDC_RGB if you want to use RGB color definitions
(Red = 1, Green = 2, Blue = 4) instead of BGR
PDC_WIDE if building / built with wide-character support
PDC_DLL_BUILD if building / built as a Windows DLL
PDC_NCMOUSE to use the ncurses mouse API instead
of PDCurses' traditional mouse API
Macro | Meaning / value
:-------------|-------------------------------------------------
XCURSES | if building / built for X11
PDC_RGB | RGB color (Red = 1, Green = 2, Blue = 4) vs. BGR
PDC_WIDE | if building / built with wide-character support
PDC_DLL_BUILD | if building / built as a Windows DLL
PDC_NCMOUSE | use ncurses mouse API vs. traditional PDCurses
Defined by this header:
PDCURSES PDCurses-only features are available
PDC_BUILD API build version
PDC_VER_MAJOR major version number
PDC_VER_MINOR minor version number
PDC_VERDOT version string
Macro | Meaning / value
:-------------|-------------------------------------------------
PDCURSES | PDCurses-only features are available
PDC_BUILD | API build version
PDC_VER_MAJOR | major version number
PDC_VER_MINOR | minor version number
PDC_VERDOT | version string
**man-end****************************************************************/
#define PDCURSES 1
#define PDC_BUILD 3907
#define PDC_BUILD 3908
#define PDC_VER_MAJOR 3
#define PDC_VER_MINOR 9
#define PDC_VERDOT "3.9"
@ -420,10 +422,9 @@ Text Attributes
PDCurses uses a 32-bit integer for its chtype:
+--------------------------------------------------------------------+
|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13|..| 2| 1| 0|
+--------------------------------------------------------------------+
color pair | modifiers | character eg 'a'
color pair | modifiers | character eg 'a'
-----------------------|-----------------------|--------------------
31 30 29 28 27 26 25 24|23 22 21 20 19 18 17 16|15 14 13 .. 2 1 0
There are 256 color pairs (8 bits), 8 bits for modifiers, and 16 bits
for character data. The modifiers are bold, underline, right-line,

File diff suppressed because it is too large Load Diff

View File

@ -75,12 +75,14 @@ types that are available to the application.
The following data types are declared:
WINDOW * pointer to screen representation
SCREEN * pointer to terminal descriptor
bool boolean data type
chtype representation of a character in a window
cchar_t the wide-character equivalent of chtype
attr_t for WA_-style attributes
Type | Description
:------------|:------------------------------------
WINDOW * | pointer to screen representation
SCREEN * | pointer to terminal descriptor
bool | boolean data type
chtype | representation of a character in a window
cchar_t | the wide-character equivalent of chtype
attr_t | for WA_-style attributes
The actual WINDOW and SCREEN objects used to store information are
created by the corresponding routines and a pointer to them is provided.
@ -91,17 +93,19 @@ All manipulation is through that pointer.
The following variables are defined:
LINES number of lines on terminal screen
COLS number of columns on terminal screen
stdscr pointer to the default screen window
curscr pointer to the current screen image
SP pointer to the current SCREEN struct
Mouse_status status of the mouse
COLORS number of colors available
COLOR_PAIRS number of color pairs available
TABSIZE size of one TAB block
acs_map[] alternate character set map
ttytype[] terminal name/description
Variable | Description
:------------|:------------------------------------
LINES | number of lines on terminal screen
COLS | number of columns on terminal screen
stdscr | pointer to the default screen window
curscr | pointer to the current screen image
SP | pointer to the current SCREEN struct
Mouse_status | status of the mouse
COLORS | number of colors available
COLOR_PAIRS | number of color pairs available
TABSIZE | size of one TAB block
acs_map[] | alternate character set map
ttytype[] | terminal name/description
### Constants
@ -110,11 +114,13 @@ The following constants are defined:
#### General
FALSE boolean false value
TRUE boolean true value
NULL zero pointer value
ERR value returned on error condition
OK value returned on successful completion
Constant | Description
:------------|:------------------------------------
FALSE | boolean false value
TRUE | boolean true value
NULL | zero pointer value
ERR | value returned on error condition
OK | value returned on successful completion
#### Video Attributes
@ -122,40 +128,43 @@ Normally, attributes are a property of the character.
For chtype:
A_ALTCHARSET use the alternate character set
A_BLINK bright background or blinking
A_BOLD bright foreground or bold
A_DIM half bright -- no effect in PDCurses
A_INVIS invisible -- no effect in PDCurses
A_ITALIC italic
A_LEFT line along the left edge
A_PROTECT protected -- no effect in PDCurses
A_REVERSE reverse video
A_RIGHT line along the right edge
A_STANDOUT terminal's best highlighting mode
A_UNDERLINE underline
A_ATTRIBUTES bit-mask to extract attributes
A_CHARTEXT bit-mask to extract a character
A_COLOR bit-mask to extract a color-pair
Attribute | Description
:------------|:------------------------------------
A_ALTCHARSET | use the alternate character set
A_BLINK | bright background or blinking
A_BOLD | bright foreground or bold
A_DIM | half bright -- no effect in PDCurses
A_INVIS | invisible -- no effect in PDCurses
A_ITALIC | italic
A_LEFT | line along the left edge
A_PROTECT | protected -- no effect in PDCurses
A_REVERSE | reverse video
A_RIGHT | line along the right edge
A_STANDOUT | terminal's best highlighting mode
A_UNDERLINE | underline
A_ATTRIBUTES | bit-mask to extract attributes
A_CHARTEXT | bit-mask to extract a character
A_COLOR | bit-mask to extract a color-pair
Not all attributes will work on all terminals. A_ITALIC is not standard,
but is shared with ncurses.
For attr_t:
WA_ALTCHARSET same as A_ALTCHARSET
WA_BLINK same as A_BLINK
WA_BOLD same as A_BOLD
WA_DIM same as A_DIM
WA_INVIS same as A_INVIS
WA_ITALIC same as A_ITALIC
WA_LEFT same as A_LEFT
WA_PROTECT same as A_PROTECT
WA_REVERSE same as A_REVERSE
WA_RIGHT same as A_RIGHT
WA_STANDOUT same as A_STANDOUT
WA_UNDERLINE same as A_UNDERLINE
Attribute | Description
:------------|:-------------------------------------
WA_ALTCHARSET| same as A_ALTCHARSET
WA_BLINK | same as A_BLINK
WA_BOLD | same as A_BOLD
WA_DIM | same as A_DIM
WA_INVIS | same as A_INVIS
WA_ITALIC | same as A_ITALIC
WA_LEFT | same as A_LEFT
WA_PROTECT | same as A_PROTECT
WA_REVERSE | same as A_REVERSE
WA_RIGHT | same as A_RIGHT
WA_STANDOUT | same as A_STANDOUT
WA_UNDERLINE | same as A_UNDERLINE
The following are also defined, for compatibility, but currently have no
effect in PDCurses: A_HORIZONTAL, A_LOW, A_TOP, A_VERTICAL and their
@ -168,64 +177,73 @@ to represent graphics characters on different terminals.
VT100-compatible symbols -- box characters:
ACS_ULCORNER upper left box corner
ACS_LLCORNER lower left box corner
ACS_URCORNER upper right box corner
ACS_LRCORNER lower right box corner
ACS_RTEE right "T"
ACS_LTEE left "T"
ACS_BTEE bottom "T"
ACS_TTEE top "T"
ACS_HLINE horizontal line
ACS_VLINE vertical line
ACS_PLUS plus sign, cross, or four-corner piece
Name | Description
:------------|:-------------------------------------
ACS_ULCORNER | upper left box corner
ACS_LLCORNER | lower left box corner
ACS_URCORNER | upper right box corner
ACS_LRCORNER | lower right box corner
ACS_RTEE | right "T"
ACS_LTEE | left "T"
ACS_BTEE | bottom "T"
ACS_TTEE | top "T"
ACS_HLINE | horizontal line
ACS_VLINE | vertical line
ACS_PLUS | plus sign, cross, or four-corner piece
VT100-compatible symbols -- other:
ACS_S1 scan line 1
ACS_S9 scan line 9
ACS_DIAMOND diamond
ACS_CKBOARD checkerboard -- 50% grey
ACS_DEGREE degree symbol
ACS_PLMINUS plus/minus sign
ACS_BULLET bullet
Name | Description
:------------|:-------------------------------------
ACS_S1 | scan line 1
ACS_S9 | scan line 9
ACS_DIAMOND | diamond
ACS_CKBOARD | checkerboard -- 50% grey
ACS_DEGREE | degree symbol
ACS_PLMINUS | plus/minus sign
ACS_BULLET | bullet
Teletype 5410v1 symbols -- these are defined in SysV curses, but are not
well-supported by most terminals. Stick to VT100 characters for optimum
portability:
ACS_LARROW left arrow
ACS_RARROW right arrow
ACS_DARROW down arrow
ACS_UARROW up arrow
ACS_BOARD checkerboard -- lighter (less dense) than
ACS_CKBOARD
ACS_LANTERN lantern symbol
ACS_BLOCK solid block
Name | Description
:------------|:-------------------------------------
ACS_LARROW | left arrow
ACS_RARROW | right arrow
ACS_DARROW | down arrow
ACS_UARROW | up arrow
ACS_BOARD | checkerboard -- less dense than ACS_CKBOARD
ACS_LANTERN | lantern symbol
ACS_BLOCK | solid block
That goes double for these -- undocumented SysV symbols. Don't use them:
ACS_S3 scan line 3
ACS_S7 scan line 7
ACS_LEQUAL less than or equal
ACS_GEQUAL greater than or equal
ACS_PI pi
ACS_NEQUAL not equal
ACS_STERLING pounds sterling symbol
Name | Description
:------------|:-------------------------------------
ACS_S3 | scan line 3
ACS_S7 | scan line 7
ACS_LEQUAL | less than or equal
ACS_GEQUAL | greater than or equal
ACS_PI | pi
ACS_NEQUAL | not equal
ACS_STERLING | pounds sterling symbol
Box character aliases:
ACS_BSSB same as ACS_ULCORNER
ACS_SSBB same as ACS_LLCORNER
ACS_BBSS same as ACS_URCORNER
ACS_SBBS same as ACS_LRCORNER
ACS_SBSS same as ACS_RTEE
ACS_SSSB same as ACS_LTEE
ACS_SSBS same as ACS_BTEE
ACS_BSSS same as ACS_TTEE
ACS_BSBS same as ACS_HLINE
ACS_SBSB same as ACS_VLINE
ACS_SSSS same as ACS_PLUS
Name | Description
:------------|:-------------------------------------
ACS_BSSB | same as ACS_ULCORNER
ACS_SSBB | same as ACS_LLCORNER
ACS_BBSS | same as ACS_URCORNER
ACS_SBBS | same as ACS_LRCORNER
ACS_SBSS | same as ACS_RTEE
ACS_SSSB | same as ACS_LTEE
ACS_SSBS | same as ACS_BTEE
ACS_BSSS | same as ACS_TTEE
ACS_BSBS | same as ACS_HLINE
ACS_SBSB | same as ACS_VLINE
ACS_SSSS | same as ACS_PLUS
For cchar_t and wide-character functions, WACS_ equivalents are also
defined.
@ -234,17 +252,19 @@ defined.
For use with init_pair(), color_set(), etc.:
COLOR_BLACK
COLOR_BLUE
COLOR_GREEN
COLOR_CYAN
COLOR_RED
COLOR_MAGENTA
COLOR_YELLOW
COLOR_WHITE
Name | BGR value | RGB value
:------------|:---------:|:---------:
COLOR_BLACK | 0 | 0
COLOR_BLUE | 1 | 4
COLOR_GREEN | 2 | 2
COLOR_CYAN | 3 | 6
COLOR_RED | 4 | 1
COLOR_MAGENTA| 5 | 5
COLOR_YELLOW | 6 | 3
COLOR_WHITE | 7 | 7
Use these instead of numeric values. The definition of the colors
depends on the implementation of curses.
Use the symbolic names instead of numeric values. The definition of the
colors depends on the implementation of curses.
### Input Values
@ -253,97 +273,98 @@ The following constants might be returned by getch() if keypad() has
been enabled. Note that not all of these may be supported on a
particular terminal:
KEY_BREAK break key
KEY_DOWN the four arrow keys
KEY_UP
KEY_LEFT
KEY_RIGHT
KEY_HOME home key (upward+left arrow)
KEY_BACKSPACE backspace
KEY_F0 function keys; space for 64 keys is reserved
KEY_F(n) (KEY_F0+(n))
KEY_DL delete line
KEY_IL insert line
KEY_DC delete character
KEY_IC insert character
KEY_EIC exit insert character mode
KEY_CLEAR clear screen
KEY_EOS clear to end of screen
KEY_EOL clear to end of line
KEY_SF scroll 1 line forwards
KEY_SR scroll 1 line backwards (reverse)
KEY_NPAGE next page
KEY_PPAGE previous page
KEY_STAB set tab
KEY_CTAB clear tab
KEY_CATAB clear all tabs
KEY_ENTER enter or send
KEY_SRESET soft (partial) reset
KEY_RESET reset or hard reset
KEY_PRINT print or copy
KEY_LL home down or bottom (lower left)
KEY_A1 upper left of virtual keypad
KEY_A3 upper right of virtual keypad
KEY_B2 center of virtual keypad
KEY_C1 lower left of virtual keypad
KEY_C3 lower right of virtual keypad
KEY_BTAB Back tab key
KEY_BEG Beginning key
KEY_CANCEL Cancel key
KEY_CLOSE Close key
KEY_COMMAND Cmd (command) key
KEY_COPY Copy key
KEY_CREATE Create key
KEY_END End key
KEY_EXIT Exit key
KEY_FIND Find key
KEY_HELP Help key
KEY_MARK Mark key
KEY_MESSAGE Message key
KEY_MOVE Move key
KEY_NEXT Next object key
KEY_OPEN Open key
KEY_OPTIONS Options key
KEY_PREVIOUS Previous object key
KEY_REDO Redo key
KEY_REFERENCE Reference key
KEY_REFRESH Refresh key
KEY_REPLACE Replace key
KEY_RESTART Restart key
KEY_RESUME Resume key
KEY_SAVE Save key
KEY_SBEG Shifted beginning key
KEY_SCANCEL Shifted cancel key
KEY_SCOMMAND Shifted command key
KEY_SCOPY Shifted copy key
KEY_SCREATE Shifted create key
KEY_SDC Shifted delete char key
KEY_SDL Shifted delete line key
KEY_SELECT Select key
KEY_SEND Shifted end key
KEY_SEOL Shifted clear line key
KEY_SEXIT Shifted exit key
KEY_SFIND Shifted find key
KEY_SHELP Shifted help key
KEY_SHOME Shifted home key
KEY_SIC Shifted input key
KEY_SLEFT Shifted left arrow key
KEY_SMESSAGE Shifted message key
KEY_SMOVE Shifted move key
KEY_SNEXT Shifted next key
KEY_SOPTIONS Shifted options key
KEY_SPREVIOUS Shifted prev key
KEY_SPRINT Shifted print key
KEY_SREDO Shifted redo key
KEY_SREPLACE Shifted replace key
KEY_SRIGHT Shifted right arrow
KEY_SRSUME Shifted resume key
KEY_SSAVE Shifted save key
KEY_SSUSPEND Shifted suspend key
KEY_SUNDO Shifted undo key
KEY_SUSPEND Suspend key
KEY_UNDO Undo key
Name | Description
:------------|:-------------------------------------
KEY_BREAK | break key
KEY_DOWN | the four arrow keys
KEY_UP |
KEY_LEFT |
KEY_RIGHT |
KEY_HOME | home key (upward+left arrow)
KEY_BACKSPACE| backspace
KEY_F0 | function keys; space for 64 keys is reserved
KEY_F(n) | (KEY_F0+(n))
KEY_DL | delete line
KEY_IL | insert line
KEY_DC | delete character
KEY_IC | insert character
KEY_EIC | exit insert character mode
KEY_CLEAR | clear screen
KEY_EOS | clear to end of screen
KEY_EOL | clear to end of line
KEY_SF | scroll 1 line forwards
KEY_SR | scroll 1 line backwards (reverse)
KEY_NPAGE | next page
KEY_PPAGE | previous page
KEY_STAB | set tab
KEY_CTAB | clear tab
KEY_CATAB | clear all tabs
KEY_ENTER | enter or send
KEY_SRESET | soft (partial) reset
KEY_RESET | reset or hard reset
KEY_PRINT | print or copy
KEY_LL | home down or bottom (lower left)
KEY_A1 | upper left of virtual keypad
KEY_A3 | upper right of virtual keypad
KEY_B2 | center of virtual keypad
KEY_C1 | lower left of virtual keypad
KEY_C3 | lower right of virtual keypad
KEY_BTAB | Back tab key
KEY_BEG | Beginning key
KEY_CANCEL | Cancel key
KEY_CLOSE | Close key
KEY_COMMAND | Cmd (command) key
KEY_COPY | Copy key
KEY_CREATE | Create key
KEY_END | End key
KEY_EXIT | Exit key
KEY_FIND | Find key
KEY_HELP | Help key
KEY_MARK | Mark key
KEY_MESSAGE | Message key
KEY_MOVE | Move key
KEY_NEXT | Next object key
KEY_OPEN | Open key
KEY_OPTIONS | Options key
KEY_PREVIOUS | Previous object key
KEY_REDO | Redo key
KEY_REFERENCE| Reference key
KEY_REFRESH | Refresh key
KEY_REPLACE | Replace key
KEY_RESTART | Restart key
KEY_RESUME | Resume key
KEY_SAVE | Save key
KEY_SBEG | Shifted beginning key
KEY_SCANCEL | Shifted cancel key
KEY_SCOMMAND | Shifted command key
KEY_SCOPY | Shifted copy key
KEY_SCREATE | Shifted create key
KEY_SDC | Shifted delete char key
KEY_SDL | Shifted delete line key
KEY_SELECT | Select key
KEY_SEND | Shifted end key
KEY_SEOL | Shifted clear line key
KEY_SEXIT | Shifted exit key
KEY_SFIND | Shifted find key
KEY_SHELP | Shifted help key
KEY_SHOME | Shifted home key
KEY_SIC | Shifted input key
KEY_SLEFT | Shifted left arrow key
KEY_SMESSAGE | Shifted message key
KEY_SMOVE | Shifted move key
KEY_SNEXT | Shifted next key
KEY_SOPTIONS | Shifted options key
KEY_SPREVIOUS| Shifted prev key
KEY_SPRINT | Shifted print key
KEY_SREDO | Shifted redo key
KEY_SREPLACE | Shifted replace key
KEY_SRIGHT | Shifted right arrow
KEY_SRSUME | Shifted resume key
KEY_SSAVE | Shifted save key
KEY_SSUSPEND | Shifted suspend key
KEY_SUNDO | Shifted undo key
KEY_SUSPEND | Suspend key
KEY_UNDO | Undo key
The virtual keypad is arranged like this:

View File

@ -24,14 +24,13 @@ clipboard
memory returned, via PDC_freeclipboard(). The length of the clipboard
contents is returned in the length argument.
PDC_setclipboard copies the supplied text into the system's
PDC_setclipboard() copies the supplied text into the system's
clipboard, emptying the clipboard prior to the copy.
PDC_clearclipboard() clears the internal clipboard.
### Return Values
indicator of success/failure of call.
PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
@ -39,11 +38,13 @@ clipboard
PDC_CLIP_ACCESS_ERROR no clipboard support
### Portability
X/Open ncurses NetBSD
PDC_getclipboard - - -
PDC_setclipboard - - -
PDC_freeclipboard - - -
PDC_clearclipboard - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_getclipboard | - | - | -
PDC_setclipboard | - | - | -
PDC_freeclipboard | - | - | -
PDC_clearclipboard | - | - | -
**man-end****************************************************************/

View File

@ -32,9 +32,12 @@ pdcsetsc
platforms.
### Portability
X/Open ncurses NetBSD
PDC_set_blink - - -
PDC_set_title - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_set_blink | - | - | -
PDC_set_bold | - | - | -
PDC_set_title | - | - | -
**man-end****************************************************************/

View File

@ -22,14 +22,13 @@ clipboard
memory returned, via PDC_freeclipboard(). The length of the clipboard
contents is returned in the length argument.
PDC_setclipboard copies the supplied text into the system's
PDC_setclipboard() copies the supplied text into the system's
clipboard, emptying the clipboard prior to the copy.
PDC_clearclipboard() clears the internal clipboard.
### Return Values
indicator of success/failure of call.
PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
@ -37,11 +36,13 @@ clipboard
PDC_CLIP_ACCESS_ERROR no clipboard support
### Portability
X/Open ncurses NetBSD
PDC_getclipboard - - -
PDC_setclipboard - - -
PDC_freeclipboard - - -
PDC_clearclipboard - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_getclipboard | - | - | -
PDC_setclipboard | - | - | -
PDC_freeclipboard | - | - | -
PDC_clearclipboard | - | - | -
**man-end****************************************************************/

View File

@ -31,9 +31,12 @@ pdcsetsc
platforms.
### Portability
X/Open ncurses NetBSD
PDC_set_blink - - -
PDC_set_title - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_set_blink | - | - | -
PDC_set_bold | - | - | -
PDC_set_title | - | - | -
**man-end****************************************************************/

View File

@ -90,23 +90,25 @@ addch
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
addch Y Y Y
waddch Y Y Y
mvaddch Y Y Y
mvwaddch Y Y Y
echochar Y Y Y
wechochar Y Y Y
add_wch Y Y Y
wadd_wch Y Y Y
mvadd_wch Y Y Y
mvwadd_wch Y Y Y
echo_wchar Y Y Y
wecho_wchar Y Y Y
addrawch - - -
waddrawch - - -
mvaddrawch - - -
mvwaddrawch - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
addch | Y | Y | Y
waddch | Y | Y | Y
mvaddch | Y | Y | Y
mvwaddch | Y | Y | Y
echochar | Y | Y | Y
wechochar | Y | Y | Y
add_wch | Y | Y | Y
wadd_wch | Y | Y | Y
mvadd_wch | Y | Y | Y
mvwadd_wch | Y | Y | Y
echo_wchar | Y | Y | Y
wecho_wchar | Y | Y | Y
addrawch | - | - | -
waddrawch | - | - | -
mvaddrawch | - | - | -
mvwaddrawch | - | - | -
**man-end****************************************************************/

View File

@ -45,23 +45,25 @@ addchstr
All functions return OK or ERR.
### Portability
X/Open ncurses NetBSD
addchstr Y Y Y
waddchstr Y Y Y
mvaddchstr Y Y Y
mvwaddchstr Y Y Y
addchnstr Y Y Y
waddchnstr Y Y Y
mvaddchnstr Y Y Y
mvwaddchnstr Y Y Y
add_wchstr Y Y Y
wadd_wchstr Y Y Y
mvadd_wchstr Y Y Y
mvwadd_wchstr Y Y Y
add_wchnstr Y Y Y
wadd_wchnstr Y Y Y
mvadd_wchnstr Y Y Y
mvwadd_wchnstr Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
addchstr | Y | Y | Y
waddchstr | Y | Y | Y
mvaddchstr | Y | Y | Y
mvwaddchstr | Y | Y | Y
addchnstr | Y | Y | Y
waddchnstr | Y | Y | Y
mvaddchnstr | Y | Y | Y
mvwaddchnstr | Y | Y | Y
add_wchstr | Y | Y | Y
wadd_wchstr | Y | Y | Y
mvadd_wchstr | Y | Y | Y
mvwadd_wchstr | Y | Y | Y
add_wchnstr | Y | Y | Y
wadd_wchnstr | Y | Y | Y
mvadd_wchnstr | Y | Y | Y
mvwadd_wchnstr | Y | Y | Y
**man-end****************************************************************/

View File

@ -43,23 +43,25 @@ addstr
All functions return OK or ERR.
### Portability
X/Open ncurses NetBSD
addstr Y Y Y
waddstr Y Y Y
mvaddstr Y Y Y
mvwaddstr Y Y Y
addnstr Y Y Y
waddnstr Y Y Y
mvaddnstr Y Y Y
mvwaddnstr Y Y Y
addwstr Y Y Y
waddwstr Y Y Y
mvaddwstr Y Y Y
mvwaddwstr Y Y Y
addnwstr Y Y Y
waddnwstr Y Y Y
mvaddnwstr Y Y Y
mvwaddnwstr Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
addstr | Y | Y | Y
waddstr | Y | Y | Y
mvaddstr | Y | Y | Y
mvwaddstr | Y | Y | Y
addnstr | Y | Y | Y
waddnstr | Y | Y | Y
mvaddnstr | Y | Y | Y
mvwaddnstr | Y | Y | Y
addwstr | Y | Y | Y
waddwstr | Y | Y | Y
mvaddwstr | Y | Y | Y
mvwaddwstr | Y | Y | Y
addnwstr | Y | Y | Y
waddnwstr | Y | Y | Y
mvaddnwstr | Y | Y | Y
mvwaddnwstr | Y | Y | Y
**man-end****************************************************************/

View File

@ -96,36 +96,38 @@ attr
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
attroff Y Y Y
wattroff Y Y Y
attron Y Y Y
wattron Y Y Y
attrset Y Y Y
wattrset Y Y Y
standend Y Y Y
wstandend Y Y Y
standout Y Y Y
wstandout Y Y Y
color_set Y Y Y
wcolor_set Y Y Y
attr_get Y Y Y
wattr_get Y Y Y
attr_on Y Y Y
wattr_on Y Y Y
attr_off Y Y Y
wattr_off Y Y Y
attr_set Y Y Y
wattr_set Y Y Y
chgat Y Y Y
wchgat Y Y Y
mvchgat Y Y Y
mvwchgat Y Y Y
getattrs - Y Y
underend - - Y
wunderend - - Y
underscore - - Y
wunderscore - - Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
attroff | Y | Y | Y
wattroff | Y | Y | Y
attron | Y | Y | Y
wattron | Y | Y | Y
attrset | Y | Y | Y
wattrset | Y | Y | Y
standend | Y | Y | Y
wstandend | Y | Y | Y
standout | Y | Y | Y
wstandout | Y | Y | Y
color_set | Y | Y | Y
wcolor_set | Y | Y | Y
attr_get | Y | Y | Y
wattr_get | Y | Y | Y
attr_on | Y | Y | Y
wattr_on | Y | Y | Y
attr_off | Y | Y | Y
wattr_off | Y | Y | Y
attr_set | Y | Y | Y
wattr_set | Y | Y | Y
chgat | Y | Y | Y
wchgat | Y | Y | Y
mvchgat | Y | Y | Y
mvwchgat | Y | Y | Y
getattrs | - | Y | Y
underend | - | - | Y
wunderend | - | - | Y
underscore | - | - | Y
wunderscore | - | - | Y
**man-end****************************************************************/

View File

@ -26,9 +26,11 @@ beep
These functions return ERR if called before initscr(), otherwise OK.
### Portability
X/Open ncurses NetBSD
beep Y Y Y
flash Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
beep | Y | Y | Y
flash | Y | Y | Y
**man-end****************************************************************/

View File

@ -48,18 +48,20 @@ bkgd
case they return ERR.
### Portability
X/Open ncurses NetBSD
bkgd Y Y Y
bkgdset Y Y Y
getbkgd Y Y Y
wbkgd Y Y Y
wbkgdset Y Y Y
bkgrnd Y Y Y
bkgrndset Y Y Y
getbkgrnd Y Y Y
wbkgrnd Y Y Y
wbkgrndset Y Y Y
wgetbkgrnd Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
bkgd | Y | Y | Y
bkgdset | Y | Y | Y
getbkgd | Y | Y | Y
wbkgd | Y | Y | Y
wbkgdset | Y | Y | Y
bkgrnd | Y | Y | Y
bkgrndset | Y | Y | Y
getbkgrnd | Y | Y | Y
wbkgrnd | Y | Y | Y
wbkgrndset | Y | Y | Y
wgetbkgrnd | Y | Y | Y
**man-end****************************************************************/

View File

@ -46,14 +46,16 @@ border
border(), wborder(), and box() draw a border around the edge of the
window. If any argument is zero, an appropriate default is used:
ls left side of border ACS_VLINE
rs right side of border ACS_VLINE
ts top side of border ACS_HLINE
bs bottom side of border ACS_HLINE
tl top left corner of border ACS_ULCORNER
tr top right corner of border ACS_URCORNER
bl bottom left corner of border ACS_LLCORNER
br bottom right corner of border ACS_LRCORNER
Name | Element | Default
:----|:------------------------------|:------------
ls | left side of border | ACS_VLINE
rs | right side of border | ACS_VLINE
ts | top side of border | ACS_HLINE
bs | bottom side of border | ACS_HLINE
tl | top left corner of border | ACS_ULCORNER
tr | top right corner of border | ACS_URCORNER
bl | bottom left corner of border | ACS_LLCORNER
br | bottom right corner of border | ACS_LRCORNER
hline() and whline() draw a horizontal line, using ch, starting from
the current cursor position. The cursor position does not change. The
@ -74,29 +76,31 @@ border
These functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
border Y Y Y
wborder Y Y Y
box Y Y Y
hline Y Y Y
vline Y Y Y
whline Y Y Y
wvline Y Y Y
mvhline Y Y Y
mvvline Y Y Y
mvwhline Y Y Y
mvwvline Y Y Y
border_set Y Y Y
wborder_set Y Y Y
box_set Y Y Y
hline_set Y Y Y
vline_set Y Y Y
whline_set Y Y Y
wvline_set Y Y Y
mvhline_set Y Y Y
mvvline_set Y Y Y
mvwhline_set Y Y Y
mvwvline_set Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
border | Y | Y | Y
wborder | Y | Y | Y
box | Y | Y | Y
hline | Y | Y | Y
vline | Y | Y | Y
whline | Y | Y | Y
wvline | Y | Y | Y
mvhline | Y | Y | Y
mvvline | Y | Y | Y
mvwhline | Y | Y | Y
mvwvline | Y | Y | Y
border_set | Y | Y | Y
wborder_set | Y | Y | Y
box_set | Y | Y | Y
hline_set | Y | Y | Y
vline_set | Y | Y | Y
whline_set | Y | Y | Y
wvline_set | Y | Y | Y
mvhline_set | Y | Y | Y
mvvline_set | Y | Y | Y
mvwhline_set | Y | Y | Y
mvwvline_set | Y | Y | Y
**man-end****************************************************************/

View File

@ -38,15 +38,17 @@ clear
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
clear Y Y Y
wclear Y Y Y
erase Y Y Y
werase Y Y Y
clrtobot Y Y Y
wclrtobot Y Y Y
clrtoeol Y Y Y
wclrtoeol Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
clear | Y | Y | Y
wclear | Y | Y | Y
erase | Y | Y | Y
werase | Y | Y | Y
clrtobot | Y | Y | Y
wclrtobot | Y | Y | Y
clrtoeol | Y | Y | Y
wclrtoeol | Y | Y | Y
**man-end****************************************************************/

View File

@ -92,20 +92,22 @@ color
find_pair() return a pair number, or -1 on error.
### Portability
X/Open ncurses NetBSD
has_colors Y Y Y
start_color Y Y Y
init_pair Y Y Y
pair_content Y Y Y
can_change_color Y Y Y
init_color Y Y Y
color_content Y Y Y
alloc_pair - Y -
assume_default_colors - Y Y
find_pair - Y -
free_pair - Y -
use_default_colors - Y Y
PDC_set_line_color - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
has_colors | Y | Y | Y
start_color | Y | Y | Y
init_pair | Y | Y | Y
pair_content | Y | Y | Y
can_change_color | Y | Y | Y
init_color | Y | Y | Y
color_content | Y | Y | Y
alloc_pair | - | Y | -
assume_default_colors | - | Y | Y
find_pair | - | Y | -
free_pair | - | Y | -
use_default_colors | - | Y | Y
PDC_set_line_color | - | - | -
**man-end****************************************************************/

View File

@ -27,10 +27,12 @@ debug
it to enable this (may affect performance).
### Portability
X/Open ncurses NetBSD
traceon - - -
traceoff - - -
PDC_debug - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
traceon | - | - | -
traceoff | - | - | -
PDC_debug | - | - | -
**man-end****************************************************************/

View File

@ -27,11 +27,13 @@ delch
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
delch Y Y Y
wdelch Y Y Y
mvdelch Y Y Y
mvwdelch Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
delch | Y | Y | Y
wdelch | Y | Y | Y
mvdelch | Y | Y | Y
mvwdelch | Y | Y | Y
**man-end****************************************************************/

View File

@ -39,17 +39,19 @@ deleteln
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
deleteln Y Y Y
wdeleteln Y Y Y
mvdeleteln - - -
mvwdeleteln - - -
insdelln Y Y Y
winsdelln Y Y Y
insertln Y Y Y
winsertln Y Y Y
mvinsertln - - -
mvwinsertln - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
deleteln | Y | Y | Y
wdeleteln | Y | Y | Y
mvdeleteln | - | - | -
mvwdeleteln | - | - | -
insdelln | Y | Y | Y
winsdelln | Y | Y | Y
insertln | Y | Y | Y
winsertln | Y | Y | Y
mvinsertln | - | - | -
mvwinsertln | - | - | -
**man-end****************************************************************/

View File

@ -75,19 +75,21 @@ getch
character or function key token.
### Portability
X/Open ncurses NetBSD
getch Y Y Y
wgetch Y Y Y
mvgetch Y Y Y
mvwgetch Y Y Y
ungetch Y Y Y
flushinp Y Y Y
get_wch Y Y Y
wget_wch Y Y Y
mvget_wch Y Y Y
mvwget_wch Y Y Y
unget_wch Y Y Y
PDC_get_key_modifiers - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
getch | Y | Y | Y
wgetch | Y | Y | Y
mvgetch | Y | Y | Y
mvwgetch | Y | Y | Y
ungetch | Y | Y | Y
flushinp | Y | Y | Y
get_wch | Y | Y | Y
wget_wch | Y | Y | Y
mvget_wch | Y | Y | Y
mvwget_wch | Y | Y | Y
unget_wch | Y | Y | Y
PDC_get_key_modifiers | - | - | -
**man-end****************************************************************/

View File

@ -46,23 +46,25 @@ getstr
These functions return ERR on failure or any other value on success.
### Portability
X/Open ncurses NetBSD
getstr Y Y Y
wgetstr Y Y Y
mvgetstr Y Y Y
mvwgetstr Y Y Y
getnstr Y Y Y
wgetnstr Y Y Y
mvgetnstr Y Y Y
mvwgetnstr Y Y Y
get_wstr Y Y Y
wget_wstr Y Y Y
mvget_wstr Y Y Y
mvwget_wstr Y Y Y
getn_wstr Y Y Y
wgetn_wstr Y Y Y
mvgetn_wstr Y Y Y
mvwgetn_wstr Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
getstr | Y | Y | Y
wgetstr | Y | Y | Y
mvgetstr | Y | Y | Y
mvwgetstr | Y | Y | Y
getnstr | Y | Y | Y
wgetnstr | Y | Y | Y
mvgetnstr | Y | Y | Y
mvwgetnstr | Y | Y | Y
get_wstr | Y | Y | Y
wget_wstr | Y | Y | Y
mvget_wstr | Y | Y | Y
mvwget_wstr | Y | Y | Y
getn_wstr | Y | Y | Y
wgetn_wstr | Y | Y | Y
mvgetn_wstr | Y | Y | Y
mvwgetn_wstr | Y | Y | Y
**man-end****************************************************************/

View File

@ -54,21 +54,23 @@ getyx
values, or ERR in the case of a NULL window.
### Portability
X/Open ncurses NetBSD
getyx Y Y Y
getparyx Y Y Y
getbegyx Y Y Y
getmaxyx Y Y Y
getsyx - Y Y
setsyx - Y Y
getbegy - Y Y
getbegx - Y Y
getcury - Y Y
getcurx - Y Y
getpary - Y Y
getparx - Y Y
getmaxy - Y Y
getmaxx - Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
getyx | Y | Y | Y
getparyx | Y | Y | Y
getbegyx | Y | Y | Y
getmaxyx | Y | Y | Y
getsyx | - | Y | Y
setsyx | - | Y | Y
getbegy | - | Y | Y
getbegx | - | Y | Y
getcury | - | Y | Y
getcurx | - | Y | Y
getpary | - | Y | Y
getparx | - | Y | Y
getmaxy | - | Y | Y
getmaxx | - | Y | Y
**man-end****************************************************************/

View File

@ -31,15 +31,17 @@ inch
returned.) Note that in PDCurses, chtype and cchar_t are the same.
### Portability
X/Open ncurses NetBSD
inch Y Y Y
winch Y Y Y
mvinch Y Y Y
mvwinch Y Y Y
in_wch Y Y Y
win_wch Y Y Y
mvin_wch Y Y Y
mvwin_wch Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
inch | Y | Y | Y
winch | Y | Y | Y
mvinch | Y | Y | Y
mvwinch | Y | Y | Y
in_wch | Y | Y | Y
win_wch | Y | Y | Y
mvin_wch | Y | Y | Y
mvwin_wch | Y | Y | Y
**man-end****************************************************************/

View File

@ -38,23 +38,25 @@ inchstr
All functions return the number of elements read, or ERR on error.
### Portability
X/Open ncurses NetBSD
inchstr Y Y Y
winchstr Y Y Y
mvinchstr Y Y Y
mvwinchstr Y Y Y
inchnstr Y Y Y
winchnstr Y Y Y
mvinchnstr Y Y Y
mvwinchnstr Y Y Y
in_wchstr Y Y Y
win_wchstr Y Y Y
mvin_wchstr Y Y Y
mvwin_wchstr Y Y Y
in_wchnstr Y Y Y
win_wchnstr Y Y Y
mvin_wchnstr Y Y Y
mvwin_wchnstr Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
inchstr | Y | Y | Y
winchstr | Y | Y | Y
mvinchstr | Y | Y | Y
mvwinchstr | Y | Y | Y
inchnstr | Y | Y | Y
winchnstr | Y | Y | Y
mvinchnstr | Y | Y | Y
mvwinchnstr | Y | Y | Y
in_wchstr | Y | Y | Y
win_wchstr | Y | Y | Y
mvin_wchstr | Y | Y | Y
mvwin_wchstr | Y | Y | Y
in_wchnstr | Y | Y | Y
win_wchnstr | Y | Y | Y
mvin_wchnstr | Y | Y | Y
mvwin_wchnstr | Y | Y | Y
**man-end****************************************************************/

View File

@ -83,17 +83,19 @@ initscr
returns OK, and resize_term(), which returns either OK or ERR.
### Portability
X/Open ncurses NetBSD
initscr Y Y Y
endwin Y Y Y
isendwin Y Y Y
newterm Y Y Y
set_term Y Y Y
delscreen Y Y Y
resize_term - Y Y
set_tabsize - Y Y
curses_version - Y -
is_termresized - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
initscr | Y | Y | Y
endwin | Y | Y | Y
isendwin | Y | Y | Y
newterm | Y | Y | Y
set_term | Y | Y | Y
delscreen | Y | Y | Y
resize_term | - | Y | Y
set_tabsize | - | Y | Y
curses_version | - | Y | -
is_termresized | - | - | -
**man-end****************************************************************/

View File

@ -106,32 +106,34 @@ inopts
always returns FALSE. All others return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
cbreak Y Y Y
nocbreak Y Y Y
echo Y Y Y
noecho Y Y Y
halfdelay Y Y Y
intrflush Y Y Y
keypad Y Y Y
meta Y Y Y
nl Y Y Y
nonl Y Y Y
nodelay Y Y Y
notimeout Y Y Y
raw Y Y Y
noraw Y Y Y
noqiflush Y Y Y
qiflush Y Y Y
timeout Y Y Y
wtimeout Y Y Y
wgetdelay - Y -
typeahead Y Y Y
crmode Y Y Y
nocrmode Y Y Y
is_keypad - Y Y
is_nodelay - Y -
is_notimeout - Y -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
cbreak | Y | Y | Y
nocbreak | Y | Y | Y
echo | Y | Y | Y
noecho | Y | Y | Y
halfdelay | Y | Y | Y
intrflush | Y | Y | Y
keypad | Y | Y | Y
meta | Y | Y | Y
nl | Y | Y | Y
nonl | Y | Y | Y
nodelay | Y | Y | Y
notimeout | Y | Y | Y
raw | Y | Y | Y
noraw | Y | Y | Y
noqiflush | Y | Y | Y
qiflush | Y | Y | Y
timeout | Y | Y | Y
wtimeout | Y | Y | Y
wgetdelay | - | Y | -
typeahead | Y | Y | Y
crmode | Y | Y | Y
nocrmode | Y | Y | Y
is_keypad | - | Y | Y
is_nodelay | - | Y | -
is_notimeout | - | Y | -
**man-end****************************************************************/

View File

@ -46,17 +46,19 @@ insch
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
insch Y Y Y
winsch Y Y Y
mvinsch Y Y Y
mvwinsch Y Y Y
ins_wch Y Y Y
wins_wch Y Y Y
mvins_wch Y Y Y
mvwins_wch Y Y Y
insrawch - - -
winsrawch - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
insch | Y | Y | Y
winsch | Y | Y | Y
mvinsch | Y | Y | Y
mvwinsch | Y | Y | Y
ins_wch | Y | Y | Y
wins_wch | Y | Y | Y
mvins_wch | Y | Y | Y
mvwins_wch | Y | Y | Y
insrawch | - | - | -
winsrawch | - | - | -
**man-end****************************************************************/

View File

@ -45,23 +45,25 @@ insstr
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
insstr Y Y Y
winsstr Y Y Y
mvinsstr Y Y Y
mvwinsstr Y Y Y
insnstr Y Y Y
winsnstr Y Y Y
mvinsnstr Y Y Y
mvwinsnstr Y Y Y
ins_wstr Y Y Y
wins_wstr Y Y Y
mvins_wstr Y Y Y
mvwins_wstr Y Y Y
ins_nwstr Y Y Y
wins_nwstr Y Y Y
mvins_nwstr Y Y Y
mvwins_nwstr Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
insstr | Y | Y | Y
winsstr | Y | Y | Y
mvinsstr | Y | Y | Y
mvwinsstr | Y | Y | Y
insnstr | Y | Y | Y
winsnstr | Y | Y | Y
mvinsnstr | Y | Y | Y
mvwinsnstr | Y | Y | Y
ins_wstr | Y | Y | Y
wins_wstr | Y | Y | Y
mvins_wstr | Y | Y | Y
mvwins_wstr | Y | Y | Y
ins_nwstr | Y | Y | Y
wins_nwstr | Y | Y | Y
mvins_nwstr | Y | Y | Y
mvwins_nwstr | Y | Y | Y
**man-end****************************************************************/

View File

@ -42,23 +42,25 @@ instr
Otherwise, all these functions return ERR.
### Portability
X/Open ncurses NetBSD
instr Y Y Y
winstr Y Y Y
mvinstr Y Y Y
mvwinstr Y Y Y
innstr Y Y Y
winnstr Y Y Y
mvinnstr Y Y Y
mvwinnstr Y Y Y
inwstr Y Y Y
winwstr Y Y Y
mvinwstr Y Y Y
mvwinwstr Y Y Y
innwstr Y Y Y
winnwstr Y Y Y
mvinnwstr Y Y Y
mvwinnwstr Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
instr | Y | Y | Y
winstr | Y | Y | Y
mvinstr | Y | Y | Y
mvwinstr | Y | Y | Y
innstr | Y | Y | Y
winnstr | Y | Y | Y
mvinnstr | Y | Y | Y
mvwinnstr | Y | Y | Y
inwstr | Y | Y | Y
winwstr | Y | Y | Y
mvinwstr | Y | Y | Y
mvwinwstr | Y | Y | Y
innwstr | Y | Y | Y
winnwstr | Y | Y | Y
mvinnwstr | Y | Y | Y
mvwinnwstr | Y | Y | Y
**man-end****************************************************************/

View File

@ -71,20 +71,22 @@ kernel
curs_set(), which returns the previous visibility.
### Portability
X/Open ncurses NetBSD
def_prog_mode Y Y Y
def_shell_mode Y Y Y
reset_prog_mode Y Y Y
reset_shell_mode Y Y Y
resetty Y Y Y
savetty Y Y Y
ripoffline Y Y Y
curs_set Y Y Y
napms Y Y Y
fixterm - Y -
resetterm - Y -
saveterm - Y -
draino - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
def_prog_mode | Y | Y | Y
def_shell_mode | Y | Y | Y
reset_prog_mode | Y | Y | Y
reset_shell_mode | Y | Y | Y
resetty | Y | Y | Y
savetty | Y | Y | Y
ripoffline | Y | Y | Y
curs_set | Y | Y | Y
napms | Y | Y | Y
fixterm | - | Y | -
resetterm | - | Y | -
saveterm | - | Y | -
draino | - | - | -
**man-end****************************************************************/

View File

@ -27,10 +27,12 @@ keyname
function is an ncurses extension.
### Portability
X/Open ncurses NetBSD
keyname Y Y Y
key_name Y Y Y
has_key - Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
keyname | Y | Y | Y
key_name | Y | Y | Y
has_key | - | Y | Y
**man-end****************************************************************/

View File

@ -118,23 +118,25 @@ mouse
current platform.
### Portability
X/Open ncurses NetBSD
mouse_set - - -
mouse_on - - -
mouse_off - - -
request_mouse_pos - - -
wmouse_position - - -
getmouse - * -
mouseinterval - Y -
wenclose - Y -
wmouse_trafo - Y -
mouse_trafo - Y -
mousemask - Y -
nc_getmouse - * -
ungetmouse - Y -
has_mouse - Y -
* See above, under Description
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
mouse_set | - | - | -
mouse_on | - | - | -
mouse_off | - | - | -
request_mouse_pos | - | - | -
wmouse_position | - | - | -
getmouse | - | * | -
mouseinterval | - | Y | -
wenclose | - | Y | -
wmouse_trafo | - | Y | -
mouse_trafo | - | Y | -
mousemask | - | Y | -
nc_getmouse | - | * | -
ungetmouse | - | Y | -
has_mouse | - | Y | -
\* See above, under Description
**man-end****************************************************************/

View File

@ -28,10 +28,12 @@ move
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
move Y Y Y
mvcur Y Y Y
wmove Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
move | Y | Y | Y
mvcur | Y | Y | Y
wmove | Y | Y | Y
**man-end****************************************************************/

View File

@ -75,23 +75,25 @@ outopts
return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
clearok Y Y Y
idlok Y Y Y
idcok Y Y Y
immedok Y Y Y
leaveok Y Y Y
setscrreg Y Y Y
wsetscrreg Y Y Y
wgetscrreg - Y -
scrollok Y Y Y
is_cleared - Y -
is_idlok - Y -
is_idcok - Y -
is_immedok - Y -
is_leaveok - Y Y
is_scrollok - Y -
raw_output - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
clearok | Y | Y | Y
idlok | Y | Y | Y
idcok | Y | Y | Y
immedok | Y | Y | Y
leaveok | Y | Y | Y
setscrreg | Y | Y | Y
wsetscrreg | Y | Y | Y
wgetscrreg | - | Y | -
scrollok | Y | Y | Y
is_cleared | - | Y | -
is_idlok | - | Y | -
is_idcok | - | Y | -
is_immedok | - | Y | -
is_leaveok | - | Y | Y
is_scrollok | - | Y | -
raw_output | - | - | -
**man-end****************************************************************/

View File

@ -39,10 +39,12 @@ overlay
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
overlay Y Y Y
overwrite Y Y Y
copywin Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
overlay | Y | Y | Y
overwrite | Y | Y | Y
copywin | Y | Y | Y
**man-end****************************************************************/

View File

@ -62,14 +62,16 @@ pad
All functions except is_pad() return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
newpad Y Y Y
subpad Y Y Y
prefresh Y Y Y
pnoutrefresh Y Y Y
pechochar Y Y Y
pecho_wchar Y Y Y
is_pad - Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
newpad | Y | Y | Y
subpad | Y | Y | Y
prefresh | Y | Y | Y
pnoutrefresh | Y | Y | Y
pechochar | Y | Y | Y
pecho_wchar | Y | Y | Y
is_pad | - | Y | Y
**man-end****************************************************************/

View File

@ -96,25 +96,28 @@ panel
if it executes successfully and ERR if it does not.
### Portability
X/Open ncurses NetBSD
bottom_panel - Y Y
del_panel - Y Y
hide_panel - Y Y
move_panel - Y Y
new_panel - Y Y
panel_above - Y Y
panel_below - Y Y
panel_hidden - Y Y
panel_userptr - Y Y
panel_window - Y Y
replace_panel - Y Y
set_panel_userptr - Y Y
show_panel - Y Y
top_panel - Y Y
update_panels - Y Y
Credits:
Original Author - Warren Tucker <wht@n4hgf.mt-park.ga.us>
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
bottom_panel | - | Y | Y
del_panel | - | Y | Y
hide_panel | - | Y | Y
move_panel | - | Y | Y
new_panel | - | Y | Y
panel_above | - | Y | Y
panel_below | - | Y | Y
panel_hidden | - | Y | Y
panel_userptr | - | Y | Y
panel_window | - | Y | Y
replace_panel | - | Y | Y
set_panel_userptr | - | Y | Y
show_panel | - | Y | Y
top_panel | - | Y | Y
update_panels | - | Y | Y
### Credits
Original Author - Warren Tucker <wht@n4hgf.mt-park.ga.us>
**man-end****************************************************************/

View File

@ -32,13 +32,15 @@ printw
error.
### Portability
X/Open ncurses NetBSD
printw Y Y Y
wprintw Y Y Y
mvprintw Y Y Y
mvwprintw Y Y Y
vwprintw Y Y Y
vw_printw Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
printw | Y | Y | Y
wprintw | Y | Y | Y
mvprintw | Y | Y | Y
mvwprintw | Y | Y | Y
vwprintw | Y | Y | Y
vw_printw | Y | Y | Y
**man-end****************************************************************/

View File

@ -45,13 +45,15 @@ refresh
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
refresh Y Y Y
wrefresh Y Y Y
wnoutrefresh Y Y Y
doupdate Y Y Y
redrawwin Y Y Y
wredrawln Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
refresh | Y | Y | Y
wrefresh | Y | Y | Y
wnoutrefresh | Y | Y | Y
doupdate | Y | Y | Y
redrawwin | Y | Y | Y
wredrawln | Y | Y | Y
**man-end****************************************************************/

View File

@ -31,13 +31,15 @@ scanw
successfully matched. Otherwise they return ERR.
### Portability
X/Open ncurses NetBSD
scanw Y Y Y
wscanw Y Y Y
mvscanw Y Y Y
mvwscanw Y Y Y
vwscanw Y Y Y
vw_scanw Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
scanw | Y | Y | Y
wscanw | Y | Y | Y
mvscanw | Y | Y | Y
mvwscanw | Y | Y | Y
vwscanw | Y | Y | Y
vw_scanw | Y | Y | Y
**man-end****************************************************************/

View File

@ -47,13 +47,15 @@ scr_dump
OK or ERR.
### Portability
X/Open ncurses NetBSD
putwin Y Y Y
getwin Y Y Y
scr_dump Y Y -
scr_init Y Y -
scr_restore Y Y -
scr_set Y Y -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
putwin | Y | Y | Y
getwin | Y | Y | Y
scr_dump | Y | Y | -
scr_init | Y | Y | -
scr_restore | Y | Y | -
scr_set | Y | Y | -
**man-end****************************************************************/

View File

@ -31,10 +31,12 @@ scroll
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
scroll Y Y Y
scrl Y Y Y
wscrl Y Y Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
scroll | Y | Y | Y
scrl | Y | Y | Y
wscrl | Y | Y | Y
**man-end****************************************************************/

View File

@ -46,12 +46,12 @@ slk
slk_init() requires a single parameter which describes the format of
the SLKs as follows:
0 3-2-3 format
1 4-4 format
2 4-4-4 format (ncurses extension)
3 4-4-4 format with index line (ncurses extension)
2 lines used
55 5-5 format (pdcurses format)
0 3-2-3 format
1 4-4 format
2 4-4-4 format (ncurses extension)
3 4-4-4 format with index line (ncurses extension)
2 lines used
55 5-5 format (pdcurses format)
slk_refresh(), slk_noutrefresh() and slk_touch() are analogous to
refresh(), noutrefresh() and touch().
@ -61,26 +61,28 @@ slk
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
slk_init Y Y Y
slk_set Y Y Y
slk_refresh Y Y Y
slk_noutrefresh Y Y Y
slk_label Y Y Y
slk_clear Y Y Y
slk_restore Y Y Y
slk_touch Y Y Y
slk_attron Y Y Y
slk_attrset Y Y Y
slk_attroff Y Y Y
slk_attr_on Y Y Y
slk_attr_set Y Y Y
slk_attr_off Y Y Y
slk_wset Y Y Y
PDC_mouse_in_slk - - -
PDC_slk_free - - -
PDC_slk_initialize - - -
slk_wlabel - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
slk_init | Y | Y | Y
slk_set | Y | Y | Y
slk_refresh | Y | Y | Y
slk_noutrefresh | Y | Y | Y
slk_label | Y | Y | Y
slk_clear | Y | Y | Y
slk_restore | Y | Y | Y
slk_touch | Y | Y | Y
slk_attron | Y | Y | Y
slk_attrset | Y | Y | Y
slk_attroff | Y | Y | Y
slk_attr_on | Y | Y | Y
slk_attr_set | Y | Y | Y
slk_attr_off | Y | Y | Y
slk_wset | Y | Y | Y
PDC_mouse_in_slk | - | - | -
PDC_slk_free | - | - | -
PDC_slk_initialize | - | - | -
slk_wlabel | - | - | -
**man-end****************************************************************/

View File

@ -54,19 +54,21 @@ termattr
character, ^W.
### Portability
X/Open ncurses NetBSD
baudrate Y Y Y
erasechar Y Y Y
has_ic Y Y Y
has_il Y Y Y
killchar Y Y Y
longname Y Y Y
termattrs Y Y Y
termname Y Y Y
erasewchar Y Y Y
killwchar Y Y Y
term_attrs Y Y Y
wordchar - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
baudrate | Y | Y | Y
erasechar | Y | Y | Y
has_ic | Y | Y | Y
has_il | Y | Y | Y
killchar | Y | Y | Y
longname | Y | Y | Y
termattrs | Y | Y | Y
termname | Y | Y | Y
erasewchar | Y | Y | Y
killwchar | Y | Y | Y
term_attrs | Y | Y | Y
wordchar | - | - | -
**man-end****************************************************************/

View File

@ -49,14 +49,16 @@ touch
is_wintouched() and is_linetouched().
### Portability
X/Open ncurses NetBSD
touchwin Y Y Y
touchline Y Y Y
untouchwin Y Y Y
wtouchln Y Y Y
is_linetouched Y Y Y
is_wintouched Y Y Y
touchoverlap - - Y
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
touchwin | Y | Y | Y
touchline | Y | Y | Y
untouchwin | Y | Y | Y
wtouchln | Y | Y | Y
is_linetouched | Y | Y | Y
is_wintouched | Y | Y | Y
touchoverlap | - | - | Y
**man-end****************************************************************/

View File

@ -61,17 +61,19 @@ util
setcchar() returns OK or ERR.
### Portability
X/Open ncurses NetBSD
unctrl Y Y Y
filter Y Y Y
use_env Y Y Y
delay_output Y Y Y
getcchar Y Y Y
setcchar Y Y Y
wunctrl Y Y Y
PDC_mbtowc - - -
PDC_mbstowcs - - -
PDC_wcstombs - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
unctrl | Y | Y | Y
filter | Y | Y | Y
use_env | Y | Y | Y
delay_output | Y | Y | Y
getcchar | Y | Y | Y
setcchar | Y | Y | Y
wunctrl | Y | Y | Y
PDC_mbtowc | - | - | -
PDC_mbstowcs | - | - | -
PDC_wcstombs | - | - | -
**man-end****************************************************************/

View File

@ -124,26 +124,28 @@ window
NOT cancelled for those windows.
### Portability
X/Open ncurses NetBSD
newwin Y Y Y
delwin Y Y Y
mvwin Y Y Y
subwin Y Y Y
derwin Y Y Y
mvderwin Y Y Y
dupwin Y Y Y
wgetparent - Y -
wsyncup Y Y Y
syncok Y Y Y
is_subwin - Y -
is_syncok - Y -
wcursyncup Y Y Y
wsyncdown Y Y Y
wresize - Y Y
resize_window - - -
PDC_makelines - - -
PDC_makenew - - -
PDC_sync - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
newwin | Y | Y | Y
delwin | Y | Y | Y
mvwin | Y | Y | Y
subwin | Y | Y | Y
derwin | Y | Y | Y
mvderwin | Y | Y | Y
dupwin | Y | Y | Y
wgetparent | - | Y | -
wsyncup | Y | Y | Y
syncok | Y | Y | Y
is_subwin | - | Y | -
is_syncok | - | Y | -
wcursyncup | Y | Y | Y
wsyncdown | Y | Y | Y
wresize | - | Y | Y
resize_window | - | - | -
PDC_makelines | - | - | -
PDC_makenew | - | - | -
PDC_sync | - | - | -
**man-end****************************************************************/

View File

@ -25,26 +25,27 @@ clipboard
memory returned, via PDC_freeclipboard(). The length of the clipboard
contents is returned in the length argument.
PDC_setclipboard copies the supplied text into the system's
PDC_setclipboard() copies the supplied text into the system's
clipboard, emptying the clipboard prior to the copy.
PDC_clearclipboard() clears the internal clipboard.
### Return Values
indicator of success/failure of call.
PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
PDC_CLIP_EMPTY the clipboard contains no text
PDC_CLIP_ACCESS_ERROR no clipboard support
PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
PDC_CLIP_EMPTY the clipboard contains no text
PDC_CLIP_ACCESS_ERROR no clipboard support
### Portability
X/Open ncurses NetBSD
PDC_getclipboard - - -
PDC_setclipboard - - -
PDC_freeclipboard - - -
PDC_clearclipboard - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_getclipboard | - | - | -
PDC_setclipboard | - | - | -
PDC_freeclipboard | - | - | -
PDC_clearclipboard | - | - | -
**man-end****************************************************************/

View File

@ -31,9 +31,12 @@ pdcsetsc
platforms.
### Portability
X/Open ncurses NetBSD
PDC_set_blink - - -
PDC_set_title - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_set_blink | - | - | -
PDC_set_bold | - | - | -
PDC_set_title | - | - | -
**man-end****************************************************************/

View File

@ -25,26 +25,27 @@ clipboard
memory returned, via PDC_freeclipboard(). The length of the clipboard
contents is returned in the length argument.
PDC_setclipboard copies the supplied text into the system's
PDC_setclipboard() copies the supplied text into the system's
clipboard, emptying the clipboard prior to the copy.
PDC_clearclipboard() clears the internal clipboard.
### Return Values
indicator of success/failure of call.
PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
PDC_CLIP_EMPTY the clipboard contains no text
PDC_CLIP_ACCESS_ERROR no clipboard support
PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
PDC_CLIP_EMPTY the clipboard contains no text
PDC_CLIP_ACCESS_ERROR no clipboard support
### Portability
X/Open ncurses NetBSD
PDC_getclipboard - - -
PDC_setclipboard - - -
PDC_freeclipboard - - -
PDC_clearclipboard - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_getclipboard | - | - | -
PDC_setclipboard | - | - | -
PDC_freeclipboard | - | - | -
PDC_clearclipboard | - | - | -
**man-end****************************************************************/

View File

@ -31,9 +31,12 @@ pdcsetsc
platforms.
### Portability
X/Open ncurses NetBSD
PDC_set_blink - - -
PDC_set_title - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_set_blink | - | - | -
PDC_set_bold | - | - | -
PDC_set_title | - | - | -
**man-end****************************************************************/

View File

@ -24,26 +24,27 @@ clipboard
memory returned, via PDC_freeclipboard(). The length of the clipboard
contents is returned in the length argument.
PDC_setclipboard copies the supplied text into the system's
PDC_setclipboard() copies the supplied text into the system's
clipboard, emptying the clipboard prior to the copy.
PDC_clearclipboard() clears the internal clipboard.
### Return Values
indicator of success/failure of call.
PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
PDC_CLIP_EMPTY the clipboard contains no text
PDC_CLIP_ACCESS_ERROR no clipboard support
PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
PDC_CLIP_EMPTY the clipboard contains no text
PDC_CLIP_ACCESS_ERROR no clipboard support
### Portability
X/Open ncurses NetBSD
PDC_getclipboard - - -
PDC_setclipboard - - -
PDC_freeclipboard - - -
PDC_clearclipboard - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_getclipboard | - | - | -
PDC_setclipboard | - | - | -
PDC_freeclipboard | - | - | -
PDC_clearclipboard | - | - | -
**man-end****************************************************************/

View File

@ -31,9 +31,12 @@ pdcsetsc
platforms.
### Portability
X/Open ncurses NetBSD
PDC_set_blink - - -
PDC_set_title - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_set_blink | - | - | -
PDC_set_bold | - | - | -
PDC_set_title | - | - | -
**man-end****************************************************************/

View File

@ -24,26 +24,27 @@ clipboard
memory returned, via PDC_freeclipboard(). The length of the clipboard
contents is returned in the length argument.
PDC_setclipboard copies the supplied text into the system's
PDC_setclipboard() copies the supplied text into the system's
clipboard, emptying the clipboard prior to the copy.
PDC_clearclipboard() clears the internal clipboard.
### Return Values
indicator of success/failure of call.
PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
PDC_CLIP_EMPTY the clipboard contains no text
PDC_CLIP_ACCESS_ERROR no clipboard support
PDC_CLIP_SUCCESS the call was successful
PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
PDC_CLIP_EMPTY the clipboard contains no text
PDC_CLIP_ACCESS_ERROR no clipboard support
### Portability
X/Open ncurses NetBSD
PDC_getclipboard - - -
PDC_setclipboard - - -
PDC_freeclipboard - - -
PDC_clearclipboard - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_getclipboard | - | - | -
PDC_setclipboard | - | - | -
PDC_freeclipboard | - | - | -
PDC_clearclipboard | - | - | -
**man-end****************************************************************/

View File

@ -33,9 +33,12 @@ pdcsetsc
platforms.
### Portability
X/Open ncurses NetBSD
PDC_set_blink - - -
PDC_set_title - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
PDC_set_blink | - | - | -
PDC_set_bold | - | - | -
PDC_set_title | - | - | -
**man-end****************************************************************/

View File

@ -18,20 +18,22 @@ sb
### Description
These functions manipulate the scrollbar.
These functions manipulate the scrollbar (X11 only).
### Return Value
All functions return OK on success and ERR on error.
### Portability
X/Open ncurses NetBSD
sb_init - - -
sb_set_horz - - -
sb_set_vert - - -
sb_get_horz - - -
sb_get_vert - - -
sb_refresh - - -
Function | X/Open | ncurses | NetBSD
:---------------------|:------:|:-------:|:------:
sb_init | - | - | -
sb_set_horz | - | - | -
sb_set_vert | - | - | -
sb_get_horz | - | - | -
sb_get_vert | - | - | -
sb_refresh | - | - | -
**man-end****************************************************************/