Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-ts latest

Window.equals

Whether other is this same window on this same server.

Source and package
Qualified name
Window.equals
Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts

Description#

The socket, the daemon that answered, and @n all have to match: tmux ids are unique only within one running daemon, and a restart reissues them. Two placements of one linked window are the same window, so this is true for both. sameTmuxIdAs() asks the weaker question.

Examples#

window.equals(await window.refreshed()); // true
Parameters
Esc

Type to search.

Reference previewOpen reference