- Timestamp:
- 04/09/11 14:05:49 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Readline.cc
r10308 r10331 1041 1041 { 1042 1042 char *buf = readline(prompt.c_str()); 1043 1043 1044 Shutdown(buf ? buf : ""); 1044 1045 1045 const string str = buf ? TrimSpaces(buf) : ".q";1046 const string str = !buf || (rl_done && rl_pending_input) ? ".q" : TrimSpaces(buf); 1046 1047 1047 1048 free(buf); … … 1095 1096 } 1096 1097 } 1098 1099 void Readline::Stop() 1100 { 1101 rl_done = 1; 1102 rl_pending_input = 1; 1103 } -
trunk/FACT++/src/Readline.h
r10308 r10331 87 87 virtual std::string Prompt(const std::string &prompt); 88 88 virtual void Run(const char *prompt=0); 89 static void Stop(); 89 90 90 91 int GetLine() const { return fLine; }
Note:
See TracChangeset
for help on using the changeset viewer.