class

CRT::Ncurses::Screen

Inherits Reference < Object

Constants

EXITCANCEL = 2
EXITOK = 1
NOEXIT = 0

Constructors

new(window : NCurses::Window)
Source

Class methods

end_crt

End CRT / ncurses mode

Source
lower_object(obj_type : Symbol, obj : CRT::Ncurses::CRTObjs)
Source
raise_object(obj_type : Symbol, obj : CRT::Ncurses::CRTObjs)
Source
refresh_output(v : Bool = true)
Source
refresh_output?
Source
refresh_window(win : NCurses::Window)
Source
unregister(obj_type : Symbol, obj : CRT::Ncurses::CRTObjs)

Remove an object from the CRT screen

Source
wrefresh(w : NCurses::Window)
Source

Instance methods

destroy

Destroy this screen

Source
destroy_screen_objects

Destroy all objects on a screen

Source
draw

This calls refresh (made consistent with widgets)

Source
erase

Erase all objects in the screen

Source
exit_status
Source
exit_status=(exit_status : Int32)
Source
object
Source
object=(object : Array(CRT::Ncurses::CRTObjs | Nil))
Source
object_count
Source
object_count=(object_count : Int32)
Source
object_focus
Source
object_focus=(object_focus : Int32)
Source
object_limit
Source
object_limit=(object_limit : Int32)
Source
raw_mode!

Switch to raw mode so all control keys (Ctrl+C, Ctrl+, Ctrl+Z) arrive as input rather than generating signals. Call after initialize.

Source
refresh

Refresh all objects in the screen

Source
register(obj_type : Symbol, obj : CRT::Ncurses::CRTObjs)

Register a CRT object with a screen

Source
set_screen_index(number : Int32, obj : CRT::Ncurses::CRTObjs)
Source
swap_indices(n1 : Int32, n2 : Int32)
Source
valid_index?(n : Int32) : Bool
Source
window
Source
window=(window : NCurses::Window | Nil)
Source