mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Add formats for window flags.
This commit is contained in:
9
format.c
9
format.c
@ -410,6 +410,15 @@ format_winlink(struct format_tree *ft, struct session *s, struct winlink *wl)
|
||||
format_add(ft, "window_active", "%d", wl == s->curw);
|
||||
format_add(ft, "window_panes", "%u", window_count_panes(w));
|
||||
|
||||
format_add(ft, "window_bell_flag", "%u",
|
||||
!!(wl->flags & WINLINK_BELL));
|
||||
format_add(ft, "window_content_flag", "%u",
|
||||
!!(wl->flags & WINLINK_CONTENT));
|
||||
format_add(ft, "window_activity_flag", "%u",
|
||||
!!(wl->flags & WINLINK_ACTIVITY));
|
||||
format_add(ft, "window_silence_flag", "%u",
|
||||
!!(wl->flags & WINLINK_SILENCE));
|
||||
|
||||
free(flags);
|
||||
free(layout);
|
||||
}
|
||||
|
Reference in New Issue
Block a user