OpenBSD CVS

CVS log for src/usr.bin/tmux/Attic/server-window.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.40, Sat Aug 29 08:30:54 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.39: +1 -1 lines
FILE REMOVED

Move alerts onto events rather than checking every loop.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Aug 29 00:29:15 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

Better take on reducing the name timer. Again check for name changes in
the main loop after events that may have changed the pane, but do so at
most once every 500 millis. If the pane changed too soon, use a timer to
ensure that a check happens later.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Aug 28 16:10:46 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.37: +0 -1 lines
Diff to previous 1.37 (colored)

Revert previous; we do need a timer, until I have a better idea. We
can't do the name check every loop, because that is too expensive, and
we can't make sure it only happens infrequently because we have no idea
when the next change will happen.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Aug 28 15:51:48 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)

We now only checking for name changes when the active pane has changed,
but that can only happen when we have already been woken up by a read
event, so there is no need for a timer, we can just check the changed
flag on the end of that read event (we already loop over the windows to
check for bells etc anyway).

Revision 1.36 / (download) - annotate - [select for diffs], Fri Aug 28 07:55:43 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Error messages should not have a trailing period.

Revision 1.35 / (download) - annotate - [select for diffs], Tue May 12 15:27:46 2015 UTC (9 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.34: +9 -4 lines
Diff to previous 1.34 (colored)

Add bell-action "other" to pass through bells in all windows except the
current, suggested by Jan ONDREJ.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Apr 24 23:17:11 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.33: +9 -17 lines
Diff to previous 1.33 (colored)

Convert clients list into a TAILQ.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Apr 22 15:30:11 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.32: +12 -16 lines
Diff to previous 1.32 (colored)

Change the windows array into an RB tree and fix some places where we
were only looking at the first winlink for a window in a session.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Mar 31 17:45:10 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

Fix some format specifier nits, from Ben Boeckel.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Apr 17 07:36:45 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.30: +5 -52 lines
Diff to previous 1.30 (colored)

Remove the monitor-content option and associated bits and bobs. It's
never worked very well. If there is a big demand for it to return, will
consider better ways to do it.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Apr 2 17:14:24 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.29: +4 -3 lines
Diff to previous 1.29 (colored)

Use the same logic for bell with and without visual-bell, from Filip
Moc.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Feb 14 12:44:45 2014 UTC (10 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.28: +8 -13 lines
Diff to previous 1.28 (colored)

Do not need to call winlink_find_by_window, from Filip Moc.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Mar 21 18:47:01 2013 UTC (11 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Add various checks to turn off bits that can't work in control mode
(such as lock).

Revision 1.27 / (download) - annotate - [select for diffs], Thu Oct 25 11:16:53 2012 UTC (11 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.26: +4 -2 lines
Diff to previous 1.26 (colored)

Fix BELL_NONE which had been broken in some code reorganisation or other
also don't redraw unnecessarily. From Seiji Ohashi.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jul 10 11:53:01 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

xfree is not particularly helpful, remove it. From Thomas Adam.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jul 8 07:27:32 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.24: +9 -4 lines
Diff to previous 1.24 (colored)

Clear flags across all sessions, from Thomas Adam.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jun 18 10:58:44 2012 UTC (11 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.23: +15 -36 lines
Diff to previous 1.23 (colored)

Tidy up bell code, from Thomas Adam.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jan 21 06:13:16 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.22: +8 -6 lines
Diff to previous 1.22 (colored)

Only hide flags on the current window when the session is attached, from
Roland Walker.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Aug 24 09:58:44 2011 UTC (12 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Add a tty_bell wrapper function, from Dylan Alex Simon.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jul 3 19:07:54 2011 UTC (12 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.20: +23 -1 lines
Diff to previous 1.20 (colored)

Add an option to trigger the terminal bell when there is an alert, from
Marco Beck.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 26 02:55:34 2011 UTC (13 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

Unused declaration.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Dec 21 22:37:59 2010 UTC (13 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.18: +3 -6 lines
Diff to previous 1.18 (colored)

Store sessions in an RB tree by name rather than a list, this is tidier
and allows them to easily be shown sorted in various lists
(list-sessions/choose-sessions).

Keep a session index which is used in a couple of places internally but
make it an ever-increasing number rather than filling in gaps with new
sessions.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 6 22:51:02 2010 UTC (13 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.17: +53 -2 lines
Diff to previous 1.17 (colored)

Add an option to alert (monitor) for silence (lack of activity) in a
window. From Thomas Adam.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Aug 11 07:34:43 2010 UTC (13 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.16: +1 -37 lines
Diff to previous 1.16 (colored)

Change the way backoff works. Instead of stopping reading from the pty
when the client tty backs up too much, just stop updating the tty and
only update the internal screen. Then when the tty recovers, force a
redraw.

This prevents a dodgy client from causing other clients to go into
backoff while still allowing tmux to be responsive (locally) when seeing
lots of output.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 19 21:13:03 2010 UTC (13 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.15: +3 -5 lines
Diff to previous 1.15 (colored)

Don't return if in the current window since we may want to report a bell
(if bell-action any/current), just clear the flag so the status line
doesn't show the bell.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jun 21 01:27:46 2010 UTC (13 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.14: +31 -32 lines
Diff to previous 1.14 (colored)

Having a list of winlinks->alerts for each session is stupid, just store
the alert flags directly in the winlink itself.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 19 00:03:21 2010 UTC (14 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (colored)

copy mode uses the real screen as backing and if it is updated while copying,
strange things can happen. So, freeze reading from the pty while in copy mode.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Dec 3 22:50:10 2009 UTC (14 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.12: +9 -9 lines
Diff to previous 1.12 (colored)

Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...

Revision 1.12 / (download) - annotate - [select for diffs], Fri Nov 13 17:33:07 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.11: +1 -63 lines
Diff to previous 1.11 (colored)

Destroy panes immediately rather than checking them all every loop.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 6 10:42:06 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.10: +7 -5 lines
Diff to previous 1.10 (colored)

Don't try enable/disable the event if the window pane is dead (fd == -1), as
the event will have been freed.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 4 23:54:57 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.9: +1 -3 lines
Diff to previous 1.9 (colored)

Change window name change to use a timer event rather than a gettimeofday()
check every loop.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 4 22:43:11 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.8: +8 -48 lines
Diff to previous 1.8 (colored)

Convert the window pane (pty master side) fd over to use a bufferevent.

The evbuffer API is very similar to the existing tmux buffer API so this was
remarkably painless. Not many possible ways to do it, I suppose.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 4 22:02:38 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.7: +1 -19 lines
Diff to previous 1.7 (colored)

Switch window pane pipe redirect fd over to a bufferevent.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Nov 4 21:47:42 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

Switch tty fds over to a bufferevent.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Nov 4 20:59:22 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

A couple of minor cosmetic changes.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 4 20:50:11 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.4: +12 -7 lines
Diff to previous 1.4 (colored)

Initial changes to move tmux to libevent.

This moves the client-side loops are pretty much fully over to event-based only
(tmux.c and client.c) but server-side (server.c and friends) treats libevent as
a sort of clever poll, waking up after every event to run various things.

Moving the server stuff over to bufferevents and timers and so on will come
later.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Nov 4 08:35:11 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

Don't backoff based on suspended or deda clients as they are always likely to
have data backed up.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 28 22:53:14 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.2: +27 -2 lines
Diff to previous 1.2 (colored)

If any client currently displaying a window pane has more than 1 KB of output
buffered, don't accept any further data from the process running in the pane.

This makes tmux much more responsive when flooded with output, although other
buffers can still have an impact when running remotely.

Prompted by a query from Ranganathan Sankaralingam.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 27 13:03:33 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.1: +34 -1 lines
Diff to previous 1.1 (colored)

Move the poll registration functions into the server-*.c files.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Oct 22 19:41:51 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN

Split the server code handling clients, jobs and windows off into separate
files from server.c (merging server-msg.c into the client file) and rather than
iterating over each set after poll(), allow a callback to be specified when the
fd is added and just walk once over the returned pollfds calling each callback
where needed.

More to come, getting this in so it is tested.

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.