48 lines
888 B
C++
48 lines
888 B
C++
#ifndef DEF_TERM_H
|
|
|
|
#define DEF_TERM_H
|
|
|
|
/* [1] Libs
|
|
=========================================================*/
|
|
/* (1) internes */
|
|
#include <iostream>
|
|
|
|
/* (2) Namespace */
|
|
using namespace std;
|
|
|
|
|
|
/* [2] Enumerations et structures
|
|
=========================================================*/
|
|
enum TERM_COLOR{
|
|
DEFAULT = 0,
|
|
|
|
DARKBLUE = 30,
|
|
RED = 31,
|
|
GREEN = 32,
|
|
YELLOW = 33,
|
|
BLUE = 34,
|
|
PURPLE = 35,
|
|
SKYBLUE = 36
|
|
};
|
|
|
|
enum TERM_STYLE{
|
|
NORMAL = 0,
|
|
BOLD = 1,
|
|
ITALIC = 3,
|
|
UNDERLINE = 4,
|
|
DASHED = 9,
|
|
|
|
BACKGROUND = 7
|
|
};
|
|
|
|
/* [3] Methodes
|
|
=========================================================*/
|
|
void clear();
|
|
void setfont(const TERM_COLOR c=DEFAULT, const TERM_STYLE s=NORMAL);
|
|
void err(string msg);
|
|
|
|
/* [n] Inclusion du corps
|
|
=========================================================*/
|
|
#include "term.cpp"
|
|
|
|
#endif |