aboutsummaryrefslogtreecommitdiff
path: root/names.c
Commit message (Collapse)AuthorAge
* Add option command-prefix which is automatically prepended to any commandNicholas Marriott2013-02-22
| | | | (apart from a naked default-shell). The default is "exec ".
* No more lint means no more ARGSUSED.Nicholas Marriott2013-02-17
|
* Merge branch 'obsd-master'Thomas Adam2012-11-27
|\ | | | | | | Sync from OpenBSD.
| * Fix session choice so that preferring unattached sessions actuallyNicholas Marriott2012-11-27
| | | | | | | | works, reported by Drew Frank.
| * Fix up window reference counting and don't crash if the rename timerNicholas Marriott2012-08-21
| | | | | | | | | | fires while the window is dead but still referenced. Fixes problem reported by Michael Scholz.
| * xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
| |
| * Turn automatic-rename off properly if turned off by renaming aNicholas Marriott2012-04-11
| | | | | | | | window. Reported by Romain Francoise.
| * Do not fire name timer when automatic-rename is off, from Tim Ruehsen aNicholas Marriott2012-04-08
| | | | | | | | while ago.
| * Check event_initialized before event_del if event may not have been setNicholas Marriott2012-03-17
| | | | | | | | up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
| * Add a missing call to window_set_name, from George Nachman.Nicholas Marriott2012-03-09
| |
| * Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | | | | | | time now I've configured emacs to make them displayed in really annoying colours...
| * Remove a couple of unused arguments where possible, and add /* ARGSUSED */ toNicholas Marriott2009-11-26
| | | | | | | | the rest to reduce lint output.
| * Change window name change to use a timer event rather than a gettimeofday()Nicholas Marriott2009-11-04
| | | | | | | | check every loop.
| * When a window is zombified and automatic-rename is on, append [dead] to theNicholas Marriott2009-10-10
| | | | | | | | name.
| * Regularise some fatal messages.Nicholas Marriott2009-09-20
| |
| * When using tmux as a login shell, there is currently no way to specify a shellNicholas Marriott2009-09-01
| | | | | | | | | | | | | | | | | | | | | | | | to be used as a login shell inside tmux, so add a default-shell session option. This sets the shell invoked as a login shell when the default-command option is empty. The default option value is whichever of $SHELL, getpwuid(getuid())'s pw_shell or /bin/sh is valid first. Based on a diff from martynas@, changed by me to be a session option rather than a window option.
| * Move another expensive options test to after a cheaper timer check/update.Nicholas Marriott2009-08-18
| |
| * 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.
| * Remove trailing newlines, spaces, and tabs.Ray Lai2009-06-05
| | | | | | | | No binary change.
| * Cast char to u_char before passing to isalnum().Ray Lai2009-06-03
| | | | | | | | OK nicm@
| * 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 1150:Tiago Cunha2012-07-11
| | | | | xfree is not particularly helpful, remove it. From Thomas Adam.
* Sync OpenBSD patchset 1093:Tiago Cunha2012-04-12
| | | | | | Turn automatic-rename off properly if turned off by renaming a window. Reported by Romain Francoise.
* 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 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 1044:Tiago Cunha2012-03-18
| | | | | Add a missing call to window_set_name, from George Nachman.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | 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...
* Sync OpenBSD patchset 567:Tiago Cunha2009-11-28
| | | | | | Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
* Make it compile on the portable version.Tiago Cunha2009-11-08
|
* Sync OpenBSD patchset 506:Tiago Cunha2009-11-08
| | | | | | Change window name change to use a timer event rather than a gettimeofday() check every loop.
* Sync OpenBSD patchset 375:Tiago Cunha2009-10-12
| | | | | | When a window is zombified and automatic-rename is on, append [dead] to the name.
* Sync OpenBSD patchset 332:Tiago Cunha2009-09-20
| | | | | Regularise some fatal messages.
* Sync OpenBSD patchset 305:Tiago Cunha2009-09-02
| | | | | | | | | | | | | | When using tmux as a login shell, there is currently no way to specify a shell to be used as a login shell inside tmux, so add a default-shell session option. This sets the shell invoked as a login shell when the default-command option is empty. The default option value is whichever of $SHELL, getpwuid(getuid())'s pw_shell or /bin/sh is valid first. Based on a diff from martynas@, changed by me to be a session option rather than a window option.
* Sync OpenBSD patchset 273:Tiago Cunha2009-08-20
| | | | | Move another expensive options test to after a cheaper timer check/update.
* Didn't mean to commit this stuff.Nicholas Marriott2009-08-19
|
* This is a better fix for OS X stupidity.Nicholas Marriott2009-08-19
|
* If using the default login shell (empty default-command), strip any - prefix.Nicholas Marriott2009-07-02
|
* Change default_window_name to use window_default_command if the actual cmd isNicholas Marriott2009-07-02
| | | | | empty. From Josh Elsasser.
* libgen.h.Nicholas Marriott2009-06-25
|
* More diff-to-OpenBSD reduction. Move a lot of compat stuff into compat.h.Nicholas Marriott2009-06-25
|
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* Cast char to u_char before passing to isalnum(). By rayNicholas Marriott2009-06-25
|
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* Looking up argv[0] is expensive, so just use p_comm for the window name ↵Nicholas Marriott2009-02-13
| | | | which is good enough. Also increase name update time to 500 ms.
* Don't try to change the window name unless the pid of the process chosen hasNicholas Marriott2009-02-09
| | | | | | | changed. Reduces CPU use. osdep-* stuff is a bit horrible now but there we go :-/.
* Be more clever about picking window name.Nicholas Marriott2009-01-26
|
* Try to change the window title to match the command running it in. This is doneNicholas Marriott2009-01-20
by reading argv[0] from the process group leader of the group that owns the tty (tcgetpgrp()). This can't be done portably so some OS-dependent code is introduced (ugh); OpenBSD, FreeBSD and Linux are supported at the moment. A new window flag, automatic-rename, is available: if this is set to off, the window name is not changed. Specifying a name with the new-window, new-session or rename-window commands will automatically set this flag to off for the window in question. To disable it entirely set the option to off globally (setw -g automatic-rename off).