![]() |
Notcurses 3.0.17
a blingful library for TUIs and character graphics
|
#include <fcntl.h>#include <unistd.h>#include <curses.h>#include "internal.h"#include "windows.h"#include "linux.h"
Go to the source code of this file.
Macros | |
| #define | TRIDEVATTR "\x1b[=c" |
| #define | PRIDEVATTR "\x1b[c" |
| #define | XTVERSION "\x1b[>0q" |
| #define | XTGETTCAP "\x1bP+q544e;524742;687061\x1b\\" |
| #define | SECDEVATTR "\x1b[>c" |
| #define | KITTYQUERY "\x1b_Gi=1,a=q;\x1b\\" |
| #define | KKBDSUPPORT "\x1b[=27u" |
| #define | KKBDQUERY "\x1b[?u" |
| #define | XTMODKEYS "\x1b[>2;1m\x1b[>4;2m" |
| #define | IDQUERIES |
| #define | DEFBGQ "\x1b]11;?\e\\" |
| #define | DEFFGQ "\x1b]10;?\e\\" |
| #define | DSRCPR "\x1b[6n" |
| #define | SUMQUERY "\x1b[?2026$p" |
| #define | PIXELMOUSEQUERY "\x1b[?1016$p" |
| #define | CREGSXTSM "\x1b[?2;1;0S" |
| #define | GEOMXTSM "\x1b[?1;1;0S" |
| #define | GEOMPIXEL "\x1b[14t" |
| #define | GEOMCELL "\x1b[18t" |
| #define | DIRECTIVES |
| #define | KKEYBOARD_PUSH "\x1b[>u" |
| #define | KKBDENTER KKEYBOARD_PUSH KKBDSUPPORT |
| #define | SMCUP DECSET(SET_SMCUP) |
| #define | RMCUP DECRST(SET_SMCUP) |
| #define | PQUERYBUFLEN 4096 |
| #define | ENVVAR "TERM" |
Functions | |
| int | grow_esc_table (tinfo *ti, const char *tstr, escape_e esc, size_t *tlen, size_t *tused) |
| void | free_terminfo_cache (tinfo *ti) |
| int | enter_alternate_screen (int fd, FILE *ttyfp, tinfo *ti, unsigned drain) |
| int | leave_alternate_screen (int fd, FILE *fp, tinfo *ti, unsigned drain) |
| int | interrogate_terminfo (tinfo *ti, FILE *out, unsigned utf8, unsigned noaltscreen, unsigned nocbreak, unsigned nonewfonts, int *cursor_y, int *cursor_x, ncsharedstats *stats, int lmargin, int tmargin, int rmargin, int bmargin, unsigned draininput) |
| char * | termdesc_longterm (const tinfo *ti) |
| int | locate_cursor (tinfo *ti, unsigned *cursor_y, unsigned *cursor_x) |
| int | tiocgwinsz (int fd, struct winsize *ws) |
| int | cbreak_mode (tinfo *ti) |
| int | putenv_term (const char *tname) |
| #define CREGSXTSM "\x1b[?2;1;0S" |
Definition at line 433 of file termdesc.c.
| #define DEFBGQ "\x1b]11;?\e\\" |
Definition at line 414 of file termdesc.c.
| #define DEFFGQ "\x1b]10;?\e\\" |
Definition at line 415 of file termdesc.c.
| #define DIRECTIVES |
Definition at line 446 of file termdesc.c.
| #define DSRCPR "\x1b[6n" |
Definition at line 423 of file termdesc.c.
| #define ENVVAR "TERM" |
Definition at line 1660 of file termdesc.c.
| #define GEOMCELL "\x1b[18t" |
Definition at line 442 of file termdesc.c.
| #define GEOMPIXEL "\x1b[14t" |
Definition at line 439 of file termdesc.c.
| #define GEOMXTSM "\x1b[?1;1;0S" |
Definition at line 436 of file termdesc.c.
| #define IDQUERIES |
Definition at line 405 of file termdesc.c.
| #define KITTYQUERY "\x1b_Gi=1,a=q;\x1b\\" |
Definition at line 383 of file termdesc.c.
| #define KKBDENTER KKEYBOARD_PUSH KKBDSUPPORT |
Definition at line 465 of file termdesc.c.
| #define KKBDQUERY "\x1b[?u" |
Definition at line 395 of file termdesc.c.
| #define KKBDSUPPORT "\x1b[=27u" |
Definition at line 390 of file termdesc.c.
| #define KKEYBOARD_PUSH "\x1b[>u" |
Definition at line 461 of file termdesc.c.
| #define PIXELMOUSEQUERY "\x1b[?1016$p" |
Definition at line 430 of file termdesc.c.
| #define PQUERYBUFLEN 4096 |
| #define PRIDEVATTR "\x1b[c" |
Definition at line 351 of file termdesc.c.
Definition at line 473 of file termdesc.c.
| #define SECDEVATTR "\x1b[>c" |
Definition at line 373 of file termdesc.c.
Definition at line 472 of file termdesc.c.
| #define SUMQUERY "\x1b[?2026$p" |
Definition at line 427 of file termdesc.c.
| #define TRIDEVATTR "\x1b[=c" |
Definition at line 336 of file termdesc.c.
| #define XTGETTCAP "\x1bP+q544e;524742;687061\x1b\\" |
Definition at line 364 of file termdesc.c.
| #define XTMODKEYS "\x1b[>2;1m\x1b[>4;2m" |
Definition at line 400 of file termdesc.c.
| #define XTVERSION "\x1b[>0q" |
Definition at line 354 of file termdesc.c.
| int cbreak_mode | ( | tinfo * | ti | ) |
Definition at line 1622 of file termdesc.c.

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

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


Definition at line 14 of file termdesc.c.

| int interrogate_terminfo | ( | tinfo * | ti, |
| FILE * | out, | ||
| unsigned | utf8, | ||
| unsigned | noaltscreen, | ||
| unsigned | nocbreak, | ||
| unsigned | nonewfonts, | ||
| int * | cursor_y, | ||
| int * | cursor_x, | ||
| ncsharedstats * | stats, | ||
| int | lmargin, | ||
| int | tmargin, | ||
| int | rmargin, | ||
| int | bmargin, | ||
| unsigned | draininput | ||
| ) |
Definition at line 1317 of file termdesc.c.


| int leave_alternate_screen | ( | int | fd, |
| FILE * | fp, | ||
| 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.


| int putenv_term | ( | const char * | tname | ) |
Definition at line 1661 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.
