sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

minicurses.h (948B)


      1#undef  OK
      2#define OK  (0)
      3
      4const char *clr_eol = "\x1b[K";
      5const char *clear_screen = "\x1b[H\x1b[2J";
      6const char *cursor_address = "\x1b[%ld;%ldH";
      7const char *cursor_normal = "\x1b[?25h"; /* DECTCEM (in)Visible cursor */
      8const char *cursor_invisible = "\x1b[?25l"; /* DECTCEM (in)Visible cursor */
      9const char *eat_newline_glitch = (void *)1;
     10const char *enter_ca_mode = "\x1b[?1049h"; /* smcup */
     11const char *exit_ca_mode = "\x1b[?1049l"; /* rmcup */
     12const char *save_cursor = "\x1b""7";
     13const char *restore_cursor = "\x1b""8";
     14const char *exit_attribute_mode = "\x1b[0m";
     15const char *enter_bold_mode = "\x1b[1m";
     16const char *enter_dim_mode = "\x1b[2m";
     17const char *enter_reverse_mode = "\x1b[7m";
     18
     19int
     20setupterm(char *term, int fildes, int *errret)
     21{
     22	return OK;
     23}
     24
     25char *
     26tparm(char *s, long p1, long p2, ...)
     27{
     28	static char buf[32];
     29
     30	if (s == cursor_address) {
     31		snprintf(buf, sizeof(buf), s, p1 + 1, p2 + 1);
     32		return buf;
     33	}
     34
     35	return s;
     36}