Introduction
Introduction Statistics Contact Development Disclaimer Help
templeos.h - sfeed_curses - sfeed curses UI (now part of sfeed, development is …
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
templeos.h (1997B)
---
1 /* TempleOS-like (for fun and god) */
2 /* set true-color foreground / background, Terry would've preferred ANSI…
3 #define SETFGCOLOR(r,g,b) ttywritef("\x1b[38;2;%d;%d;%dm", r, g, b)
4 #define SETBGCOLOR(r,g,b) ttywritef("\x1b[48;2;%d;%d;%dm", r, g, b)
5
6 #define THEME_ITEM_NORMAL() do { SETFGCOLOR(0x00, 0x00, 0xaa);…
7 #define THEME_ITEM_FOCUS() do { SETFGCOLOR(0x00, 0x00, 0xaa);…
8 #define THEME_ITEM_BOLD() do { attrmode(ATTR_BOLD_ON); SETFG…
9 #define THEME_ITEM_SELECTED() do { if (p->focused) attrmode(ATTR…
10 #define THEME_SCROLLBAR_FOCUS() do { SETFGCOLOR(0x00, 0x00, 0xaa);…
11 #define THEME_SCROLLBAR_NORMAL() do { SETFGCOLOR(0x00, 0x00, 0xaa);…
12 #define THEME_SCROLLBAR_TICK_FOCUS() do { SETBGCOLOR(0x00, 0x00, 0xaa);…
13 #define THEME_SCROLLBAR_TICK_NORMAL() do { SETBGCOLOR(0x00, 0x00, 0xaa);…
14 #define THEME_LINEBAR() do { SETFGCOLOR(0x00, 0x00, 0xaa);…
15 #define THEME_STATUSBAR() do { ttywrite("\x1b[6m"); SETBGCOL…
16 #define THEME_INPUT_LABEL() do { SETFGCOLOR(0x00, 0x00, 0xaa);…
17 #define THEME_INPUT_NORMAL() do { SETFGCOLOR(0x00, 0x00, 0xaa);…
18
19 #undef SCROLLBAR_SYMBOL_BAR
20 #define SCROLLBAR_SYMBOL_BAR "\xe2\x95\x91" /* symbol: "double vertical"…
21 #undef LINEBAR_SYMBOL_BAR
22 #define LINEBAR_SYMBOL_BAR "\xe2\x95\x90" /* symbol: "double horizonta…
23 #undef LINEBAR_SYMBOL_RIGHT
24 #define LINEBAR_SYMBOL_RIGHT "\xe2\x95\xa3" /* symbol: "double vertical …
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.