Replication of bind/unbind commands

This commit is contained in:
Nicolas Viennot
2013-06-11 22:45:33 -04:00
parent 839c4e3dd9
commit 35daf6d805
5 changed files with 38 additions and 10 deletions

View File

@ -22,6 +22,7 @@ enum tmate_commands {
TMATE_HEADER,
TMATE_SYNC_WINDOW,
TMATE_PTY_DATA,
TMATE_CMD,
};
struct tmate_encoder {
@ -35,10 +36,12 @@ extern void tmate_encoder_init(struct tmate_encoder *encoder);
extern void tmate_write_header(void);
extern void tmate_sync_window(struct window *w);
extern void tmate_pty_data(struct window_pane *wp, const char *buf, size_t len);
extern int tmate_should_replicate_cmd(const struct cmd_entry *cmd);
extern void tmate_cmd(const char *cmd);
/* tmate-decoder.c */
enum tmate_notifications {
enum tmate_client_commands {
TMATE_CLIENT_PANE_KEY,
TMATE_CLIENT_RESIZE,
TMATE_CLIENT_CMD,