File: color.h

package info (click to toggle)
bowtie 1.2.3+dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 16,888 kB
  • sloc: cpp: 35,784; perl: 5,903; ansic: 1,247; sh: 1,180; python: 487; makefile: 426
file content (27 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (5)
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
/*
 * color.h
 *
 *  Created on: Oct 18, 2009
 *      Author: Ben Langmead
 */

#ifndef COLOR_H_
#define COLOR_H_

#include <string>

enum {
	COLOR_RED = 1,
	COLOR_GREEN,
	COLOR_YELLOW,
	COLOR_BLUE,
	COLOR_WHITE = 7
};


void appendConsoleColor(std::string& s, int color);
void setConsoleColor(int color);
void appendColor(std::string& s, char color);
void printColor(char color);

#endif /* COLOR_H_ */