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
noutrefresh

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

2015-04-02 03:23:31
resize

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

2015-04-02 03:29:25
getstr

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

2015-04-02 02:32:04
attron

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

2015-04-02 01:24:20
curx

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

2015-04-02 02:12:54
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
color_set

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

2015-04-02 02:07:25
attroff

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

2015-04-02 01:22:03
addch

addch(ch) Instance Public methods Add a character ch, with attributes

2015-04-02 01:12:53