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
maxx

maxx() Instance Public methods A getter for the maximum columns for the window

2015-04-02 03:05:21
maxy

maxy() Instance Public methods A getter for the maximum lines for the window

2015-04-02 03:07:19
addstr

addstr(str) Instance Public methods add a string of characters str

2015-04-02 01:16:25
getbkgd

getbkgd() Instance Public methods Returns an Interer (ch) for the

2015-04-02 02:22:08
subwin

subwin(height, width, top, left) Instance Public methods Contruct a new subwindow

2015-04-02 04:07:31