Support attaching a client read-only with a new -r flag to the attach-session

command.
This commit is contained in:
Nicholas Marriott
2010-02-06 22:55:31 +00:00
parent 0a86d3579e
commit bb53c20c18
6 changed files with 42 additions and 14 deletions

2
tmux.h
View File

@ -1094,6 +1094,7 @@ struct client {
#define CLIENT_IDENTIFY 0x100
#define CLIENT_DEAD 0x200
#define CLIENT_BORDERS 0x400
#define CLIENT_READONLY 0x800
int flags;
struct event identify_timer;
@ -1172,6 +1173,7 @@ struct cmd_entry {
#define CMD_ARG01 0x10
#define CMD_ARG2 0x20
#define CMD_ARG12 0x40
#define CMD_READONLY 0x80
int flags;
const char *chflags;