#include <stdio.h>
Go to the source code of this file.
|
enum | queried_terminals_e {
TERMINAL_UNKNOWN
, TERMINAL_LINUX
, TERMINAL_LINUXDRM
, TERMINAL_XTERM
,
TERMINAL_VTE
, TERMINAL_KITTY
, TERMINAL_FOOT
, TERMINAL_MLTERM
,
TERMINAL_TMUX
, TERMINAL_GNUSCREEN
, TERMINAL_WEZTERM
, TERMINAL_ALACRITTY
,
TERMINAL_CONTOUR
, TERMINAL_ITERM
, TERMINAL_TERMINOLOGY
, TERMINAL_APPLE
,
TERMINAL_RXVT
, TERMINAL_MSTERMINAL
, TERMINAL_MINTTY
, TERMINAL_KONSOLE
} |
|
|
int | init_inputlayer (struct tinfo *ti, FILE *infp, int lmargin, int tmargin, int rmargin, int bmargin, struct ncsharedstats *stats, unsigned drain, int linesigs_enabled) __attribute__((nonnull(1 |
|
int int | stop_inputlayer (struct tinfo *ti) |
|
int | inputready_fd (const struct inputctx *ictx) __attribute__((nonnull(1))) |
|
int | ncinput_shovel (struct inputctx *ictx, const void *buf, int len) __attribute__((nonnull(1 |
|
struct initial_responses * | inputlayer_get_responses (struct inputctx *ictx) __attribute__((nonnull(1))) |
|
int | get_cursor_location (struct inputctx *ictx, const char *u7, unsigned *y, unsigned *x) __attribute__((nonnull(1 |
|
◆ queried_terminals_e
Enumerator |
---|
TERMINAL_UNKNOWN | |
TERMINAL_LINUX | |
TERMINAL_LINUXDRM | |
TERMINAL_XTERM | |
TERMINAL_VTE | |
TERMINAL_KITTY | |
TERMINAL_FOOT | |
TERMINAL_MLTERM | |
TERMINAL_TMUX | |
TERMINAL_GNUSCREEN | |
TERMINAL_WEZTERM | |
TERMINAL_ALACRITTY | |
TERMINAL_CONTOUR | |
TERMINAL_ITERM | |
TERMINAL_TERMINOLOGY | |
TERMINAL_APPLE | |
TERMINAL_RXVT | |
TERMINAL_MSTERMINAL | |
TERMINAL_MINTTY | |
TERMINAL_KONSOLE | |
Definition at line 31 of file in.h.
◆ get_cursor_location()
int get_cursor_location |
( |
struct inputctx * |
ictx, |
|
|
const char * |
u7, |
|
|
unsigned * |
y, |
|
|
unsigned * |
x |
|
) |
| |
◆ init_inputlayer()
int init_inputlayer |
( |
struct tinfo * |
ti, |
|
|
FILE * |
infp, |
|
|
int |
lmargin, |
|
|
int |
tmargin, |
|
|
int |
rmargin, |
|
|
int |
bmargin, |
|
|
struct ncsharedstats * |
stats, |
|
|
unsigned |
drain, |
|
|
int |
linesigs_enabled |
|
) |
| |
◆ inputlayer_get_responses()
Definition at line 2896 of file in.c.
2896 {
2898 pthread_mutex_lock(&ictx->
ilock);
2900 pthread_cond_wait(&ictx->
icond, &ictx->
ilock);
2901 }
2904 pthread_mutex_unlock(&ictx->
ilock);
2906 logpanic(
"aborting after automaton construction failure");
2909 }
2910 return iresp;
2911}
#define logpanic(fmt,...)
◆ inputready_fd()
int inputready_fd |
( |
const struct inputctx * |
ictx | ) |
|
◆ ncinput_shovel()
int ncinput_shovel |
( |
struct inputctx * |
ictx, |
|
|
const void * |
buf, |
|
|
int |
len |
|
) |
| |
◆ stop_inputlayer()
int int stop_inputlayer |
( |
struct tinfo * |
ti | ) |
|
Definition at line 2644 of file in.c.
2644 {
2645 int ret = 0;
2646 if(ti){
2647
2648#ifndef __MINGW32__
2650 loginfo(
"tearing down input thread");
2651 ret |= cancel_and_join(
"input", ti->
ictx->
tid,
NULL);
2653 free_inputctx(ti->
ictx);
2655 }
2656#endif
2657 }
2658 return ret;
2659}
int set_fd_nonblocking(int fd, unsigned state, unsigned *oldstate)
unsigned stdio_blocking_save