Age | Commit message (Collapse) | Author |
|
New command, capture-pane, which copies the entire pane contents to a paste
buffer. From Jonathan Alvarado.
|
|
Look for mice and xterm keys before standard function keys as they are less
likely to be partial versions.
|
|
Handle partial xterm function key sequences.
|
|
|
|
Add a couple of comments.
|
|
This doesn't need to be u_int.
|
|
Make types clearer and lint happier.
|
|
Fix type - attributes should be u_char not int.
|
|
Change paranoia check to check for <= 0 and to avoid warning.
|
|
Tidy up various bits of the paste code, make the data buffer char * and add
comments.
|
|
Continue rather than returning if not a mouse key, to avoid hanging on any
function key...
|
|
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to
the rest to reduce lint output.
|
|
Rename a variable to something more helpful.
|
|
Get a u_char from the string, otherwise it isn't possible to enter \0377 as it
is mistaken for EOF (doh).
Also drop an unused argument.
|
|
Handle the possibility of partial mouse reads, and fix a comment while here.
|
|
Emulate il1, dl1, ich1 to run (albeit slowly) with vt100 feature set.
|
|
Output the right keys for application and number keypad modes (they were the
wrong way round).
|
|
Add a -p flag to display-message to print the output rather than displaying in
the status line, this allows things like "display -p '#W'" to find the current
window index.
|
|
Add cursor keys to the key names list.
|
|
their act together, so add an ifdef to use ncurses.h instead of curses.h.
Untested.
|
|
|
|
|
|
|
|
|
|
Use home from struct passwd if HOME is empty as well as if it is NULL, and fix
a style nit. Both from Tiago Cunha.
|
|
When -h and -p are given to split-window, calculate the percentage size using
the width instead of the height.
|
|
Display UTF-8 properly in status line messages and prompt. Cursor handling is
still way off though.
|
|
Remove oldest messages from log when limit is hit, not newest.
|
|
Get some brackets in the right place so ## works. Also fix a space in a
comment.
|
|
|
|
Change status line drawing to create the window list in a separate screen and
then copy it into the status line screen. This allows UTF-8 in window names and
fixes some problems with #[] in window-status-format.
|
|
|
|
Two new options, window-status-format and window-status-current-format, which
allow the format of each window in the status line window list to be controlled
using similar # sequences as status-left/right.
This diff also moves part of the way towards UTF-8 support in window names but
it isn't quite there yet.
|
|
tweak previous;
|
|
Revert to xterm-keys off by default. It was on as an experiment to see if the
option could be removed, but it affects vi, so we have to keep the option, and
a conservative default is better.
|
|
Tidy up by breaking the # replacement code into a separate function, also add a
few comments.
|
|
|
|
Don't interpret #() for display-message, it usually doesn't make sense and may
leak commands.
|
|
Missed an unused variable :-/.
|
|
Cleanup by moving various (mostly horrible) little bits handling UTF-8 grid
data into functions in a new file, grid-utf8.c, and use sizeof intead of
UTF8_DATA.
Also nuke trailing whitespace from tmux.1, reminded by jmc.
|
|
Add a per-client log of status line messages displayed while that client
exists. A new message-limit session option sets the maximum number of entries
and a command, show-messages, shows the log (bound to ~ by default).
This (and prompt history) might be better as a single global log but until
there are global options it is easier for them to be per client.
|
|
Mark -n keys with (no prefix) rather than [].
|
|
|
|
Permit top-bit-set characters to be entered in the status line. They could
already be set from the shell and are just passed through when printing (so
invisible characters or displaying on terminals with different character sets
may cause problems).
Note that entering UTF-8 may not work and in any case currently the status line
cannot display it correctly (outside of status-left/status-right).
|
|
In choose mode, assign each item a number or lowercase letter from those
available and accept that as a shortcut key for the item.
|
|
A screen can be one cell wide; don't crash if that is the case.
|
|
I made a complete horlicks of the last change, fix it so it doesn't either lead
to a double free or free the item after the end of the array.
|
|
Tweak a comment and add some spacing.
|
|
Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the
command entry structs and a couple of functions to check/set the flags.
|
|
Unreachable statement, found by lint.
|