Lines Matching refs: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);
1007 struct tty_ctx ttyctx;
1029 screen_write_initctx(ctx, &ttyctx, 1);
1032 tty_write(tty_cmd_alignmenttest, &ttyctx);
1040 struct tty_ctx ttyctx;
1058 screen_write_initctx(ctx, &ttyctx, 0);
1059 ttyctx.bg = bg;
1064 ttyctx.num = nx;
1065 tty_write(tty_cmd_insertcharacter, &ttyctx);
1073 struct tty_ctx ttyctx;
1091 screen_write_initctx(ctx, &ttyctx, 0);
1092 ttyctx.bg = bg;
1097 ttyctx.num = nx;
1098 tty_write(tty_cmd_deletecharacter, &ttyctx);
1106 struct tty_ctx ttyctx;
1124 screen_write_initctx(ctx, &ttyctx, 0);
1125 ttyctx.bg = bg;
1130 ttyctx.num = nx;
1131 tty_write(tty_cmd_clearcharacter, &ttyctx);
1140 struct tty_ctx ttyctx;
1160 screen_write_initctx(ctx, &ttyctx, 1);
1161 ttyctx.bg = bg;
1166 ttyctx.num = ny;
1167 tty_write(tty_cmd_insertline, &ttyctx);
1176 screen_write_initctx(ctx, &ttyctx, 1);
1177 ttyctx.bg = bg;
1186 ttyctx.num = ny;
1187 tty_write(tty_cmd_insertline, &ttyctx);
1196 struct tty_ctx ttyctx;
1213 screen_write_initctx(ctx, &ttyctx, 1);
1214 ttyctx.bg = bg;
1219 ttyctx.num = ny;
1220 tty_write(tty_cmd_deleteline, &ttyctx);
1229 screen_write_initctx(ctx, &ttyctx, 1);
1230 ttyctx.bg = bg;
1238 ttyctx.num = ny;
1239 tty_write(tty_cmd_deleteline, &ttyctx);
1371 struct tty_ctx ttyctx;
1382 screen_write_initctx(ctx, &ttyctx, 1);
1383 ttyctx.bg = bg;
1385 tty_write(tty_cmd_reverseindex, &ttyctx);
1490 struct tty_ctx ttyctx;
1493 screen_write_initctx(ctx, &ttyctx, 1);
1494 ttyctx.bg = bg;
1510 ttyctx.num = lines;
1511 tty_write(tty_cmd_scrolldown, &ttyctx);
1527 struct tty_ctx ttyctx;
1535 screen_write_initctx(ctx, &ttyctx, 1);
1536 ttyctx.bg = bg;
1553 tty_write(tty_cmd_clearendofscreen, &ttyctx);
1561 struct tty_ctx ttyctx;
1569 screen_write_initctx(ctx, &ttyctx, 1);
1570 ttyctx.bg = bg;
1581 tty_write(tty_cmd_clearstartofscreen, &ttyctx);
1589 struct tty_ctx ttyctx;
1597 screen_write_initctx(ctx, &ttyctx, 1);
1598 ttyctx.bg = bg;
1609 tty_write(tty_cmd_clearscreen, &ttyctx);
1623 struct tty_ctx ttyctx;
1627 screen_write_initctx(ctx, &ttyctx, 1);
1628 if (ttyctx.redraw_cb != NULL)
1629 ttyctx.redraw_cb(&ttyctx);
1770 struct tty_ctx ttyctx;
1778 screen_write_initctx(ctx, &ttyctx, 1);
1779 ttyctx.num = ctx->scrolled;
1780 ttyctx.bg = ctx->bg;
1781 tty_write(tty_cmd_scrollup, &ttyctx);
1800 screen_write_initctx(ctx, &ttyctx, 1);
1801 ttyctx.bg = ci->bg;
1802 ttyctx.num = ci->used;
1803 tty_write(tty_cmd_clearcharacter, &ttyctx);
1805 screen_write_initctx(ctx, &ttyctx, 0);
1806 ttyctx.cell = &ci->gc;
1807 ttyctx.wrapped = ci->wrapped;
1808 ttyctx.ptr = cl->data + ci->x;
1809 ttyctx.num = ci->used;
1810 tty_write(tty_cmd_cells, &ttyctx);
1944 struct tty_ctx ttyctx;
1983 screen_write_initctx(ctx, &ttyctx, 0);
2056 ttyctx.num = width;
2057 tty_write(tty_cmd_insertcharacter, &ttyctx);
2064 ttyctx.cell = &tmp_gc;
2066 ttyctx.cell = gc;
2067 tty_write(tty_cmd_cell, &ttyctx);
2080 struct tty_ctx ttyctx;
2160 screen_write_initctx(ctx, &ttyctx, 0);
2161 ttyctx.cell = &last;
2162 ttyctx.num = force_wide; /* reset cached cursor position */
2163 tty_write(tty_cmd_cell, &ttyctx);
2236 struct tty_ctx ttyctx;
2238 screen_write_initctx(ctx, &ttyctx, 0);
2239 ttyctx.ptr = str;
2240 ttyctx.ptr2 = __UNCONST(flags);
2241 ttyctx.num = len;
2243 tty_write(tty_cmd_setselection, &ttyctx);
2251 struct tty_ctx ttyctx;
2253 screen_write_initctx(ctx, &ttyctx, 0);
2254 ttyctx.ptr = str;
2255 ttyctx.num = len;
2256 ttyctx.allow_invisible_panes = allow_invisible_panes;
2258 tty_write(tty_cmd_rawstring, &ttyctx);
2269 struct tty_ctx ttyctx;
2307 screen_write_initctx(ctx, &ttyctx, 0);
2308 ttyctx.ptr = image_store(s, si);
2310 tty_write(tty_cmd_sixelimage, &ttyctx);
2321 struct tty_ctx ttyctx;
2330 screen_write_initctx(ctx, &ttyctx, 1);
2331 if (ttyctx.redraw_cb != NULL)
2332 ttyctx.redraw_cb(&ttyctx);
2340 struct tty_ctx ttyctx;
2349 screen_write_initctx(ctx, &ttyctx, 1);
2350 if (ttyctx.redraw_cb != NULL)
2351 ttyctx.redraw_cb(&ttyctx);