TerminalSession.h
Go to the documentation of this file.
#ifndef __Terminal_h__
#define __Terminal_h__
#include "includes"
#include "TLSSession.h"
#include "TCPServer.h"
namespace core {
static const int FG_BLACK = 30;
static const int FG_RED = 31;
static const int FG_GREEN = 32;
static const int FG_YELLOW = 33;
static const int FG_BLUE = 34;
static const int FG_MAGENTA = 35;
static const int FG_CYAN = 36;
static const int FG_WHITE = 37;
static const int BG_BLACK = 40;
static const int BG_RED = 41;
static const int BG_GREEN = 42;
static const int BG_YELLOW = 43;
static const int BG_BLUE = 44;
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:
TerminalSession(EPoll &ePoll, TCPServer &server);
~TerminalSession();
int getLines();
void clear();
void clearEOL();
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 scrollArea(int start, int end);
};
}
#endif
core::TerminalSession::scrollArea
void scrollArea(int start, int end)
Definition: TerminalSession.cpp:51
core::Socket::ePoll
EPoll & ePoll
Definition: Socket.h:117
core::EPoll
Definition: EPoll.h:31
core::TerminalSession::setBackColor
void setBackColor(int color)
Definition: TerminalSession.cpp:33
core::TCPServer
Definition: TCPServer.h:24
core::TerminalSession::NextLine
void NextLine(int lines)
Definition: TerminalSession.cpp:45
core::TerminalSession::saveCursor
void saveCursor()
Definition: TerminalSession.cpp:37
core::TerminalSession::TerminalSession
TerminalSession(EPoll &ePoll, TCPServer &server)
Definition: TerminalSession.cpp:5
core::TerminalSession::~TerminalSession
~TerminalSession()
Definition: TerminalSession.cpp:8
core::TCPSession
Definition: TCPSession.h:25
core::TerminalSession::getLines
int getLines()
Definition: TerminalSession.cpp:11
core
Definition: Command.cpp:5
core::TerminalSession::restoreCursor
void restoreCursor()
Definition: TerminalSession.cpp:41
core::TerminalSession::setColor
void setColor(int color)
Definition: TerminalSession.cpp:29
core::TerminalSession::clear
void clear()
Definition: TerminalSession.cpp:17
core::TerminalSession
Definition: TerminalSession.h:30
core::TerminalSession::clearEOL
void clearEOL()
Definition: TerminalSession.cpp:21
TCPServer.h
core::TerminalSession::PreviousLine
void PreviousLine(int lines)
Definition: TerminalSession.cpp:48
core::TCPSession::server
TCPServer & server
Definition: TCPSession.h:83
TLSSession.h
core::TerminalSession::setCursorLocation
void setCursorLocation(int x, int y)
Definition: TerminalSession.cpp:25