~pi-rho/tmux/master-sf-old

« back to all changes in this revision

Viewing changes to tmux.h

  • Committer: Thomas Adam
  • Date: 2015-05-13 08:44:11 UTC
  • mfrom: (0.1.1708)
  • Revision ID: git-v1:00471dc78358bde092df65de5e2c375bf9be7437
Merge branch 'obsd-master'

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 */
61
61
#define UTF8_SIZE 9
62
62
 
 
63
/*
 
64
 * READ_SIZE is the maximum size of data to hold from a pty (the event high
 
65
 * watermark). READ_BACKOFF is the amount of data waiting to be output to a tty
 
66
 * before pty reads will be backed off. READ_TIME is how long to back off
 
67
 * before the next read (in microseconds) if a tty is above READ_BACKOFF.
 
68
 */
 
69
#define READ_SIZE 1024
 
70
#define READ_BACKOFF 512
 
71
#define READ_TIME 100
 
72
 
63
73
/* Fatal errors. */
64
74
#define fatal(msg) log_fatal("%s: %s", __func__, msg);
65
75
#define fatalx(msg) log_fatalx("%s: %s", __func__, msg);
79
89
#define BELL_NONE 0
80
90
#define BELL_ANY 1
81
91
#define BELL_CURRENT 2
 
92
#define BELL_OTHER 3
82
93
 
83
94
/* Special key codes. */
84
95
#define KEYC_NONE 0xfff
848
859
        char             tty[TTY_NAME_MAX];
849
860
        int              status;
850
861
 
851
 
        u_int            changes;
852
 
        struct event     changes_timer;
853
 
        u_int            changes_redraw;
854
 
 
855
862
        int              fd;
856
863
        struct bufferevent *event;
 
864
        struct event     timer;
857
865
 
858
866
        struct input_ctx *ictx;
859
867
 
1602
1610
int     tty_open(struct tty *, char **);
1603
1611
void    tty_close(struct tty *);
1604
1612
void    tty_free(struct tty *);
1605
 
void    tty_write(
1606
 
            void (*)(struct tty *, const struct tty_ctx *), struct tty_ctx *);
 
1613
void    tty_write(void (*)(struct tty *, const struct tty_ctx *),
 
1614
            struct tty_ctx *);
 
1615
int     tty_client_ready(struct client *, struct window_pane *wp);
1607
1616
void    tty_cmd_alignmenttest(struct tty *, const struct tty_ctx *);
1608
1617
void    tty_cmd_cell(struct tty *, const struct tty_ctx *);
1609
1618
void    tty_cmd_clearendofline(struct tty *, const struct tty_ctx *);
2111
2120
struct window_pane *window_pane_find_by_id(u_int);
2112
2121
struct window_pane *window_pane_create(struct window *, u_int, u_int, u_int);
2113
2122
void             window_pane_destroy(struct window_pane *);
2114
 
void             window_pane_timer_start(struct window_pane *);
2115
2123
int              window_pane_spawn(struct window_pane *, int, char **,
2116
2124
                     const char *, const char *, int, struct environ *,
2117
2125
                     struct termios *, char **);