Skip to content

Commit 0437247

Browse files
author
nicm
committed
Show size.
1 parent 4114fda commit 0437247

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

cmd-list-sessions.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: cmd-list-sessions.c,v 1.5 2007-10-19 22:32:54 nicm Exp $ */
1+
/* $Id: cmd-list-sessions.c,v 1.6 2007-10-23 09:36:07 nicm Exp $ */
22

33
/*
44
* Copyright (c) 2007 Nicholas Marriott <[email protected]>
@@ -61,7 +61,8 @@ cmd_list_sessions_exec(unused void *ptr, struct cmd_ctx *ctx)
6161
tim = ctime(&s->tim);
6262
*strchr(tim, '\n') = '\0';
6363

64-
ctx->print(ctx, "%s: %u windows (created %s)", s->name, n, tim);
64+
ctx->print(ctx, "%s: %u windows (created %s) [%ux%u]", s->name,
65+
n, tim, s->sx, s->sy);
6566
}
6667

6768
if (!(ctx->flags & CMD_KEY))

cmd-list-windows.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: cmd-list-windows.c,v 1.2 2007-10-04 22:04:01 nicm Exp $ */
1+
/* $Id: cmd-list-windows.c,v 1.3 2007-10-23 09:36:07 nicm Exp $ */
22

33
/*
44
* Copyright (c) 2007 Nicholas Marriott <[email protected]>
@@ -52,8 +52,9 @@ cmd_list_windows_exec(unused void *ptr, struct cmd_ctx *ctx)
5252
if (w == NULL)
5353
continue;
5454

55-
ctx->print(ctx, "%u: %s \"%s\" (%s)",
56-
i, w->name, w->screen.title, ttyname(w->fd));
55+
ctx->print(ctx,
56+
"%u: %s \"%s\" (%s) [%ux%u]", i, w->name, w->screen.title,
57+
ttyname(w->fd), w->screen.sx, w->screen.sy);
5758
}
5859

5960
if (!(ctx->flags & CMD_KEY))

0 commit comments

Comments
 (0)