summaryrefslogtreecommitdiffstats
path: root/names.c
AgeCommit message (Collapse)Author
2011-07-09Expand the Id keyword. Tiago Cunha
2009-12-04Sync OpenBSD patchset 581:Tiago Cunha
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...
2009-11-28Sync OpenBSD patchset 567:Tiago Cunha
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
2009-11-08Make it compile on the portable version.Tiago Cunha
2009-11-08Sync OpenBSD patchset 506:Tiago Cunha
Change window name change to use a timer event rather than a gettimeofday() check every loop.
2009-10-12Sync OpenBSD patchset 375:Tiago Cunha
When a window is zombified and automatic-rename is on, append [dead] to the name.
2009-09-20Sync OpenBSD patchset 332:Tiago Cunha
Regularise some fatal messages.
2009-09-02Sync OpenBSD patchset 305:Tiago Cunha
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.
2009-08-20Sync OpenBSD patchset 273:Tiago Cunha
Move another expensive options test to after a cheaper timer check/update.
2009-08-19Didn't mean to commit this stuff.Nicholas Marriott
2009-08-19This is a better fix for OS X stupidity.Nicholas Marriott
2009-07-02If using the default login shell (empty default-command), strip any - prefix.Nicholas Marriott
2009-07-02Change default_window_name to use window_default_command if the actual cmd isNicholas Marriott
empty. From Josh Elsasser.
2009-06-25libgen.h.Nicholas Marriott
2009-06-25More diff-to-OpenBSD reduction. Move a lot of compat stuff into compat.h.Nicholas Marriott
2009-06-25Restore $Id$ and add script to do so.Nicholas Marriott
2009-06-25Cast char to u_char before passing to isalnum(). By rayNicholas Marriott
2009-05-04Space trimmage mega-diff.Nicholas Marriott
2009-02-13Looking up argv[0] is expensive, so just use p_comm for the window name ↵Nicholas Marriott
which is good enough. Also increase name update time to 500 ms.
2009-02-09Don't try to change the window name unless the pid of the process chosen hasNicholas Marriott
changed. Reduces CPU use. osdep-* stuff is a bit horrible now but there we go :-/.
2009-01-26Be more clever about picking window name.Nicholas Marriott
2009-01-20Try to change the window title to match the command running it in. This is doneNicholas Marriott
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).