diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-06 11:10:59 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-06 11:30:47 +0100 |
commit | 6cc75f8c9e2b41f27c12302b396546c528fe6440 (patch) | |
tree | 7a92242c8d22de7eb4e94d4b8acbf505d497f8ed /sfeed_curses.c | |
parent | 2073929621ed25546dd60cf4249adb04505ba6d5 (diff) |
add compile-time option to improve output on dumb non-UTF8 terminals
This makes atleast feeds with simple ASCII work.
Diffstat (limited to 'sfeed_curses.c')
-rw-r--r-- | sfeed_curses.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sfeed_curses.c b/sfeed_curses.c index 2167b7a..734427c 100644 --- a/sfeed_curses.c +++ b/sfeed_curses.c @@ -32,12 +32,17 @@ #define MAX(a,b) ((a) > (b) ? (a) : (b)) #define MIN(a,b) ((a) < (b) ? (a) : (b)) -#define PAD_TRUNCATE_SYMBOL "\xe2\x80\xa6" /* symbol: "ellipsis" */ +#ifndef SFEED_DUMBTERM #define SCROLLBAR_SYMBOL_BAR "\xe2\x94\x82" /* symbol: "light vertical" */ #define SCROLLBAR_SYMBOL_TICK " " #define LINEBAR_SYMBOL_BAR "\xe2\x94\x80" /* symbol: "light horizontal" */ #define LINEBAR_SYMBOL_RIGHT "\xe2\x94\xa4" /* symbol: "light vertical and left" */ -#define UTF_INVALID_SYMBOL "\xef\xbf\xbd" /* symbol: "replacement" */ +#else +#define SCROLLBAR_SYMBOL_BAR "|" /* symbol: "light vertical" */ +#define SCROLLBAR_SYMBOL_TICK " " +#define LINEBAR_SYMBOL_BAR "-" /* symbol: "light horizontal" */ +#define LINEBAR_SYMBOL_RIGHT "|" /* symbol: "light vertical and left" */ +#endif /* color-theme */ #ifndef SFEED_THEME |