-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolors.h
More file actions
63 lines (55 loc) · 1.97 KB
/
colors.h
File metadata and controls
63 lines (55 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//***********************************************************
//
// File: colors.h
//
// Author: Matthew Beldyk
// Email: mb245002@ohiou.edu
//
// Usage: I created this file to house some names string
// constants with escape codes for colors in them
// this makes it much easier for me to do colors.
// I can still use the codes if I want, but this
// works too. try the statement:
// cout<<BLUE<<"I like cookies"<<endl;
//
// You may use this whereever you want, but if you
// make any large improvements or whatever, I am
// curious, so email 'em my way, please.
//
//***********************************************************
//
// all credit given to Matthew Beldyk for writing this file
// he gave me permission to try out in my programs
// just wanted to use to make everything look nice
//
//***********************************************************
#ifndef COLORS_H
#define COLORS_H
#include <string>
using namespace std;
const string BLINK = "\e[5m"; //don't use this your
//professor will probibly
//beat you to death if
//you do feel the need to
//use blink!!!
const string BOLD = "\e[1m";
const string RESET = "\e[0m";
const string ERROR = "\e[1;41;37m\a";
const string MENU = "\e[44;37m";
const string BLACK = "\e[30m";
const string RED = "\e[31m";
const string GREEN = "\e[32m";
const string YELLOW = "\e[33m";
const string BLUE = "\e[34m";
const string MAGENTA = "\e[35m";
const string CYAN = "\e[36m";
const string WHITE = "\e[37m";
const string B_BLACK = "\e[40m";
const string B_RED = "\e[41m";
const string B_GREEN = "\e[42m";
const string B_YELLOW = "\e[43m";
const string B_BLUE = "\e[44m";
const string B_MAGENTA = "\e[45m";
const string B_CYAN = "\e[46m";
const string B_WHITE = "\e[47m";
#endif //COLORS_H