OpenBSD CVS

CVS log for src/usr.bin/tmux/names.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.45 / (download) - annotate - [select for diffs], Fri Aug 20 17:50:42 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, HEAD
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Remove stray spaces after function names.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Mar 2 11:00:38 2021 UTC (3 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.43: +3 -1 lines
Diff to previous 1.43 (colored)

Do not use NULL active window; also do not leak window name. GitHub
issue 2590 from Chester Liu.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Oct 5 11:04:40 2020 UTC (3 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.42: +6 -2 lines
Diff to previous 1.42 (colored)

Trim "s from process names; also fix a default format in man page.

Revision 1.42 / (download) - annotate - [select for diffs], Sat May 16 15:01:31 2020 UTC (4 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

Drop having a separate type for style options and make them all strings,
which allows formats to be expanded. Any styles without a '#{' are still
validated when they are set but any with a '#{' are not. Formats are not
expanded usefully in many cases yet, that will be changed later.

To make this work, a few other changes:

- set-option -a with a style option automatically appends a ",".

- OSC 10 and 11 don't set the window-style option anymore, instead the
  fg and bg are stored in the pane struct and act as the defaults that
  can be overridden by window-style.

- status-fg and -bg now override status-style instead of trying to keep
  them in sync.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Jul 21 12:58:02 2017 UTC (6 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored)

Allow ispunct() as well as isalnum() when parsing initial window names.

Revision 1.40 / (download) - annotate - [select for diffs], Mon May 1 12:20:55 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

In order that people can use formats like #D in #() in the status line
and not have to wait for an update when they change pane, we allow
commands to run more than once a second if the expanded form
changes. Unfortunately this can mean them being run far too often
(pretty much continually) when multiple clients exist, because some
formats (including #D) will always differ between clients.

To avoid this, give each client its own tree of jobs which means that
the same command will be different instances for each client - similar
to how we have the tag to separate commands for different panes.

GitHub issue 889; test case reported by Paul Johnson.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Feb 3 11:57:27 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Add a window or pane id "tag" to each format tree and use it to separate
jobs, this means that if the same job is used for different windows or
panes (for example in pane-border-format), it will be run separately for
each pane.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jan 13 11:56:43 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored)

Make options_get_string return const string.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Oct 11 13:21:59 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.36: +6 -4 lines
Diff to previous 1.36 (colored)

Add static in window-*.c and move some internal functions out of tmux.h.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Oct 10 21:29:23 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.35: +5 -5 lines
Diff to previous 1.35 (colored)

Loads more static, except for cmd-*.c and window-*.c.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jul 15 09:27:35 2016 UTC (7 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.34: +7 -4 lines
Diff to previous 1.34 (colored)

Wrap some long lines and apply some static.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 19 15:59:12 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Dec 11 12:27:36 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Add cmdq as an argument to format_create and add a format for the
command name (will also be used for more later).

Revision 1.32 / (download) - annotate - [select for diffs], Tue Dec 8 08:34:18 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Remove format_create_flags and just pass flags to format_create.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Nov 18 14:27:44 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Use __unused rather than rolling our own.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Oct 27 15:58:42 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Move struct options into options.c.

Revision 1.29 / (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.28: +47 -18 lines
Diff to previous 1.28 (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.28 / (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.27: +25 -7 lines
Diff to previous 1.27 (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.27 / (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.26: +8 -26 lines
Diff to previous 1.26 (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.26 / (download) - annotate - [select for diffs], Fri Aug 28 13:26:41 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

Check changed flag after restarting timer.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Aug 28 07:49:24 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.24: +5 -1 lines
Diff to previous 1.24 (colored)

Only do the automatic-rename dance if the pane has changed (seen output,
or new active pane).

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 5 10:29:43 2015 UTC (9 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Wrap all the individual format_* calls in a single format_defaults
functions.

Revision 1.23 / (download) - annotate - [select for diffs], Tue May 13 08:08:32 2014 UTC (10 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.22: +10 -4 lines
Diff to previous 1.22 (colored)

If multiple arguments are given to new-session, new-window,
split-window, respawn-window or respawn-pane, pass them directly to
execvp() to help avoid quoting problems. One argument still goes to "sh
-c" like before. Requested by many over the years. Patch from J Raynor.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Oct 10 11:56:50 2013 UTC (10 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.21: +24 -36 lines
Diff to previous 1.21 (colored)

Add automatic-rename-format option allowing automatic rename to use
something other than pane_current_command.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 25 15:59:57 2013 UTC (11 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.20: +11 -15 lines
Diff to previous 1.20 (colored)

Revert the command-prefix change which breaks sequences of commands.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Mar 24 09:21:27 2013 UTC (11 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.19: +15 -11 lines
Diff to previous 1.19 (colored)

Add option command-prefix which is automatically prepended to any
command (apart from a naked default-shell). The default is "exec ".

Revision 1.19 / (download) - annotate - [select for diffs], Fri Mar 22 10:31:22 2013 UTC (11 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

No more lint means no more ARGSUSED.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 27 09:20:03 2012 UTC (11 years, 5 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Fix session choice so that preferring unattached sessions actually
works, reported by Drew Frank.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 21 10:00:33 2012 UTC (11 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.16: +4 -1 lines
Diff to previous 1.16 (colored)

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.

Revision 1.16 / (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.15: +6 -5 lines
Diff to previous 1.15 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Wed Apr 11 07:45:30 2012 UTC (12 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.14: +7 -2 lines
Diff to previous 1.14 (colored)

Turn automatic-rename off properly if turned off by renaming a
window. Reported by Romain Francoise.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 8 06:47:26 2012 UTC (12 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.13: +2 -4 lines
Diff to previous 1.13 (colored)

Do not fire name timer when automatic-rename is off, from Tim Ruehsen a
while ago.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 17 18:24:07 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

Check event_initialized before event_del if event may not have been set
up; libevent2 complains about this. Reported by Moriyoshi Koizumi.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 9 21:11:28 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.11: +4 -6 lines
Diff to previous 1.11 (colored)

Add a missing call to window_set_name, from George Nachman.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 3 22:50:10 2009 UTC (14 years, 5 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Thu Nov 26 21:37:13 2009 UTC (14 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to
the rest to reduce lint output.

Revision 1.9 / (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.8: +49 -52 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Sat Oct 10 15:23:13 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.7: +7 -1 lines
Diff to previous 1.7 (colored)

When a window is zombified and automatic-rename is on, append [dead] to the
name.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Sep 20 14:58:12 2009 UTC (14 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Regularise some fatal messages.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 1 13:09:49 2009 UTC (14 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

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.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Aug 18 21:18:20 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

Move another expensive options test to after a cheaper timer check/update.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jul 8 05:26:45 2009 UTC (14 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.3: +14 -3 lines
Diff to previous 1.3 (colored)

Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX,
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.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 5 03:13:16 2009 UTC (14 years, 11 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)

Remove trailing newlines, spaces, and tabs.

No binary change.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 3 04:03:16 2009 UTC (14 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Cast char to u_char before passing to isalnum().

OK nicm@

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 1 22:58:49 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN

Import tmux, a terminal multiplexor allowing (among other things) a single
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

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.