# constants.OptionScope

- **Module:** constants
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/constants.ts#L55
- **Page:** https://libtmux.org/en/ts/latest/reference/constants-optionscope/

Which table an option is read from or written to.

The scopes are not one chain. A pane option falls back to the window's, and
an unset window or pane option falls back to the global window options; a
session option falls back to the global session options, and server options
belong to no session, window or pane at all. So setting something at window
scope reaches every pane in it that has not set its own, and setting it at
session scope does not.
