teken_subr.h (92223bddedf0f8b964a62904f065b12563db8ae9) teken_subr.h (8dcd2ed3c92d5fcaca7da3d2669b7ed3bd510ac9)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 358 unchanged lines hidden (view full) ---

367 t->t_cursor.tp_row = t->t_scrollreg.ts_begin;
368 else
369 t->t_cursor.tp_row -= nrows;
370 t->t_stateflags &= ~TS_WRAPPED;
371 teken_funcs_cursor(t);
372}
373
374static void
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 358 unchanged lines hidden (view full) ---

367 t->t_cursor.tp_row = t->t_scrollreg.ts_begin;
368 else
369 t->t_cursor.tp_row -= nrows;
370 t->t_stateflags &= ~TS_WRAPPED;
371 teken_funcs_cursor(t);
372}
373
374static void
375teken_subr_cursor_style(teken_t *t, unsigned int style)
376{
377
378 /* TODO */
379
380 /*
381 * CSI Ps SP q
382 * Set cursor style (DECSCUSR), VT520.
383 * Ps = 0 -> blinking block.
384 * Ps = 1 -> blinking block (default).
385 * Ps = 2 -> steady block.
386 * Ps = 3 -> blinking underline.
387 * Ps = 4 -> steady underline.
388 * Ps = 5 -> blinking bar (xterm).
389 * Ps = 6 -> steady bar (xterm).
390 */
391}
392
393static void
375teken_subr_delete_character(const teken_t *t, unsigned int ncols)
376{
377 teken_rect_t tr;
378
379 tr.tr_begin.tp_row = t->t_cursor.tp_row;
380 tr.tr_end.tp_row = t->t_cursor.tp_row + 1;
381 tr.tr_end.tp_col = t->t_winsize.tp_col;
382

--- 933 unchanged lines hidden ---
394teken_subr_delete_character(const teken_t *t, unsigned int ncols)
395{
396 teken_rect_t tr;
397
398 tr.tr_begin.tp_row = t->t_cursor.tp_row;
399 tr.tr_end.tp_row = t->t_cursor.tp_row + 1;
400 tr.tr_end.tp_col = t->t_winsize.tp_col;
401

--- 933 unchanged lines hidden ---