mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
Show size.
This commit is contained in:
parent
0b0a3c02af
commit
98e7e79e4c
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user