# libtmux.neo.Obj

- **Module:** libtmux.neo
- **Package:** libtmux
- **Language:** Python
- **Kind:** class
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/neo.py#L284
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-neo-obj/

Dataclass of generic tmux object.

### Notes

tmux may return fields from an object's active children along with the
object itself. The practical consequence:

- On a :class:`~libtmux.session.Session` row ([`list-sessions`](/en/tmux/latest/manual/list-sessions/)),
  every ``pane_*`` and ``window_*`` field resolves to the
  session's current window's **active pane** — *not* "the
  session's pane" (no such thing). ``session.active_window.window_id``
  and ``session.active_window.active_pane.pane_id`` are the
  canonical accessors for the same values.
- On a :class:`~libtmux.window.Window` row ([`list-windows`](/en/tmux/latest/manual/list-windows/)),
  every ``pane_*`` field resolves to that window's active pane.
- On a :class:`~libtmux.client.Client` row ([`list-clients`](/en/tmux/latest/manual/list-clients/)),
  every ``session_*``, ``window_*``, and ``pane_*`` field reflects
  the client's attached session, current window, and active pane.

A reader who treats ``session.pane_id`` as the literal session's
pane id (rather than "active pane of this session's current
window") will be surprised when the active window changes.

## Members

### Other members

- [`active_window_index`](/en/py/stable/reference/libtmux-neo-obj-active_window_index/) (attribute)
- [`alternate_saved_x`](/en/py/stable/reference/libtmux-neo-obj-alternate_saved_x/) (attribute)
- [`alternate_saved_y`](/en/py/stable/reference/libtmux-neo-obj-alternate_saved_y/) (attribute)
- [`bracket_paste_flag`](/en/py/stable/reference/libtmux-neo-obj-bracket_paste_flag/) (attribute)
- [`buffer_name`](/en/py/stable/reference/libtmux-neo-obj-buffer_name/) (attribute)
- [`buffer_sample`](/en/py/stable/reference/libtmux-neo-obj-buffer_sample/) (attribute)
- [`buffer_size`](/en/py/stable/reference/libtmux-neo-obj-buffer_size/) (attribute)
- [`client_activity`](/en/py/stable/reference/libtmux-neo-obj-client_activity/) (attribute)
- [`client_cell_height`](/en/py/stable/reference/libtmux-neo-obj-client_cell_height/) (attribute)
- [`client_cell_width`](/en/py/stable/reference/libtmux-neo-obj-client_cell_width/) (attribute)
- [`client_control_mode`](/en/py/stable/reference/libtmux-neo-obj-client_control_mode/) (attribute)
- [`client_created`](/en/py/stable/reference/libtmux-neo-obj-client_created/) (attribute)
- [`client_discarded`](/en/py/stable/reference/libtmux-neo-obj-client_discarded/) (attribute)
- [`client_flags`](/en/py/stable/reference/libtmux-neo-obj-client_flags/) (attribute)
- [`client_height`](/en/py/stable/reference/libtmux-neo-obj-client_height/) (attribute)
- [`client_key_table`](/en/py/stable/reference/libtmux-neo-obj-client_key_table/) (attribute)
- [`client_last_session`](/en/py/stable/reference/libtmux-neo-obj-client_last_session/) (attribute)
- [`client_mode_format`](/en/py/stable/reference/libtmux-neo-obj-client_mode_format/) (attribute)
- [`client_name`](/en/py/stable/reference/libtmux-neo-obj-client_name/) (attribute)
- [`client_pid`](/en/py/stable/reference/libtmux-neo-obj-client_pid/) (attribute)
- [`client_prefix`](/en/py/stable/reference/libtmux-neo-obj-client_prefix/) (attribute)
- [`client_readonly`](/en/py/stable/reference/libtmux-neo-obj-client_readonly/) (attribute)
- [`client_session`](/en/py/stable/reference/libtmux-neo-obj-client_session/) (attribute)
- [`client_termfeatures`](/en/py/stable/reference/libtmux-neo-obj-client_termfeatures/) (attribute)
- [`client_termname`](/en/py/stable/reference/libtmux-neo-obj-client_termname/) (attribute)
- [`client_termtype`](/en/py/stable/reference/libtmux-neo-obj-client_termtype/) (attribute)
- [`client_tty`](/en/py/stable/reference/libtmux-neo-obj-client_tty/) (attribute)
- [`client_uid`](/en/py/stable/reference/libtmux-neo-obj-client_uid/) (attribute)
- [`client_user`](/en/py/stable/reference/libtmux-neo-obj-client_user/) (attribute)
- [`client_utf8`](/en/py/stable/reference/libtmux-neo-obj-client_utf8/) (attribute)
- [`client_width`](/en/py/stable/reference/libtmux-neo-obj-client_width/) (attribute)
- [`client_written`](/en/py/stable/reference/libtmux-neo-obj-client_written/) (attribute)
- [`command_list_alias`](/en/py/stable/reference/libtmux-neo-obj-command_list_alias/) (attribute)
- [`command_list_name`](/en/py/stable/reference/libtmux-neo-obj-command_list_name/) (attribute)
- [`command_list_usage`](/en/py/stable/reference/libtmux-neo-obj-command_list_usage/) (attribute)
- [`config_files`](/en/py/stable/reference/libtmux-neo-obj-config_files/) (attribute)
- [`copy_cursor_line`](/en/py/stable/reference/libtmux-neo-obj-copy_cursor_line/) (attribute)
- [`copy_cursor_word`](/en/py/stable/reference/libtmux-neo-obj-copy_cursor_word/) (attribute)
- [`copy_cursor_x`](/en/py/stable/reference/libtmux-neo-obj-copy_cursor_x/) (attribute)
- [`copy_cursor_y`](/en/py/stable/reference/libtmux-neo-obj-copy_cursor_y/) (attribute)
- [`current_file`](/en/py/stable/reference/libtmux-neo-obj-current_file/) (attribute)
- [`cursor_character`](/en/py/stable/reference/libtmux-neo-obj-cursor_character/) (attribute)
- [`cursor_flag`](/en/py/stable/reference/libtmux-neo-obj-cursor_flag/) (attribute)
- [`cursor_x`](/en/py/stable/reference/libtmux-neo-obj-cursor_x/) (attribute)
- [`cursor_y`](/en/py/stable/reference/libtmux-neo-obj-cursor_y/) (attribute)
- [`history_bytes`](/en/py/stable/reference/libtmux-neo-obj-history_bytes/) (attribute)
- [`history_limit`](/en/py/stable/reference/libtmux-neo-obj-history_limit/) (attribute)
- [`history_size`](/en/py/stable/reference/libtmux-neo-obj-history_size/) (attribute)
- [`insert_flag`](/en/py/stable/reference/libtmux-neo-obj-insert_flag/) (attribute)
- [`keypad_cursor_flag`](/en/py/stable/reference/libtmux-neo-obj-keypad_cursor_flag/) (attribute)
- [`keypad_flag`](/en/py/stable/reference/libtmux-neo-obj-keypad_flag/) (attribute)
- [`last_window_index`](/en/py/stable/reference/libtmux-neo-obj-last_window_index/) (attribute)
- [`line`](/en/py/stable/reference/libtmux-neo-obj-line/) (attribute)
- [`mouse_all_flag`](/en/py/stable/reference/libtmux-neo-obj-mouse_all_flag/) (attribute)
- [`mouse_any_flag`](/en/py/stable/reference/libtmux-neo-obj-mouse_any_flag/) (attribute)
- [`mouse_button_flag`](/en/py/stable/reference/libtmux-neo-obj-mouse_button_flag/) (attribute)
- [`mouse_sgr_flag`](/en/py/stable/reference/libtmux-neo-obj-mouse_sgr_flag/) (attribute)
- [`mouse_standard_flag`](/en/py/stable/reference/libtmux-neo-obj-mouse_standard_flag/) (attribute)
- [`next_session_id`](/en/py/stable/reference/libtmux-neo-obj-next_session_id/) (attribute)
- [`origin_flag`](/en/py/stable/reference/libtmux-neo-obj-origin_flag/) (attribute)
- [`pane_active`](/en/py/stable/reference/libtmux-neo-obj-pane_active/) (attribute)
- [`pane_at_bottom`](/en/py/stable/reference/libtmux-neo-obj-pane_at_bottom/) (attribute)
- [`pane_at_left`](/en/py/stable/reference/libtmux-neo-obj-pane_at_left/) (attribute)
- [`pane_at_right`](/en/py/stable/reference/libtmux-neo-obj-pane_at_right/) (attribute)
- [`pane_at_top`](/en/py/stable/reference/libtmux-neo-obj-pane_at_top/) (attribute)
- [`pane_bg`](/en/py/stable/reference/libtmux-neo-obj-pane_bg/) (attribute)
- [`pane_bottom`](/en/py/stable/reference/libtmux-neo-obj-pane_bottom/) (attribute)
- [`pane_current_command`](/en/py/stable/reference/libtmux-neo-obj-pane_current_command/) (attribute)
- [`pane_current_path`](/en/py/stable/reference/libtmux-neo-obj-pane_current_path/) (attribute)
- [`pane_dead`](/en/py/stable/reference/libtmux-neo-obj-pane_dead/) (attribute)
- [`pane_dead_signal`](/en/py/stable/reference/libtmux-neo-obj-pane_dead_signal/) (attribute)
- [`pane_dead_status`](/en/py/stable/reference/libtmux-neo-obj-pane_dead_status/) (attribute)
- [`pane_dead_time`](/en/py/stable/reference/libtmux-neo-obj-pane_dead_time/) (attribute)
- [`pane_fg`](/en/py/stable/reference/libtmux-neo-obj-pane_fg/) (attribute)
- [`pane_flags`](/en/py/stable/reference/libtmux-neo-obj-pane_flags/) (attribute)
- [`pane_floating_flag`](/en/py/stable/reference/libtmux-neo-obj-pane_floating_flag/) (attribute)
- [`pane_format`](/en/py/stable/reference/libtmux-neo-obj-pane_format/) (attribute)
- [`pane_height`](/en/py/stable/reference/libtmux-neo-obj-pane_height/) (attribute)
- [`pane_id`](/en/py/stable/reference/libtmux-neo-obj-pane_id/) (attribute)
- [`pane_in_mode`](/en/py/stable/reference/libtmux-neo-obj-pane_in_mode/) (attribute)
- [`pane_index`](/en/py/stable/reference/libtmux-neo-obj-pane_index/) (attribute)
- [`pane_input_off`](/en/py/stable/reference/libtmux-neo-obj-pane_input_off/) (attribute)
- [`pane_last`](/en/py/stable/reference/libtmux-neo-obj-pane_last/) (attribute)
- [`pane_left`](/en/py/stable/reference/libtmux-neo-obj-pane_left/) (attribute)
- [`pane_marked`](/en/py/stable/reference/libtmux-neo-obj-pane_marked/) (attribute)
- [`pane_marked_set`](/en/py/stable/reference/libtmux-neo-obj-pane_marked_set/) (attribute)
- [`pane_mode`](/en/py/stable/reference/libtmux-neo-obj-pane_mode/) (attribute)
- [`pane_path`](/en/py/stable/reference/libtmux-neo-obj-pane_path/) (attribute)
- [`pane_pb_progress`](/en/py/stable/reference/libtmux-neo-obj-pane_pb_progress/) (attribute)
- [`pane_pb_state`](/en/py/stable/reference/libtmux-neo-obj-pane_pb_state/) (attribute)
- [`pane_pid`](/en/py/stable/reference/libtmux-neo-obj-pane_pid/) (attribute)
- [`pane_pipe`](/en/py/stable/reference/libtmux-neo-obj-pane_pipe/) (attribute)
- [`pane_pipe_pid`](/en/py/stable/reference/libtmux-neo-obj-pane_pipe_pid/) (attribute)
- [`pane_right`](/en/py/stable/reference/libtmux-neo-obj-pane_right/) (attribute)
- [`pane_search_string`](/en/py/stable/reference/libtmux-neo-obj-pane_search_string/) (attribute)
- [`pane_start_command`](/en/py/stable/reference/libtmux-neo-obj-pane_start_command/) (attribute)
- [`pane_start_path`](/en/py/stable/reference/libtmux-neo-obj-pane_start_path/) (attribute)
- [`pane_synchronized`](/en/py/stable/reference/libtmux-neo-obj-pane_synchronized/) (attribute)
- [`pane_tabs`](/en/py/stable/reference/libtmux-neo-obj-pane_tabs/) (attribute)
- [`pane_title`](/en/py/stable/reference/libtmux-neo-obj-pane_title/) (attribute)
- [`pane_top`](/en/py/stable/reference/libtmux-neo-obj-pane_top/) (attribute)
- [`pane_tty`](/en/py/stable/reference/libtmux-neo-obj-pane_tty/) (attribute)
- [`pane_width`](/en/py/stable/reference/libtmux-neo-obj-pane_width/) (attribute)
- [`pane_x`](/en/py/stable/reference/libtmux-neo-obj-pane_x/) (attribute)
- [`pane_y`](/en/py/stable/reference/libtmux-neo-obj-pane_y/) (attribute)
- [`pane_z`](/en/py/stable/reference/libtmux-neo-obj-pane_z/) (attribute)
- [`pane_zoomed_flag`](/en/py/stable/reference/libtmux-neo-obj-pane_zoomed_flag/) (attribute)
- [`pid`](/en/py/stable/reference/libtmux-neo-obj-pid/) (attribute)
- [`scroll_position`](/en/py/stable/reference/libtmux-neo-obj-scroll_position/) (attribute)
- [`scroll_region_lower`](/en/py/stable/reference/libtmux-neo-obj-scroll_region_lower/) (attribute)
- [`scroll_region_upper`](/en/py/stable/reference/libtmux-neo-obj-scroll_region_upper/) (attribute)
- [`search_match`](/en/py/stable/reference/libtmux-neo-obj-search_match/) (attribute)
- [`selection_end_x`](/en/py/stable/reference/libtmux-neo-obj-selection_end_x/) (attribute)
- [`selection_end_y`](/en/py/stable/reference/libtmux-neo-obj-selection_end_y/) (attribute)
- [`selection_start_x`](/en/py/stable/reference/libtmux-neo-obj-selection_start_x/) (attribute)
- [`selection_start_y`](/en/py/stable/reference/libtmux-neo-obj-selection_start_y/) (attribute)
- [`server`](/en/py/stable/reference/libtmux-neo-obj-server/) (attribute)
- [`session_activity`](/en/py/stable/reference/libtmux-neo-obj-session_activity/) (attribute)
- [`session_alerts`](/en/py/stable/reference/libtmux-neo-obj-session_alerts/) (attribute)
- [`session_attached`](/en/py/stable/reference/libtmux-neo-obj-session_attached/) (attribute)
- [`session_attached_list`](/en/py/stable/reference/libtmux-neo-obj-session_attached_list/) (attribute)
- [`session_created`](/en/py/stable/reference/libtmux-neo-obj-session_created/) (attribute)
- [`session_format`](/en/py/stable/reference/libtmux-neo-obj-session_format/) (attribute)
- [`session_group`](/en/py/stable/reference/libtmux-neo-obj-session_group/) (attribute)
- [`session_group_attached`](/en/py/stable/reference/libtmux-neo-obj-session_group_attached/) (attribute)
- [`session_group_attached_list`](/en/py/stable/reference/libtmux-neo-obj-session_group_attached_list/) (attribute)
- [`session_group_list`](/en/py/stable/reference/libtmux-neo-obj-session_group_list/) (attribute)
- [`session_group_many_attached`](/en/py/stable/reference/libtmux-neo-obj-session_group_many_attached/) (attribute)
- [`session_group_size`](/en/py/stable/reference/libtmux-neo-obj-session_group_size/) (attribute)
- [`session_grouped`](/en/py/stable/reference/libtmux-neo-obj-session_grouped/) (attribute)
- [`session_id`](/en/py/stable/reference/libtmux-neo-obj-session_id/) (attribute)
- [`session_last_attached`](/en/py/stable/reference/libtmux-neo-obj-session_last_attached/) (attribute)
- [`session_many_attached`](/en/py/stable/reference/libtmux-neo-obj-session_many_attached/) (attribute)
- [`session_marked`](/en/py/stable/reference/libtmux-neo-obj-session_marked/) (attribute)
- [`session_name`](/en/py/stable/reference/libtmux-neo-obj-session_name/) (attribute)
- [`session_path`](/en/py/stable/reference/libtmux-neo-obj-session_path/) (attribute)
- [`session_stack`](/en/py/stable/reference/libtmux-neo-obj-session_stack/) (attribute)
- [`session_windows`](/en/py/stable/reference/libtmux-neo-obj-session_windows/) (attribute)
- [`socket_path`](/en/py/stable/reference/libtmux-neo-obj-socket_path/) (attribute)
- [`start_time`](/en/py/stable/reference/libtmux-neo-obj-start_time/) (attribute)
- [`synchronized_output_flag`](/en/py/stable/reference/libtmux-neo-obj-synchronized_output_flag/) (attribute)
- [`uid`](/en/py/stable/reference/libtmux-neo-obj-uid/) (attribute)
- [`user`](/en/py/stable/reference/libtmux-neo-obj-user/) (attribute)
- [`version`](/en/py/stable/reference/libtmux-neo-obj-version/) (attribute)
- [`window_active`](/en/py/stable/reference/libtmux-neo-obj-window_active/) (attribute)
- [`window_active_clients`](/en/py/stable/reference/libtmux-neo-obj-window_active_clients/) (attribute)
- [`window_active_clients_list`](/en/py/stable/reference/libtmux-neo-obj-window_active_clients_list/) (attribute)
- [`window_active_sessions`](/en/py/stable/reference/libtmux-neo-obj-window_active_sessions/) (attribute)
- [`window_active_sessions_list`](/en/py/stable/reference/libtmux-neo-obj-window_active_sessions_list/) (attribute)
- [`window_activity`](/en/py/stable/reference/libtmux-neo-obj-window_activity/) (attribute)
- [`window_activity_flag`](/en/py/stable/reference/libtmux-neo-obj-window_activity_flag/) (attribute)
- [`window_bell_flag`](/en/py/stable/reference/libtmux-neo-obj-window_bell_flag/) (attribute)
- [`window_bigger`](/en/py/stable/reference/libtmux-neo-obj-window_bigger/) (attribute)
- [`window_cell_height`](/en/py/stable/reference/libtmux-neo-obj-window_cell_height/) (attribute)
- [`window_cell_width`](/en/py/stable/reference/libtmux-neo-obj-window_cell_width/) (attribute)
- [`window_end_flag`](/en/py/stable/reference/libtmux-neo-obj-window_end_flag/) (attribute)
- [`window_flags`](/en/py/stable/reference/libtmux-neo-obj-window_flags/) (attribute)
- [`window_format`](/en/py/stable/reference/libtmux-neo-obj-window_format/) (attribute)
- [`window_height`](/en/py/stable/reference/libtmux-neo-obj-window_height/) (attribute)
- [`window_id`](/en/py/stable/reference/libtmux-neo-obj-window_id/) (attribute)
- [`window_index`](/en/py/stable/reference/libtmux-neo-obj-window_index/) (attribute)
- [`window_last_flag`](/en/py/stable/reference/libtmux-neo-obj-window_last_flag/) (attribute)
- [`window_layout`](/en/py/stable/reference/libtmux-neo-obj-window_layout/) (attribute)
- [`window_linked`](/en/py/stable/reference/libtmux-neo-obj-window_linked/) (attribute)
- [`window_linked_sessions`](/en/py/stable/reference/libtmux-neo-obj-window_linked_sessions/) (attribute)
- [`window_linked_sessions_list`](/en/py/stable/reference/libtmux-neo-obj-window_linked_sessions_list/) (attribute)
- [`window_marked_flag`](/en/py/stable/reference/libtmux-neo-obj-window_marked_flag/) (attribute)
- [`window_name`](/en/py/stable/reference/libtmux-neo-obj-window_name/) (attribute)
- [`window_offset_x`](/en/py/stable/reference/libtmux-neo-obj-window_offset_x/) (attribute)
- [`window_offset_y`](/en/py/stable/reference/libtmux-neo-obj-window_offset_y/) (attribute)
- [`window_panes`](/en/py/stable/reference/libtmux-neo-obj-window_panes/) (attribute)
- [`window_raw_flags`](/en/py/stable/reference/libtmux-neo-obj-window_raw_flags/) (attribute)
- [`window_silence_flag`](/en/py/stable/reference/libtmux-neo-obj-window_silence_flag/) (attribute)
- [`window_stack_index`](/en/py/stable/reference/libtmux-neo-obj-window_stack_index/) (attribute)
- [`window_start_flag`](/en/py/stable/reference/libtmux-neo-obj-window_start_flag/) (attribute)
- [`window_visible_layout`](/en/py/stable/reference/libtmux-neo-obj-window_visible_layout/) (attribute)
- [`window_width`](/en/py/stable/reference/libtmux-neo-obj-window_width/) (attribute)
- [`window_zoomed_flag`](/en/py/stable/reference/libtmux-neo-obj-window_zoomed_flag/) (attribute)
- [`wrap_flag`](/en/py/stable/reference/libtmux-neo-obj-wrap_flag/) (attribute)
- [`_refresh`](/en/py/stable/reference/libtmux-neo-obj-_refresh/) (method): Refresh dataclass fields from a single ``list-*`` row.
