aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES8
-rw-r--r--cmd-choose-session.c7
-rw-r--r--cmd-list-sessions.c7
3 files changed, 14 insertions, 8 deletions
diff --git a/CHANGES b/CHANGES
index d5c2beaa..89ee59c2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,11 @@
-17 January 2009
+18 January 2009
* suspend-client command to suspend a client. Don't try to background it
though...
+* Mark attached sessions in sessions lists. Suggested by Simon Kuhnle.
+
+17 January 2009
+
* tmux 0.6 released.
15 January 2009
@@ -934,7 +938,7 @@
(including mutt, emacs). No status bar yet and no key remapping or other
customisation.
-$Id: CHANGES,v 1.215 2009-01-18 12:09:42 nicm Exp $
+$Id: CHANGES,v 1.216 2009-01-18 12:13:21 nicm Exp $
LocalWords: showw utf UTF fulvio ciriaco joshe OSC APC gettime abc DEF OA clr
LocalWords: rivo nurges lscm Erdely eol smysession mysession ek dstname RB ms
diff --git a/cmd-choose-session.c b/cmd-choose-session.c
index 08057d88..14745c16 100644
--- a/cmd-choose-session.c
+++ b/cmd-choose-session.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-choose-session.c,v 1.2 2009-01-17 18:47:36 nicm Exp $ */
+/* $Id: cmd-choose-session.c,v 1.3 2009-01-18 12:13:21 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -73,8 +73,9 @@ cmd_choose_session_exec(struct cmd *self, struct cmd_ctx *ctx)
idx++;
window_choose_add(wl->window->active, i,
- "%s: %u windows [%ux%u]", s->name,
- winlink_count(&s->windows), s->sx, s->sy);
+ "%s: %u windows [%ux%u]%s", s->name,
+ winlink_count(&s->windows), s->sx, s->sy,
+ s->flags & SESSION_UNATTACHED ? "" : " (attached)");
}
cdata = xmalloc(sizeof *cdata);
diff --git a/cmd-list-sessions.c b/cmd-list-sessions.c
index c0b887ff..e2d66ac6 100644
--- a/cmd-list-sessions.c
+++ b/cmd-list-sessions.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-list-sessions.c,v 1.17 2009-01-10 14:43:43 nicm Exp $ */
+/* $Id: cmd-list-sessions.c,v 1.18 2009-01-18 12:13:21 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -58,8 +58,9 @@ cmd_list_sessions_exec(unused struct cmd *self, struct cmd_ctx *ctx)
tim = ctime(&t);
*strchr(tim, '\n') = '\0';
- ctx->print(ctx, "%s: %u windows (created %s) [%ux%u]",
- s->name, winlink_count(&s->windows), tim, s->sx, s->sy);
+ ctx->print(ctx, "%s: %u windows (created %s) [%ux%u]%s",
+ s->name, winlink_count(&s->windows), tim, s->sx, s->sy,
+ s->flags & SESSION_UNATTACHED ? "" : " (attached)");
}
if (ctx->cmdclient != NULL)