This resized the top panel or output panel as requested by the argument. The argument is the number of lines which are kept free for the input panel below the top panel
- Returns
- always true
Definition at line 383 of file Shell.cc.
References CreateWindows(), WindowLog::Display(), fPanelFrame, fPanelHeight, fPanelOut, WindowLog::SetWindow(), and wout.
Referenced by rl_top_resize().
387 getmaxyx(stdscr, lines, cols);
390 if (h<1 || h>lines-5)
PANEL * fPanelOut
Pointer to the panel for the frame around the output.
void CreateWindows(WINDOW *w[3], int all=true)
Helper for the constructor and window resizing to create the windows and panels.
PANEL * fPanelFrame
Pointer to the panel for the input stream.
void SetWindow(WINDOW *w)
Redirect the output to an ncurses WINDOW instead of cout.
void Display(bool empty=false)
Display backlog.
int fPanelHeight
Pointer to the panel for the output stream.