![]() |
Notcurses 3.0.17
a blingful library for TUIs and character graphics
|
#include "version.h"#include "builddef.h"#include <stdint.h>#include <pthread.h>#include <stdbool.h>#include <notcurses/notcurses.h>#include "sprite.h"#include "blit.h"#include "fbuf.h"#include "in.h"

Go to the source code of this file.
Data Structures | |
| struct | cursorreport |
| struct | tinfo |
Macros | |
| #define | KKEYBOARD_POP "\x1b[<u" |
| #define | XTMODKEYSUNDO "\x1b[>2m\x1b[>4m" |
Typedefs | |
| typedef struct cursorreport | cursorreport |
| typedef struct tinfo | tinfo |
Enumerations | |
| enum | escape_e { ESCAPE_CUP , ESCAPE_HPA , ESCAPE_VPA , ESCAPE_SETAF , ESCAPE_SETAB , ESCAPE_OP , ESCAPE_FGOP , ESCAPE_BGOP , ESCAPE_SGR0 , ESCAPE_CIVIS , ESCAPE_CNORM , ESCAPE_OC , ESCAPE_SITM , ESCAPE_RITM , ESCAPE_CUU , ESCAPE_CUB , ESCAPE_CUF , ESCAPE_BOLD , ESCAPE_NOBOLD , ESCAPE_CUD , ESCAPE_SMKX , ESCAPE_RMKX , ESCAPE_EL , ESCAPE_SMCUP , ESCAPE_RMCUP , ESCAPE_SMXX , ESCAPE_SMUL , ESCAPE_RMUL , ESCAPE_SMULX , ESCAPE_SMULNOX , ESCAPE_RMXX , ESCAPE_IND , ESCAPE_INDN , ESCAPE_SC , ESCAPE_RC , ESCAPE_CLEAR , ESCAPE_INITC , ESCAPE_U7 , ESCAPE_BSUM , ESCAPE_ESUM , ESCAPE_SAVECOLORS , ESCAPE_RESTORECOLORS , ESCAPE_DECERA , ESCAPE_MAX } |
Functions | |
| if (idx) | |
| int | interrogate_terminfo (tinfo *ti, FILE *out, unsigned utf8, unsigned noaltscreen, unsigned nocbreak, unsigned nonewfonts, int *cursor_y, int *cursor_x, struct ncsharedstats *stats, int lmargin, int tmargin, int rmargin, int bmargin, unsigned draininput) __attribute__((nonnull(1 |
| int void | free_terminfo_cache (tinfo *ti) |
| char * | termdesc_longterm (const tinfo *ti) |
| int | locate_cursor (tinfo *ti, unsigned *cursor_y, unsigned *cursor_x) |
| int | grow_esc_table (tinfo *ti, const char *tstr, escape_e esc, size_t *tlen, size_t *tused) |
| int | enter_alternate_screen (int ttyfd, FILE *ttyfp, tinfo *ti, unsigned drain) |
| int | leave_alternate_screen (int ttyfd, FILE *ttyfp, tinfo *ti, unsigned drain) |
| int | cbreak_mode (tinfo *ti) |
| int | tiocgwinsz (int fd, struct winsize *ws) |
Variables | |
| static escape_e | e |
| return | NULL |
| #define KKEYBOARD_POP "\x1b[<u" |
Definition at line 22 of file termdesc.h.
| #define XTMODKEYSUNDO "\x1b[>2m\x1b[>4m" |
Definition at line 27 of file termdesc.h.
| typedef struct cursorreport cursorreport |
| enum escape_e |
Definition at line 43 of file termdesc.h.
| int cbreak_mode | ( | tinfo * | ti | ) |
Definition at line 1622 of file termdesc.c.

| int enter_alternate_screen | ( | int | ttyfd, |
| FILE * | ttyfp, | ||
| tinfo * | ti, | ||
| unsigned | drain | ||
| ) |
Definition at line 559 of file termdesc.c.

| int void free_terminfo_cache | ( | tinfo * | ti | ) |
Definition at line 197 of file termdesc.c.


Definition at line 14 of file termdesc.c.

| if | ( | idx | ) |
Definition at line 225 of file termdesc.h.
| int interrogate_terminfo | ( | tinfo * | ti, |
| FILE * | out, | ||
| unsigned | utf8, | ||
| unsigned | noaltscreen, | ||
| unsigned | nocbreak, | ||
| unsigned | nonewfonts, | ||
| int * | cursor_y, | ||
| int * | cursor_x, | ||
| struct ncsharedstats * | stats, | ||
| int | lmargin, | ||
| int | tmargin, | ||
| int | rmargin, | ||
| int | bmargin, | ||
| unsigned | draininput | ||
| ) |
| int leave_alternate_screen | ( | int | ttyfd, |
| FILE * | ttyfp, | ||
| tinfo * | ti, | ||
| unsigned | drain | ||
| ) |
Definition at line 611 of file termdesc.c.

| int locate_cursor | ( | tinfo * | ti, |
| unsigned * | cursor_y, | ||
| unsigned * | cursor_x | ||
| ) |
Definition at line 1585 of file termdesc.c.


| char * termdesc_longterm | ( | const tinfo * | ti | ) |
Definition at line 1562 of file termdesc.c.

| int tiocgwinsz | ( | int | fd, |
| struct winsize * | ws | ||
| ) |
Definition at line 1603 of file termdesc.c.

| escape_e e |
Definition at line 223 of file termdesc.h.
| return NULL |
Definition at line 228 of file termdesc.h.