aboutsummaryrefslogtreecommitdiff
path: root/osdep-linux.c
Commit message (Collapse)AuthorAge
* Apply the make magic wand to pick an osdep-*.c file rather than using ifdefs.Nicholas Marriott2009-04-29
|
* 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 :-/.
* Don't leak fd.Nicholas Marriott2009-02-02
|
* 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).