summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
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-21use strtonum(3) and strtol(3) instead of sscanf(3)Alexandre Ratchov
suggested by deraadt@
2009-11-21spellingTheo de Raadt
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-20correct off-by-one in percent_expand(): we would fatal() when tryingDamien Miller
to expand EXPAND_MAX_KEYS, allowing only EXPAND_MAX_KEYS-1 to actually work. Note that nothing in OpenSSH actually uses close to this limit at present. bz#1607 from Jan.Pechanec AT Sun.COM
2009-11-20Use the HostKeyAlias when prompting for passwords. bz#1039, ok djm@Darren Tucker
2009-11-20bz#1588 change "Connecting to host..." message to "Connected to host."Damien Miller
and delay it until after the sftp protocol connection has been established. Avoids confusing sequence of messages when the underlying ssh connection experiences problems. ok dtucker@
2009-11-20Warn but do not fail if stat()ing the subsystem binary fails. This helpsDarren Tucker
with chrootdirectory+forcecommand=sftp-server and restricted shells. bz #1599, ok djm.
2009-11-19bz#1606: error when an attempt is made to connect to a serverDamien Miller
with ForceCommand=internal-sftp with a shell session (i.e. not a subsystem session). Avoids stuck client when attempting to ssh to such a service. ok dtucker@
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-17fix incorrect exit status when multiplexing and channel ID 0 is recycledDamien Miller
bz#1570 reported by peter.oliver AT eon-is.co.uk; ok dtucker
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-15If two (or more) inputs use channel ranges having no intersection,Alexandre Ratchov
then don't reduce their dynamic range to ``share the volume''.
2009-11-15some fixes from Seth Wright;Jason McIntyre
2009-11-15do not leak a lot of memory if a small memory allocation fails, found byTheo de Raadt
parfait ok kettenis guenther
2009-11-14fix leaks in error paths found by parfaitJonathan Gray
ok deraadt@
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-12fix memory leak found by parfait; ok jsg@Todd C. Miller
2009-11-12Fix memory leak found by parfait.Nicholas Marriott
ok deraadt
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-12Use the default 4 correctly if no type size is given to od -t.Nicholas Marriott
ok deraadt miod
2009-11-12When values are changed, log the change in the ``name: old -> new''Alexandre Ratchov
format, as mixerctl does. If -n is used log the new value only. from Pawlowski Marcin Piotr <pmp.openbsd at gmail.com>, thanks. ok jakemsr
2009-11-12if a value is changed and -n is used, print the new value only.Alexandre Ratchov
from Pawlowski Marcin Piotr <pmp.openbsd at gmail.com> ok jakemsr
2009-11-11Fix memory leaks found by parfait.Nicholas Marriott
ok deraadt@ jsg@
2009-11-11fix race condition in x11/agent channel allocation: don't read afterMarkus Friedl
the end of the select read/write fdset and make sure a reused FD is not touched before the pre-handlers are called. with and ok djm@
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.