ELinks 0.18.0
|
#include "config/options.h"
#include "protocol/uri.h"
#include "terminal/event.h"
#include "util/lists.h"
Data Structures | |
struct | terminal |
This is one of the axis of ELinks' user interaction. More... |
Macros | |
#define | do_not_ignore_next_mouse_event(term) |
Typedefs | |
typedef int | term_mode_type_T |
typedef int | term_env_type_T |
typedef int | term_exec_T |
Enumerations | |
enum | term_mode_type { TERM_DUMB = 0 , TERM_VT100 , TERM_LINUX , TERM_KOI8 , TERM_FREEBSD , TERM_FBTERM } |
The terminal type, meaningful for frames (lines) drawing. More... | |
enum | term_env_type { ENV_CONSOLE = 1 , ENV_XWIN = 2 , ENV_SCREEN = 4 , ENV_OS2VIO = 8 , ENV_BE = 16 , ENV_TWIN = 32 , ENV_WIN32 = 64 , ENV_ANY = ~0 } |
This is a bitmask describing the environment we are living in, terminal-wise. More... | |
enum | term_redrawing_state { TREDRAW_READY = 0 , TREDRAW_BUSY = 1 , TREDRAW_DELAYED = 2 } |
enum | { TERM_FN_TITLE = 1 , TERM_FN_RESIZE = 2 , TERM_FN_TITLE_CODEPAGE = 3 } |
Operations that can be requested with do_terminal_function() in the master and then executed with dispatch_special() in a slave. More... | |
enum | term_exec { TERM_EXEC_BG = 0 , TERM_EXEC_FG = 1 , TERM_EXEC_NEWWIN = 2 } |
How to execute a program in a terminal. More... |
Functions | |
struct terminal * | init_term (int, int) |
void | destroy_terminal (struct terminal *) |
void | redraw_terminal (struct terminal *term) |
void | redraw_terminal_cls (struct terminal *term) |
void | cls_redraw_all_terminals (void) |
struct terminal * | get_default_terminal (void) |
Get the terminal in which message boxes should be displayed, if there is no specific reason to use some other terminal. | |
int | get_terminal_codepage (const struct terminal *) |
Get the codepage of a terminal. | |
void | redraw_all_terminals (void) |
void | destroy_all_terminals (void) |
void | exec_thread (char *, int) |
void | close_handle (void *) |
void | clean_temporary_files (void) |
long | get_number_of_temporary_files (void) |
void | assert_terminal_ptr_not_dangling (const struct terminal *) |
void | exec_on_terminal (struct terminal *, const char *, const char *, term_exec_T) |
void | exec_shell (struct terminal *term) |
int | set_terminal_title (struct terminal *, char *) |
void | do_terminal_function (struct terminal *, unsigned char, const char *) |
int | check_terminal_pipes (void) |
void | close_terminal_pipes (void) |
struct terminal * | attach_terminal (int in, int out, int ctl, void *info, int len) |
Variables | |
pid_t | master_pid |
struct terminal list | terminals |
We keep track about all the terminals in this list. | |
const unsigned char | frame_dumb [] |
Mapping from (enum border_char - 0xB0) to ASCII characters. | |
struct module | terminal_module |
#define do_not_ignore_next_mouse_event | ( | term | ) |
typedef int term_env_type_T |
typedef int term_exec_T |
typedef int term_mode_type_T |
anonymous enum |
Operations that can be requested with do_terminal_function() in the master and then executed with dispatch_special() in a slave.
The interlink protocol passes these values as one byte in a null-terminated string, so zero cannot be used.
Enumerator | |
---|---|
TERM_FN_TITLE | |
TERM_FN_RESIZE | |
TERM_FN_TITLE_CODEPAGE |
enum term_env_type |
This is a bitmask describing the environment we are living in, terminal-wise.
We can then conditionally use various features available in such an environment.
enum term_exec |
How to execute a program in a terminal.
These values are used in the interlink protocol and must fit in one byte.
enum term_mode_type |
enum term_redrawing_state |
void assert_terminal_ptr_not_dangling | ( | const struct terminal * | suspect | ) |
struct terminal * attach_terminal | ( | int | in, |
int | out, | ||
int | ctl, | ||
void * | info, | ||
int | len ) |
int check_terminal_pipes | ( | void | ) |
void clean_temporary_files | ( | void | ) |
void close_handle | ( | void * | h | ) |
void close_terminal_pipes | ( | void | ) |
void cls_redraw_all_terminals | ( | void | ) |
void destroy_all_terminals | ( | void | ) |
void destroy_terminal | ( | struct terminal * | term | ) |
void do_terminal_function | ( | struct terminal * | term, |
unsigned char | code, | ||
const char * | data ) |
void exec_on_terminal | ( | struct terminal * | term, |
const char * | path, | ||
const char * | delete_, | ||
term_exec_T | fg ) |
void exec_shell | ( | struct terminal * | term | ) |
void exec_thread | ( | char * | path, |
int | p ) |
struct terminal * get_default_terminal | ( | void | ) |
Get the terminal in which message boxes should be displayed, if there is no specific reason to use some other terminal.
This returns NULL if all terminals have been closed. (ELinks keeps running anyway if ui.sessions.keep_session_active is true.)
long get_number_of_temporary_files | ( | void | ) |
int get_terminal_codepage | ( | const struct terminal * | term | ) |
Get the codepage of a terminal.
The UTF-8 I/O option does not affect this.
struct terminal * init_term | ( | int | fdin, |
int | fdout ) |
void redraw_all_terminals | ( | void | ) |
void redraw_terminal | ( | struct terminal * | term | ) |
void redraw_terminal_cls | ( | struct terminal * | term | ) |
int set_terminal_title | ( | struct terminal * | term, |
char * | title ) |
|
extern |
Mapping from (enum border_char - 0xB0) to ASCII characters.
|
extern |
|
extern |
|
extern |
We keep track about all the terminals in this list.
The list is sorted so that terminals.next is the terminal from which ELinks most recently got an event. But please call get_default_terminal() for that.