tizen 2.3.1 release
[framework/web/wearable/wrt-security.git] / commons / 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 namespace DPL {
27 namespace Colors {
28 namespace Text {
29 const char* BOLD_GREEN_BEGIN = "\033[1;32m";
30 const char* BOLD_GREEN_END = "\033[m";
31 const char* RED_BEGIN = "\033[0;31m";
32 const char* RED_END = "\033[m";
33 const char* PURPLE_BEGIN = "\033[0;35m";
34 const char* PURPLE_END = "\033[m";
35 const char* GREEN_BEGIN = "\033[0;32m";
36 const char* GREEN_END = "\033[m";
37 const char* CYAN_BEGIN = "\033[0;36m";
38 const char* CYAN_END = "\033[m";
39 const char* BOLD_RED_BEGIN = "\033[1;31m";
40 const char* BOLD_RED_END = "\033[m";
41 const char* BOLD_YELLOW_BEGIN = "\033[1;33m";
42 const char* BOLD_YELLOW_END = "\033[m";
43 const char* BOLD_GOLD_BEGIN = "\033[0;33m";
44 const char* BOLD_GOLD_END = "\033[m";
45 const char* BOLD_WHITE_BEGIN = "\033[1;37m";
46 const char* BOLD_WHITE_END = "\033[m";
47 } //namespace Text
48
49 namespace Html {
50 const char* BOLD_GREEN_BEGIN = "<font color=\"green\"><b>";
51 const char* BOLD_GREEN_END = "</b></font>";
52 const char* PURPLE_BEGIN = "<font color=\"purple\"><b>";
53 const char* PURPLE_END = "</b></font>";
54 const char* RED_BEGIN = "<font color=\"red\"><b>";
55 const char* RED_END = "</b></font>";
56 const char* GREEN_BEGIN = "<font color=\"green\">";
57 const char* GREEN_END = "</font>";
58 const char* CYAN_BEGIN = "<font color=\"cyan\">";
59 const char* CYAN_END = "</font>";
60 const char* BOLD_RED_BEGIN = "<font color=\"red\"><b>";
61 const char* BOLD_RED_END = "</b></font>";
62 const char* BOLD_YELLOW_BEGIN = "<font color=\"yellow\"><b>";
63 const char* BOLD_YELLOW_END = "</b></font>";
64 const char* BOLD_GOLD_BEGIN = "<font color=\"gold\"><b>";
65 const char* BOLD_GOLD_END = "</b></font>";
66 const char* BOLD_WHITE_BEGIN = "<font color=\"white\"><b>";
67 const char* BOLD_WHITE_END = "</b></font>";
68 } //namespace Html
69 } //namespace Colors
70 } //namespace DPL