|
|
|
@ -91,13 +91,6 @@ typedef enum {
|
|
|
|
|
// doing something weird (setting a locale not based on LANG).
|
|
|
|
|
#define NCOPTION_INHIBIT_SETLOCALE 0x0001
|
|
|
|
|
|
|
|
|
|
// Checking for pixel support might require writing a control sequence, and
|
|
|
|
|
// then reading a reply directly from the terminal. If the terminal doesn't
|
|
|
|
|
// support this, the application will lock up. If you'll be using pixels, set
|
|
|
|
|
// this flag to perform the check in notcurses_init(). You must otherwise call
|
|
|
|
|
// notcurses_check_pixel() before NCBLIT_PIXEL will become available.
|
|
|
|
|
#define NCOPTION_VERIFY_PIXEL 0x0002ull
|
|
|
|
|
|
|
|
|
|
// We typically install a signal handler for SIGWINCH that generates a resize
|
|
|
|
|
// event in the notcurses_getc() queue. Set to inhibit this handler.
|
|
|
|
|
#define NCOPTION_NO_WINCH_SIGHANDLER 0x0004
|
|
|
|
@ -308,10 +301,10 @@ bool notcurses_cansextants(const struct notcurses* nc);
|
|
|
|
|
// Can we draw Braille? The Linux console cannot.
|
|
|
|
|
bool notcurses_canbraille(const struct notcurses* nc);
|
|
|
|
|
|
|
|
|
|
// If NCOPTION_VERIFY_PIXEL was not supplied to notcurses_init(), this
|
|
|
|
|
// function must successfully return before NCBLIT_PIXEL is available. Returns
|
|
|
|
|
// -1 on error, 0 if pixel mode is not supported, or 1 if it is supported.
|
|
|
|
|
int notcurses_check_pixel(struct notcurses* nc);
|
|
|
|
|
// This function must successfully return before NCBLIT_PIXEL is available.
|
|
|
|
|
// Returns -1 on error, 0 for no support, or 1 if pixel output is supported.
|
|
|
|
|
// Must not be called concurrently with either input or rasterization.
|
|
|
|
|
int notcurses_check_pixel_support(struct notcurses* nc);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Direct mode
|
|
|
|
|