| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
| |
run-shell command to run a shell command without opening a window, sending
stdout to output mode.
|
|
|
|
|
| |
Nuke unused variables and fix stupid error message.
|
|
|
|
|
|
| |
Move some common and untidy code for window link/unlink into generic functions
instead of duplicating it in move/link window..
|
|
|
|
|
| |
Regularise some fatal messages.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
New option, set-titles-string, to allow the window title to be specified (as
for status-left/right) if set-titles is on. Also only update the title when the
status line is being redrawn.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
==
Rather than constructing an entire termios struct from ttydefaults.h, just let
forkpty do it and then alter the bits that should be changed after fork. A
little neater and more portable.
==
This should fix problems caused by glibc's broken ttydefaults.h file.
|
|
|
|
|
|
|
|
| |
Enclose repeated buffer draining code in a new msgbuf_drain()
function, which is additionally exported for use by others.
From nicm@, who reminded me that tmux is now using buffer.c, too.
|
|
|
|
|
|
|
|
|
|
| |
Stick line length to what is actually used (removing an optimization that
allowed it to be bigger), and use clear line/EOL sequences rather than spaces
in copy/scroll mode.
This fixes xterm copy/paste from tmux which treats trailing spaces differently
from clearing a line with the escape sequences. Reported by martynas@.
|
|
|
|
|
| |
The default terminal size should be 80x24, not 80x25.
|
|
|
|
|
| |
Nuke unused server_client_index function, pointed out by martynas@.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Tidy some common code for destroying sessions into a new function.
|
|
|
|
|
|
| |
tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for
new windows.
|
|
|
|
|
|
| |
Permit options such as status-bg to be configured using the entire 256 colour
palette by setting "colour0" to "colour255".
|
|
|
|
|
|
| |
While the display-panes indicator is on screen, make the number keys select the
pane with that index.
|
|
|
|
|
|
| |
Reference count clients and sessions rather than relying on a saved index for
cmd-choose-*.
|
|
|
|
|
|
|
| |
Tiny cleanup.
ok nicm@
|
|
|
|
|
|
| |
Give each paste buffer a size member instead of requiring them to be
zero-terminated.
|
|
|
|
|
|
| |
Permit embedded colour and attributes in status-left and status-right using new
#[] special characters, for example #[fg=red,bg=blue,blink].
|
| |
|
|
|
|
|
|
|
|
| |
Only redraw all clients once when the backoff timer expires rather than every
second all the time.
Reported by Simon Nicolussi.
|
|
|
|
|
| |
Tidy main and make it a bit easier to read.
|
|
|
|
|
| |
Tell the user when sleeping due to password backoff.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix a race condition when asking a client to take over the terminal (switching
to a different poll loop):
If a MSG_READY was followed very quickly by a MSG_EXIT (for example if doing
"tmux new 'exit'"), both messages could be read as part of the same imsg_read
in the first client poll loop. The MSG_READY would then cause a switch to the
second client loop, which would immediately call poll(2) again, causing the
client to hang forever waiting for an exit message that it already had.
Change to call imsg_get to process any existing messages before polling.
|
|
|
|
|
|
| |
Accept -l to make it easier for people who use tmux as a login shell to use
$SHELL. Originally from martynas@, tweaked by me.
|
|
|
|
|
|
| |
308.
- While there, remove some duplicate code from the compat header file.
|
|
|
|
|
|
| |
When incorrect passwords are entered, behave similarly to login(1) and backoff
for a bit. Based on a diff from martynas@.
|
|
|
|
|
|
| |
Add a transpose-chars command in edit mode (C-t in emacs mode only). From Kalle
Olavi Niemitalo.
|
|
|
|
|
| |
with the right message.
|
| |
|
|
|
|
|
|
|
| |
use the error and exit on MSG_EXIT (it was being handled in the default
case). Undo the last change, move the errstr check into the MSG_EXIT case, and
add a comment.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
If forking a login shell or if SHELL is otherwise not useful, set it to the
default shell. Based on a diff from martynas@.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When using tmux as a login shell, there is currently no way to specify a shell
to be used as a login shell inside tmux, so add a default-shell session option.
This sets the shell invoked as a login shell when the default-command option is
empty.
The default option value is whichever of $SHELL, getpwuid(getuid())'s pw_shell
or /bin/sh is valid first.
Based on a diff from martynas@, changed by me to be a session option rather
than a window option.
|