version 1.316, 2019/03/13 22:01:22 |
version 1.317, 2019/03/14 09:50:09 |
|
|
const struct tty_ctx *, u_int, u_int); |
const struct tty_ctx *, u_int, u_int); |
static void tty_invalidate(struct tty *); |
static void tty_invalidate(struct tty *); |
static void tty_colours(struct tty *, const struct grid_cell *); |
static void tty_colours(struct tty *, const struct grid_cell *); |
static void tty_check_fg(struct tty *, const struct window_pane *, |
static void tty_check_fg(struct tty *, struct window_pane *, |
struct grid_cell *); |
struct grid_cell *); |
static void tty_check_bg(struct tty *, const struct window_pane *, |
static void tty_check_bg(struct tty *, struct window_pane *, |
struct grid_cell *); |
struct grid_cell *); |
static void tty_colours_fg(struct tty *, const struct grid_cell *); |
static void tty_colours_fg(struct tty *, const struct grid_cell *); |
static void tty_colours_bg(struct tty *, const struct grid_cell *); |
static void tty_colours_bg(struct tty *, const struct grid_cell *); |
|
|
static void tty_margin_pane(struct tty *, const struct tty_ctx *); |
static void tty_margin_pane(struct tty *, const struct tty_ctx *); |
static void tty_margin(struct tty *, u_int, u_int); |
static void tty_margin(struct tty *, u_int, u_int); |
static int tty_large_region(struct tty *, const struct tty_ctx *); |
static int tty_large_region(struct tty *, const struct tty_ctx *); |
static int tty_fake_bce(const struct tty *, const struct window_pane *, |
static int tty_fake_bce(const struct tty *, struct window_pane *, u_int); |
u_int); |
|
static void tty_redraw_region(struct tty *, const struct tty_ctx *); |
static void tty_redraw_region(struct tty *, const struct tty_ctx *); |
static void tty_emulate_repeat(struct tty *, enum tty_code_code, |
static void tty_emulate_repeat(struct tty *, enum tty_code_code, |
enum tty_code_code, u_int); |
enum tty_code_code, u_int); |
static void tty_repeat_space(struct tty *, u_int); |
static void tty_repeat_space(struct tty *, u_int); |
static void tty_draw_pane(struct tty *, const struct tty_ctx *, u_int); |
static void tty_draw_pane(struct tty *, const struct tty_ctx *, u_int); |
static void tty_cell(struct tty *, const struct grid_cell *, |
static void tty_cell(struct tty *, const struct grid_cell *, |
const struct window_pane *); |
struct window_pane *); |
static void tty_default_colours(struct grid_cell *, |
static void tty_default_colours(struct grid_cell *, struct window_pane *); |
const struct window_pane *); |
static void tty_default_attributes(struct tty *, struct window_pane *, |
static void tty_default_attributes(struct tty *, const struct window_pane *, |
|
u_int); |
u_int); |
|
|
#define tty_use_margin(tty) \ |
#define tty_use_margin(tty) \ |
|
|
* emulated. |
* emulated. |
*/ |
*/ |
static int |
static int |
tty_fake_bce(const struct tty *tty, const struct window_pane *wp, u_int bg) |
tty_fake_bce(const struct tty *tty, struct window_pane *wp, u_int bg) |
{ |
{ |
struct grid_cell gc; |
struct grid_cell gc; |
|
|
|
|
|
|
/* Clear a line. */ |
/* Clear a line. */ |
static void |
static void |
tty_clear_line(struct tty *tty, const struct window_pane *wp, u_int py, |
tty_clear_line(struct tty *tty, struct window_pane *wp, u_int py, u_int px, |
u_int px, u_int nx, u_int bg) |
u_int nx, u_int bg) |
{ |
{ |
struct client *c = tty->client; |
struct client *c = tty->client; |
|
|
|
|
|
|
/* Clear an area, adjusting to visible part of pane. */ |
/* Clear an area, adjusting to visible part of pane. */ |
static void |
static void |
tty_clear_area(struct tty *tty, const struct window_pane *wp, u_int py, |
tty_clear_area(struct tty *tty, struct window_pane *wp, u_int py, u_int ny, |
u_int ny, u_int px, u_int nx, u_int bg) |
u_int px, u_int nx, u_int bg) |
{ |
{ |
struct client *c = tty->client; |
struct client *c = tty->client; |
u_int yy; |
u_int yy; |
|
|
} |
} |
|
|
void |
void |
tty_draw_line(struct tty *tty, const struct window_pane *wp, |
tty_draw_line(struct tty *tty, struct window_pane *wp, struct screen *s, |
struct screen *s, u_int px, u_int py, u_int nx, u_int atx, u_int aty) |
u_int px, u_int py, u_int nx, u_int atx, u_int aty) |
{ |
{ |
struct grid *gd = s->grid; |
struct grid *gd = s->grid; |
struct grid_cell gc, last; |
struct grid_cell gc, last; |
|
|
} |
} |
|
|
static void |
static void |
tty_cell(struct tty *tty, const struct grid_cell *gc, |
tty_cell(struct tty *tty, const struct grid_cell *gc, struct window_pane *wp) |
const struct window_pane *wp) |
|
{ |
{ |
const struct grid_cell *gcp; |
const struct grid_cell *gcp; |
|
|
|
|
|
|
void |
void |
tty_attributes(struct tty *tty, const struct grid_cell *gc, |
tty_attributes(struct tty *tty, const struct grid_cell *gc, |
const struct window_pane *wp) |
struct window_pane *wp) |
{ |
{ |
struct grid_cell *tc = &tty->cell, gc2; |
struct grid_cell *tc = &tty->cell, gc2; |
int changed; |
int changed; |
|
|
} |
} |
|
|
static void |
static void |
tty_check_fg(struct tty *tty, const struct window_pane *wp, |
tty_check_fg(struct tty *tty, struct window_pane *wp, struct grid_cell *gc) |
struct grid_cell *gc) |
|
{ |
{ |
u_char r, g, b; |
u_char r, g, b; |
u_int colours; |
u_int colours; |
|
|
} |
} |
|
|
static void |
static void |
tty_check_bg(struct tty *tty, const struct window_pane *wp, |
tty_check_bg(struct tty *tty, struct window_pane *wp, struct grid_cell *gc) |
struct grid_cell *gc) |
|
{ |
{ |
u_char r, g, b; |
u_char r, g, b; |
u_int colours; |
u_int colours; |
|
|
} |
} |
|
|
static void |
static void |
tty_default_colours(struct grid_cell *gc, const struct window_pane *wp) |
tty_default_colours(struct grid_cell *gc, struct window_pane *wp) |
{ |
{ |
struct window *w = wp->window; |
struct window *w = wp->window; |
struct options *oo = w->options; |
struct options *oo = w->options; |
|
|
} |
} |
|
|
static void |
static void |
tty_default_attributes(struct tty *tty, const struct window_pane *wp, u_int bg) |
tty_default_attributes(struct tty *tty, struct window_pane *wp, u_int bg) |
{ |
{ |
static struct grid_cell gc; |
static struct grid_cell gc; |
|
|