aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * vi(1)-style half page scroll in copy and scroll modes. Move the vi full pageNicholas Marriott2009-08-13
| | | | | | | | | | | | | | scroll key to C-b instead of C-u and use C-u/C-d for half page scrolling with vi keys. In emacs mode, half page scrolling is bound to M-Up and M-Down. Suggested by merdely (about a year ago :-)).
| * Scroll by two less than the number of lines in the screen, like emacs, ratherNicholas Marriott2009-08-13
| | | | | | | | | | than by the entire screen, to make it easier to pull things out from under the line indicator. Suggested by claudio.
| * Disable mode-mouse (mouse in copy/choice mode) by default as it isn't veryNicholas Marriott2009-08-13
| | | | | | | | useful at the moment and causes confusion.
| * Add a base-index session option to specify the first index checked when lookingNicholas Marriott2009-08-13
| | | | | | | | for an index for a new window.
| * Allowing copy mode to scroll left and right is annoying, so limit it to theNicholas Marriott2009-08-13
| | | | | | | | | | | | | | | | real screen width. To indicate the cursor is at the end of the line rather than the cell before, put a '$' in the last cell. Also clear the selection when the terminal is resized to avoid tmux getting confused.
| * Rather than telling the client to exit in the function when creating a newNicholas Marriott2009-08-13
| | | | | | | | session detached, let the caller do it. Allows "tmux new -d \; attach" to work.
| * When creating a new session from the command-line where there is an externalNicholas Marriott2009-08-13
| | | | | | | | | | terminal, copy the termios(4) special characters and use them for new windows created in the new session. Suggested by Theo.
| * Redraw the screen after resizing.Nicholas Marriott2009-08-13
| |
| * It was originally intended that scroll mode would show content that wasNicholas Marriott2009-08-13
| | | | | | | | | | | | | | currently off-screen due to resize, but somewhere along the way this got lost. Restore this behaviour to scroll mode by fixing screen_write_copy to read up to the saved line length rather than the current screen width. Copy mode remains unaltered for now.
| * If the client passes zero for the window size in the identify message (which itNicholas Marriott2009-08-13
| | | | | | | | | | can, for example on serial terminals), reset it to 80x25, same as for resize messages. Problem reported by kettenis@.
| * A tty context must not be modified as it may be reused to update multipleNicholas Marriott2009-08-12
| | | | | | | | | | | | | | clients, so make it const. Also fix an actual modification which caused a hang when a session was connected to multiple terminals at least one of which was missing ich/ich1.
| * When started as the shell, __progname contains a leading -, so hardcode "tmux"Nicholas Marriott2009-08-12
| | | | | | | | for socket path and log files, and strip it when working out the shell.
| * imsg closes the fd after sending, so dup() STDIN_FILENO before passing it toNicholas Marriott2009-08-12
| | | | | | | | | | | | the parent, otherwise TIOCGWINSZ will fail when the window is resized (that could actually be moved into the server but this is more future-proof and avoids breaking the protocol).
| * Initialise log_fd to -1, prevents spurious disconnection of the client when itNicholas Marriott2009-08-11
| | | | | | | | | | | | ends up as fd 0 (likely if the server is started with "tmux start"). Also add some extra debugging messages to server.c.
| * Have the client pass its stdin fd to the server when identifying itself andNicholas Marriott2009-08-11
| | | | | | | | | | | | | | | | | | have the server use that rather than reopening the tty. If the fd isn't given, use the old behaviour (so no need for a version change). This allows tmux to be used as the shell, so also change so that when working out the command to execute if default-command is empty (the default), tmux will try not execute itself.
| * Add a TTY_OPENED flag and tidy a little.Nicholas Marriott2009-08-11
| |
| * Drop the no_stop argument to tty_close and tty_free in favour of a flag in theNicholas Marriott2009-08-11
| | | | | | | | tty struct.
| * Switch tmux to use imsg. This is the last major change to make theNicholas Marriott2009-08-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | client-server protocol more resilient and make the protocol versioning work properly. In future, the only things requiring a protocol version bump will be changes in the message structs, and (when both client and server have this change) mixing different versions should nicely report an error message. As a side effect this also makes the code tidier, fixes a problem with the way errors reported during server startup were handled, and supports fd passing (which will be used in future). Looked over by eric@, thanks. Please note that mixing a client with this change with an older server or vice versa may cause tmux to crash or hang - tmux should be completely exited before upgrading.
| * Add flags for 1+2 and 2 arguments to the generic target code, use it forNicholas Marriott2009-08-11
| | | | | | | | | | cmd-set-environment/option/window-option and remove the generic options parsing.
| * No arguments are the same as new-session and this requires the environment toNicholas Marriott2009-08-10
| | | | | | | | be sent, so set that flag too when argc == 0.
| * Reset the attributes after drawing all or part of the screen, and reset theNicholas Marriott2009-08-10
| | | | | | | | | | | | region before poll(2). This reduces (but does not eliminate) the chance of the attributes not being normal if tmux is disconnected without warning (ssh ~., reboot from inside, etc).
| * Use the right source and destination lines in grid_duplicate_lines.Nicholas Marriott2009-08-10
| |
| * some minor tweaks; ok nicmJason McIntyre2009-08-10
| |
| * zap trailing whitespace;Jason McIntyre2009-08-09
| |
| * Minor language tweaks, change which key bindings are summarised.Nicholas Marriott2009-08-09
| |
| * Nuke a dead variable found with clang and an unused declaration with lint.Nicholas Marriott2009-08-09
| |
| * Move the key bindings section to near the start, mention attach/detach in theNicholas Marriott2009-08-09
| | | | | | | | first section, and another couple of tweaks. Based on a diff from Theo.
| * Don't leak in the (rare) case of an invalid command at the end of a file notNicholas Marriott2009-08-09
| | | | | | | | terminated by a \n.
| * Use a temporary variable for strdup of const char *.Nicholas Marriott2009-08-08
| |
| * Infrastructure and commands to manage the environment for processes startedNicholas Marriott2009-08-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | within tmux. There is a global environment, copied from the external environment when the server is started and each sesssion has an (initially empty) session environment which overrides it. New commands set-environment and show-environment manipulate or display the environments. A new session option, update-environment, is a space-separated list of variables which are updated from the external environment into the session environment every time a new session is created - the default is DISPLAY.
| * Tidy function a little by using a temporary variable.Nicholas Marriott2009-08-08
| |
| * Options to set the colours and attributes for status-left/-right. From ThomasNicholas Marriott2009-08-08
| | | | | | | | Adam, thanks.
| * Handle ttyname(3) failure better.Nicholas Marriott2009-08-08
| |
| * Add a flags member to the grid_line struct and use it to differentiate linesNicholas Marriott2009-08-08
| | | | | | | | | | wrapped at the screen edge from those terminated by a newline. Then use this when copying to combine wrapped lines together into one.
| * Change the way the grid is stored, previously it was:Nicholas Marriott2009-08-08
| | | | | | | | | | | | | | | | | | | | | | - a two-dimensional array of cells; - a two-dimensional array of utf8 data; - an array of line lengths. Now it is a single array of a new struct grid_line each of which represents a line and containts the length and an array of cells and an array of utf8 data. This will make it easier to add additional per-line members, such as flags.
| * If there is an error in the configuration file, don't just exit(1) as this canNicholas Marriott2009-08-07
| | | | | | | | | | | | | | | | | | | | | | cause the client to hang. Instead, send the error message, then mark the client as bad and start a normal shutdown so the server exits once the error is written. This also allows some code duplicating daemon(3) to be trimmed and logging to begin earlier. Prompted by Theo noticing the behaviour on error wasn't documented.
| * Move introduction section up into description. From jmc.Nicholas Marriott2009-08-07
| |
| * Using the alternative screen (smcup/rmcup) should also preserve the currentNicholas Marriott2009-08-07
| | | | | | | | | | | | colours and attributes. Found thanks to a report from Taylor Venable. While here also nuke a couple of extra blank lines.
| * tweak INTRODUCTION; from nicm and myselfJason McIntyre2009-08-06
| |
| * Clear the codes array earlier as tty_term_free could be called on error.Nicholas Marriott2009-08-05
| |
| * If colours are not supported by the terminal, try to emulate a colouredNicholas Marriott2009-08-05
| | | | | | | | | | | | | | | | background by setting or clearing the reverse attribute. This makes a few applications which don't use the reverse attribute themselves a little happier, and allows the status, message and mode options to have default attributes and fg/bg options that work as expected when set as reverse.
| * Add a -a flag to set-option and set-window-option to append to an existingNicholas Marriott2009-08-04
| | | | | | | | string value, useful for terminal-overrides.
| * restructure the layout of this page, moving the commands into variousJason McIntyre2009-08-04
| | | | | | | | | | | | subsections; lots of tweaks to come on the text from nicm and myself
| * Show the bell/activity/current status and the window title in the choice list.Nicholas Marriott2009-08-04
| |
| * Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may alsoNicholas Marriott2009-08-04
| | | | | | | | appear.
| * clean up some macro abuse in the commands section;Jason McIntyre2009-08-04
| |
| * Split the comparison into a function to make this code smaller and moreNicholas Marriott2009-08-03
| | | | | | | | understandable.
| * Don't try to free old string values (and crash) when they are overridden unlessNicholas Marriott2009-08-03
| | | | | | | | they were actually found in the source terminal description. Reported by jmc.
| * tweak previous;Jason McIntyre2009-08-03
| |
| * Add a terminal-overrides session option allowing individual terminfo(5) entriesNicholas Marriott2009-08-03
| | | | | | | | | | | | | | | | to be overridden. The 88col/256col checks are now moved into the default setting and out of the code. Also remove a couple of old workarounds for xterm and rxvt which are no longer necessary (tmux can emulate them if missing).