class NCurses::Window

Defined in:

ncurses.cr
ncurses/window.cr

Constant Summary

ATTRIBUTES = [:normal, :attributes, :chartext, :color, :standout, :underline, :reverse, :blink, :dim, :bold, :altcharset, :invis, :protect, :horizontal, :left, :low, :right, :top, :vertical, :italic]

Constructors

Instance Method Summary

Constructor Detail

def self.new(window : LibNCurses::Window) #

[View source]
def self.new(height = nil, width = nil, y = 0, x = 0) #

[View source]

Instance Method Detail

def add_char(chr, position = nil) #

[View source]
def attr_off(attributes : Array(Symbol | Nil)) #

[View source]
def attr_off(*attributes) #

[View source]
def attr_on(attributes : Array(Symbol | Nil)) #

[View source]
def attr_on(*attributes) #

[View source]
def clear #

[View source]
def current_background #

[View source]
def current_color #

[View source]
def get_char #

[View source]
def max_dimensions #

[View source]
def max_x #

[View source]
def max_y #

[View source]
def move(x, y) #

[View source]
def no_delay #

[View source]
def no_timeout #

[View source]
def on_input(&) #

[View source]
def print(message, position = nil) #

[View source]
def refresh #

[View source]
def set_background(color_pair : Int32) #

[View source]
def set_color(slot : Int32 | Nil) #

[View source]
def timeout=(value) #

[View source]
def to_unsafe : LibNCurses::Window #

[View source]
def with_attr(attributes : Array(Symbol | Nil), &) #

[View source]
def with_attr(*attributes, &block) #

[View source]
def with_color(slot, &) #

[View source]