Instance methods
add_char(*args, **options)
Sourceadd_char(*args, **options, &)
Sourceattr_get(*args, **options)
Sourceattr_get(*args, **options, &)
Sourceattr_off(*args, **options)
Sourceattr_off(*args, **options, &)
Sourceattr_on(*args, **options)
Sourceattr_on(*args, **options, &)
Sourceattribute_off(*args, **options)
Sourceattribute_off(*args, **options, &)
Sourceattribute_on(*args, **options)
Sourceattribute_on(*args, **options, &)
Sourcecan_change_color?
Terminal allows setting custom RGB color values
Wrapper for can_change_color()
Sourcecbreak
Disable buffering, key input is returned with no delay
Wrapper for cbreak()
Sourcechange_attribute(*args, **options)
Sourcechange_attribute(*args, **options, &)
Sourcechange_background(*args, **options)
Sourcechange_background(*args, **options, &)
Sourcechange_color(slot, red, green, blue)
Sourceclear(*args, **options, &)
Sourcecols(*args, **options, &)
Sourceecho(option : Bool)
If echoing back to terminal should be enabled
Sourceecho
Re-enable echoing of input back to console
Wrapper for echo()
Sourceend
End curses mode
Wrapper for endwin()
Sourceget_attribute(*args, **options)
Sourceget_attribute(*args, **options, &)
Sourceget_background(*args, **options)
Sourceget_background(*args, **options, &)
Sourceget_char(*args, **options)
Sourceget_char(*args, **options, &)
Sourceget_mouse
Should only be called if #get_char returned Key::Mouse
Returns a MouseEvent containing the mouse state and coordinates
Wrapper for getmouse()
Sourcehas_colors?
Terminal supports colors
Wrapper for has_colors()
Sourcehas_mouse
If the terminal has mouse support
Wrapper for has_mouse()
Sourceheight(*args, **options)
Sourceheight(*args, **options, &)
Sourceinit_color(slot, red, green, blue)
Change the RGB values of the color
Between 0 and 1000
change_color Color::Red, 0, 0, 1000 # => Color::Red will now appear blue
Sourceinit_color_pair(slot, foreground : Color, background : Color)
Create a color pair to use
Pass an integer for id of the pair in the slot
Pass a Color for both the foreground and then background
init_color_pair 5, Color::Red, Color::Blue # => Color pair 5 is not red on black
Wrapper for init_pair()
Sourcekeypad(*args, **options)
Sourcekeypad(*args, **options, &)
Sourceline_buffer(option)
If input should be buffered to new lines
Enable if true, disable if false
Sourcelines(*args, **options, &)
Sourcemax_dimensions(*args, **options)
Sourcemax_dimensions(*args, **options, &)
Sourcemax_dimensions_named(*args, **options)
Sourcemax_dimensions_named(*args, **options, &)
Sourcemax_x(*args, **options, &)
Sourcemax_y(*args, **options, &)
Sourcemouse_mask(new_mask : Mouse)
Sets the mouse events that should be returned
Should be given a Mouse enum
Sourcemove(*args, **options, &)
Sourcenew_term(terminal, out_io, in_io)
Unknown functionality
Wrpper for newterm()
Sourceno_delay(*args, **options)
Sourceno_delay(*args, **options, &)
Sourceno_echo
Do not echo back to the console
Wrapper for noecho()
Sourceno_raw
Re-enable buffering of input and signals
Wrapper for noraw()
Sourceno_timeout(*args, **options)
Sourceno_timeout(*args, **options, &)
Sourcenocbreak
Re-enable buffering until new line
Wrapper for nocbreak()
Sourceprint(*args, **options, &)
Sourceraw(option)
If buffering should be disabled for input and signals
Sourceraw
Disable buffering of input and signals
#cbreak but also passes signals
TODO: Implement signals?
Sourcerefresh(*args, **options)
Sourcerefresh(*args, **options, &)
Sourceset_attr(*args, **options)
Sourceset_attr(*args, **options, &)
Sourceset_attribute(*args, **options)
Sourceset_attribute(*args, **options, &)
Sourceset_background(*args, **options)
Sourceset_background(*args, **options, &)
Sourceset_color(*args, **options)
Sourceset_color(*args, **options, &)
Sourceset_cursor(visibility : Cursor)
Set the cursor state
Use Cursor enum
Wrapper for curs_set()
Sourceset_pos(*args, **options)
Sourceset_pos(*args, **options, &)
Sourcestart
Start curses mode
Wrapper for initscr()
Sourcestart_color
Start color support
Wrapper for start_color()
Sourcestdscr
Get stdscr
May remove due to delegateing
Sourceterm=(screen)
Unknown functionality
Wrapper for set_term()
Sourcetimeout(*args, **options)
Sourcetimeout(*args, **options, &)
Sourcewidth(*args, **options, &)
Sourcewith_attr(*args, **options)
Sourcewith_attr(*args, **options, &)
Sourcewith_attribute(*args, **options)
Sourcewith_attribute(*args, **options, &)
Source