mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Put the tty structs together, and tabify.
This commit is contained in:
parent
592cb73a69
commit
92faa2eaeb
54
tmux.h
54
tmux.h
@ -1028,33 +1028,6 @@ struct session {
|
|||||||
};
|
};
|
||||||
RB_HEAD(sessions, session);
|
RB_HEAD(sessions, session);
|
||||||
|
|
||||||
/* TTY information. */
|
|
||||||
struct tty_key {
|
|
||||||
char ch;
|
|
||||||
int key;
|
|
||||||
|
|
||||||
struct tty_key *left;
|
|
||||||
struct tty_key *right;
|
|
||||||
|
|
||||||
struct tty_key *next;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct tty_term {
|
|
||||||
char *name;
|
|
||||||
u_int references;
|
|
||||||
|
|
||||||
char acs[UCHAR_MAX + 1][2];
|
|
||||||
|
|
||||||
struct tty_code codes[NTTYCODE];
|
|
||||||
|
|
||||||
#define TERM_256COLOURS 0x1
|
|
||||||
#define TERM_EARLYWRAP 0x2
|
|
||||||
int flags;
|
|
||||||
|
|
||||||
LIST_ENTRY(tty_term) entry;
|
|
||||||
};
|
|
||||||
LIST_HEAD(tty_terms, tty_term);
|
|
||||||
|
|
||||||
/* Mouse button masks. */
|
/* Mouse button masks. */
|
||||||
#define MOUSE_MASK_BUTTONS 3
|
#define MOUSE_MASK_BUTTONS 3
|
||||||
#define MOUSE_MASK_SHIFT 4
|
#define MOUSE_MASK_SHIFT 4
|
||||||
@ -1096,6 +1069,33 @@ struct mouse_event {
|
|||||||
u_int sgr_b;
|
u_int sgr_b;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* TTY information. */
|
||||||
|
struct tty_key {
|
||||||
|
char ch;
|
||||||
|
int key;
|
||||||
|
|
||||||
|
struct tty_key *left;
|
||||||
|
struct tty_key *right;
|
||||||
|
|
||||||
|
struct tty_key *next;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct tty_term {
|
||||||
|
char *name;
|
||||||
|
u_int references;
|
||||||
|
|
||||||
|
char acs[UCHAR_MAX + 1][2];
|
||||||
|
|
||||||
|
struct tty_code codes[NTTYCODE];
|
||||||
|
|
||||||
|
#define TERM_256COLOURS 0x1
|
||||||
|
#define TERM_EARLYWRAP 0x2
|
||||||
|
int flags;
|
||||||
|
|
||||||
|
LIST_ENTRY(tty_term) entry;
|
||||||
|
};
|
||||||
|
LIST_HEAD(tty_terms, tty_term);
|
||||||
|
|
||||||
struct tty {
|
struct tty {
|
||||||
struct client *client;
|
struct client *client;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user