[][src]Crate pancurses_result

pancurses-result is a wrapper for pancurses that aims to provide a safe interface to curses. This library aims to guarantee thread and memory safety, whereas pancurses just provides direct C bindings.

Many curses functions have been renamed for one reason or another. All renamed functions state the curses function they corollate to.

The outermost class is Curses. It is initialized via initscr. Use its methods to manipulate the curses instance.

Curses manages the Window representing stdscr.

Structs

Attributes
BitsPerSecond

A number of bits per second

Color

Color subsystem. It can be accessed via Curses::color.

ColorContent

A color value represented as RGB

ColorPair
Curses

The curses instance. To initialize the curses instance, call initscr.

Dimension

A two-dimensional dimension

Point

A two-dimensional point

Window

A curses window.

Enums

Attribute
CursorVisibility

The visibility of the cursor

EndOfLineOrNumber
Input
InputBufferingMode

The input buffering mode.

Constants

ALL_MOUSE_EVENTS
A_ALTCHARSET
A_ATTRIBUTES
A_BLINK
A_BOLD
A_CHARTEXT
A_COLOR
A_DIM
A_INVIS
A_ITALIC
A_LEFTLINE
A_NORMAL
A_OVERLINE
A_REVERSE
A_RIGHTLINE
A_STANDOUT
A_STRIKEOUT
A_UNDERLINE
BUTTON1_CLICKED
BUTTON1_DOUBLE_CLICKED
BUTTON1_PRESSED
BUTTON1_RELEASED
BUTTON1_TRIPLE_CLICKED
BUTTON2_CLICKED
BUTTON2_DOUBLE_CLICKED
BUTTON2_PRESSED
BUTTON2_RELEASED
BUTTON2_TRIPLE_CLICKED
BUTTON3_CLICKED
BUTTON3_DOUBLE_CLICKED
BUTTON3_PRESSED
BUTTON3_RELEASED
BUTTON3_TRIPLE_CLICKED
BUTTON4_CLICKED
BUTTON4_DOUBLE_CLICKED
BUTTON4_PRESSED
BUTTON4_RELEASED
BUTTON4_TRIPLE_CLICKED
BUTTON5_CLICKED
BUTTON5_DOUBLE_CLICKED
BUTTON5_PRESSED
BUTTON5_RELEASED
BUTTON5_TRIPLE_CLICKED
BUTTON_ALT
BUTTON_CTRL
BUTTON_SHIFT
COLOR_BLACK
COLOR_BLUE
COLOR_CYAN
COLOR_GREEN
COLOR_MAGENTA
COLOR_RED
COLOR_WHITE
COLOR_YELLOW
ERR
KEY_EVENT
KEY_F15
KEY_OFFSET
KEY_RESIZE
OK
REPORT_MOUSE_POSITION
SPECIAL_KEY_CODES

Functions

ACS_BBSS
ACS_BLOCK
ACS_BOARD
ACS_BSBS
ACS_BSSB
ACS_BSSS
ACS_BTEE
ACS_BULLET
ACS_CKBOARD
ACS_DARROW
ACS_DEGREE
ACS_DIAMOND
ACS_GEQUAL
ACS_HLINE
ACS_LANTERN
ACS_LARROW
ACS_LEQUAL
ACS_LLCORNER
ACS_LRCORNER
ACS_LTEE
ACS_NEQUAL
ACS_PI
ACS_PLMINUS
ACS_PLUS
ACS_RARROW
ACS_RTEE
ACS_S1
ACS_S3
ACS_S7
ACS_S9
ACS_SBBS
ACS_SBSB
ACS_SBSS
ACS_SSBB
ACS_SSBS
ACS_SSSB
ACS_SSSS
ACS_STERLING
ACS_TTEE
ACS_UARROW
ACS_ULCORNER
ACS_URCORNER
ACS_VLINE
initscr

This function initializes the Curses system.

Type Definitions

Chtype
MouseEvent
MouseMask