version 1.23, 2009/08/11 22:34:17 |
version 1.24, 2009/08/12 09:41:59 |
|
|
void tty_attributes_fg(struct tty *, const struct grid_cell *); |
void tty_attributes_fg(struct tty *, const struct grid_cell *); |
void tty_attributes_bg(struct tty *, const struct grid_cell *); |
void tty_attributes_bg(struct tty *, const struct grid_cell *); |
|
|
void tty_redraw_region(struct tty *, struct tty_ctx *); |
void tty_redraw_region(struct tty *, const struct tty_ctx *); |
void tty_emulate_repeat( |
void tty_emulate_repeat( |
struct tty *, enum tty_code_code, enum tty_code_code, u_int); |
struct tty *, enum tty_code_code, enum tty_code_code, u_int); |
void tty_cell(struct tty *, |
void tty_cell(struct tty *, |
|
|
* width of the terminal. |
* width of the terminal. |
*/ |
*/ |
void |
void |
tty_redraw_region(struct tty *tty, struct tty_ctx *ctx) |
tty_redraw_region(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_write(void (*cmdfn)(struct tty *, struct tty_ctx *), struct tty_ctx *ctx) |
tty_write(void (*cmdfn)( |
|
struct tty *, const struct tty_ctx *), const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct client *c; |
struct client *c; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_insertcharacter(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_insertcharacter(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
u_int i; |
|
|
if (wp->xoff != 0 || screen_size_x(s) < tty->sx) { |
if (wp->xoff != 0 || screen_size_x(s) < tty->sx) { |
tty_draw_line(tty, wp->screen, ctx->ocy, wp->xoff, wp->yoff); |
tty_draw_line(tty, wp->screen, ctx->ocy, wp->xoff, wp->yoff); |
|
|
tty_emulate_repeat(tty, TTYC_ICH, TTYC_ICH1, ctx->num); |
tty_emulate_repeat(tty, TTYC_ICH, TTYC_ICH1, ctx->num); |
else { |
else { |
tty_putcode(tty, TTYC_SMIR); |
tty_putcode(tty, TTYC_SMIR); |
while (ctx->num-- > 0) |
for (i = 0; i < ctx->num; i++) |
tty_putc(tty, ' '); |
tty_putc(tty, ' '); |
tty_putcode(tty, TTYC_RMIR); |
tty_putcode(tty, TTYC_RMIR); |
} |
} |
} |
} |
|
|
void |
void |
tty_cmd_deletecharacter(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_deletecharacter(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_insertline(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_insertline(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_deleteline(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_deleteline(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_clearline(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_clearline(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_clearendofline(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_clearendofline(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_clearstartofline(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
u_int i; |
u_int i; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_reverseindex(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_reverseindex(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_linefeed(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_linefeed(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_clearendofscreen(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_clearendofscreen(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_clearstartofscreen(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_clearstartofscreen(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_clearscreen(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_clearscreen(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_alignmenttest(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_alignmenttest(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
} |
} |
|
|
void |
void |
tty_cmd_cell(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
|
|
|
|
} |
} |
|
|
void |
void |
tty_cmd_utf8character(struct tty *tty, struct tty_ctx *ctx) |
tty_cmd_utf8character(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
u_char *ptr = ctx->ptr; |
u_char *ptr = ctx->ptr; |
size_t i; |
size_t i; |