From bc15d517d39cd310583b8b231613ac5640fd0ac0 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 25 Jan 2020 01:42:28 -0500 Subject: [PATCH] python wrappers for direct mode --- python/src/notcurses/build_notcurses.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/src/notcurses/build_notcurses.py b/python/src/notcurses/build_notcurses.py index aff4a6582..2bad86b2d 100644 --- a/python/src/notcurses/build_notcurses.py +++ b/python/src/notcurses/build_notcurses.py @@ -234,6 +234,10 @@ int palette256_set(palette256* p, int idx, unsigned rgb); int palette256_get_rgb(const palette256* p, int idx, unsigned* r, unsigned* g, unsigned* b); void palette256_free(palette256* p); bool notcurses_canchangecolor(const struct notcurses* nc); +struct ncdirect* notcurses_directmode(const char* termtype, FILE* fp); +int ncdirect_bg_rgb8(struct ncdirect* nc, unsigned r, unsigned g, unsigned b); +int ncdirect_fg_rgb8(struct ncdirect* nc, unsigned r, unsigned g, unsigned b); +int ncdirect_stop(struct ncdirect* nc); """) if __name__ == "__main__":