1aaf47e698
Apparently NetBSD's tcgetpgrp is good enough to use, so don't need to play
...
complicated games, from Roy Marples.
2009-06-26 15:54:52 +00:00
de2ea2d178
Status line fixes: don't truncate status-right now the length calculation is
...
done for UTF-8, limit to the maximum length correctly when printing, and always
print a space even if the left string is longer than the width available.
2009-06-26 15:34:12 +00:00
3fcbe1e27b
Remove some dead assignments, found by sthen with clang.
2009-06-26 15:32:00 +00:00
81b4aca934
#ifndef nitems.
2009-06-26 15:31:15 +00:00
1ec736a3dc
Status line fixes: don't truncate status-right now the length calculation is
...
done for UTF-8, limit to the maximum length correctly when printing, and always
print a space even if the left string is longer than the width available.
2009-06-26 15:13:39 +00:00
c506e7f711
Also #ifndef nitems here, caught by Thomas Jeunet.
2009-06-26 10:55:37 +00:00
eb8ab96980
Remove some dead assignments, found by sthen with clang.
2009-06-25 22:09:20 +00:00
e225ce0fd7
#ifndef nitems to avoid redefining it if it is already in a header.
2009-06-25 22:08:15 +00:00
63753735ec
Update TODO.
2009-06-25 21:25:36 +00:00
32312e0252
vis compat stuff.
2009-06-25 20:27:32 +00:00
802e129fd7
Start of portability update: bitstring.h.
2009-06-25 17:02:59 +00:00
f1463ff3c1
Lose -V.
2009-06-25 16:56:08 +00:00
0af7fa08d2
Skip 8 line diffs ($Id$ change only).
2009-06-25 16:54:21 +00:00
20002ec6cd
Comparison script.
2009-06-25 16:49:22 +00:00
8fc34ca044
libgen.h.
2009-06-25 16:49:02 +00:00
a9e3d5c56a
More diff-to-OpenBSD reduction. Move a lot of compat stuff into compat.h.
2009-06-25 16:47:00 +00:00
bb459beb03
Whitespace and more syncing.
2009-06-25 16:34:50 +00:00
8df98d1f5b
Don't need linker magic anymore.
2009-06-25 16:25:55 +00:00
6cde05147e
No more xmalloc-debug.
2009-06-25 16:25:15 +00:00
8565ae234b
Fix rejects.
2009-06-25 16:23:35 +00:00
3eb1bfddd4
Sync this properly.
2009-06-25 16:22:36 +00:00
a5830b9603
Restore $Id$ and add script to do so.
2009-06-25 16:21:32 +00:00
f17a5f1e82
If getcwd() fails, use the user's home directory, or /, instead of failing with
...
an error.
2009-06-25 16:11:12 +00:00
bfa46e8f91
lines variable can be -1 (to be ignored), so should be signed. Found by lint.
2009-06-25 16:10:18 +00:00
f0bcbcfa7f
Remove error about using -L and -S together which was never displayed as
...
logging wasn't yet enabled, was unnecessary, and contradicted the man page
which says using -S will cause -L to be ignored.
2009-06-25 16:09:38 +00:00
1b9ac18565
tmux doesn't and won't need syslog logging, so remove it and some other unused
...
functions found by lint.
2009-06-25 16:09:25 +00:00
582660bdf3
Miscellaneous unused functions, including one which was basically a
...
duplicate. Found by lint.
2009-06-25 16:09:11 +00:00
62822b1848
Nuke unused buffer functions. Found by lint.
...
Also remove some old debug output which was #if 0.
2009-06-25 16:07:00 +00:00
abb5e36199
Unused prototypes. Found by lint, no binary change.
2009-06-25 16:06:09 +00:00
947fabc751
Unused variables. Found by lint, no binary change.
2009-06-25 16:05:39 +00:00
a03ae97fbf
Now that a UTF-8-capable puts function exists, use it for printing strings in
...
choice/more modes - lines with UTF-8 now display properly in find-window
results.
2009-06-25 16:05:00 +00:00
3ec8efc803
Fix a type mismatch warning in assignment.
2009-06-25 16:04:43 +00:00
f7a9eb46fc
Change find-window and monitor-content to use fnmatch(3). For convenience and
...
compatibility, *s are implicitly added at the start and end of the pattern.
2009-06-25 16:04:24 +00:00
853ad68162
Add a dedicated function to convert a line into a string and use it to simplify the search window function.
2009-06-25 16:02:37 +00:00
e6e1b45fa1
Change to match xterm's resizing behaviour, including pushing lines into the
...
history from the top when reducing vertical size and pulling them again when
increasing size.
2009-06-25 16:02:10 +00:00
944520b3a8
Make remain-on-exit work again when there is only one pane left, which was
...
broken sometime during the pane/layout changes. Reported/tested by Iain Morgan,
thanks.
2009-06-25 16:01:42 +00:00
942ea4267d
Trying to predict the cursor position for UTF-8 output in the same way as for
...
normal eight-bit output is wrong, separate it into a different function. Fixes
spacing when mixing UTF-8 with some escape sequences, notably the way w3m does
it.
2009-06-25 16:01:26 +00:00
245685433e
Constify utf8_width() function argument.
2009-06-25 16:00:50 +00:00
7eff7f7629
If a pane is "zombified" (remain-on-exit flag), don't continue to queue key and
...
mouse input for it (otherwise they are processed after respawn).
2009-06-25 16:00:25 +00:00
cd5a4f4c35
LC_ALL overrides LC_CTYPE and LANG. Comment was correct but the code
...
wrong. Pointed out by Hannah Schroeter, thanks.
2009-06-25 16:00:02 +00:00
7be69bfa03
Terminate cwd buffer before running xstrdup on it.
2009-06-25 15:59:42 +00:00
6f4600c533
Check the first of LC_CTYPE, LC_ALL and LANG, rather than just the last, when
...
trying to decide about UTF-8, and use strcasestr. Reported by Geert Hendrickx.
2009-06-25 15:59:27 +00:00
fbcee9f114
strdup the input to putenv to avoid in one case passing a string that is later
...
freed and in the other const strings.
2009-06-25 15:58:58 +00:00
0e95769b43
Call setproctitle earlier in the client, and include the socket name. Makes it
...
easier to match client to server in ps/pgrep when using several servers.
2009-06-25 15:58:33 +00:00
b9155e835a
Print a better message than '(null)' if no command is specified ("tmux \;").
2009-06-25 15:56:39 +00:00
f90450f854
Zero the password given to -U in the client as well.
2009-06-25 15:56:25 +00:00
418128bebc
If the prompt is hidden or a password is sent with -U, zero it before freeing
...
it.
2009-06-25 15:55:34 +00:00
63b38ef628
Implement the CBT (backward tab) sequence (\033[Z).
2009-06-25 15:54:57 +00:00
1b245388b5
Proper support for tab stops (\033H etc), using a bitstring(3). Makes another
...
vttest test happy.
2009-06-25 15:54:38 +00:00
cd71a13a14
Okay, so I screwed up when testing this, doh. Unbreak so that CAN/SUB actually
...
do cancel the sequence, and tweak to make the code more clear.
2009-06-25 15:54:03 +00:00