FACT++  1.0
void Readline::StaticPushHistory ( const std::string &  fname = "")
static

Writes the current history to the file defined by fName and replaces the history by the data from the given file.

Parameters
fnameName of the history file to read

Definition at line 1303 of file Readline.cc.

References fName, and This.

Referenced by Instance().

1304 {
1305  fs::path his = fs::path(This->fName).parent_path();
1306  his /= fname;
1307 
1308  write_history(This->fName.c_str());
1309  stifle_history(0);
1310  unstifle_history();
1311  read_history(his.string().c_str());
1312 }
static Readline * This
Definition: Readline.h:19
std::string fName
Definition: Readline.h:22

+ Here is the caller graph for this function: