Nicholas Marriott
eed4f7600d
Fix $Id$.
2009-06-29 22:04:51 +00:00
Nicholas Marriott
1496aa5dbc
Remove some unused function declarations; no binary change.
2009-06-26 22:18:03 +00:00
Nicholas Marriott
81b4aca934
#ifndef nitems.
2009-06-26 15:31:15 +00:00
Nicholas Marriott
802e129fd7
Start of portability update: bitstring.h.
2009-06-25 17:02:59 +00:00
Nicholas Marriott
a9e3d5c56a
More diff-to-OpenBSD reduction. Move a lot of compat stuff into compat.h.
2009-06-25 16:47:00 +00:00
Nicholas Marriott
bb459beb03
Whitespace and more syncing.
2009-06-25 16:34:50 +00:00
Nicholas Marriott
6cde05147e
No more xmalloc-debug.
2009-06-25 16:25:15 +00:00
Nicholas Marriott
a5830b9603
Restore $Id$ and add script to do so.
2009-06-25 16:21:32 +00:00
Nicholas Marriott
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
Nicholas Marriott
582660bdf3
Miscellaneous unused functions, including one which was basically a
...
duplicate. Found by lint.
2009-06-25 16:09:11 +00:00
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
245685433e
Constify utf8_width() function argument.
2009-06-25 16:00:50 +00:00
Nicholas Marriott
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
Nicholas Marriott
93631b3ca7
Implement the DEC alignment test. With the last change this is enough for the
...
first cursor test in vttest (in ports) to pass; it still shops a few more
problems though.
2009-06-25 15:51:54 +00:00
Nicholas Marriott
28bcf774e5
New session option, status-utf8, to control the interpretation of top-bit-set
...
characters in status-left and status-right (if on, they are treated as UTF-8;
otherwise passed through).
2009-06-25 15:48:25 +00:00
Nicholas Marriott
1e06ec41dc
Add a UTF-8 aware string length function and make UTF-8 in
...
status-left/status-right work properly. At the moment any top-bit-set
characters are assumed to be UTF-8: a status-utf8 option to configure this will
come shortly.
2009-06-25 15:47:07 +00:00
Nicholas Marriott
0828e06ad7
Nuke unused pane flag.
2009-06-25 15:46:09 +00:00
Nicholas Marriott
3a55871d04
Now in base.
2009-05-26 18:31:10 +00:00
Nicholas Marriott
6c442c19ba
UPPER -> BIG, sort, and bump protocol version.
2009-05-21 19:46:00 +00:00
Nicholas Marriott
6db7bd6791
Try to guess if the window is UTF-8 by outputting a three-byte UTF-8 wide character and seeing how much the cursor moves. Currently tries to figure out if this works by some stupid checks on the terminal, these need to be rethought. Also might be better using a width 1 character rather than width 2.
2009-05-19 16:08:35 +00:00
Tiago Cunha
80af85a102
- New window option monitor-content to search for a string in a window, and
...
highlight the status line if it matches.
- To make this possible, the function cmd_find_window_search from
cmd-find-window.c had to be moved to window.c and renamed window_pane_search.
- While there use three new functions in server.c to check for bell, activity,
and content, to avoid too much nesting.
2009-05-19 13:32:55 +00:00
Nicholas Marriott
6e4b947d71
New option main-pane-width to set width of pane in left-vertical mode.
2009-05-18 21:55:53 +00:00
Nicholas Marriott
404411f5e7
horizontal -> h, vertical -> v, to shorten some function names a little.
2009-05-18 21:29:11 +00:00
Nicholas Marriott
d601c42ea2
Behave properly when resize not supported.
2009-05-18 21:16:09 +00:00
Nicholas Marriott
5518b6138d
manual -> manual-vertical.
2009-05-18 21:06:16 +00:00
Nicholas Marriott
ab4e5e8574
Clean up manual layout code:
...
- change the one layout function into two _refresh and _resize
- create layout-manual.c for manual layout code
- move the fit panes/update panes code from window.c to the new file as it is only used by manual layout now
- move the resize pane code into layout-manual.c as well
- get rid of the direct calls to fit/update and make them go through layout
- rename a couple of variables
This is mainly as a first step before reworking the manual layout code to see if anything breaks.
2009-05-18 21:01:38 +00:00
Nicholas Marriott
1001902143
select-layout command and some key bindings.
2009-05-16 11:48:47 +00:00
Nicholas Marriott
03af7c99b5
Recreate server socket on SIGUSR1, per SF feature request 2792533.
2009-05-16 10:02:51 +00:00
Nicholas Marriott
cba338ac13
Keys in status line (p in vi mode, M-y in emacs) to paste the first line of the upper paste buffer. Suggested by Dan Colish.
2009-05-14 19:36:56 +00:00
Nicholas Marriott
96ca072482
clear-history command.
2009-05-14 16:56:23 +00:00
Nicholas Marriott
c8cf438d44
Rename all feature flags to HAVE_* and move out of makefiles into a configure
...
script which must be run before building.
Still two makefiles but they are a hell of a lot simpler.
HAVE_* also will make it easier to move to $buildsystem if necessary later.
2009-05-13 23:27:00 +00:00
Nicholas Marriott
792aeb926e
Use getopt.c from openssh rather than OpenBSD's getopt_long.
2009-05-13 22:20:48 +00:00
Nicholas Marriott
143aa718e5
Space trimmage mega-diff.
2009-05-04 17:58:27 +00:00
Nicholas Marriott
fb543c7707
Use ACS for line drawing characters.
2009-05-04 13:20:02 +00:00
Nicholas Marriott
9164dd63e7
Only worry about complete seconds for status line update. Also reduce poll interval and de-magic-number it.
2009-05-02 08:34:39 +00:00
Nicholas Marriott
044e6f7660
previous-layout command.
2009-04-30 21:17:06 +00:00
Nicholas Marriott
a6f2d82335
Use a (pre)randomised binary tree for UTF-8 character widths. Probably overkill
...
but meh.
2009-04-30 20:54:53 +00:00
Nicholas Marriott
a583bbb730
Display the layout name in window lists.
2009-04-30 16:27:29 +00:00
Nicholas Marriott
cdf472f2de
Merge resize-pane-{up,down} into resize-pane.
2009-04-30 06:01:24 +00:00
Nicholas Marriott
cc9cc1aea8
Some tweaks for Solaris.
...
Get rid of vis.* in favour of a small replacement function.
2009-04-29 22:25:20 +00:00
Nicholas Marriott
f0a716f484
Use a u_char so top-bit-set update the cursor as well.
2009-04-29 17:50:52 +00:00
Nicholas Marriott
5d1b6888dc
Convert hidden flag to a full flags word for the status line and add a flag to
...
accept after only one key. Use this so don't need to press enter after y/n for
confirm-before.
2009-04-27 17:27:36 +00:00
Nicholas Marriott
d8a35ffa50
Perform some black and midnight cpp witchcraft to get rid of GRID_DEBUG, to fix
...
building with -DDEBUG on gcc2 platforms. From joshe.
2009-04-27 14:51:59 +00:00
Tiago Cunha
058772e4e6
- confirm-before command.
...
- Bound "&" and "x" by default to confirm-before "kill-window" and
confirm-before "kill-pane", respectively.
2009-04-27 13:21:16 +00:00
Nicholas Marriott
5fbdca890a
Use the xenl terminfo flag to detect early-wrap terminals like the FreeBSD
...
console. Many thanks for a very informative email from Christian Weisgerber.
2009-04-23 21:09:17 +00:00
Nicholas Marriott
325d43e417
rotate-window command.
2009-04-03 17:21:46 +00:00
Nicholas Marriott
8216f7b3d9
swap-pane command.
2009-04-02 23:28:16 +00:00