NCurses
Constants
BORDER_DEFAULT = 0.chr
ERR = -1
Possible integer result values
OK = 0
VERSION = "1.1.0"
Instance methods
assume_default_colors(fg, bg)
Sourceattr_on(*args, **options)
Sourceattr_on(*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()
change_attribute(*args, **options)
Sourcechange_attribute(*args, **options, &)
Sourceclear(*args, **options)
Sourceclear(*args, **options, &)
Sourceclear_to_bot(*args, **options)
Sourceclear_to_bot(*args, **options, &)
Sourceclear_to_eol(*args, **options)
Sourceclear_to_eol(*args, **options, &)
Sourcecol(*args, **options)
Sourcecol(*args, **options, &)
Sourceerase(*args, **options)
Sourceerase(*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()
init_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
init_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()
max_dimensions(*args, **options)
Sourcemax_dimensions(*args, **options, &)
Sourcemax_dimensions_named(*args, **options)
Sourcemax_dimensions_named(*args, **options, &)
Sourcemouse_mask(new_mask : Mouse)
Sets the mouse events that should be returned
Should be given a Mouse enum
move(*args, **options)
Sourcemove(*args, **options, &)
Sourcepos(*args, **options)
Sourcepos(*args, **options, &)
Sourcepos_named(*args, **options)
Sourcepos_named(*args, **options, &)
Sourceposition(*args, **options)
Sourceposition(*args, **options, &)
Sourceposition_named(*args, **options)
Sourceposition_named(*args, **options, &)
Sourceraw
Disable buffering of input and signals
#cbreak but also passes signals
TODO: Implement signals?
refresh(*args, **options)
Sourcerefresh(*args, **options, &)
Sourcerow(*args, **options)
Sourcerow(*args, **options, &)
Sourceset_attr(*args, **options)
Sourceset_attr(*args, **options, &)
Sourceset_attribute(*args, **options)
Sourceset_attribute(*args, **options, &)
Sourceset_pos(*args, **options)
Sourceset_pos(*args, **options, &)
Sourceuse_default_colors
Sourcewith_attr(*args, **options)
Sourcewith_attr(*args, **options, &)
Sourcewith_attribute(*args, **options)
Sourcewith_attribute(*args, **options, &)
Sourcex(*args, **options)
Sourcex(*args, **options, &)
Sourcey(*args, **options)
Sourcey(*args, **options, &)
Source