FACT++  1.0
void ReadlineWindow::SetWindow ( WINDOW w)

Set the window in which the readline prompt and all readline output is displayed. Sets the readline screen size (rl_set_screen_size) accoring to the size of the window.

Setup all necessry callback functions. To redirect readline input and output properly.

Parameters
wPointer to a ncurses WINDOW.

Definition at line 76 of file ReadlineWindow.cc.

References fWindow, height, and Readline::Resize().

Referenced by Shell::HandleResize(), Refresh(), and Shell::Shell().

77 {
78  if (!w)
79  return;
80 
81  // Get size of the window
82  int width, height;
83  getmaxyx(w, height, width);
84 
85  // Propagate the size to the readline library
86  Resize(width, height);
87 
88  // Finally set the pointer to the panel in which we are supposed to
89  // operate
90  fWindow = w;
91 }
static void Resize()
Definition: Readline.cc:816
WINDOW * fWindow
float height
Definition: HeadersGPS.h:26

+ Here is the call graph for this function:

+ Here is the caller graph for this function: