Tizen 2.0 Release
[framework/web/wrt-commons.git] / modules / core / src / colors.cpp
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16 /*
17  * @file        colors.cpp
18  * @author      Lukasz Wrzosek (l.wrzosek@samsung.com)
19  * @version     1.0
20  * @brief       Some constants with definition of colors for Console
21  *              and html output
22  */
23 #include <stddef.h>
24 #include <dpl/colors.h>
25
26
27 namespace DPL
28 {
29
30 namespace Colors
31 {
32
33 namespace Text
34 {
35
36 const char* BOLD_GREEN_BEGIN = "\033[1;32m";
37 const char* BOLD_GREEN_END = "\033[m";
38 const char* RED_BEGIN = "\033[0;31m";
39 const char* RED_END = "\033[m";
40 const char* PURPLE_BEGIN = "\033[0;35m";
41 const char* PURPLE_END = "\033[m";
42 const char* GREEN_BEGIN = "\033[0;32m";
43 const char* GREEN_END = "\033[m";
44 const char* CYAN_BEGIN = "\033[0;36m";
45 const char* CYAN_END = "\033[m";
46 const char* BOLD_RED_BEGIN = "\033[1;31m";
47 const char* BOLD_RED_END = "\033[m";
48 const char* BOLD_YELLOW_BEGIN = "\033[1;33m";
49 const char* BOLD_YELLOW_END = "\033[m";
50 const char* BOLD_GOLD_BEGIN = "\033[0;33m";
51 const char* BOLD_GOLD_END = "\033[m";
52 const char* BOLD_WHITE_BEGIN = "\033[1;37m";
53 const char* BOLD_WHITE_END = "\033[m";
54
55 } //namespace Text
56
57 namespace Html
58 {
59
60 const char* BOLD_GREEN_BEGIN = "<font color=\"green\"><b>";
61 const char* BOLD_GREEN_END = "</b></font>";
62 const char* PURPLE_BEGIN = "<font color=\"purple\"><b>";
63 const char* PURPLE_END = "</b></font>";
64 const char* RED_BEGIN = "<font color=\"red\"><b>";
65 const char* RED_END = "</b></font>";
66 const char* GREEN_BEGIN = "<font color=\"green\">";
67 const char* GREEN_END = "</font>";
68 const char* CYAN_BEGIN = "<font color=\"cyan\">";
69 const char* CYAN_END = "</font>";
70 const char* BOLD_RED_BEGIN = "<font color=\"red\"><b>";
71 const char* BOLD_RED_END = "</b></font>";
72 const char* BOLD_YELLOW_BEGIN = "<font color=\"yellow\"><b>";
73 const char* BOLD_YELLOW_END = "</b></font>";
74 const char* BOLD_GOLD_BEGIN = "<font color=\"gold\"><b>";
75 const char* BOLD_GOLD_END = "</b></font>";
76 const char* BOLD_WHITE_BEGIN = "<font color=\"white\"><b>";
77 const char* BOLD_WHITE_END = "</b></font>";
78
79 } //namespace Html
80
81 } //namespace Colors
82
83 } //namespace DPL