You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a typed list of tmux options (options-table.c) #160
libtmux names six tmux options and no others. OptionKey types a value, but the caller declares each key, so every other option is a string at the call site and only tmux knows its type, scope and values.
Motivation
A caller cannot ask the library which options exist, which scope each belongs to (server, session, window or pane), or what type its value has. Options.get(String) documents that an empty result means tmux does not know the option, so a misspelled name reads back as an option nobody set. A key declared with the wrong type fails only when the value is read, as a MalformedResponseException.
OptionKeyrecords why it carries no catalogue: tmux adds options between releases and changes the type of a few, so a closed list would be wrong on some release. The six constants are the options whose type is the same on every supported release.
Activity