| Commit message (Collapse) | Author | Age |
... | |
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
or more prompts to present in order.
The responses to the prompt are replaced in the template string: %% are
replaced in order, so the first prompt replaces the first %%, the second
replaces the second, and so on. In addition, %1 up to %9 are replaced with the
responses to the first the ninth prompts
The default template is "%1" so the response to the first prompt is processed
as a command.
Note that this changes the behaviour for %% so if there is only one prompt,
only the first %% will be replaced. Templates such as "neww -n '%%' 'ssh %%'"
should be changed to "neww -n '%1' 'ssh %1'".
From Tiago Cunha.
|
| |
| |
| |
| |
| |
| |
| | |
there is unconsumed data, save the previous size and use it instead. This means
that activity monitoring should work in this (unlikely) event.
Also remove a debugging statement that no longer seems necessary.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
a lot more often than actually finding one, so instead of getting the option
for every check, get it for every dead window found.
|
| |
| |
| |
| |
| | |
where it makes sense: clock-mode, copy-mode, scroll-mode, send-keys,
send-prefix.
|
| | |
|
| |
| |
| |
| | |
terminal when used from the command line.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
prompt. C-u with emacs keys, d with vi.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
emacs keys, / and ? with vi; n repeats the search again with either key
set. All searching wraps the top/bottom. Goto line is g for both emacs and vi.
The search prompts don't have full line editing, just simple append and delete
characters.
Also sort the mode keys list in tmux.1.
|
| |
| |
| |
| | |
explaining why.
|
| |
| |
| |
| |
| | |
(like putty) if the background colours is non-default when tmux starts. May
also fix problems when resuming a suspended tmux.
|
| |
| |
| |
| |
| |
| |
| | |
response and reserve NULL for an explicit cancel. Change all callbacks to treat
them the same so no functional change.
Also add cancel key bindings to emacs mode which were missing.
|
| |
| |
| |
| |
| |
| |
| | |
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 :-)).
|
| |
| |
| |
| |
| | |
than by the entire screen, to make it easier to pull things out from under the
line indicator. Suggested by claudio.
|
| |
| |
| |
| | |
useful at the moment and causes confusion.
|
| |
| |
| |
| | |
for an index for a new window.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
session detached, let the caller do it. Allows "tmux new -d \; attach" to work.
|
| |
| |
| |
| |
| | |
terminal, copy the termios(4) special characters and use them for new windows
created in the new session. Suggested by Theo.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
can, for example on serial terminals), reset it to 80x25, same as for resize
messages. Problem reported by kettenis@.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
for socket path and log files, and strip it when working out the shell.
|
| |
| |
| |
| |
| |
| | |
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).
|
| |
| |
| |
| |
| |
| | |
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 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.
|
| | |
|
| |
| |
| |
| | |
tty struct.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
cmd-set-environment/option/window-option and remove the generic options
parsing.
|
| |
| |
| |
| | |
be sent, so set that flag too when argc == 0.
|
| |
| |
| |
| |
| |
| | |
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).
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
first section, and another couple of tweaks. Based on a diff from Theo.
|
| |
| |
| |
| | |
terminated by a \n.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| | |
Adam, thanks.
|
| | |
|