History log of /openbsd-current/usr.bin/tmux/alerts.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.33 12-Apr-2021 nicm

Add a flag to disable keys to close a message, GitHub issue 2625.


Revision tags: OPENBSD_6_8_BASE
# 1.32 19-Aug-2020 nicm

Set alert flag for the current window if the session is unattached.
GitHub issues 1182 and 2299. From Eric Garver.


# 1.31 27-Jul-2020 nicm

Add a -d option to display-message to set delay, from theonekeyg at
gmail dot com in GitHub issue 2322.


# 1.30 16-May-2020 nicm

Support embedded styles in the display-message message, GitHub issue
2206.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.29 28-Dec-2017 nicm

Redrawing status is needed after changing window flags or title does not
update if status line is off, GitHub issue 1191.


Revision tags: OPENBSD_6_2_BASE
# 1.28 22-Sep-2017 nicm

Initialize alerts timer event where it is used, avoids crash with new windows.


# 1.27 11-Sep-2017 nicm

Check event is initialized before delete; fixes crash reported by
Michael Nickerson in GitHub issue 1068.


# 1.26 23-Aug-2017 nicm

Allow multiple bells even if there is an existing bell (but not activity
or silence), from Brad Town.


# 1.25 23-Aug-2017 nicm

Run alert hooks based on the options rather than unconditionally, from
Brad Town.


# 1.24 17-Aug-2017 nicm

Add monitor-bell window option to match the activity and silence
options, from Brad Town.


# 1.23 16-Aug-2017 nicm

Rename BELL_* values to ALERT_* now they are used by more than bells,
based on a diff from Brad Town.


# 1.22 26-Jul-2017 nicm

Always reset the alerts timer so it works even if activity and silence
are enabled on the same window.


# 1.21 26-Jul-2017 nicm

Make bell, activity and silence alerting more consistent:

- remove the bell-on-alert option;

- add activity-action and silence-action options with the same possible
values as the existing bell-action;

- add "both" value for the visual-bell, visual-activity and
visual-silence options to trigger both a bell and a message.

This means all three work the same way. Based on changes from Yvain Thonnart.


# 1.20 28-Jun-2017 nicm

Fix visual-silence (check accidentally the wrong way round), from Brad
Town. Plus some tmux.1 fixes from jmc@.


# 1.19 28-Apr-2017 nicm

Log what is happening with window and session reference counts much more
obviously.


# 1.18 28-Apr-2017 nicm

Do not put the window on the alerts queue and add a reference unless the
alert is enabled and we are actually going to add the alerts event.


# 1.17 21-Apr-2017 nicm

More unnecessary arguments now winlink points back to session.


Revision tags: OPENBSD_6_1_BASE
# 1.16 01-Nov-2016 nicm

Clear window alert flags after setting winlink alert flags, fixes problem
reported by Tommy Allen.


# 1.15 25-Oct-2016 nicm

Do not handle activity or silence alerts in the current window, reported
by jasper@.


# 1.14 19-Oct-2016 nicm

Alerts are too slow, so rather than walking all sessions and windows,
add a link of winlinks to each window and a pointer to the session to
each winlink. Also rewrite the alerts processing to return to the old
behaviour (alert in any window sets the flag on any winlink).


# 1.13 16-Oct-2016 nicm

Use notifys for alerts too.


# 1.12 03-Oct-2016 nicm

Remove some dead code in cmd-move-window.c and make a load of local
functions static.


Revision tags: OPENBSD_6_0_BASE
# 1.11 11-May-2016 nicm

Add on alerts rather than ignoring them if the event has already been
queued, for example bell and activity together. From Marcel Lippmann via
Romain Francoise.


Revision tags: OPENBSD_5_9_BASE
# 1.10 19-Jan-2016 nicm

I no longer use my SourceForge address so replace it.


# 1.9 16-Jan-2016 nicm

Add hooks for alerts (bell, silence, activity), from Thomas Adam.


# 1.8 07-Dec-2015 nicm

Fix bell indicators across detach, reported by Torbjorn Lonnemark, diff
from Thomas Adam.


# 1.7 20-Nov-2015 nicm

The alerts callback should be fired for bells even if bell-action is
none because it also affects the status line bell indicator (and
bell-action does not). Fixes a problem reported by tim@.


# 1.6 19-Nov-2015 nicm

The activity flag could already be set, so queue the callback always (if
not already queued) rather than only if the flag is being added. Fixes a
problem reported by tim@


# 1.5 18-Nov-2015 nicm

Use __unused rather than rolling our own.


# 1.4 27-Oct-2015 nicm

Move struct options into options.c.


# 1.3 21-Sep-2015 nicm

Reset the alerts timer always on activity, from Thomas Adam.


# 1.2 02-Sep-2015 nicm

A one line helper function is a little silly.


# 1.1 29-Aug-2015 nicm

Move alerts onto events rather than checking every loop.


# 1.32 19-Aug-2020 nicm

Set alert flag for the current window if the session is unattached.
GitHub issues 1182 and 2299. From Eric Garver.


# 1.31 27-Jul-2020 nicm

Add a -d option to display-message to set delay, from theonekeyg at
gmail dot com in GitHub issue 2322.


# 1.30 16-May-2020 nicm

Support embedded styles in the display-message message, GitHub issue
2206.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.29 28-Dec-2017 nicm

Redrawing status is needed after changing window flags or title does not
update if status line is off, GitHub issue 1191.


Revision tags: OPENBSD_6_2_BASE
# 1.28 22-Sep-2017 nicm

Initialize alerts timer event where it is used, avoids crash with new windows.


# 1.27 11-Sep-2017 nicm

Check event is initialized before delete; fixes crash reported by
Michael Nickerson in GitHub issue 1068.


# 1.26 23-Aug-2017 nicm

Allow multiple bells even if there is an existing bell (but not activity
or silence), from Brad Town.


# 1.25 23-Aug-2017 nicm

Run alert hooks based on the options rather than unconditionally, from
Brad Town.


# 1.24 17-Aug-2017 nicm

Add monitor-bell window option to match the activity and silence
options, from Brad Town.


# 1.23 16-Aug-2017 nicm

Rename BELL_* values to ALERT_* now they are used by more than bells,
based on a diff from Brad Town.


# 1.22 26-Jul-2017 nicm

Always reset the alerts timer so it works even if activity and silence
are enabled on the same window.


# 1.21 26-Jul-2017 nicm

Make bell, activity and silence alerting more consistent:

- remove the bell-on-alert option;

- add activity-action and silence-action options with the same possible
values as the existing bell-action;

- add "both" value for the visual-bell, visual-activity and
visual-silence options to trigger both a bell and a message.

This means all three work the same way. Based on changes from Yvain Thonnart.


# 1.20 28-Jun-2017 nicm

Fix visual-silence (check accidentally the wrong way round), from Brad
Town. Plus some tmux.1 fixes from jmc@.


# 1.19 28-Apr-2017 nicm

Log what is happening with window and session reference counts much more
obviously.


# 1.18 28-Apr-2017 nicm

Do not put the window on the alerts queue and add a reference unless the
alert is enabled and we are actually going to add the alerts event.


# 1.17 21-Apr-2017 nicm

More unnecessary arguments now winlink points back to session.


Revision tags: OPENBSD_6_1_BASE
# 1.16 01-Nov-2016 nicm

Clear window alert flags after setting winlink alert flags, fixes problem
reported by Tommy Allen.


# 1.15 25-Oct-2016 nicm

Do not handle activity or silence alerts in the current window, reported
by jasper@.


# 1.14 19-Oct-2016 nicm

Alerts are too slow, so rather than walking all sessions and windows,
add a link of winlinks to each window and a pointer to the session to
each winlink. Also rewrite the alerts processing to return to the old
behaviour (alert in any window sets the flag on any winlink).


# 1.13 16-Oct-2016 nicm

Use notifys for alerts too.


# 1.12 03-Oct-2016 nicm

Remove some dead code in cmd-move-window.c and make a load of local
functions static.


Revision tags: OPENBSD_6_0_BASE
# 1.11 11-May-2016 nicm

Add on alerts rather than ignoring them if the event has already been
queued, for example bell and activity together. From Marcel Lippmann via
Romain Francoise.


Revision tags: OPENBSD_5_9_BASE
# 1.10 19-Jan-2016 nicm

I no longer use my SourceForge address so replace it.


# 1.9 16-Jan-2016 nicm

Add hooks for alerts (bell, silence, activity), from Thomas Adam.


# 1.8 07-Dec-2015 nicm

Fix bell indicators across detach, reported by Torbjorn Lonnemark, diff
from Thomas Adam.


# 1.7 20-Nov-2015 nicm

The alerts callback should be fired for bells even if bell-action is
none because it also affects the status line bell indicator (and
bell-action does not). Fixes a problem reported by tim@.


# 1.6 19-Nov-2015 nicm

The activity flag could already be set, so queue the callback always (if
not already queued) rather than only if the flag is being added. Fixes a
problem reported by tim@


# 1.5 18-Nov-2015 nicm

Use __unused rather than rolling our own.


# 1.4 27-Oct-2015 nicm

Move struct options into options.c.


# 1.3 21-Sep-2015 nicm

Reset the alerts timer always on activity, from Thomas Adam.


# 1.2 02-Sep-2015 nicm

A one line helper function is a little silly.


# 1.1 29-Aug-2015 nicm

Move alerts onto events rather than checking every loop.


# 1.31 27-Jul-2020 nicm

Add a -d option to display-message to set delay, from theonekeyg at
gmail dot com in GitHub issue 2322.


# 1.30 16-May-2020 nicm

Support embedded styles in the display-message message, GitHub issue
2206.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.29 28-Dec-2017 nicm

Redrawing status is needed after changing window flags or title does not
update if status line is off, GitHub issue 1191.


Revision tags: OPENBSD_6_2_BASE
# 1.28 22-Sep-2017 nicm

Initialize alerts timer event where it is used, avoids crash with new windows.


# 1.27 11-Sep-2017 nicm

Check event is initialized before delete; fixes crash reported by
Michael Nickerson in GitHub issue 1068.


# 1.26 23-Aug-2017 nicm

Allow multiple bells even if there is an existing bell (but not activity
or silence), from Brad Town.


# 1.25 23-Aug-2017 nicm

Run alert hooks based on the options rather than unconditionally, from
Brad Town.


# 1.24 17-Aug-2017 nicm

Add monitor-bell window option to match the activity and silence
options, from Brad Town.


# 1.23 16-Aug-2017 nicm

Rename BELL_* values to ALERT_* now they are used by more than bells,
based on a diff from Brad Town.


# 1.22 26-Jul-2017 nicm

Always reset the alerts timer so it works even if activity and silence
are enabled on the same window.


# 1.21 26-Jul-2017 nicm

Make bell, activity and silence alerting more consistent:

- remove the bell-on-alert option;

- add activity-action and silence-action options with the same possible
values as the existing bell-action;

- add "both" value for the visual-bell, visual-activity and
visual-silence options to trigger both a bell and a message.

This means all three work the same way. Based on changes from Yvain Thonnart.


# 1.20 28-Jun-2017 nicm

Fix visual-silence (check accidentally the wrong way round), from Brad
Town. Plus some tmux.1 fixes from jmc@.


# 1.19 28-Apr-2017 nicm

Log what is happening with window and session reference counts much more
obviously.


# 1.18 28-Apr-2017 nicm

Do not put the window on the alerts queue and add a reference unless the
alert is enabled and we are actually going to add the alerts event.


# 1.17 21-Apr-2017 nicm

More unnecessary arguments now winlink points back to session.


Revision tags: OPENBSD_6_1_BASE
# 1.16 01-Nov-2016 nicm

Clear window alert flags after setting winlink alert flags, fixes problem
reported by Tommy Allen.


# 1.15 25-Oct-2016 nicm

Do not handle activity or silence alerts in the current window, reported
by jasper@.


# 1.14 19-Oct-2016 nicm

Alerts are too slow, so rather than walking all sessions and windows,
add a link of winlinks to each window and a pointer to the session to
each winlink. Also rewrite the alerts processing to return to the old
behaviour (alert in any window sets the flag on any winlink).


# 1.13 16-Oct-2016 nicm

Use notifys for alerts too.


# 1.12 03-Oct-2016 nicm

Remove some dead code in cmd-move-window.c and make a load of local
functions static.


Revision tags: OPENBSD_6_0_BASE
# 1.11 11-May-2016 nicm

Add on alerts rather than ignoring them if the event has already been
queued, for example bell and activity together. From Marcel Lippmann via
Romain Francoise.


Revision tags: OPENBSD_5_9_BASE
# 1.10 19-Jan-2016 nicm

I no longer use my SourceForge address so replace it.


# 1.9 16-Jan-2016 nicm

Add hooks for alerts (bell, silence, activity), from Thomas Adam.


# 1.8 07-Dec-2015 nicm

Fix bell indicators across detach, reported by Torbjorn Lonnemark, diff
from Thomas Adam.


# 1.7 20-Nov-2015 nicm

The alerts callback should be fired for bells even if bell-action is
none because it also affects the status line bell indicator (and
bell-action does not). Fixes a problem reported by tim@.


# 1.6 19-Nov-2015 nicm

The activity flag could already be set, so queue the callback always (if
not already queued) rather than only if the flag is being added. Fixes a
problem reported by tim@


