From bc2e4a36df2023a738c433779ba8f1e08b6951fe Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 15 Jan 2013 22:55:29 +0000 Subject: If timing between keys is less than (by default) 1 millisecond, assume the text is being pasted. assume-paste-time option changes the value (0 disables). Based on a diff from Marcin Kulik. --- tmux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index c1fec028..f1a9e4d4 100644 --- a/tmux.h +++ b/tmux.h @@ -1095,6 +1095,7 @@ struct session { struct timeval creation_time; struct timeval activity_time; + struct timeval last_activity_time; u_int sx; u_int sy; @@ -1707,7 +1708,6 @@ char *paste_print(struct paste_buffer *, size_t); void paste_send_pane(struct paste_buffer *, struct window_pane *, const char *, int); - /* clock.c */ extern const char clock_table[14][5][5]; void clock_draw(struct screen_write_ctx *, int, int); -- cgit From 44f8e1caffce2e887682c3314ee22becc09e1d3c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 15 Jan 2013 23:18:55 +0000 Subject: Implement ECH (erase character, CSI X). Reported by Christian Neukirchen. --- tmux.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index f1a9e4d4..d790dd25 100644 --- a/tmux.h +++ b/tmux.h @@ -274,6 +274,7 @@ enum tty_code_code { TTYC_DL, /* parm_delete_line, DL */ TTYC_DL1, /* delete_line, dl */ TTYC_E3, + TTYC_ECH, /* erase_chars, ec */ TTYC_EL, /* clr_eol, ce */ TTYC_EL1, /* clr_bol, cb */ TTYC_ENACS, /* ena_acs, eA */ @@ -1660,6 +1661,7 @@ void tty_cmd_clearscreen(struct tty *, const struct tty_ctx *); void tty_cmd_clearstartofline(struct tty *, const struct tty_ctx *); void tty_cmd_clearstartofscreen(struct tty *, const struct tty_ctx *); void tty_cmd_deletecharacter(struct tty *, const struct tty_ctx *); +void tty_cmd_clearcharacter(struct tty *, const struct tty_ctx *); void tty_cmd_deleteline(struct tty *, const struct tty_ctx *); void tty_cmd_erasecharacter(struct tty *, const struct tty_ctx *); void tty_cmd_insertcharacter(struct tty *, const struct tty_ctx *); @@ -2049,6 +2051,7 @@ void screen_write_cursorleft(struct screen_write_ctx *, u_int); void screen_write_alignmenttest(struct screen_write_ctx *); void screen_write_insertcharacter(struct screen_write_ctx *, u_int); void screen_write_deletecharacter(struct screen_write_ctx *, u_int); +void screen_write_clearcharacter(struct screen_write_ctx *, u_int); void screen_write_insertline(struct screen_write_ctx *, u_int); void screen_write_deleteline(struct screen_write_ctx *, u_int); void screen_write_clearline(struct screen_write_ctx *); -- cgit From e33ba57c13139bc9ae6e92be169de6dc322e38eb Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 17 Jan 2013 00:11:22 +0000 Subject: Remove the layout undo/redo code which never really worked. --- tmux.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index d790dd25..9c062d65 100644 --- a/tmux.h +++ b/tmux.h @@ -974,13 +974,6 @@ struct window_pane { TAILQ_HEAD(window_panes, window_pane); RB_HEAD(window_pane_tree, window_pane); -/* Window last layout. */ -struct last_layout { - char *layout; - - TAILQ_ENTRY(last_layout) entry; -}; - /* Window structure. */ struct window { u_int id; @@ -994,9 +987,6 @@ struct window { int lastlayout; struct layout_cell *layout_root; - TAILQ_HEAD(last_layouts, last_layout) layout_list; - u_int layout_list_size; - struct last_layout *layout_list_last; u_int sx; u_int sy; @@ -2179,8 +2169,7 @@ u_int layout_count_cells(struct layout_cell *); struct layout_cell *layout_create_cell(struct layout_cell *); void layout_free_cell(struct layout_cell *); void layout_print_cell(struct layout_cell *, const char *, u_int); -void layout_destroy_cell( - struct layout_cell *, struct layout_cell **); +void layout_destroy_cell(struct layout_cell *, struct layout_cell **); void layout_set_size( struct layout_cell *, u_int, u_int, u_int, u_int); void layout_make_leaf( @@ -2201,9 +2190,6 @@ void layout_assign_pane(struct layout_cell *, struct window_pane *); struct layout_cell *layout_split_pane( struct window_pane *, enum layout_type, int, int); void layout_close_pane(struct window_pane *); -void layout_list_add(struct window *); -const char *layout_list_redo(struct window *); -const char *layout_list_undo(struct window *); /* layout-custom.c */ char *layout_dump(struct window *); -- cgit