Screen
NAME
Terminal::UI::Screen -- The entire screen.
DESCRIPTION
This class represents the screen, which may have frames on it, and the frames may have panes.
ATTRIBUTES
$!cols (Mu)
The number of columns (default the entire screen).
$!frames (SetHash)
The frames in the screen.
$!resized (Supplier)
Resize events.
$!rows (Mu)
The number of rows (default the entire screen).
METHODS
Add a frame to the screen.
available-rows(Terminal::UI::Screen $:: *%_)
Number of rows available (height - 2 for the border)
draw(Terminal::UI::Screen $:: *%_)
Draw the entire screen
find-frame(Terminal::UI::Screen :: name, *%_ --> Terminal::UI::Frame)
Find a frame that has a given name
frame(Terminal::UI::Screen $:: *%_)
The first frame (handy if it's the only one)
handle-resize(Terminal::UI::Screen $:: |args)
Handle a resize of the screen (e.g. a SIGWINCH)
init(Terminal::UI::Screen $:: \ui, *%_)
Clear and set things up.
pane(Terminal::UI::Screen $:: *%_)
When there is only one pane and only one frame, return it
pane-count(Terminal::UI::Screen :: :min, :$max, *%_)
Find the number of panes which have lines between two rows
panes(Terminal::UI::Screen $:: *%_)
All the panes in all the frames.
quietly(Terminal::UI::Screen $:: \ui, &code, *%_)
Suppress all warnings (including popups) for a block of code
refresh(Terminal::UI::Screen $:: *%_)
Refresh
remove-frame(Terminal::UI::Screen :: Terminal::UI::Frame f, *%_)
Remove a frame
shutdown(Terminal::UI::Screen :: msg = Nil, *%_)
Shut down and reset the state, with an optional message