File: color.h

package info (click to toggle)
bowtie 1.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,864 kB
  • ctags: 5,533
  • sloc: cpp: 32,737; perl: 2,084; ansic: 1,241; sh: 1,066; makefile: 344; python: 133
file content (27 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (4)
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_ */