tmux-mem-cpu-load/luts.h
Matt McCormick b2f26bab3f Add support for colors.
Colors are added for terminals that have 256 color support when the
--colors flag is enabled.  The background colors are varied with different color
maps derived from their matplotlib versions.  The foreground color is a
contrasting black or white.
2013-04-30 06:38:39 -04:00

317 lines
8.4 KiB
C

#ifndef _luts_h
#define _luts_h
static const char cpu_percentage_lut[][32] = {
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour52]",
"#[fg=white,bg=colour52]",
"#[fg=white,bg=colour52]",
"#[fg=white,bg=colour52]",
"#[fg=white,bg=colour52]",
"#[fg=white,bg=colour52]",
"#[fg=white,bg=colour52]",
"#[fg=white,bg=colour52]",
"#[fg=white,bg=colour88]",
"#[fg=white,bg=colour88]",
"#[fg=white,bg=colour88]",
"#[fg=white,bg=colour88]",
"#[fg=white,bg=colour88]",
"#[fg=white,bg=colour88]",
"#[fg=white,bg=colour88]",
"#[fg=white,bg=colour124]",
"#[fg=white,bg=colour124]",
"#[fg=white,bg=colour124]",
"#[fg=white,bg=colour124]",
"#[fg=white,bg=colour124]",
"#[fg=white,bg=colour124]",
"#[fg=white,bg=colour124]",
"#[fg=white,bg=colour160]",
"#[fg=white,bg=colour160]",
"#[fg=white,bg=colour160]",
"#[fg=white,bg=colour160]",
"#[fg=white,bg=colour160]",
"#[fg=white,bg=colour160]",
"#[fg=white,bg=colour160]",
"#[fg=white,bg=colour160]",
"#[fg=white,bg=colour196]",
"#[fg=white,bg=colour196]",
"#[fg=white,bg=colour196]",
"#[fg=white,bg=colour196]",
"#[fg=white,bg=colour196]",
"#[fg=white,bg=colour196]",
"#[fg=white,bg=colour196]",
"#[fg=white,bg=colour196]",
"#[fg=white,bg=colour202]",
"#[fg=white,bg=colour202]",
"#[fg=white,bg=colour202]",
"#[fg=white,bg=colour202]",
"#[fg=white,bg=colour202]",
"#[fg=white,bg=colour202]",
"#[fg=white,bg=colour202]",
"#[fg=white,bg=colour202]",
"#[fg=white,bg=colour208]",
"#[fg=black,bg=colour208]",
"#[fg=black,bg=colour208]",
"#[fg=black,bg=colour208]",
"#[fg=black,bg=colour208]",
"#[fg=black,bg=colour208]",
"#[fg=black,bg=colour208]",
"#[fg=black,bg=colour214]",
"#[fg=black,bg=colour214]",
"#[fg=black,bg=colour214]",
"#[fg=black,bg=colour214]",
"#[fg=black,bg=colour214]",
"#[fg=black,bg=colour214]",
"#[fg=black,bg=colour214]",
"#[fg=black,bg=colour214]",
"#[fg=black,bg=colour220]",
"#[fg=black,bg=colour220]",
"#[fg=black,bg=colour220]",
"#[fg=black,bg=colour220]",
"#[fg=black,bg=colour220]",
"#[fg=black,bg=colour220]",
"#[fg=black,bg=colour220]",
"#[fg=black,bg=colour226]",
"#[fg=black,bg=colour226]",
"#[fg=black,bg=colour226]",
"#[fg=black,bg=colour226]",
"#[fg=black,bg=colour226]",
"#[fg=black,bg=colour226]",
"#[fg=black,bg=colour227]",
"#[fg=black,bg=colour227]",
"#[fg=black,bg=colour227]",
"#[fg=black,bg=colour227]",
"#[fg=black,bg=colour227]",
"#[fg=black,bg=colour227]",
"#[fg=black,bg=colour228]",
"#[fg=black,bg=colour228]",
"#[fg=black,bg=colour228]",
"#[fg=black,bg=colour228]",
"#[fg=black,bg=colour228]",
"#[fg=black,bg=colour229]",
"#[fg=black,bg=colour229]",
"#[fg=black,bg=colour229]",
"#[fg=black,bg=colour229]",
"#[fg=black,bg=colour229]",
"#[fg=black,bg=colour230]",
"#[fg=black,bg=colour230]",
"#[fg=black,bg=colour230]",
"#[fg=black,bg=colour230]",
"#[fg=black,bg=colour230]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]"
}; // end cpu_percentage_lut
static const char mem_lut[][32] = {
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour17]",
"#[fg=white,bg=colour18]",
"#[fg=white,bg=colour18]",
"#[fg=white,bg=colour18]",
"#[fg=white,bg=colour18]",
"#[fg=white,bg=colour18]",
"#[fg=white,bg=colour18]",
"#[fg=white,bg=colour24]",
"#[fg=white,bg=colour24]",
"#[fg=white,bg=colour24]",
"#[fg=white,bg=colour24]",
"#[fg=white,bg=colour24]",
"#[fg=white,bg=colour24]",
"#[fg=white,bg=colour24]",
"#[fg=white,bg=colour24]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour66]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour72]",
"#[fg=white,bg=colour71]",
"#[fg=white,bg=colour71]",
"#[fg=white,bg=colour71]",
"#[fg=white,bg=colour107]",
"#[fg=white,bg=colour107]",
"#[fg=black,bg=colour107]",
"#[fg=black,bg=colour107]",
"#[fg=black,bg=colour108]",
"#[fg=black,bg=colour108]",
"#[fg=black,bg=colour108]",
"#[fg=black,bg=colour108]",
"#[fg=black,bg=colour108]",
"#[fg=black,bg=colour144]",
"#[fg=black,bg=colour144]",
"#[fg=black,bg=colour144]",
"#[fg=black,bg=colour144]",
"#[fg=black,bg=colour144]",
"#[fg=black,bg=colour144]",
"#[fg=black,bg=colour144]",
"#[fg=black,bg=colour144]",
"#[fg=black,bg=colour144]",
"#[fg=black,bg=colour144]",
"#[fg=black,bg=colour150]",
"#[fg=black,bg=colour150]",
"#[fg=black,bg=colour186]",
"#[fg=black,bg=colour186]",
"#[fg=black,bg=colour186]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour180]",
"#[fg=black,bg=colour181]",
"#[fg=black,bg=colour181]",
"#[fg=black,bg=colour181]",
"#[fg=black,bg=colour181]",
"#[fg=black,bg=colour187]",
"#[fg=black,bg=colour187]",
"#[fg=black,bg=colour187]",
"#[fg=black,bg=colour187]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour224]",
"#[fg=black,bg=colour224]",
"#[fg=black,bg=colour224]",
"#[fg=black,bg=colour224]",
"#[fg=black,bg=colour224]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]"
}; // end mem_lut
static const char load_lut[][32] = {
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour16]",
"#[fg=white,bg=colour17]",
"#[fg=white,bg=colour17]",
"#[fg=white,bg=colour17]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour59]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour60]",
"#[fg=white,bg=colour102]",
"#[fg=white,bg=colour102]",
"#[fg=white,bg=colour102]",
"#[fg=white,bg=colour102]",
"#[fg=white,bg=colour102]",
"#[fg=white,bg=colour102]",
"#[fg=white,bg=colour102]",
"#[fg=white,bg=colour102]",
"#[fg=white,bg=colour103]",
"#[fg=white,bg=colour103]",
"#[fg=white,bg=colour103]",
"#[fg=white,bg=colour103]",
"#[fg=white,bg=colour103]",
"#[fg=white,bg=colour103]",
"#[fg=white,bg=colour103]",
"#[fg=black,bg=colour103]",
"#[fg=black,bg=colour103]",
"#[fg=black,bg=colour109]",
"#[fg=black,bg=colour109]",
"#[fg=black,bg=colour109]",
"#[fg=black,bg=colour109]",
"#[fg=black,bg=colour109]",
"#[fg=black,bg=colour109]",
"#[fg=black,bg=colour145]",
"#[fg=black,bg=colour145]",
"#[fg=black,bg=colour145]",
"#[fg=black,bg=colour145]",
"#[fg=black,bg=colour145]",
"#[fg=black,bg=colour145]",
"#[fg=black,bg=colour145]",
"#[fg=black,bg=colour145]",
"#[fg=black,bg=colour146]",
"#[fg=black,bg=colour146]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour152]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour188]",
"#[fg=black,bg=colour195]",
"#[fg=black,bg=colour195]",
"#[fg=black,bg=colour195]",
"#[fg=black,bg=colour195]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]",
"#[fg=black,bg=colour231]"
}; // end load_lut
#endif