1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-15 00:23:15 +03:00
wezterm/docs/config/lua/window-events/update-right-status.md

976 B

update-right-status

Since: 20210314-114017-04b7cedd

The update-right-status event is emitted periodically (based on the interval specified by the status_update_interval configuration value).

There is no defined return value for the event, but its purpose is to allow you the chance to carry out some activity and then ultimately call window:set_right_status.

The first event parameter is a window object that represents the gui window.

The second event parameter is a pane object that represents the active pane in that window.

wezterm will ensure that only a single instance of this event is outstanding; if the hook takes longer than the status_update_interval to complete, wezterm won't schedule another call until status_update_interval milliseconds have elapsed since the last call completed.