nicm
46572ba904
Print error rather than fatal() if tcgetattr() fails, which is much more
...
useful to user.
2017-01-20 14:02:33 +00:00
nicm
faa0570309
Plain stravis() because it will mangle UTF-8 characters, so add
...
utf8_stravis() which calls our existing utf8_strvis() and use it instead
2017-01-18 10:08:05 +00:00
nicm
4bb5a1d6a7
Run arguments through vis() as well when printing them.
2017-01-18 10:00:50 +00:00
nicm
649c0d8e91
Do not reset idx, it has just been set.
2017-01-18 08:43:21 +00:00
nicm
373541104b
options_match needs to explicitly check for user options.
2017-01-18 08:40:50 +00:00
nicm
6b6b0e91d0
Correctly handle -style options without all of a corresponding -fg/-bg/-attr.
2017-01-16 23:45:08 +00:00
nicm
ef15b4195f
Revert WIP parts of previous I didn't mean to commit yet.
2017-01-16 14:52:25 +00:00
nicm
68db958477
getopt() has a struct option so just return to using options_entry.
2017-01-16 14:49:14 +00:00
nicm
52847a9518
It is silly for cmd_list_parse to return an integer error when it could
...
just return NULL.
2017-01-15 22:00:56 +00:00
nicm
3054846143
-q flag now needs to be checked in a couple more places.
2017-01-15 20:50:34 +00:00
nicm
2b0bc9f1c5
Major tidy up and rework of options tree and set-option/show-options
...
commands this pushes more of the code into options.c and ties it more
closely to the options table rather than having an unnecessary
split. Also add support for array options (will be used later). Only
(intentional) user visible change is that show-options output is now
passed through vis(3) with VIS_DQ so quotes are escaped.
2017-01-15 20:48:41 +00:00
nicm
404214b0ac
Remove unused quiet option.
2017-01-15 20:16:22 +00:00
nicm
a3cf995017
Append needs to go old,new not new,old...
2017-01-15 20:14:36 +00:00
nicm
e06efab9da
killp -a should not kill the window if only one pane.
2017-01-14 18:53:08 +00:00
nicm
08d21936e4
options_get_style return const too.
2017-01-13 11:58:49 +00:00
nicm
22a528905d
Make options_get_string return const string.
2017-01-13 11:56:43 +00:00
nicm
95950bf668
Add -E to detach-client to exec a command to replace the client instead
...
of exiting it, useful if tmux wasn't exec'd itself. From Jenna Magius.
2017-01-13 10:12:12 +00:00
nicm
24cba5907b
Simplify appending to string options.
2017-01-12 15:36:35 +00:00
nicm
dad3090d32
Put all palette functions together in the file.
2017-01-12 10:15:55 +00:00
nicm
9b6aeacdc0
aixterm colours can be used if -2 is given, as well as if TERM tells us
...
the terminal has >=16 colours.
2017-01-12 00:30:41 +00:00
nicm
0752fdaf6a
Erm the aixterm colours should start at 8, not 7.
2017-01-12 00:24:28 +00:00
nicm
9e786030df
Fix setting the palette of aixterm colours (90-97).
2017-01-12 00:19:32 +00:00
nicm
74c40d04ea
Be less aggressive about turning margins off.
2017-01-11 23:10:04 +00:00
nicm
3bb14001b9
Add some missing special keys to key_string_lookup_key, fix a mouse
...
check in server_client_handle_key, and tweak a comment.
2017-01-11 22:36:07 +00:00
nicm
bf6a5c056d
Add a format for terminal type.
2017-01-11 16:09:57 +00:00
nicm
7497ecd979
Use a macro for looking up tty types.
2017-01-11 16:05:46 +00:00
nicm
458b6eb600
Some tidying and tweaks to options code.
2017-01-11 14:56:44 +00:00
nicm
5526627558
Minor tidying in a couple of commands.
2017-01-10 19:45:55 +00:00
nicm
aa4de2d4b2
Need to escape ; twice because the command list parser will eat one,
...
reported by Theo Buehler.
2017-01-10 18:10:24 +00:00
nicm
5ea7a00eba
Quote backslash as well for %%%.
2017-01-10 11:58:30 +00:00
nicm
e78142232f
Some manpage fixes: rephrase a convoluted sentence, make the names of
...
some keys more standard, and use Ql instead of Dq.
2017-01-10 10:08:59 +00:00
jmc
40fddfbdd6
avoid unneccessary markup; tweaked and ok nicm
2017-01-10 07:55:48 +00:00
nicm
d2d984647e
Add %if/%endif for conditionals when parsing configuration files, the
...
argument is a format (the new == and != are useful).
2017-01-09 21:28:56 +00:00
nicm
844f2eacf4
Add simple comparisons in formats: #{==:a,b} and #{!=:a,b} ("a" and "b"
...
are expanded so can compare formats). And expand the condition to
#{?a,b,c} (the "a" part) if it doesn't work as a simple lookup.
Also add FORMAT_NOJOBS flag to disable jobs in a format.
2017-01-09 21:03:25 +00:00
nicm
561b5c6fdb
source-file -q needs to apply to glob(3) too.
2017-01-09 19:29:12 +00:00
nicm
5330a2a85d
Run the source-file pattern through glob(3).
2017-01-09 19:27:00 +00:00
nicm
c05002b0f2
Add note about ccc and initc so people who want it can see it is
...
possible.
2017-01-07 15:40:23 +00:00
nicm
314e933914
Add support for the OSC 4 and OSC 104 palette setting escape sequences,
...
from S Gilles.
2017-01-07 15:28:13 +00:00
nicm
cae0fbbe8c
Nits found with clang.
2017-01-06 13:26:09 +00:00
nicm
461217d0f0
Incremental search in copy mode (on for emacs keys by default) - much
...
the same as normal searching but updates the cursor position and marked
search terms as you type. C-r and C-s in the prompt repeat the search,
once finished searching (with Enter), N and n work as before.
2017-01-06 11:57:03 +00:00
nicm
9a56671a75
Highlight all occurrences of search string after searching in copy mode.
2017-01-05 09:07:15 +00:00
nicm
43e8f60bc6
Escape backspace for capture-pane -P, from George Nachman.
2017-01-02 22:42:19 +00:00
nicm
1015b124d5
Change the xterm-keys option to default to on, so that tmux will
...
generate xterm(1) escape sequences for function keys with modifiers.
With the option off most of these keys are ignored by default, except
for ctrl + arrows which use a variant that nothing else seems to use and
I don't remember why we chose. The xterm escape sequences are now the
most common.
Prompted by a question from mpi@.
2016-12-30 13:49:34 +00:00
nicm
70ba3c147f
Fix the prefer unattached session behaviour of
...
attach-session/switch-client, reported by Thomas Sattle.
2016-12-28 10:34:34 +00:00
nicm
e36f932f62
Fix up winlink lists after swap-window.
2016-12-14 17:38:59 +00:00
nicm
b851c628f4
-N without arguments needs to set prefix count for the mode command, so
...
that M-1 etc work. Reported by Theo Buehler.
2016-12-11 22:55:25 +00:00
nicm
bee95bf378
Spacing nits.
2016-12-09 21:39:27 +00:00
nicm
2a7b4bb017
Fix send-keys with UTF-8.
2016-12-08 22:15:37 +00:00
nicm
5819d2a9d7
Do not clear the prompt when a message is shown, just leave it around and
...
return to it when the message is finished.
2016-12-07 23:03:04 +00:00
nicm
5ea143f521
Only skip moving the cursor if it is already in the last position _on
...
the same line_, fixes redraw bug reported by patrick keshishian.
2016-12-07 09:16:55 +00:00