aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-07-18 11:06:09 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-07-18 11:06:09 +0000
commit6bc9ee3420443b0ff4b18cd00b39d66f71db676f (patch)
tree51994a6bc4b7cd353faa780a9fe7382c0a23295d /tmux.h
parent4192449112ead132943719277e7e56bcafab3d93 (diff)
downloadrtmux-6bc9ee3420443b0ff4b18cd00b39d66f71db676f.tar.gz
rtmux-6bc9ee3420443b0ff4b18cd00b39d66f71db676f.tar.bz2
rtmux-6bc9ee3420443b0ff4b18cd00b39d66f71db676f.zip
Tidy up new-session and attach-session and change them to work from inside
tmux, switching the current client to the new or requested session.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 55c6fcd9..3c67285b 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.369 2009-07-17 18:32:54 tcunha Exp $ */
+/* $Id: tmux.h,v 1.370 2009-07-18 11:06:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -834,8 +834,18 @@ struct client_ctx {
struct cmd_ctx {
struct client *cmdclient;
+ /*
+ * curclient is the client where this command was executed if inside
+ * tmux. This is NULL if the command came from the command-line.
+ *
+ * cmdclient is the client which sent the MSG_COMMAND to the server, if
+ * any. This is NULL unless the command came from the command-line.
+ *
+ * One of curclient or cmdclient is always NULL and the other not.
+ */
struct client *curclient;
struct session *cursession;
+
struct msg_command_data *msgdata;
void (*print)(struct cmd_ctx *, const char *, ...);