notcurses/include/notcurses.h
2019-11-18 00:05:32 -05:00

27 lines
599 B
C

#ifndef NOTCURSES_NOTCURSES
#define NOTCURSES_NOTCURSES
#ifdef __cplusplus
extern "C" {
#endif
const char* notcurses_version(void);
struct notcurses;
struct notcurses* notcurses_init(void);
int notcurses_stop(struct notcurses* nc);
// Make the physical screen match the virtual screen. Changes made to the
// virtual screen (i.e. most other calls) will not be visible until after a
// successful call to notcurses_render().
int notcurses_render(struct notcurses* nc);
int notcurses_term_dimensions(struct notcurses* n, int* rows, int* cols);
#ifdef __cplusplus
} // extern "C"
#endif
#endif