Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-07-22 | More tty code tidying: move the saved cursor/region position (from before the | Nicholas Marriott | |
screen was updated) out of struct screen and into struct tty_ctx. | |||
2009-07-22 | log_debug3 no longer exists, change the sole use in GRID_DEBUG to log_debug2. | Nicholas Marriott | |
2009-07-22 | enum tty_cmd is only used as an index into the array of command function | Nicholas Marriott | |
pointers, so remove it and use the function pointers directly to represent themselves. | |||
2009-07-22 | There are relatively few arguments to tty_cmd_* functions now, so tidy them up | Nicholas Marriott | |
by using a struct rather than hiding everything with varargs. | |||
2009-07-22 | tty_cmd_raw is only used once, for raw UTF-8 output, so rename it to | Nicholas Marriott | |
tty_cmd_utf8character and eliminate the size argument. | |||
2009-07-21 | Adjust field width to fit longest key when listing. | Nicholas Marriott | |
2009-07-21 | Remove leftover debug logging of password. | Nicholas Marriott | |
2009-07-21 | Make some functions which return unused values void (mostly found by lint) and | Nicholas Marriott | |
tweak a redundant expression in window_pane_set_mode. | |||
2009-07-21 | Nix a few unused attributes on arguments which are no longer unused. | Nicholas Marriott | |
2009-07-21 | Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by | Nicholas Marriott | |
lint. | |||
2009-07-21 | __progname is not const, pointed out by deraadt. | Nicholas Marriott | |
2009-07-21 | Tidy up keys: use an enum for the key codes, and remove the macros which just | Nicholas Marriott | |
wrap flag sets/clears/tests. | |||
2009-07-20 | Now that #P could be in the status line, flag it for redraw when the active | Nicholas Marriott | |
pane changes. | |||
2009-07-20 | Tweak unbind-key language very slightly. | Nicholas Marriott | |
2009-07-20 | Display the number of failed password attempts (if any) when the server is | Nicholas Marriott | |
locked. From Tom Doherty. | |||
2009-07-20 | Add a status-justify option to allow the window list in the status line to be | Nicholas Marriott | |
positioned at the left, centre, or right. | |||
2009-07-20 | New options, window-status-current-{fg,bg,attr}, to set the fg, bg and | Nicholas Marriott | |
attributes with which the current window is shown in the status line. From Johan Friis, thanks. | |||
2009-07-20 | Kill some dead stores and fix a null pointer deref, found by clang. | Nicholas Marriott | |
2009-07-20 | Move the offsets as well when swapping panes. | Nicholas Marriott | |
2009-07-19 | tweak previous; | Jason McIntyre | |
2009-07-19 | Improved layout code. | Nicholas Marriott | |
Each window now has a tree of layout cells associated with it. In this tree, each node is either a horizontal or vertical cell containing a list of other cells running from left-to-right or top-to-bottom, or a leaf cell which is associated with a pane. The major functional changes are: - panes may now be split arbitrarily both horizontally (splitw -h, C-b %) and vertically (splitw -v, C-b "); - panes may be resized both horizontally and vertically (resizep -L/-R/-U/-D, bound to C-b left/right/up/down and C-b M-left/right/up/down); - layouts are now applied and then may be modified by resizing or splitting panes, rather than being fixed and reapplied when the window is resized or panes are added; - manual-vertical layout is no longer necessary, and active-only layout is gone (but may return in future); - the main-pane layouts now reduce the size of the main pane to fit all panes if possible. Thanks to all who tested. | |||
2009-07-18 | Add three new session options: visual-activity, visual-bell, visual-content. If | Nicholas 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-17 | Make it so using kill-pane to destroy the last pane in a window destroys the | Nicholas Marriott | |
window instead of being an error. | |||
2009-07-17 | - New command display-message (alias display) to display a message in the | Nicholas 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-17 | When resizing a screen smaller in alternate screen mode, all the lines needed | Nicholas 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-17 | Tidy up new-session and attach-session and change them to work from inside | Nicholas Marriott | |
tmux, switching the current client to the new or requested session. Written with Josh Elsasser. | |||
2009-07-17 | Remove a duplicate key binding, and turn off autorepeat for up/down as it is | Nicholas Marriott | |
kind of annoying by default. | |||
2009-07-17 | If -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-17 | Oops, it is always a good idea to get arguments the right way round. | Nicholas Marriott | |
2009-07-17 | A similar for fix for window_choose: don't rely on the callback always being | Nicholas Marriott | |
called to free data, have a separate free callback and call it from the mode cleanup code. | |||
2009-07-17 | Memory could be leaked if a second prompt or message appeared while another was | Nicholas 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-16 | Remove some duplicate code that was causing the status line to be redrawn even | Nicholas Marriott | |
when it hadn't changed. | |||
2009-07-16 | Fix arguments to switch-client. | Nicholas Marriott | |
2009-07-16 | Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrong | Nicholas Marriott | |
place when copying UTF-8 data. Found by Dan Colish. | |||
2009-07-15 | Make status_message_set a variadic printf-like function. No functional change - | Nicholas Marriott | |
helpful for a couple of things coming soon. | |||
2009-07-15 | Return -1 not NULL on error, pointed out by Roy Marples. | Nicholas Marriott | |
2009-07-15 | Add a -k flag to unlink-window which makes it behave the same as the old | Nicholas Marriott | |
kill-window - if a window is linked into only one session it unlinked and destroyed. | |||
2009-07-15 | The man page says that kill-window removes the window entirely, unlinking it | Nicholas 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-15 | Having to update NSETOPTION/NSETWINDOWOPTION when adding new options is a bit | Nicholas 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-14 | Add main-pane-height to the options list (was missed before). | Nicholas Marriott | |
2009-07-14 | For some reason when clearing status/message it was redrawing the entire client | Nicholas Marriott | |
not just the status line. Changing this also revealed the check for the status line was incorrect when drawing the pane. | |||
2009-07-14 | Instead of faking up a status line in status_redraw, use the same code to | Nicholas 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-14 | Don't accept input to a window if it not visible. | Nicholas Marriott | |
2009-07-14 | The scroll region cannot be one line only, ignore attempts to make it so. | Nicholas Marriott | |
2009-07-14 | Get rid of the PANE_HIDDEN flag in favour of a function, and moving the | Nicholas 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-14 | Need time.h not sys/time.h for time(2). | Nicholas Marriott | |
2009-07-14 | Add backspace key to named keys. | Nicholas Marriott | |
2009-07-14 | Since tmux doesn't actually need ncurses, use -lcurses/curses.h | Nicholas Marriott | |
instead. Pointed out by millert a while ago. | |||
2009-07-13 | Having fixed flags for single-character getopt options is a bit hard to | Nicholas 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-13 | zap trailing whitespace; | Jason McIntyre | |