| H A D | tty.c | 1 /* $OpenBSD: tty.c,v 1.441 2025/01/12 14:20:49 nicm Exp $ */ 38 static void tty_set_italics(struct tty *); 39 static int tty_try_colour(struct tty *, int, const char *); 40 static void tty_force_cursor_colour(struct tty *, int); 41 static void tty_cursor_pane(struct tty *, const struct tty_ctx *, u_int, 43 static void tty_cursor_pane_unless_wrap(struct tty *, 45 static void tty_colours(struct tty *, const struct grid_cell *); 46 static void tty_check_fg(struct tty *, struct colour_palette *, 48 static void tty_check_bg(struct tty *, struct colour_palette *, 50 static void tty_check_us(struct tty *, struc 76 tty_use_margin(tty) global() argument 78 tty_full_width(tty,ctx) global() argument 82 TTY_BLOCK_START(tty) global() argument 83 TTY_BLOCK_STOP(tty) global() argument 101 tty_init(struct tty * tty,struct client * c) tty_init() argument 119 tty_resize(struct tty * tty) tty_resize() argument 151 tty_set_size(struct tty * tty,u_int sx,u_int sy,u_int xpixel,u_int ypixel) tty_set_size() argument 162 struct tty *tty = data; tty_read_callback() local 187 struct tty *tty = data; tty_timer_callback() local 206 tty_block_maybe(struct tty * tty) tty_block_maybe() argument 237 struct tty *tty = data; tty_write_callback() local 262 tty_open(struct tty * tty,char ** cause) tty_open() argument 298 struct tty *tty = data; tty_start_timer_callback() local 308 tty_start_tty(struct tty * tty) tty_start_tty() argument 362 tty_send_requests(struct tty * tty) tty_send_requests() argument 382 tty_repeat_requests(struct tty * tty) tty_repeat_requests() argument 400 tty_stop_tty(struct tty * tty) tty_stop_tty() argument 463 tty_close(struct tty * tty) tty_close() argument 483 tty_free(struct tty * tty) tty_free() argument 489 tty_update_features(struct tty * tty) tty_update_features() argument 515 tty_raw(struct tty * tty,const char * s) tty_raw() argument 536 tty_putcode(struct tty * tty,enum tty_code_code code) tty_putcode() argument 542 tty_putcode_i(struct tty * tty,enum tty_code_code code,int a) tty_putcode_i() argument 550 tty_putcode_ii(struct tty * tty,enum tty_code_code code,int a,int b) tty_putcode_ii() argument 558 tty_putcode_iii(struct tty * tty,enum tty_code_code code,int a,int b,int c) tty_putcode_iii() argument 566 tty_putcode_s(struct tty * tty,enum tty_code_code code,const char * a) tty_putcode_s() argument 573 tty_putcode_ss(struct tty * tty,enum tty_code_code code,const char * a,const char * b) tty_putcode_ss() argument 581 tty_add(struct tty * tty,const char * buf,size_t len) tty_add() argument 601 tty_puts(struct tty * tty,const char * s) tty_puts() argument 608 tty_putc(struct tty * tty,u_char ch) tty_putc() argument 646 tty_putn(struct tty * tty,const void * buf,size_t len,u_int width) tty_putn() argument 665 tty_set_italics(struct tty * tty) tty_set_italics() argument 680 tty_set_title(struct tty * tty,const char * title) tty_set_title() argument 692 tty_set_path(struct tty * tty,const char * title) tty_set_path() argument 704 tty_force_cursor_colour(struct tty * tty,int c) tty_force_cursor_colour() argument 724 tty_update_cursor(struct tty * tty,int mode,struct screen * s) tty_update_cursor() argument 817 tty_update_mode(struct tty * tty,int mode,struct screen * s) tty_update_mode() argument 859 tty_emulate_repeat(struct tty * tty,enum tty_code_code code,enum tty_code_code code1,u_int n) tty_emulate_repeat() argument 871 tty_repeat_space(struct tty * tty,u_int n) tty_repeat_space() argument 888 tty_window_bigger(struct tty * tty) tty_window_bigger() argument 898 tty_window_offset(struct tty * tty,u_int * ox,u_int * oy,u_int * sx,u_int * sy) tty_window_offset() argument 910 tty_window_offset1(struct tty * tty,u_int * ox,u_int * oy,u_int * sx,u_int * sy) tty_window_offset1() argument 1020 tty_large_region(__unused struct tty * tty,const struct tty_ctx * ctx) tty_large_region() argument 1030 tty_fake_bce(const struct tty * tty,const struct grid_cell * gc,u_int bg) tty_fake_bce() argument 1045 tty_redraw_region(struct tty * tty,const struct tty_ctx * ctx) tty_redraw_region() argument 1066 tty_is_visible(__unused struct tty * tty,const struct tty_ctx * ctx,u_int px,u_int py,u_int nx,u_int ny) tty_is_visible() argument 1082 tty_clamp_line(struct tty * tty,const struct tty_ctx * ctx,u_int px,u_int py,u_int nx,u_int * i,u_int * x,u_int * rx,u_int * ry) tty_clamp_line() argument 1120 tty_clear_line(struct tty * tty,const struct grid_cell * defaults,u_int py,u_int px,u_int nx,u_int bg) tty_clear_line() argument 1172 tty_clear_pane_line(struct tty * tty,const struct tty_ctx * ctx,u_int py,u_int px,u_int nx,u_int bg) tty_clear_pane_line() argument 1186 tty_clamp_area(struct tty * tty,const struct tty_ctx * ctx,u_int px,u_int py,u_int nx,u_int ny,u_int * i,u_int * j,u_int * x,u_int * y,u_int * rx,u_int * ry) tty_clamp_area() argument 1248 tty_clear_area(struct tty * tty,const struct grid_cell * defaults,u_int py,u_int ny,u_int px,u_int nx,u_int bg) tty_clear_area() argument 1320 tty_clear_pane_area(struct tty * tty,const struct tty_ctx * ctx,u_int py,u_int ny,u_int px,u_int nx,u_int bg) tty_clear_pane_area() argument 1330 tty_draw_pane(struct tty * tty,const struct tty_ctx * ctx,u_int py) tty_draw_pane() argument 1349 tty_check_codeset(struct tty * tty,const struct grid_cell * gc) tty_check_codeset() argument 1384 tty_check_overlay(struct tty * tty,u_int px,u_int py) tty_check_overlay() argument 1401 tty_check_overlay_range(struct tty * tty,u_int px,u_int py,u_int nx,struct overlay_ranges * r) tty_check_overlay_range() argument 1420 tty_draw_line(struct tty * tty,struct screen * s,u_int px,u_int py,u_int nx,u_int atx,u_int aty,const struct grid_cell * defaults,struct colour_palette * palette) tty_draw_line() argument 1605 tty_sync_start(struct tty * tty) tty_sync_start() argument 1620 tty_sync_end(struct tty * tty) tty_sync_end() argument 1657 tty_write(void (* cmdfn)(struct tty *,const struct tty_ctx *),struct tty_ctx * ctx) tty_write() argument 1678 tty_cmd_insertcharacter(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_insertcharacter() argument 1701 tty_cmd_deletecharacter(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_deletecharacter() argument 1724 tty_cmd_clearcharacter(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_clearcharacter() argument 1733 tty_cmd_insertline(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_insertline() argument 1761 tty_cmd_deleteline(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_deleteline() argument 1789 tty_cmd_clearline(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_clearline() argument 1798 tty_cmd_clearendofline(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_clearendofline() argument 1809 tty_cmd_clearstartofline(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_clearstartofline() argument 1818 tty_cmd_reverseindex(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_reverseindex() argument 1852 tty_cmd_linefeed(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_linefeed() argument 1895 tty_cmd_scrollup(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_scrollup() argument 1934 tty_cmd_scrolldown(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_scrolldown() argument 1968 tty_cmd_clearendofscreen(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_clearendofscreen() argument 1993 tty_cmd_clearstartofscreen(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_clearstartofscreen() argument 2018 tty_cmd_clearscreen(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_clearscreen() argument 2037 tty_cmd_alignmenttest(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_alignmenttest() argument 2060 tty_cmd_cell(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_cell() argument 2101 tty_cmd_cells(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_cells() argument 2146 tty_cmd_setselection(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_setselection() argument 2152 tty_set_selection(struct tty * tty,const char * flags,const char * buf,size_t len) tty_set_selection() argument 2174 tty_cmd_rawstring(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_rawstring() argument 2182 tty_cmd_syncstart(struct tty * tty,const struct tty_ctx * ctx) tty_cmd_syncstart() argument 2201 tty_cell(struct tty * tty,const struct grid_cell * gc,const struct grid_cell * defaults,struct colour_palette * palette,struct hyperlinks * hl) tty_cell() argument 2235 tty_reset(struct tty * tty) tty_reset() argument 2251 tty_invalidate(struct tty * tty) tty_invalidate() argument 2277 tty_region_off(struct tty * tty) tty_region_off() argument 2284 tty_region_pane(struct tty * tty,const struct tty_ctx * ctx,u_int rupper,u_int rlower) tty_region_pane() argument 2293 tty_region(struct tty * tty,u_int rupper,u_int rlower) tty_region() argument 2322 tty_margin_off(struct tty * tty) tty_margin_off() argument 2329 tty_margin_pane(struct tty * tty,const struct tty_ctx * ctx) tty_margin_pane() argument 2337 tty_margin(struct tty * tty,u_int rleft,u_int rright) tty_margin() argument 2361 tty_cursor_pane_unless_wrap(struct tty * tty,const struct tty_ctx * ctx,u_int cx,u_int cy) tty_cursor_pane_unless_wrap() argument 2378 tty_cursor_pane(struct tty * tty,const struct tty_ctx * ctx,u_int cx,u_int cy) tty_cursor_pane() argument 2385 tty_cursor(struct tty * tty,u_int cx,u_int cy) tty_cursor() argument 2532 tty_hyperlink(struct tty * tty,const struct grid_cell * gc,struct hyperlinks * hl) tty_hyperlink() argument 2551 tty_attributes(struct tty * tty,const struct grid_cell * gc,const struct grid_cell * defaults,struct colour_palette * palette,struct hyperlinks * hl) tty_attributes() argument 2656 tty_colours(struct tty * tty,const struct grid_cell * gc) tty_colours() argument 2717 tty_check_fg(struct tty * tty,struct colour_palette * palette,struct grid_cell * gc) tty_check_fg() argument 2776 tty_check_bg(struct tty * tty,struct colour_palette * palette,struct grid_cell * gc) tty_check_bg() argument 2828 tty_check_us(__unused struct tty * tty,struct colour_palette * palette,struct grid_cell * gc) tty_check_us() argument 2849 tty_colours_fg(struct tty * tty,const struct grid_cell * gc) tty_colours_fg() argument 2881 tty_colours_bg(struct tty * tty,const struct grid_cell * gc) tty_colours_bg() argument 2913 tty_colours_us(struct tty * tty,const struct grid_cell * gc) tty_colours_us() argument 2960 tty_try_colour(struct tty * tty,int colour,const char * type) tty_try_colour() argument 3030 tty_default_attributes(struct tty * tty,const struct grid_cell * defaults,struct colour_palette * palette,u_int bg,struct hyperlinks * hl) tty_default_attributes() argument 3043 struct tty *tty = data; tty_clipboard_query_callback() local 3055 tty_clipboard_query(struct tty * tty) tty_clipboard_query() argument [all...] |
| H A D | tty-keys.c | 1 /* $OpenBSD: tty-keys.c,v 1.185 2025/01/02 10:34:45 nicm Exp $ */ 41 static void tty_keys_add(struct tty *, const char *, key_code); 45 static struct tty_key *tty_keys_find(struct tty *, const char *, size_t, 47 static int tty_keys_next1(struct tty *, const char *, size_t, key_code *, 50 static int tty_keys_extended_key(struct tty *, const char *, size_t, 52 static int tty_keys_mouse(struct tty *, const char *, size_t, size_t *, 54 static int tty_keys_clipboard(struct tty *, const char *, size_t, 56 static int tty_keys_device_attributes(struct tty *, const char *, size_t, 58 static int tty_keys_device_attributes2(struct tty *, const char *, size_t, 60 static int tty_keys_extended_device_attributes(struct tty *, cons 429 tty_keys_add(struct tty * tty,const char * s,key_code key) tty_keys_add() argument 485 tty_keys_build(struct tty * tty) tty_keys_build() argument 542 tty_keys_free(struct tty * tty) tty_keys_free() argument 562 tty_keys_find(struct tty * tty,const char * buf,size_t len,size_t * size) tty_keys_find() argument 605 tty_keys_next1(struct tty * tty,const char * buf,size_t len,key_code * key,size_t * size,int expired) tty_keys_next1() argument 659 tty_keys_next(struct tty * tty) tty_keys_next() argument 890 struct tty *tty = data; tty_keys_callback() local 904 tty_keys_extended_key(struct tty * tty,const char * buf,size_t len,size_t * size,key_code * key) tty_keys_extended_key() argument 1025 tty_keys_mouse(struct tty * tty,const char * buf,size_t len,size_t * size,struct mouse_event * m) tty_keys_mouse() argument 1169 tty_keys_clipboard(struct tty * tty,const char * buf,size_t len,size_t * size) tty_keys_clipboard() argument 1278 tty_keys_device_attributes(struct tty * tty,const char * buf,size_t len,size_t * size) tty_keys_device_attributes() argument 1358 tty_keys_device_attributes2(struct tty * tty,const char * buf,size_t len,size_t * size) tty_keys_device_attributes2() argument 1436 tty_keys_extended_device_attributes(struct tty * tty,const char * buf,size_t len,size_t * size) tty_keys_extended_device_attributes() argument 1504 tty_keys_colours(struct tty * tty,const char * buf,size_t len,size_t * size,int * fg,int * bg) tty_keys_colours() argument [all...] |