(7c4d7d1 userspace/term: change eyecandy inclusion to use objcopy instead of xxd)
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <unistd.h>
#include "vterm.h"
#include "../src/utf8.h"
Go to the source code of this file.
◆ streq
#define streq |
( |
|
a, |
|
|
|
b |
|
) |
| (!strcmp(a,b)) |
◆ anonymous enum
Enumerator |
---|
FORMAT_PLAIN | |
FORMAT_SGR | |
Definition at line 33 of file unterm.c.
◆ dump_cell()
Definition at line 75 of file unterm.c.
References VTermScreenCell::attrs, VTermScreenCell::bg, VTermScreenCellAttrs::blink, VTermScreenCellAttrs::bold, VTermScreenCell::chars, VTermScreenCellAttrs::conceal, CSI_ARG, CSI_ARG_HAS_MORE, dump_cell_color(), VTermScreenCell::fg, fill_utf8(), VTermScreenCellAttrs::font, format, FORMAT_PLAIN, FORMAT_SGR, VTermScreenCellAttrs::italic, VTermScreenCellAttrs::reverse, VTermScreenCellAttrs::strike, VTermScreenCellAttrs::underline, vterm_color_is_equal(), and VTERM_MAX_CHARS_PER_CELL.
◆ dump_cell_color()
static int dump_cell_color |
( |
const VTermColor * |
col, |
|
|
int |
sgri, |
|
|
int |
sgr[], |
|
|
int |
fg |
|
) |
| |
|
static |
◆ dump_eol()
Definition at line 155 of file unterm.c.
References VTermScreenCell::attrs, VTermScreenCellAttrs::blink, VTermScreenCellAttrs::bold, VTermScreenCellAttrs::conceal, VTermScreenCellAttrs::font, format, FORMAT_PLAIN, FORMAT_SGR, VTermScreenCellAttrs::italic, VTermScreenCellAttrs::reverse, VTermScreenCellAttrs::strike, and VTermScreenCellAttrs::underline.
◆ dump_row()
Definition at line 171 of file unterm.c.
References VTermScreenCell::bg, VTermPos::col, cols, dump_cell(), dump_eol(), VTermScreenCell::fg, VTermPos::row, vt, vterm_obtain_state(), vterm_screen_get_cell(), vterm_state_get_default_colors(), vts, and VTermScreenCell::width.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 217 of file unterm.c.
References cb_screen, cols, dump_row(), format, FORMAT_PLAIN, FORMAT_SGR, read(), rows, streq, vt, vterm_free(), vterm_input_write(), vterm_new(), vterm_obtain_screen(), vterm_screen_reset(), vterm_screen_set_callbacks(), vterm_set_utf8(), and vts.
◆ screen_resize()
static int screen_resize |
( |
int |
new_rows, |
|
|
int |
new_cols, |
|
|
void * |
user |
|
) |
| |
|
static |
◆ screen_sb_pushline()
static int screen_sb_pushline |
( |
int |
cols, |
|
|
const VTermScreenCell * |
cells, |
|
|
void * |
user |
|
) |
| |
|
static |
◆ cb_screen
Initial value:= {
}
static int screen_sb_pushline(int cols, const VTermScreenCell *cells, void *user)
static int screen_resize(int new_rows, int new_cols, void *user)
Definition at line 212 of file unterm.c.
◆ cols
◆ []
◆ rows
◆ vt
◆ vts