CRT::Ncurses
Constants
Direction convenience constants
TODO: Replace these Int32 convenience constants with Int32 | Position union
types on constructor x/y params and other mixed-use sites, so users pass
Position::Left directly instead of relying on sentinel values.
Class methods
Build a chtype suitable for background= (space char + color pair + attributes).
CRT::Ncurses.color(7, 4) # white on blue CRT::Ncurses.color("#07/04") # same, hex notation CRT::Ncurses.color("bold #07/04") # bold white on blue
Allocate or retrieve a color pair for the given fg/bg combination. Colors are 0-255 (terminal palette indices), or -1 for terminal default. Returns the chtype bits for the pair (pair_number << 8).
Format a BBCode-style string into a chtype array.
CRT::Ncurses.fmt("[bold #0F]Hello[/] world")
Returns an Array(Int32) of chtype values ready for Draw.write_chtype.
Move a given window to an absolute position
If the dimension is a negative value, the dimension will be the full height/width of the parent window minus the absolute value. Otherwise, the dimension will be the given value.
Nested types
- CRT::Ncurses::Alignments
- CRT::Ncurses::AlphaList
- CRT::Ncurses::Bindings
- CRT::Ncurses::Borders
- CRT::Ncurses::Button
- CRT::Ncurses::Buttonbox
- CRT::Ncurses::CRTObjs
- CRT::Ncurses::Calendar
- CRT::Ncurses::CommonControls
- CRT::Ncurses::Converters
- CRT::Ncurses::Dialog
- CRT::Ncurses::Direction
- CRT::Ncurses::Display
- CRT::Ncurses::DisplayType
- CRT::Ncurses::Dominant
- CRT::Ncurses::Draw
- CRT::Ncurses::Entry
- CRT::Ncurses::ExitConditions
- CRT::Ncurses::ExitType
- CRT::Ncurses::FileSelect
- CRT::Ncurses::Focusable
- CRT::Ncurses::Formattable
- CRT::Ncurses::Formatter
- CRT::Ncurses::Framing
- CRT::Ncurses::Graph
- CRT::Ncurses::HasScreen
- CRT::Ncurses::HasTitle
- CRT::Ncurses::HistViewType
- CRT::Ncurses::Histogram
- CRT::Ncurses::ItemList
- CRT::Ncurses::Justifications
- CRT::Ncurses::Label
- CRT::Ncurses::ListSupport
- CRT::Ncurses::Marquee
- CRT::Ncurses::Matrix
- CRT::Ncurses::Menu
- CRT::Ncurses::Movement
- CRT::Ncurses::MultiEntry
- CRT::Ncurses::Position
- CRT::Ncurses::Radio
- CRT::Ncurses::Scale(T)
- CRT::Ncurses::Screen
- CRT::Ncurses::Scroll
- CRT::Ncurses::ScrollWindow
- CRT::Ncurses::Scroller
- CRT::Ncurses::Selection
- CRT::Ncurses::Slider(T)
- CRT::Ncurses::Template
- CRT::Ncurses::Viewer
- CRT::Ncurses::WindowHooks
- CRT::Ncurses::WindowInput