@cmd('<STR_LIT>')<EOL>def list_panes(pymux, variables):
w = pymux.arrangement.get_active_window()<EOL>active_pane = w.active_pane<EOL>result = []<EOL>for i, p in enumerate(w.panes):<EOL><INDENT>process = p.process<EOL>result.append('<STR_LIT>' % (<EOL>i, process.sx, process.sy,<EOL>min(pymux.history_limit, process.screen.line_offset + process.sy),<EOL>pymux.history_limit,<EOL>('<STR_LIT>' if p == active_pane else '<STR_LIT>')))<EOL><DEDENT>result = '<STR_LIT:\n>'.join(sorted(result))<EOL>pymux.get_client_state().layout_manager.display_popup('<STR_LIT>', result)<EOL>
Display a list of all the panes.