Show size.

This commit is contained in:
Nicholas Marriott 2007-10-23 09:36:07 +00:00
parent 0b0a3c02af
commit 98e7e79e4c
2 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $Id: cmd-list-sessions.c,v 1.5 2007-10-19 22:32:54 nicm Exp $ */
/* $Id: cmd-list-sessions.c,v 1.6 2007-10-23 09:36:07 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -61,7 +61,8 @@ cmd_list_sessions_exec(unused void *ptr, struct cmd_ctx *ctx)
tim = ctime(&s->tim);
*strchr(tim, '\n') = '\0';
ctx->print(ctx, "%s: %u windows (created %s)", s->name, n, tim);
ctx->print(ctx, "%s: %u windows (created %s) [%ux%u]", s->name,
n, tim, s->sx, s->sy);
}
if (!(ctx->flags & CMD_KEY))

View File

@ -1,4 +1,4 @@
/* $Id: cmd-list-windows.c,v 1.2 2007-10-04 22:04:01 nicm Exp $ */
/* $Id: cmd-list-windows.c,v 1.3 2007-10-23 09:36:07 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -52,8 +52,9 @@ cmd_list_windows_exec(unused void *ptr, struct cmd_ctx *ctx)
if (w == NULL)
continue;
ctx->print(ctx, "%u: %s \"%s\" (%s)",
i, w->name, w->screen.title, ttyname(w->fd));
ctx->print(ctx,
"%u: %s \"%s\" (%s) [%ux%u]", i, w->name, w->screen.title,
ttyname(w->fd), w->screen.sx, w->screen.sy);
}
if (!(ctx->flags & CMD_KEY))