OpenBSD CVS

CVS log for src/usr.bin/tmux/alerts.c


[BACK] Up to [local] / src / usr.bin / tmux

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Mon Apr 12 09:36:12 2021 UTC (3 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.32: +6 -5 lines
Diff to previous 1.32 (colored)

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

Revision 1.32 / (download) - annotate - [select for diffs], Wed Aug 19 07:15:42 2020 UTC (3 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

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

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jul 27 08:03:10 2020 UTC (3 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Sat May 16 15:54:20 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.29: +6 -4 lines
Diff to previous 1.29 (colored)

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

Revision 1.29 / (download) - annotate - [select for diffs], Thu Dec 28 12:10:50 2017 UTC (6 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.28: +10 -4 lines
Diff to previous 1.28 (colored)

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

Revision 1.28 / (download) - annotate - [select for diffs], Fri Sep 22 09:04:46 2017 UTC (6 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.27: +5 -6 lines
Diff to previous 1.27 (colored)

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

Revision 1.27 / (download) - annotate - [select for diffs], Mon Sep 11 20:11:45 2017 UTC (6 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Wed Aug 23 09:16:39 2017 UTC (6 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.25: +5 -3 lines
Diff to previous 1.25 (colored)

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

Revision 1.25 / (download) - annotate - [select for diffs], Wed Aug 23 09:14:21 2017 UTC (6 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.24: +48 -44 lines
Diff to previous 1.24 (colored)

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

Revision 1.24 / (download) - annotate - [select for diffs], Thu Aug 17 08:37:38 2017 UTC (6 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.23: +7 -3 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Wed Aug 16 11:46:08 2017 UTC (6 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.22: +8 -8 lines
Diff to previous 1.22 (colored)

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

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jul 26 16:16:25 2017 UTC (6 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.21: +2 -4 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jul 26 16:14:08 2017 UTC (6 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.20: +57 -71 lines
Diff to previous 1.20 (colored)

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.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jun 28 06:45:31 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.19: +2 -3 lines
Diff to previous 1.19 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 28 19:13:55 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

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

Revision 1.18 / (download) - annotate - [select for diffs], Fri Apr 28 19:10:48 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.17: +13 -11 lines
Diff to previous 1.17 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Apr 21 14:09:44 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

More unnecessary arguments now winlink points back to session.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Nov 1 09:07:18 2016 UTC (7 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Tue Oct 25 07:24:10 2016 UTC (7 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.14: +10 -9 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Wed Oct 19 09:22:07 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.13: +139 -109 lines
Diff to previous 1.13 (colored)

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).

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 16 22:18:04 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.12: +4 -9 lines
Diff to previous 1.12 (colored)

Use notifys for alerts too.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Oct 3 22:52:11 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.11: +23 -23 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 11 20:56:58 2016 UTC (8 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.10: +7 -7 lines
Diff to previous 1.10 (colored)

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 1.10 / (download) - annotate - [select for diffs], Tue Jan 19 15:59:12 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jan 16 00:36:53 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.8: +21 -4 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Mon Dec 7 09:47:41 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.7: +34 -12 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Fri Nov 20 16:33:46 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.6: +3 -11 lines
Diff to previous 1.6 (colored)

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@.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Nov 19 14:55:25 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.5: +10 -10 lines
Diff to previous 1.5 (colored)

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@

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 18 14:27:44 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Use __unused rather than rolling our own.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 27 15:58:42 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.3: +13 -13 lines
Diff to previous 1.3 (colored)

Move struct options into options.c.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Sep 21 09:34:52 2015 UTC (8 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

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

Revision 1.2 / (download) - annotate - [select for diffs], Wed Sep 2 17:43:25 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

A one line helper function is a little silly.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Aug 29 08:30:54 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN

Move alerts onto events rather than checking every loop.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.