aboutsummaryrefslogtreecommitdiff
path: root/window.c
Commit message (Collapse)AuthorAge
...
| * Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX,Nicholas Marriott2009-07-08
| | | | | | | | | | | | | | | | | | and some people may use shells which do not support it. Instead, make an empty default-command option mean a login shell, and fork it with a - in argv[0] which is the method used by login(1). Also fix the automatic-rename code to handle this correctly and to strip a leading - if present.
| * Rename the global options variables to be shorter and to make session optionsNicholas Marriott2009-07-07
| | | | | | | | | | clear. No functional change, getting this out of the way to make later options changes easier.
| * Miscellaneous unused functions, including one which was basically aNicholas Marriott2009-06-25
| | | | | | | | duplicate. Found by lint.
| * Change find-window and monitor-content to use fnmatch(3). For convenience andNicholas Marriott2009-06-24
| | | | | | | | | | | | | | | | | | compatibility, *s are implicitly added at the start and end of the pattern. Also display the line number and the entire line in the results, and lose the nasty section_string function and the now empty util.c file. Initially from Tiago Cunha.
| * Add a dedicated function to convert a line into a string and use it to ↵Nicholas Marriott2009-06-24
| | | | | | | | simplify the search window function.
| * If a pane is "zombified" (remain-on-exit flag), don't continue to queue key andNicholas Marriott2009-06-23
| | | | | | | | mouse input for it (otherwise they are processed after respawn).
| * strdup the input to putenv to avoid in one case passing a string that is laterNicholas Marriott2009-06-05
| | | | | | | | | | | | freed and in the other const strings. looks sane to millert, ok ray
| * Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott2009-06-01
| | | | | | | terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti
* Sync OpenBSD patchset 1165:Tiago Cunha2012-08-31
| | | | | | | Fix up window reference counting and don't crash if the rename timer fires while the window is dead but still referenced. Fixes problem reported by Michael Scholz.
* Sync OpenBSD patchset 1156:Tiago Cunha2012-08-12
| | | | | | | Instead of numbering choose mode items 0-9a-z and then nothing, number them all and if there are more than 10 use a prompt when 0-9 is pressed. From Thomas Adam.
* Sync OpenBSD patchset 1150:Tiago Cunha2012-07-11
| | | | | xfree is not particularly helpful, remove it. From Thomas Adam.
* Sync OpenBSD patchset 1144:Tiago Cunha2012-07-11
| | | | | Clear flags across all sessions, from Thomas Adam.
* Sync OpenBSD patchset 1127:Tiago Cunha2012-05-30
| | | | | | Use default-shell not _PATH_BSHELL to spawn commands, pointed out by Dennis G?nnewig and Thomas Adam.
* Sync OpenBSD patchset 1091:Tiago Cunha2012-04-10
| | | | | | Do not fire name timer when automatic-rename is off, from Tim Ruehsen a while ago.
* Sync OpenBSD patchset 1087:Tiago Cunha2012-04-10
| | | | | Minor style nits - return ().
* Sync OpenBSD patchset 1084:Tiago Cunha2012-04-10
| | | | | | Add a layout history which can be stepped through with select-layout -u and -U commands (bound to 'u' and 'U' by default).
* Sync OpenBSD patchset 1074:Tiago Cunha2012-03-29
| | | | | Check changes_timer with event_initialized before event_del.
* Sync OpenBSD patchset 1072:Tiago Cunha2012-03-29
| | | | | | | | | | | | | | | | | | | | Add a simple form of output rate limiting by counting the number of certain C0 sequences (linefeeds, backspaces, carriage returns) and if it exceeds a threshold (current default 50/millisecond), start to redraw the pane every 100 milliseconds instead of making each change as it comes. Two configuration options - c0-change-trigger and c0-change-interval. This makes tmux much more responsive under very fast output (for example yes(1) or accidentally cat'ing a large file) but may not be perfect on all terminals and connections - feedback very welcome, particularly where this change has a negative rather than positive effect (making it off by default is a possibility). After much experimentation based originally on a request Robin Lee Powell (which ended with a completely different solution), this idea from discussion with Ailin Nemui.
* Sync OpenBSD patchset 1069:Tiago Cunha2012-03-18
| | | | | | Add notify hooks for various events, the functions are currently empty stubs but will be filled in for control mode later. From George Nachman.
* Sync OpenBSD patchset 1057:Tiago Cunha2012-03-18
| | | | | | Check event_initialized before event_del if event may not have been set up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
* Sync OpenBSD patchset 1024:Tiago Cunha2012-02-02
| | | | | | Move window name changes into wrapper function window_set_name, from George Nachman.
* Sync OpenBSD patchset 1017:Tiago Cunha2012-01-31
| | | | | | Give each window a unique id, like panes but prefixed with @. Based on work from George Nachman.
* Sync OpenBSD patchset 1014:Tiago Cunha2012-01-29
| | | | | | | Call bufferevent_free before closing file descriptor associated with it or bugs in $EventMechanism on $OtherOS makes libevent get it's knickers in a twist. From Dylan Alex Simon.
* Set IUTF8 in termios where supported, suggested by Egmont Koblinger.Nicholas Marriott2012-01-20
|
* Sync OpenBSD patchset 979:Tiago Cunha2011-11-25
| | | | | Make window_pane_index work the same as window_index, from Ben Boeckel.
* Sync OpenBSD patchset 960:Tiago Cunha2011-10-02
| | | | | Reject $SHELL if it is not a full path.
* Sync OpenBSD patchset 950:Tiago Cunha2011-08-25
| | | | | Add pane-base-index option, from Ben Barbour.
* PatchSet 923Nicholas Marriott2011-06-23
| | | | | | | | | | | | Date: 2011/06/05 11:53:05 Author: nicm Branch: HEAD Tag: (none) Log: Get rid of the layout string code which tries to walk through the layout hierarchy and instead just look at what panes are actually in the window.
* |PatchSet 894Nicholas Marriott2011-04-18
| | | | | | | | | | | |Date: 2011/04/18 21:57:16 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |The mouse should only work in copy mode if mode-mouse is set, not just |mouse-select-pane.
* PatchSet 870Nicholas Marriott2011-04-06
| | | | | | | | | | | | Date: 2011/03/27 21:27:26 Author: nicm Branch: HEAD Tag: (none) Log: Give each pane created in a tmux server a unique id (starting from 0), put it in the TMUX_PANE environment variable and accept it as a target. Suggested by and with testing and tweaks from Ben Boeckel.
* Sync OpenBSD patchset 852:Tiago Cunha2011-02-15
| | | | | | Check if the index is in use and fail before creating the child process, rather than leaving a stray child on failure.
* Sync OpenBSD patchset 834:Tiago Cunha2011-01-21
| | | | | | | Move all calls to fcntl(...O_NONBLOCK) into a function and clear the flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").
* Sync OpenBSD patchset 813:Tiago Cunha2011-01-07
| | | | | | Add a function to create window flags rather than doing the same thing in two places. From Thomas Adam.
* Add an option to alert (monitor) for silence (lack of activity) in aNicholas Marriott2010-12-06
| | | | | window. From Thomas Adam.
* PatchSet 786Nicholas Marriott2010-12-06
| | | | | | | | | | | | | | Date: 2010/11/14 08:58:25 Author: nicm Branch: HEAD Tag: (none) Log: Don't allow last and active window to become the same - a very bad move when the active window is closed and freed. Reported by sthen@. Members: window.c:1.58->1.59
* Sync OpenBSD patchset 780:Tiago Cunha2010-10-24
| | | | | | Add a last-pane command (bound to ; by default). Requested ages ago by somebody whose name I have forgotten.
* Sync OpenBSD patchset 779:Tiago Cunha2010-10-24
| | | | | | When removing a pane, don't change the active pane unless the active pane is actually the one being removed.
* Sync OpenBSD patchset 775:Tiago Cunha2010-10-24
| | | | | | Trying to set FD_CLOEXEC on every fd is a lost cause, just use closefrom() before exec.
* Solaris 9 has no stdint.h, ugh. Reported by a couple of people mostNicholas Marriott2010-09-07
| | | | | recently Timothy Larson.
* Sync OpenBSD patchset 754:Tiago Cunha2010-08-29
| | | | | | When destroying a pane, reset any mode (which reenables pane bufferevent) before freeing the bufferevent.
* Sync OpenBSD patchset 751:Tiago Cunha2010-08-29
| | | | | | | Do not call event_del() for signals after fork(), just use sigaction() directly instead - calling libevent functions after fork() w/o event_reinit() is a bad idea, even if in this case it was harmless.
* Sync OpenBSD patchset 735:Tiago Cunha2010-07-17
| | | | | | Make pane/window wrapping more logical (so with 10 windows, +10 from window 5 stays in the same place), and tidy the code. From Tiago Cunha.
* Sync OpenBSD patchset 725:Tiago Cunha2010-06-22
| | | | | | Extend the -t:+ and -t:- window targets for next and previous window to accept an offset such as -t:+2. From Tiago Cunha.
* Pass in the session, rather than the client, to window modes' key() function.Micah Cowan2010-05-22
| | | | | We were only ever using the client to find the session anyway.
* Sync OpenBSD patchset 696:Tiago Cunha2010-05-14
| | | | | | | Make signal handler setup/teardown two common functions instead of six, and reset SIGCHLD after fork to fix problems with some shells. From Romain Francoise.
* Run job commands explicitly in the global enviroment (which can beNicholas Marriott2010-04-06
| | | | | | modified with setenv -g) rather than with the environment tmux started with.
* Squash a function that is only called in a callback into theNicholas Marriott2010-04-06
| | | | | callback function.
* Support up, down, left, right movement through panes with -UDLR flags toNicholas Marriott2010-03-15
| | | | | | | | select-pane. Also remove up- and down-pane: equivalent behaviour is now available using -t :.+ and -t :.-.
* New input parser based on http://vt100.net/emu/dec_ansi_parser.Nicholas Marriott2010-03-15
|
* Sync OpenBSD patchset 635:Tiago Cunha2010-02-08
| | | | | | | Instead of bailing out on the first configuration file error, carry on, collecting all the errors, then start with the active window in more mode displaying them.