Type:
Class

Description

The means by which to create and manage frames or windows. While there may be more than one window at a time, only one window will receive input.

Usage

require 'curses'

Curses.init_screen()

my_str = "LOOK! PONIES!"
win = Curses::Window.new( 8, (my_str.length + 10),
                          (Curses.lines - 8) / 2,
                          (Curses.cols - (my_str.length + 10)) / 2 )
win.box("|", "-")
win.setpos(2,3)
win.addstr(my_str)
# or even
win << "\nORLY"
win << "\nYES!! " + my_str
win.refresh
win.getch
win.close
attroff

attroff(attrs) Instance Public methods Turns on the named attributes attrs

2015-04-02 01:22:03
curx

curx() Instance Public methods A getter for the current column (X coord) of

2015-04-02 02:12:54
attron

attron(attrs) Instance Public methods Turns off the named attributes attrs

2015-04-02 01:24:20
color_set

color_set(col) Instance Public methods Sets the current color of the given

2015-04-02 02:07:25
getch

getch() Instance Public methods Read and returns a character from the window

2015-04-02 02:25:18
bkgdset

bkgdset(ch) Instance Public methods Manipulate the background of the current

2015-04-02 01:45:44
getstr

getstr() Instance Public methods This is equivalent to a series f

2015-04-02 02:32:04
resize

resize(lines, cols) Instance Public methods Resize the current window to

2015-04-02 03:29:25
noutrefresh

noutrefresh() Instance Public methods Refreshes the windows and lines.

2015-04-02 03:23:31
new

new(height, width, top, left) Class Public methods Contruct a new

2015-04-02 01:05:28