Changeset 14083 for trunk/FACT++
- Timestamp:
- 06/05/12 17:23:36 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Console.cc
r14071 r14083 82 82 } 83 83 84 void Console::Lock() 85 { 86 // FIXME: Check missing 87 fLogO.Display(true); 88 fLogO.SetBacklog(false); 89 fLogO.SetNullOutput(false); 90 } 91 92 void Console::Unlock() 93 { 94 // FIXME: Check missing 95 fLogO.SetNullOutput(true); 96 fLogO.SetBacklog(true); 97 } 98 84 99 // -------------------------------------------------------------------------- 85 100 // … … 96 111 if (str.substr(0, 3)==".w ") 97 112 { 98 fLogO.Display(true); 99 fLogO.SetBacklog(false); 100 fLogO.SetNullOutput(false); 113 Lock(); 101 114 usleep(stoul(str.substr(3))*1000); 102 fLogO.SetNullOutput(true); 103 fLogO.SetBacklog(true); 115 Unlock(); 104 116 return true; 105 117 } … … 205 217 // ************************************************************************** 206 218 219 ConsoleStream::~ConsoleStream() 220 { 221 fLogO.Display(); 222 } 207 223 208 224 // -------------------------------------------------------------------------- -
trunk/FACT++/src/Console.h
r13771 r14083 14 14 public: 15 15 ConsoleStream(const char *name); 16 ~ConsoleStream(); 16 17 17 18 void SetNullOutput(bool null) { fLogO.SetNullOutput(null); } … … 24 25 const WindowLog &GetStreamIn() const { return fLogO; } 25 26 27 void Lock() { } 26 28 void Run(const char * = 0); 29 void Unlock() { } 27 30 }; 28 31 … … 59 62 bool PrintKeyBindings(); 60 63 64 void Lock(); 61 65 bool Process(const std::string &str); 66 void Unlock(); 62 67 63 68 std::string GetLinePrompt() const;
Note:
See TracChangeset
for help on using the changeset viewer.