diff --git a/TerminalSession.h b/TerminalSession.h index ada8b21..2bb94ea 100644 --- a/TerminalSession.h +++ b/TerminalSession.h @@ -24,44 +24,44 @@ namespace core { static const int BG_MAGENTA = 45; static const int BG_CYAN = 46; static const int BG_WHITE = 47; - + static const char esc = 0x1b; - + class TerminalSession : public TCPSession { - - public: + + public: TerminalSession(EPoll &ePoll, TCPServer &server); ~TerminalSession(); - + int getLines(); /// /// Clear the display. /// - + void clear(); - + /// /// Clear the display from the cursor to the end of line. /// - + void clearEOL(); - + /// /// Set the location of the cursor on the display. /// - + void setCursorLocation(int x, int y); void setColor(int color); void setBackColor(int color); void saveCursor(); void restoreCursor(); void NextLine(int lines); - void PreviousLine(int lines); + void PreviousLine(int lines); void scrollArea(int start, int end); - + }; - + } #endif diff --git a/Thread.cpp b/Thread.cpp index 56b463b..d942b51 100644 --- a/Thread.cpp +++ b/Thread.cpp @@ -70,5 +70,5 @@ namespace core { } coreutils::Log(coreutils::LOG_DEBUG_1) << "Thread ending with thread id " << threadId << "."; } - + } diff --git a/html/CommandList_8h_source.html b/html/CommandList_8h_source.html index cbc3b9b..0b045f8 100644 --- a/html/CommandList_8h_source.html +++ b/html/CommandList_8h_source.html @@ -79,7 +79,7 @@ $(function() {
19 
20  public:
21 
-
22  CommandList(std::string delimiter = "");
+
22  CommandList(std::string delimiter = "", int depth = 0);
23 
27 
28  void add(Command &command, std::string name = "");
@@ -102,24 +102,25 @@ $(function() {
65  protected:
66 
70 
-
71  std::vector<Command *> commands;
+
71  std::map<std::string, Command *> commands;
72  std::string delimiter;
-
73 
-
74  };
-
75 
-
76 }
-
77 
-
78 #endif
+
73  int depth;
+
74 
+
75  };
+
76 
+
77 }
+
78 
+
79 #endif
core::TCPSession
Definition: TCPSession.h:24
-
core::CommandList::commands
std::vector< Command * > commands
Definition: CommandList.h:71
core::CommandList::add
void add(Command &command, std::string name="")
Definition: CommandList.cpp:8
-
core::CommandList::processRequest
bool processRequest(coreutils::ZString &request, TCPSession &session)
Definition: CommandList.cpp:15
-
core::CommandList::grabInput
bool grabInput(TCPSession &session, Command &command)
Definition: CommandList.cpp:27
-
core::CommandList::remove
void remove(Command &command)
Definition: CommandList.cpp:13
+
core::CommandList::processRequest
bool processRequest(coreutils::ZString &request, TCPSession &session)
Definition: CommandList.cpp:14
+
core::CommandList::grabInput
bool grabInput(TCPSession &session, Command &command)
Definition: CommandList.cpp:33
+
core::CommandList::remove
void remove(Command &command)
Definition: CommandList.cpp:12
core::Command
Definition: Command.h:22
core::CommandList
Definition: CommandList.h:18
-
core::CommandList::processCommand
int processCommand(coreutils::ZString &request, TCPSession &session)
Definition: CommandList.cpp:36
+
core::CommandList::processCommand
int processCommand(coreutils::ZString &request, TCPSession &session)
Definition: CommandList.cpp:42
+
core::CommandList::commands
std::map< std::string, Command * > commands
Definition: CommandList.h:71