Sync OpenBSD patchset 585:

Add "server options" which are server-wide and not bound to a session or
window. Set and displayed with "set -s" and "show -s".

Currently the only option is "quiet" (like command-line -q, allowing it to be
set from .tmux.conf), but others will come along.
This commit is contained in:
Tiago Cunha
2009-12-10 16:59:02 +00:00
parent 328861e330
commit dcdd2fb094
8 changed files with 95 additions and 52 deletions

View File

@ -1,4 +1,4 @@
/* $Id: key-bindings.c,v 1.86 2009-12-04 22:14:47 tcunha Exp $ */
/* $Id: key-bindings.c,v 1.87 2009-12-10 16:59:02 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -224,7 +224,7 @@ key_bindings_info(struct cmd_ctx *ctx, const char *fmt, ...)
va_list ap;
char *msg;
if (be_quiet)
if (options_get_number(&global_options, "quiet"))
return;
va_start(ap, fmt);