Go to the documentation of this file.
41 return ((col % 8) == 0);
43 b = col / (
sizeof(
unsigned int) * 8);
44 o = col % (
sizeof(
unsigned int) * 8);
57 b = col / (
sizeof(
unsigned int) * 8);
58 o = col % (
sizeof(
unsigned int) * 8);
71 b = col / (
sizeof(
unsigned int) * 8);
72 o = col % (
sizeof(
unsigned int) * 8);
160 len =
snprintf(response, 16,
"%u;%uR",
175 strcpy(response,
"27;1n");
342 char response[18] =
"\x1B[";
432 char response[19] =
"\x1B[?";
755 const char response[] =
"\x1B[?1;2c";
988 const char response[] =
"\x1B[>0;10;0c";
1060 unsigned int cmds[])
1070 for (i = 0; i < ncmds; i++) {
1135 unsigned int bottom)
1146 if (top >= bottom - 1) {
static void teken_subr_device_status_report(teken_t *t, unsigned int cmd)
static void teken_subr_reset_to_initial_state(teken_t *)
static void teken_funcs_fill(teken_t *t, const teken_rect_t *r, const teken_char_t c, const teken_attr_t *a)
static teken_char_t teken_scs_uk_national(teken_char_t c)
static void teken_subr_g0_scs_special_graphics(teken_t *t __unused)
static void teken_subr_carriage_return(teken_t *t)
static void teken_subr_insert_character(teken_t *t, unsigned int ncols)
static void teken_subr_newpage(teken_t *t)
static void teken_subr_do_reset(teken_t *t)
static void teken_funcs_copy(teken_t *t, const teken_rect_t *r, const teken_pos_t *p)
#define teken_scs_save(t)
static void teken_tab_set(teken_t *t, unsigned int col)
#define teken_scs_restore(t)
static void teken_funcs_param(teken_t *t, int cmd, unsigned int value)
static int teken_tab_isset(teken_t *t, unsigned int col)
static void teken_subr_do_putchar(teken_t *t, const teken_pos_t *tp, teken_char_t c, int width)
static void teken_subr_g1_scs_uk_national(teken_t *t __unused)
static void teken_subr_vertical_position_absolute(teken_t *t, unsigned int row)
static void teken_subr_double_height_double_width_line_bottom(teken_t *t __unused)
static void teken_tab_clear(teken_t *t, unsigned int col)
static void teken_subr_regular_character(teken_t *, teken_char_t)
static void teken_subr_insert_line(teken_t *t, unsigned int nrows)
static void teken_subr_string_terminator(teken_t *t __unused)
static void teken_subr_g1_scs_us_ascii(teken_t *t __unused)
static void teken_subr_backspace(teken_t *t)
static void teken_subr_g0_scs_us_ascii(teken_t *t __unused)
static void teken_funcs_bell(teken_t *t)
static void teken_subr_cursor_down(teken_t *t, unsigned int nrows)
static void teken_subr_cursor_position(teken_t *t, unsigned int row, unsigned int col)
static void teken_funcs_putchar(teken_t *t, const teken_pos_t *p, teken_char_t c, const teken_attr_t *a)
static void teken_subr_keypad_numeric_mode(teken_t *t)
#define teken_printf(x,...)
static void teken_subr_newline(teken_t *t)
static void teken_subr_erase_display(teken_t *t, unsigned int mode)
static void teken_subr_cursor_backward(teken_t *t, unsigned int ncols)
int strcpy(char *dest, const char *src)
Copy a string.
static void teken_subr_cursor_next_line(teken_t *t, unsigned int ncols)
static void teken_subr_cursor_position_report(teken_t *t, unsigned int cmd)
static void teken_subr_set_mode(teken_t *t, unsigned int cmd)
static void teken_subr_reset_dec_mode(teken_t *t, unsigned int cmd)
unsigned int t_stateflags
unsigned int t_tabstops[T_NUMCOL/(sizeof(unsigned int) *8)]
static void teken_subr_single_height_single_width_line(teken_t *t __unused)
static void teken_subr_keypad_application_mode(teken_t *t)
static void teken_subr_do_scroll(teken_t *t, int amount)
static void teken_subr_cursor_previous_line(teken_t *t, unsigned int ncols)
static void teken_subr_horizontal_tab_set(teken_t *t)
static void teken_subr_cursor_forward_tabulation(teken_t *t, unsigned int ntabs)
static void teken_subr_next_line(teken_t *t)
static void teken_funcs_respond(teken_t *t, const void *buf, size_t len)
static void teken_subr_double_height_double_width_line_top(teken_t *t __unused)
static void teken_subr_pan_up(teken_t *t, unsigned int nrows)
static void teken_subr_cursor_up(teken_t *, unsigned int)
static void teken_subr_bell(teken_t *t)
static void teken_subr_delete_line(teken_t *t, unsigned int nrows)
static void teken_subr_secondary_device_attributes(teken_t *t, unsigned int request)
static void teken_subr_reverse_index(teken_t *t)
static void teken_subr_save_cursor(teken_t *)
static void teken_subr_horizontal_tab(teken_t *t)
#define teken_scs_set(t, g, ts)
static void teken_funcs_cursor(teken_t *t)
static teken_char_t teken_scs_special_graphics(teken_char_t c)
#define teken_scs_process(t, c)
teken_pos_t t_saved_cursor
static void teken_subr_pan_down(teken_t *t, unsigned int nrows)
static teken_char_t teken_scs_us_ascii(teken_char_t c)
static void teken_subr_erase_character(teken_t *t, unsigned int ncols)
unsigned char teken_char_t
static void teken_subr_horizontal_position_absolute(teken_t *t, unsigned int col)
static ssize_t teken_subr_do_cpr(teken_t *t, unsigned int cmd, char response[16])
static void teken_subr_cursor_backward_tabulation(teken_t *t, unsigned int ntabs)
static void teken_tab_default(teken_t *t)
teken_attr_t t_saved_curattr
static void teken_subr_tab_clear(teken_t *t, unsigned int cmd)
slong ssize_t
Used for a count of bytes or an error indication.
void * memset(void *dest, int ch, size_t count)
Fill memory with a constant byte.
static void teken_subr_set_graphic_rendition(teken_t *t, unsigned int ncmds, unsigned int cmds[])
static void teken_subr_index(teken_t *t)
static void teken_subr_primary_device_attributes(teken_t *t, unsigned int request)
static void teken_subr_alignment_test(teken_t *t)
static void teken_subr_set_top_and_bottom_margins(teken_t *t, unsigned int top, unsigned int bottom)
static void teken_subr_g0_scs_uk_national(teken_t *t __unused)
static void teken_subr_g1_scs_special_graphics(teken_t *t __unused)
#define teken_scs_switch(t, g)
static void teken_subr_set_dec_mode(teken_t *t, unsigned int cmd)
int snprintf(char *buffer, unsigned int size, const char *fmt,...)
Write a formatted string into a buffer.
static void teken_subr_device_control_string(teken_t *t __unused)
static void teken_subr_restore_cursor(teken_t *t)
static void teken_subr_cursor_forward(teken_t *t, unsigned int ncols)
static void teken_subr_reset_mode(teken_t *t, unsigned int cmd)
static void teken_subr_erase_line(teken_t *, unsigned int)
static void teken_subr_delete_character(teken_t *t, unsigned int ncols)
static void teken_subr_single_height_double_width_line(teken_t *t __unused)