FACT++  1.0
void Shell::Shutdown ( const char *  buf)
privatevirtual

Overwrites Shutdown. It's main purpose is to re-output the prompt and the buffer using the WindowLog stream so that it is buffered in its backlog.

Parameters
bufA pointer to the buffer returned by readline

Reimplemented from ReadlineWindow.

Definition at line 502 of file Shell.cc.

References Readline::GetPrompt(), kBlue, kReset, ReadlineWindow::RewindCursor(), ReadlineWindow::Shutdown(), and win.

503 {
505 
506  // Now move the cursor to the start of the prompt
507  RewindCursor();
508 
509  // Output the text ourself to get it into the backlog
510  // buffer of win. We cannot use GetBuffer() because rl_end
511  // is not updated finally.
512  win << kBlue << GetPrompt() << kReset << buf << endl;
513 }
WindowLog win
pointer to our glocal object to get the static member functions into scope
Definition: Shell.h:17
static std::string GetPrompt()
Definition: Readline.cc:751
Set color Blue.
Definition: WindowLog.h:20
void Shutdown(const char *buf)
void RewindCursor() const
Reset all attributes.
Definition: WindowLog.h:29

+ Here is the call graph for this function: