The branch, master has been updated
via 208881a735669d854b132629eedb463ea9c01420 (commit)
from a2f52d422418af489e8eeb386d989b848a09891b (commit)
- Log -----------------------------------------------------------------
commit 208881a735669d854b132629eedb463ea9c01420
Author: Nicholas Marriott <[email protected]>
Commit: Nicholas Marriott <[email protected]>
Send DSC 1000p at the beginning of a -CC client's lifetime and ST and the
end,
from George Nachman..
---
client.c | 10 +++++++++-
server-client.c | 2 ++
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/client.c b/client.c
index 582b44b..5b227b4 100644
--- a/client.c
+++ b/client.c
@@ -296,8 +296,16 @@ client_main(int argc, char **argv, int flags)
ppid = getppid();
if (client_exittype == MSG_DETACHKILL && ppid > 1)
kill(ppid, SIGHUP);
- } else if (flags & IDENTIFY_TERMIOS)
+ } else if (flags & IDENTIFY_TERMIOS) {
+ if (flags & IDENTIFY_CONTROL) {
+ if (client_exitreason != CLIENT_EXIT_NONE)
+ printf("%%exit %s\n", client_exit_message());
+ else
+ printf("%%exit\n");
+ printf("\033\\");
+ }
tcsetattr(STDOUT_FILENO, TCSAFLUSH, &saved_tio);
+ }
setblocking(STDIN_FILENO, 1);
return (client_exitval);
}
diff --git a/server-client.c b/server-client.c
index fd729b7..b905a7c 100644
--- a/server-client.c
+++ b/server-client.c
@@ -956,6 +956,8 @@ server_client_msg_identify(
if (data->flags & IDENTIFY_CONTROL) {
c->stdin_callback = control_callback;
c->flags |= CLIENT_CONTROL;
+ if (data->flags & IDENTIFY_TERMIOS)
+ evbuffer_add_printf(c->stdout_data, "\033P1000p");
server_write_client(c, MSG_STDIN, NULL, 0);
c->tty.fd = -1;
-----------------------------------------------------------------------
Summary of changes:
client.c | 10 +++++++++-
server-client.c | 2 ++
2 files changed, 11 insertions(+), 1 deletions(-)
hooks/post-receive
--
tmux
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs