# BMA Server Framework: /home/bradarant/barant/ServerCore/TerminalSession.h Source File

/home/bradarant/barant/ServerCore/TerminalSession.h
#ifndef __Terminal_h__
#define __Terminal_h__
#include "includes"
#include "Session.h"
#include "TCPServerSocket.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 Session {
public:
TerminalSession(EPoll &ePoll, Service &service);
~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::EPoll
Definition: EPoll.h:31
core
Definition: Command.cpp:4
core::Session
Definition: Session.h:22
core::Service
Definition: Service.h:20
core::TerminalSession
Definition: TerminalSession.h:30