summaryrefslogtreecommitdiffstats
path: root/src/cr_gpri.c
blob: 451e95a20d4c8f89e57297b04943967182e86b45 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* ============================================================================
 * Copyright (C) 2015, Martial Bornet
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *   (C) Copyright Martial Bornet, 2015.
 *
 *   Author       :     Martial BORNET (MB) - 3rd of January, 2015
 *
 *   Description  :     Private global variables
 *
 *   File         :     cr_gpri.c
 *
 *   @(#)  cr_gpri.c  1.11  15/11/11  MB  
 *
 * Sources from the original hl command are available on :
 * https://github.com/mbornet-hl/hl
 * ============================================================================
 */

#include "cr_epri.h"

struct cr_global                                  G         = { 0 };

/* Error messages
   ~~~~~~~~~~~~~~ */
char                *cr_err_malloc      = "%s: cannot allocate memory !\n";

int                  cr_col_codes[8][3] = {
     {  88,    160,      196  },
     {  28,     34,       46  },
     { 100,    142,      226  },
     {  18,     26,       38  },
     {  90,     91,      134  },
     {  61,     62,       81  },
     { 245,    252,      255  },
     {   0,      0,        0  }
};

char                *cr_best_fg[8][3] = {
     { "1;37", "1;37",   "1;37"    },
     { "1;37", "1;37",   "2;31"    },
     { "1;37", "2;30",   "2;30"    },
     { "1;37", "1;37",   "2;30"    },
     { "1;37", "1;37",   "1;37"    },
     { "1;37", "1;37",   "2;30"    },
     { "1;37", "2;30",   "2;30"    },
     {      0,      0,        0    }
};