Lines Matching defs:ttyctx

120 screen_write_redraw_cb(const struct tty_ctx *ttyctx)
122 struct window_pane *wp = ttyctx->arg;
130 screen_write_set_client_cb(struct tty_ctx *ttyctx, struct client *c)
132 struct window_pane *wp = ttyctx->arg;
134 if (ttyctx->allow_invisible_panes) {
158 ttyctx->bigger = tty_window_offset(&c->tty, &ttyctx->wox, &ttyctx->woy,
159 &ttyctx->wsx, &ttyctx->wsy);
161 ttyctx->xoff = ttyctx->rxoff = wp->xoff;
162 ttyctx->yoff = ttyctx->ryoff = wp->yoff;
165 ttyctx->yoff += status_line_size(c);
172 screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx,
177 memset(ttyctx, 0, sizeof *ttyctx);
179 ttyctx->s = s;
180 ttyctx->sx = screen_size_x(s);
181 ttyctx->sy = screen_size_y(s);
183 ttyctx->ocx = s->cx;
184 ttyctx->ocy = s->cy;
185 ttyctx->orlower = s->rlower;
186 ttyctx->orupper = s->rupper;
188 memcpy(&ttyctx->defaults, &grid_default_cell, sizeof ttyctx->defaults);
190 ctx->init_ctx_cb(ctx, ttyctx);
191 if (ttyctx->palette != NULL) {
192 if (ttyctx->defaults.fg == 8)
193 ttyctx->defaults.fg = ttyctx->palette->fg;
194 if (ttyctx->defaults.bg == 8)
195 ttyctx->defaults.bg = ttyctx->palette->bg;
198 ttyctx->redraw_cb = screen_write_redraw_cb;
200 tty_default_colours(&ttyctx->defaults, ctx->wp);
201 ttyctx->palette = &ctx->wp->palette;
202 ttyctx->set_client_cb = screen_write_set_client_cb;
203 ttyctx->arg = ctx->wp;
216 ttyctx->num = 1;
218 ttyctx->num = sync;
220 ttyctx->num = 0x10|sync;
221 tty_write(tty_cmd_syncstart, ttyctx);
571 struct tty_ctx ttyctx;
585 screen_write_initctx(ctx, &ttyctx, 0);
594 ttyctx.cell = &gc;
595 tty_write(tty_cmd_cell, &ttyctx);
596 ttyctx.ocx++;
1020 struct tty_ctx ttyctx;
1037 screen_write_initctx(ctx, &ttyctx, 1);
1040 tty_write(tty_cmd_alignmenttest, &ttyctx);
1048 struct tty_ctx ttyctx;
1061 screen_write_initctx(ctx, &ttyctx, 0);
1062 ttyctx.bg = bg;
1067 ttyctx.num = nx;
1068 tty_write(tty_cmd_insertcharacter, &ttyctx);
1076 struct tty_ctx ttyctx;
1089 screen_write_initctx(ctx, &ttyctx, 0);
1090 ttyctx.bg = bg;
1095 ttyctx.num = nx;
1096 tty_write(tty_cmd_deletecharacter, &ttyctx);
1104 struct tty_ctx ttyctx;
1117 screen_write_initctx(ctx, &ttyctx, 0);
1118 ttyctx.bg = bg;
1123 ttyctx.num = nx;
1124 tty_write(tty_cmd_clearcharacter, &ttyctx);
1133 struct tty_ctx ttyctx;
1144 screen_write_initctx(ctx, &ttyctx, 1);
1145 ttyctx.bg = bg;
1150 ttyctx.num = ny;
1151 tty_write(tty_cmd_insertline, &ttyctx);
1160 screen_write_initctx(ctx, &ttyctx, 1);
1161 ttyctx.bg = bg;
1170 ttyctx.num = ny;
1171 tty_write(tty_cmd_insertline, &ttyctx);
1180 struct tty_ctx ttyctx;
1192 screen_write_initctx(ctx, &ttyctx, 1);
1193 ttyctx.bg = bg;
1198 ttyctx.num = ny;
1199 tty_write(tty_cmd_deleteline, &ttyctx);
1208 screen_write_initctx(ctx, &ttyctx, 1);
1209 ttyctx.bg = bg;
1217 ttyctx.num = ny;
1218 tty_write(tty_cmd_deleteline, &ttyctx);
1335 struct tty_ctx ttyctx;
1341 screen_write_initctx(ctx, &ttyctx, 1);
1342 ttyctx.bg = bg;
1344 tty_write(tty_cmd_reverseindex, &ttyctx);
1433 struct tty_ctx ttyctx;
1436 screen_write_initctx(ctx, &ttyctx, 1);
1437 ttyctx.bg = bg;
1448 ttyctx.num = lines;
1449 tty_write(tty_cmd_scrolldown, &ttyctx);
1465 struct tty_ctx ttyctx;
1468 screen_write_initctx(ctx, &ttyctx, 1);
1469 ttyctx.bg = bg;
1486 tty_write(tty_cmd_clearendofscreen, &ttyctx);
1494 struct tty_ctx ttyctx;
1497 screen_write_initctx(ctx, &ttyctx, 1);
1498 ttyctx.bg = bg;
1509 tty_write(tty_cmd_clearstartofscreen, &ttyctx);
1517 struct tty_ctx ttyctx;
1520 screen_write_initctx(ctx, &ttyctx, 1);
1521 ttyctx.bg = bg;
1532 tty_write(tty_cmd_clearscreen, &ttyctx);
1546 struct tty_ctx ttyctx;
1550 screen_write_initctx(ctx, &ttyctx, 1);
1551 if (ttyctx.redraw_cb != NULL)
1552 ttyctx.redraw_cb(&ttyctx);
1693 struct tty_ctx ttyctx;
1701 screen_write_initctx(ctx, &ttyctx, 1);
1702 ttyctx.num = ctx->scrolled;
1703 ttyctx.bg = ctx->bg;
1704 tty_write(tty_cmd_scrollup, &ttyctx);
1726 screen_write_initctx(ctx, &ttyctx, 1);
1727 ttyctx.bg = ci->bg;
1728 ttyctx.num = ci->used;
1729 tty_write(tty_cmd_clearcharacter, &ttyctx);
1731 screen_write_initctx(ctx, &ttyctx, 0);
1732 ttyctx.cell = &ci->gc;
1733 ttyctx.wrapped = ci->wrapped;
1734 ttyctx.ptr = cl->data + ci->x;
1735 ttyctx.num = ci->used;
1736 tty_write(tty_cmd_cells, &ttyctx);
1867 struct tty_ctx ttyctx;
1906 screen_write_initctx(ctx, &ttyctx, 0);
1979 ttyctx.num = width;
1980 tty_write(tty_cmd_insertcharacter, &ttyctx);
1987 ttyctx.cell = &tmp_gc;
1989 ttyctx.cell = gc;
1990 tty_write(tty_cmd_cell, &ttyctx);
2003 struct tty_ctx ttyctx;
2083 screen_write_initctx(ctx, &ttyctx, 0);
2084 ttyctx.cell = &last;
2085 ttyctx.num = force_wide; /* reset cached cursor position */
2086 tty_write(tty_cmd_cell, &ttyctx);
2169 struct tty_ctx ttyctx;
2171 screen_write_initctx(ctx, &ttyctx, 0);
2172 ttyctx.ptr = str;
2173 ttyctx.ptr2 = (void *)flags;
2174 ttyctx.num = len;
2176 tty_write(tty_cmd_setselection, &ttyctx);
2184 struct tty_ctx ttyctx;
2186 screen_write_initctx(ctx, &ttyctx, 0);
2187 ttyctx.ptr = str;
2188 ttyctx.num = len;
2189 ttyctx.allow_invisible_panes = allow_invisible_panes;
2191 tty_write(tty_cmd_rawstring, &ttyctx);
2199 struct tty_ctx ttyctx;
2211 screen_write_initctx(ctx, &ttyctx, 1);
2212 if (ttyctx.redraw_cb != NULL)
2213 ttyctx.redraw_cb(&ttyctx);
2221 struct tty_ctx ttyctx;
2233 screen_write_initctx(ctx, &ttyctx, 1);
2234 if (ttyctx.redraw_cb != NULL)
2235 ttyctx.redraw_cb(&ttyctx);