FACT++  1.0
string Readline::GetBuffer ( )
static

return rl_line_buffer (the current input line which should currently be displayed on the screen) while a readline command is in progress

The length of the current line buffer (rl_end) is available as GetLineBuffer().size()

Note that after readline has returned the contents of rl_end might not reflect the correct buffer length anymore, hence, the returned buffer might be truncated.

Definition at line 768 of file Readline.cc.

Referenced by GetLine(), and ReadlineWindow::Redisplay().

769 {
770  return string(rl_line_buffer, rl_end);
771 }

+ Here is the caller graph for this function: