mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-17 17:11:38 +02:00
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.
This commit is contained in:
12
tmux.h
12
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 *, ...);
|
||||
|
Reference in New Issue
Block a user