summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2009-07-18sync to 1.8.0: cleanup: remove offset and rmargin from termpairIngo Schwarze
2009-07-18sync to 1.8.0: remove ambiguous TERMPAIR_SETFLAG macro and set flags manuallyIngo Schwarze
2009-07-18sync to 1.8.0: consolidated Bsx, Dx, Fx, Nx, Ox, Ux into one common functionIngo Schwarze
2009-07-18sync to 1.8.0: avoid duplicate warning about a malformed NAME sectionIngo Schwarze
when the next section following NAME is a custom section
2009-07-18sync to 1.8.0: .Nd is now a BFI, was an ELEM,Ingo Schwarze
and use \(en instead of \- for .Nd
2009-07-18Add three new session options: visual-activity, visual-bell, visual-content. IfNicholas Marriott
these are enabled (and the monitor-activity, bell-actio and monitor-content options are configurated appropriately), when activity, a bell, or content is detected, a message is shown. Also tidy up the bell/activity/content code in server.c slightly and fix a couple of errors.
2009-07-18sync to 1.8.0: <sys/types.h> needed for u_char; <uqs at spoerlein dot net>Ingo Schwarze
2009-07-18Don't assign NULL to an integer type, use 0 instead.Jonathan Gray
No binary change.
2009-07-18restore -S as toggle;Jason McIntyre
from Mark Lumsden ok oga
2009-07-17Make it so using kill-pane to destroy the last pane in a window destroys theNicholas Marriott
window instead of being an error.
2009-07-17- New command display-message (alias display) to display a message in theNicholas Marriott
status line (bound to "i" and displays the current window and time by default). The same substitutions are applied as for status-left/right. - Add support for including the window index (#I), pane index (#P) and window name (#W) in the message, and status-left or status-right. - Bump protocol version. From Tiago Cunha, thanks!
2009-07-17When resizing a screen smaller in alternate screen mode, all the lines neededNicholas Marriott
could be consumed by deleting from the bottom, leaving none to be removed from the top. In this case, don't call grid_view_delete_lines with ny of 0 as this is incorrect and causes a bounds check to fatal error if built with -DDEBUG.
2009-07-17be more careful with parsing format string. we can't do multipleMartynas Venckus
widths or precisions. fixes crash reported by Maksymilian Arciemowicz, where printf(3) took more args from stack than printf(1) passed it. behavior consistent with linucses and ieee 1003.1-2001. ok millert@, otto@
2009-07-17Tidy up new-session and attach-session and change them to work from insideNicholas Marriott
tmux, switching the current client to the new or requested session. Written with Josh Elsasser.
2009-07-17revert 1.38: naddy looked closer at the output and some of the sections ↵Ted Unangst
don't make sense without the headers anymore
2009-07-17Remove a duplicate key binding, and turn off autorepeat for up/down as it isNicholas Marriott
kind of annoying by default.
2009-07-17If -u is specified or UTF-8 is otherwise detected when the server is started,Nicholas Marriott
enable the utf8 and status-utf8 optons. While here, note in the man page that the server is started with the first session and exits when none remain.
2009-07-17Oops, it is always a good idea to get arguments the right way round.Nicholas Marriott
2009-07-17A similar for fix for window_choose: don't rely on the callback always beingNicholas Marriott
called to free data, have a separate free callback and call it from the mode cleanup code.
2009-07-17Memory could be leaked if a second prompt or message appeared while another wasNicholas Marriott
still present, so add a separate prompt free callback and make the _clear function responsible for calling it if necessary (rather than the individual prompt callbacks). Also make both messages and prompts clear any existing when a new is set. In addition, the screen could be modified while the prompt is there, restore the redraw-entire-screen behaviour on prompt clear; add a comment as a reminder.
2009-07-16Remove some duplicate code that was causing the status line to be redrawn evenNicholas Marriott
when it hadn't changed.
2009-07-16make the inet6 output a little more like everything else.Ted Unangst
ok deraadt + a small fix from damien
2009-07-16Fix arguments to switch-client.Nicholas Marriott
2009-07-16use argument name for -T consistently in synopsis and description.Igor Sobrado
ok jmc@
2009-07-16fix word order;Jason McIntyre
from gb, documentation/6191
2009-07-16Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrongNicholas Marriott
place when copying UTF-8 data. Found by Dan Colish.
2009-07-15Make status_message_set a variadic printf-like function. No functional change -Nicholas Marriott
helpful for a couple of things coming soon.
2009-07-15Return -1 not NULL on error, pointed out by Roy Marples.Nicholas Marriott
2009-07-15Add a -k flag to unlink-window which makes it behave the same as the oldNicholas Marriott
kill-window - if a window is linked into only one session it unlinked and destroyed.
2009-07-15The man page says that kill-window removes the window entirely, unlinking itNicholas Marriott
from any sessions. In fact the implementation only affected the current session, making it the same as unlink-window but destroying the window if it was linked into only one session (unlinkw gives an error). Change the behaviour to match what it documented and was originally intended.
2009-07-15Having to update NSETOPTION/NSETWINDOWOPTION when adding new options is a bitNicholas Marriott
annoying and it is only use for iterating, so use a sentinel to mark the end of each array instead. Different fix for a problem pointed out by Kalle Olavi Niemitalo.
2009-07-14Add main-pane-height to the options list (was missed before).Nicholas Marriott
2009-07-14For some reason when clearing status/message it was redrawing the entire clientNicholas Marriott
not just the status line. Changing this also revealed the check for the status line was incorrect when drawing the pane.
2009-07-14Instead of faking up a status line in status_redraw, use the same code toNicholas Marriott
redraw it as to draw the entire screen, just skip all lines but the last. This makes horizontal split redraw properly when the status line is off.
2009-07-14use static for inline so compilers with c99 inline semanticsJonathan Gray
generate the same linkage as those with c89 semantics. ok sthen@
2009-07-14unveil that time(1) accepts optional arguments for the utility operand,Igor Sobrado
this way we not only improve the synopsis accuracy but also match descriptions provided by IEEE Std 1003.1-2008, FreeBSD and NetBSD for this command; while here, synchronize the operand name. description for the optional arguments proposed by jmc@ ok jmc@
2009-07-14Don't accept input to a window if it not visible.Nicholas Marriott
2009-07-14The scroll region cannot be one line only, ignore attempts to make it so.Nicholas Marriott
2009-07-14don't use both extern and static decls for a variable.Jonathan Gray
ok millert@
2009-07-14Get rid of the PANE_HIDDEN flag in favour of a function, and moving theNicholas Marriott
decision for whether or not a pane should be drawn out of the layout code and into the redraw code. This is needed for the new layout design, getting it in now to make that easier to work on.
2009-07-14Need time.h not sys/time.h for time(2).Nicholas Marriott
2009-07-14Add backspace key to named keys.Nicholas Marriott
2009-07-14Since tmux doesn't actually need ncurses, use -lcurses/curses.hNicholas Marriott
instead. Pointed out by millert a while ago.
2009-07-13Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott
maintain and is only going to get worse as more are used. So instead, add a new uint64_t member to cmd_entry which is a bitmask of upper and lowercase options accepted by the command. This means new single character options can be used without the need to add it explicitly to the list.
2009-07-13zap trailing whitespace;Jason McIntyre
2009-07-13Token bucket filter has been killed.Michele Marchetto
ok claudio@ henning@ dlg@
2009-07-13Expand leading tildes in arguments, from Tiage Cunha.Nicholas Marriott
2009-07-13copy-mode and scroll-mode have a -u flag missing from usage, add it.Nicholas Marriott
2009-07-13Tidy up and improve target (-t) argument parsing:Nicholas Marriott
- move the code back into cmd.c and merge with the existing functions where possible; - accept "-tttyp0" as well as "-t/dev/ttyp0" for clients; - when looking up session names, try an exact match first, and if that fails look for it as an fnmatch pattern and then as the start of a name - if more that one session matches an error is given; so if there is one session called "mysession", -tmysession, -tmysess, -tmysess* are equivalent but if there is also "mysession2", the last two are errors; - similarly for windows, if the argument is not a valid index or exact window name match, try it against the window names as an fnmatch pattern and a prefix.
2009-07-13Support "alternate screen" mode (terminfo smcup/rmcup) typically used by fullNicholas Marriott
screen interactive programs to preserve the screen contents. When activated, it saves a copy of the visible grid and disables scrolling into and resizing out of the history; when deactivated the visible data is restored and the history reenabled.