Sync OpenBSD patchset 639:

Support attaching a client read-only with a new -r flag to the attach-session
command.
This commit is contained in:
Tiago Cunha
2010-02-08 18:27:34 +00:00
parent 9b57743cca
commit c6ba781379
6 changed files with 48 additions and 20 deletions

4
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.542 2010-02-08 18:13:17 tcunha Exp $ */
/* $Id: tmux.h,v 1.543 2010-02-08 18:27:34 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -1093,6 +1093,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;
@ -1171,6 +1172,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;