# 1.5 18-Nov-2015 nicm

Use __unused rather than rolling our own.


# 1.4 27-Oct-2015 nicm

Move struct options into options.c.


# 1.3 21-Sep-2015 nicm

Reset the alerts timer always on activity, from Thomas Adam.


# 1.2 02-Sep-2015 nicm

A one line helper function is a little silly.


# 1.1 29-Aug-2015 nicm

Move alerts onto events rather than checking every loop.


# 1.30 16-May-2020 nicm

Support embedded styles in the display-message message, GitHub issue
2206.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.29 28-Dec-2017 nicm

Redrawing status is needed after changing window flags or title does not
update if status line is off, GitHub issue 1191.


Revision tags: OPENBSD_6_2_BASE
# 1.28 22-Sep-2017 nicm

Initialize alerts timer event where it is used, avoids crash with new windows.


# 1.27 11-Sep-2017 nicm

Check event is initialized before delete; fixes crash reported by
Michael Nickerson in GitHub issue 1068.


# 1.26 23-Aug-2017 nicm

Allow multiple bells even if there is an existing bell (but not activity
or silence), from Brad Town.


# 1.25 23-Aug-2017 nicm

Run alert hooks based on the options rather than unconditionally, from
Brad Town.


# 1.24 17-Aug-2017 nicm

Add monitor-bell window option to match the activity and silence
options, from Brad Town.


# 1.23 16-Aug-2017 nicm

Rename BELL_* values to ALERT_* now they are used by more than bells,
based on a diff from Brad Town.


# 1.22 26-Jul-2017 nicm

Always reset the alerts timer so it works even if activity and silence
are enabled on the same window.


# 1.21 26-Jul-2017 nicm

Make bell, activity and silence alerting more consistent:

- remove the bell-on-alert option;

- add activity-action and silence-action options with the same possible
values as the existing bell-action;

- add "both" value for the visual-bell, visual-activity and
visual-silence options to trigger both a bell and a message.

This means all three work the same way. Based on changes from Yvain Thonnart.


# 1.20 28-Jun-2017 nicm

Fix visual-silence (check accidentally the wrong way round), from Brad
Town. Plus some tmux.1 fixes from jmc@.


# 1.19 28-Apr-2017 nicm

Log what is happening with window and session reference counts much more
obviously.


# 1.18 28-Apr-2017 nicm

Do not put the window on the alerts queue and add a reference unless the
alert is enabled and we are actually going to add the alerts event.


# 1.17 21-Apr-2017 nicm

More unnecessary arguments now winlink points back to session.


Revision tags: OPENBSD_6_1_BASE
# 1.16 01-Nov-2016 nicm

Clear window alert flags after setting winlink alert flags, fixes problem
reported by Tommy Allen.


# 1.15 25-Oct-2016 nicm

Do not handle activity or silence alerts in the current window, reported
by jasper@.


# 1.14 19-Oct-2016 nicm

Alerts are too slow, so rather than walking all sessions and windows,
add a link of winlinks to each window and a pointer to the session to
each winlink. Also rewrite the alerts processing to return to the old
behaviour (alert in any window sets the flag on any winlink).


# 1.13 16-Oct-2016 nicm

Use notifys for alerts too.


# 1.12 03-Oct-2016 nicm

Remove some dead code in cmd-move-window.c and make a load of local
functions static.


Revision tags: OPENBSD_6_0_BASE
# 1.11 11-May-2016 nicm

Add on alerts rather than ignoring them if the event has already been
queued, for example bell and activity together. From Marcel Lippmann via
Romain Francoise.


Revision tags: OPENBSD_5_9_BASE
# 1.10 19-Jan-2016 nicm

I no longer use my SourceForge address so replace it.


# 1.9 16-Jan-2016 nicm

Add hooks for alerts (bell, silence, activity), from Thomas Adam.


# 1.8 07-Dec-2015 nicm

Fix bell indicators across detach, reported by Torbjorn Lonnemark, diff
from Thomas Adam.


# 1.7 20-Nov-2015 nicm

The alerts callback should be fired for bells even if bell-action is
none because it also affects the status line bell indicator (and
bell-action does not). Fixes a problem reported by tim@.


# 1.6 19-Nov-2015 nicm

The activity flag could already be set, so queue the callback always (if
not already queued) rather than only if the flag is being added. Fixes a
problem reported by tim@


# 1.5 18-Nov-2015 nicm

Use __unused rather than rolling our own.


# 1.4 27-Oct-2015 nicm

Move struct options into options.c.


