mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Show more window and pane flags in list-* output, and put layout on the
same line.
This commit is contained in:
		@@ -65,9 +65,10 @@ cmd_list_panes_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		size += gd->hsize * sizeof *gd->linedata;
 | 
							size += gd->hsize * sizeof *gd->linedata;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		ctx->print(ctx, "%u: [%ux%u] [history %u/%u, %llu bytes]%s",
 | 
							ctx->print(ctx, "%u: [%ux%u] [history %u/%u, %llu bytes]%s%s",
 | 
				
			||||||
		    n, wp->sx, wp->sy, gd->hsize, gd->hlimit, size,
 | 
							    n, wp->sx, wp->sy, gd->hsize, gd->hlimit, size,
 | 
				
			||||||
		    wp == wp->window->active ? " (active)" : "");
 | 
							    wp == wp->window->active ? " (active)" : "",
 | 
				
			||||||
 | 
							    wp->fd == -1 ? " (dead)" : "");
 | 
				
			||||||
		n++;
 | 
							n++;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,10 +51,10 @@ cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
				
			|||||||
		return (-1);
 | 
							return (-1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	RB_FOREACH(wl, winlinks, &s->windows) {
 | 
						RB_FOREACH(wl, winlinks, &s->windows) {
 | 
				
			||||||
		ctx->print(ctx, "%d: %s [%ux%u]",
 | 
					 | 
				
			||||||
		    wl->idx, wl->window->name, wl->window->sx, wl->window->sy);
 | 
					 | 
				
			||||||
		layout = layout_dump(wl->window);
 | 
							layout = layout_dump(wl->window);
 | 
				
			||||||
		ctx->print(ctx, "    layout: %s", layout);
 | 
							ctx->print(ctx, "%d: %s [%ux%u] [layout %s]%s",
 | 
				
			||||||
 | 
							    wl->idx, wl->window->name, wl->window->sx, wl->window->sy,
 | 
				
			||||||
 | 
							    layout, wl == s->curw ? " (active)" : "");
 | 
				
			||||||
		xfree(layout);
 | 
							xfree(layout);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user