summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
AgeCommit message (Collapse)Author
2009-11-26Continue rather than returning if not a mouse key, to avoid hanging on anyNicholas Marriott
function key...
2009-11-26Remove a couple of unused arguments where possible, and add /* ARGSUSED */ toNicholas Marriott
the rest to reduce lint output.
2009-11-26Rename a variable to something more helpful.Nicholas Marriott
2009-11-26Get a u_char from the string, otherwise it isn't possible to enter \0377 as itNicholas Marriott
is mistaken for EOF (doh). Also drop an unused argument.
2009-11-26Handle the possibility of partial mouse reads, and fix a comment while here.Nicholas Marriott
2009-11-26Emulate il1, dl1, ich1 to run (albeit slowly) with vt100 feature set.Nicholas Marriott
2009-11-25Output the right keys for application and number keypad modes (they were theNicholas Marriott
wrong way round).
2009-11-24Add a -p flag to display-message to print the output rather than displaying inNicholas Marriott
the status line, this allows things like "display -p '#W'" to find the current window index.
2009-11-22Add cursor keys to the key names list.Nicholas Marriott
2009-11-21Use home from struct passwd if HOME is empty as well as if it is NULL, and fixNicholas Marriott
a style nit. Both from Tiago Cunha.
2009-11-20When -h and -p are given to split-window, calculate the percentage size usingNicholas Marriott
the width instead of the height.
2009-11-20Display UTF-8 properly in status line messages and prompt. Cursor handling isNicholas Marriott
still way off though.
2009-11-20Remove oldest messages from log when limit is hit, not newest.Nicholas Marriott
2009-11-19Get some brackets in the right place so ## works. Also fix a space in aNicholas Marriott
comment.
2009-11-19Change status line drawing to create the window list in a separate screen andNicholas Marriott
then copy it into the status line screen. This allows UTF-8 in window names and fixes some problems with #[] in window-status-format.
2009-11-19Two new options, window-status-format and window-status-current-format, whichNicholas Marriott
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.
2009-11-19tweak previous;Jason McIntyre
2009-11-19Revert to xterm-keys off by default. It was on as an experiment to see if theNicholas Marriott
option could be removed, but it affects vi, so we have to keep the option, and a conservative default is better.
2009-11-19Tidy up by breaking the # replacement code into a separate function, also add aNicholas Marriott
few comments.
2009-11-19Don't interpret #() for display-message, it usually doesn't make sense and mayNicholas Marriott
leak commands.
2009-11-18Missed an unused variable :-/.Nicholas Marriott
2009-11-18Cleanup by moving various (mostly horrible) little bits handling UTF-8 gridNicholas Marriott
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.
2009-11-18Add a per-client log of status line messages displayed while that clientNicholas Marriott
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.
2009-11-18Mark -n keys with (no prefix) rather than [].Nicholas Marriott
2009-11-17Permit top-bit-set characters to be entered in the status line. They couldNicholas Marriott
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).
2009-11-17In choose mode, assign each item a number or lowercase letter from thoseNicholas Marriott
available and accept that as a shortcut key for the item.
2009-11-16A screen can be one cell wide; don't crash if that is the case.Nicholas Marriott
2009-11-16I made a complete horlicks of the last change, fix it so it doesn't either leadNicholas Marriott
to a double free or free the item after the end of the array.
2009-11-13Tweak a comment and add some spacing.Nicholas Marriott
2009-11-13Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in theNicholas Marriott
command entry structs and a couple of functions to check/set the flags.
2009-11-13Unreachable statement, found by lint.Nicholas Marriott
2009-11-13Tidy up and fix some types, prompted by lint via deraadt.Nicholas Marriott
2009-11-13imsg_read returns ssize_t not int, pointed out by lint via deraadt.Nicholas Marriott
2009-11-13Destroy panes immediately rather than checking them all every loop.Nicholas Marriott
2009-11-13Use winlink_remove() to remove old winlinks when synchronizing grouped sessionsNicholas Marriott
rather than doing it manually and not adjusted the reference count. Fixes crash seen by Dan Harnett.
2009-11-13Zap unused functions, prompted by deraadt.Nicholas Marriott
2009-11-12Emulate the ri (reverse index) capability: this allows tmux to at least startNicholas Marriott
on Sun consoles (TERM=sun or sun-color), even if there appear to still be problems on some boxes (my Blade 100 is fine but edd's Blade 1000 shows odd screen corruption).
2009-11-12Support rxvt-style keys again, but this time: support all the variations, putNicholas Marriott
them in as raw escape sequences rather than fiddling with the values from terminfo, put them /after/ the terminfo values so the latter take precedence.
2009-11-11Rewrite a confusing loop when freeing the arg array on exit and move the checkNicholas Marriott
for argv being NULL, prompted by parfait via deraadt. Also fix some definite brokenness when assigning multiple environment variables in arguments (such as "X=1 Y=2").
2009-11-11Add an explicit zero-length check for UTF-8 input data, prompted by a reportNicholas Marriott
from parfait via deraadt. While here, add a statement to set the width when filling with _s if not enough space (width should never be high enough at the moment anyway), and wrap some long lines.
2009-11-11Free the pane bufferevent when the fd is closed (the signal could come beforeNicholas Marriott
the error callback).
2009-11-11Only need to chmod +x or -x the socket when a client is created, lost orNicholas Marriott
attached, rather than every event loop.
2009-11-10There is no real standard for modifier plus function keys. Previously, tmuxNicholas Marriott
output some from rxvt but in other ways did the same as xterm or other terminals, but this is a bit inconsistent. xterm's method is fairly sensible and we already support it (xterm-keys), so enable it by default instead.
2009-11-10Don't output rxvtisms either.Nicholas Marriott
2009-11-10Twiddling the last bit is an rxvtism, so do not support it in the table byNicholas Marriott
default.
2009-11-10Whoops, this is needed for last commit as well.Nicholas Marriott
2009-11-10Lookup key as a named key (eg 'Space') before checking for single characterNicholas Marriott
keys, makes C-Space/M-Space etc resolve to the correct key code.
2009-11-10Don't return 1 unless there was actually a problem (signal/lost server) ratherNicholas Marriott
than for all events (normal exit/detach/etc).
2009-11-09Just ignore tty fd errors rather than dying, stops the server dying if theNicholas Marriott
session is disconnected abrubtly (eg ssh ~.).
2009-11-09The input key should be a u_char. Fixes top-bit-set input problem reported byNicholas Marriott
ajacoutot@.