# 1.3 21-Sep-2015 nicm

Reset the alerts timer always on activity, from Thomas Adam.


# 1.2 02-Sep-2015 nicm

A one line helper function is a little silly.


# 1.1 29-Aug-2015 nicm

Move alerts onto events rather than checking every loop.


# 1.29 28-Dec-2017 nicm

Redrawing status is needed after changing window flags or title does not
update if status line is off, GitHub issue 1191.


Revision tags: OPENBSD_6_2_BASE
# 1.28 22-Sep-2017 nicm

Initialize alerts timer event where it is used, avoids crash with new windows.


# 1.27 11-Sep-2017 nicm

Check event is initialized before delete; fixes crash reported by
Michael Nickerson in GitHub issue 1068.


# 1.26 23-Aug-2017 nicm

Allow multiple bells even if there is an existing bell (but not activity
or silence), from Brad Town.


# 1.25 23-Aug-2017 nicm

Run alert hooks based on the options rather than unconditionally, from
Brad Town.


# 1.24 17-Aug-2017 nicm

Add monitor-bell window option to match the activity and silence
options, from Brad Town.


# 1.23 16-Aug-2017 nicm

Rename BELL_* values to ALERT_* now they are used by more than bells,
based on a diff from Brad Town.


# 1.22 26-Jul-2017 nicm

Always reset the alerts timer so it works even if activity and silence
are enabled on the same window.


# 1.21 26-Jul-2017 nicm

Make bell, activity and silence alerting more consistent:

- remove the bell-on-alert option;

- add activity-action and silence-action options with the same possible
values as the existing bell-action;

- add "both" value for the visual-bell, visual-activity and
visual-silence options to trigger both a bell and a message.

This means all three work the same way. Based on changes from Yvain Thonnart.


# 1.20 28-Jun-2017 nicm

Fix visual-silence (check accidentally the wrong way round), from Brad
Town. Plus some tmux.1 fixes from jmc@.


# 1.19 28-Apr-2017 nicm

Log what is happening with window and session reference counts much more
obviously.


# 1.18 28-Apr-2017 nicm

Do not put the window on the alerts queue and add a reference unless the
alert is enabled and we are actually going to add the alerts event.


# 1.17 21-Apr-2017 nicm

More unnecessary arguments now winlink points back to session.


Revision tags: OPENBSD_6_1_BASE
# 1.16 01-Nov-2016 nicm

Clear window alert flags after setting winlink alert flags, fixes problem
reported by Tommy Allen.


# 1.15 25-Oct-2016 nicm

Do not handle activity or silence alerts in the current window, reported
by jasper@.


# 1.14 19-Oct-2016 nicm

Alerts are too slow, so rather than walking all sessions and windows,
add a link of winlinks to each window and a pointer to the session to
each winlink. Also rewrite the alerts processing to return to the old
behaviour (alert in any window sets the flag on any winlink).


# 1.13 16-Oct-2016 nicm

Use notifys for alerts too.


# 1.12 03-Oct-2016 nicm

Remove some dead code in cmd-move-window.c and make a load of local
functions static.


Revision tags: OPENBSD_6_0_BASE
# 1.11 11-May-2016 nicm

Add on alerts rather than ignoring them if the event has already been
queued, for example bell and activity together. From Marcel Lippmann via
Romain Francoise.


Revision tags: OPENBSD_5_9_BASE
# 1.10 19-Jan-2016 nicm

I no longer use my SourceForge address so replace it.


# 1.9 16-Jan-2016 nicm

Add hooks for alerts (bell, silence, activity), from Thomas Adam.


# 1.8 07-Dec-2015 nicm

Fix bell indicators across detach, reported by Torbjorn Lonnemark, diff
from Thomas Adam.


# 1.7 20-Nov-2015 nicm

The alerts callback should be fired for bells even if bell-action is
none because it also affects the status line bell indicator (and
bell-action does not). Fixes a problem reported by tim@.


# 1.6 19-Nov-2015 nicm

The activity flag could already be set, so queue the callback always (if
not already queued) rather than only if the flag is being added. Fixes a
problem reported by tim@


# 1.5 18-Nov-2015 nicm

Use __unused rather than rolling our own.


# 1.4 27-Oct-2015 nicm

Move struct options into options.c.


# 1.3 21-Sep-2015 nicm

Reset the alerts timer always on activity, from Thomas Adam.


# 1.2 02-Sep-2015 nicm

A one line helper function is a little silly.


# 1.1 29-Aug-2015 nicm

Move alerts onto events rather than checking every loop.