mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 09:28:51 +00: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>
|
* 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);
|
tim = ctime(&s->tim);
|
||||||
*strchr(tim, '\n') = '\0';
|
*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))
|
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>
|
* 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)
|
if (w == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ctx->print(ctx, "%u: %s \"%s\" (%s)",
|
ctx->print(ctx,
|
||||||
i, w->name, w->screen.title, ttyname(w->fd));
|
"%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))
|
if (!(ctx->flags & CMD_KEY))
|
||||||
|
Loading…
Reference in New Issue
Block a user