Non static member function called by HandleResize.
Signal handler for SIGWINCH. It resizes the terminal and all panels according to the new terminal size and redisplay the backlog buffer in both windows
- Todo:
- Maybe there are more efficient ways than to display the whole buffers
Definition at line 332 of file Shell.cc.
References CreateWindows(), WindowLog::Display(), fPanelFrame, fPanelIn, fPanelOut, ReadlineWindow::SetWindow(), WindowLog::SetWindow(), win, and wout.
Referenced by HandleResizeImp().
336 ioctl(0, TIOCGWINSZ, &w);
339 resize_term(w.ws_row, w.ws_col);
PANEL * fPanelOut
Pointer to the panel for the frame around the output.
WindowLog win
pointer to our glocal object to get the static member functions into scope
void SetWindow(WINDOW *w)
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.