diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-30 18:27:14 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-30 18:27:14 +0000 |
commit | 80a594cae33ac195e37fcff9c383bf335388ef6a (patch) | |
tree | 7237c42cff5db98631d773a7a27cfe63744e7f38 | |
parent | 797f04b6488ff036a32a9321e81f0e5b4170f26a (diff) | |
download | rtmux-80a594cae33ac195e37fcff9c383bf335388ef6a.tar.gz rtmux-80a594cae33ac195e37fcff9c383bf335388ef6a.tar.bz2 rtmux-80a594cae33ac195e37fcff9c383bf335388ef6a.zip |
Document zombie window stuff.
-rw-r--r-- | TODO | 10 | ||||
-rw-r--r-- | tmux.1 | 31 | ||||
-rw-r--r-- | window.c | 4 |
3 files changed, 36 insertions, 9 deletions
@@ -47,17 +47,13 @@ - flags to centre screen in window - get rid of DEFDATA etc --- For 0.4 -------------------------------------------------------------------- - -- document zombie windows -- document buffer stuff - -- For 0.5 -------------------------------------------------------------------- - commands: save-buffer -b number filename load-buffer -b number filename - copy-buffer -s src-session -t dst-session -a src-index -b dst-index - (from other session) + copy-buffer -s src-session -t dst-session + -a src-index -b dst-index + (copy from other session) - clear EOL etc CANNOT rely on term using the current colour/attr and probably should not emulate it doing so - activity/bell should be per-window not per-link? what if it is cur win in @@ -1,4 +1,4 @@ -.\" $Id: tmux.1,v 1.47 2008-06-30 05:34:06 nicm Exp $ +.\" $Id: tmux.1,v 1.48 2008-06-30 18:27:14 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> .\" @@ -573,6 +573,21 @@ Rename the current window, or the window at .Ar target-window if specifed, to .Ar new-name . +.It Xo Ic respawn window +.Op Fl k +.Op Fl t Ar target-window +.Op command +.Xc +.D1 (alias: Ic respawnw ) +Reactive a window in which the command has exited (see the +.Ic remain-in-exit +windowoption). +If +.Ar command +is not given, the command used when the window was created is executed. +The window must be already inactive, unless +.Fl k +is given, in which case any existing command is killed. .It Xo Ic scroll-mode .Op Fl t Ar target-window .Xc @@ -655,6 +670,12 @@ This setting applies only to new windows - existing window histories are not resized and retain the limit at the point they were created. .It Ic prefix Ar key Set the current prefix key. +.It Xo Ic remain-by-default +.Op Ic on | Ic off +.Xc +If this option is on, newly created windows have their +.Ic remain-on-exit +flag set. .It Xo Ic set-titles .Op Ic on | Ic off .Xc @@ -743,6 +764,14 @@ from resizing a window to greater than or .Ar height . A value of zero restores the default unlimited setting. +.It Xo Ic remain-on-exit +.Op Ic on | Ic off +.Xc +A window with this flag set is not destroyed when the program running in it +exits. +The window may be reactivated with the +.Ic respawn-window +command. .El .It Xo Ic show-buffer .Op Fl b Ar buffer-index @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.46 2008-06-29 07:04:31 nicm Exp $ */ +/* $Id: window.c,v 1.47 2008-06-30 18:27:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -287,6 +287,8 @@ window_destroy(struct window *w) buffer_destroy(w->in); buffer_destroy(w->out); + if (w->cmd != NULL) + xfree(w->cmd); xfree(w->name); xfree(w); } |