Changeset 14069
- Timestamp:
- 06/04/12 21:48:13 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Readline.cc
r14010 r14069 74 74 int Readline::fScriptDepth = 0; 75 75 std::string Readline::fScript; 76 std::string Readline::fExternalInput; 76 77 77 78 // -------------------------------------------------------------------------- … … 307 308 void Readline::EventHook() 308 309 { 310 const string cpy = fExternalInput; 311 fExternalInput = ""; 312 313 if (!cpy.empty()) 314 { 315 rl_replace_line(cpy.c_str(), 1); 316 rl_done = 1; 317 } 318 309 319 const string p = GetUpdatePrompt(); 310 320 if (p.empty()) -
trunk/FACT++/src/Readline.h
r14057 r14069 31 31 static int fScriptDepth; 32 32 static bool fStopScript; 33 34 static std::string fExternalInput; 33 35 34 36 /// Static member function which are used to adapt readline to ncurses … … 110 112 static bool IsScriptStopped() { return fStopScript; } 111 113 static int GetScriptDepth() { return fScriptDepth; } 114 static void SetExternalInput(const std::string &inp) { fExternalInput = inp; } 112 115 113 116 static std::string GetScript() { return fScript; } 117 static std::string GetExternalInput() { return fExternalInput; } 114 118 115 119 int GetLine() const { return fLine; }
Note:
See TracChangeset
for help on using the changeset viewer.