]>
Commit | Line | Data |
---|---|---|
ef7b593b QM |
1 | /* |
2 | * Copyright (c) 2016 6WIND S.A. | |
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 | #ifndef COLORS_H | |
18 | #define COLORS_H 1 | |
19 | ||
20 | #include <stdbool.h> | |
21 | ||
22 | struct colors { | |
23 | /* Color codes for various situation. Each of these is a fully formed | |
24 | * Select Graphic Rendition (SGR, "\33[...m") start string for the | |
25 | * appropriate color. | |
26 | */ | |
27 | char *actions; | |
28 | char *drop; | |
29 | char *learn; | |
30 | char *param; | |
31 | char *paren; | |
32 | char *special; | |
33 | char *value; | |
34 | ||
35 | /* SGR end string. */ | |
36 | char *end; | |
37 | }; | |
38 | extern struct colors colors; | |
39 | ||
40 | void colors_init(bool enable_color); | |
41 | ||
42 | #endif /* colors.h */ |