| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Get rid of empty mode_key_free function.
|
|
|
|
|
|
|
|
| |
Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in
vi).
From Kalle Olavi Niemitalo.
|
|
|
|
|
| |
Draw UTF-8 characters under the selection correctly.
|
|
|
|
|
|
| |
Change previous-word behavior to move to the beginning of the word (matches
emacs and vi). From Kalle Olavi Niemitalo.
|
|
|
|
|
|
|
|
| |
Detect backspace by looking at termios VERASE and translate it into \177
(which matches screen's behaviour if not its termcap/terminfo entry). The
terminfo kbs cap is often wrong or missing so it can't be used, and just
assuming \177 may be wrong.
|
|
|
|
|
|
|
|
| |
Calculate the space available for the prompt buffer and the cursor position
correctly, and make it work when the screen is not wide enough.
Noticed by Kalle Olavi Niemitalo.
|
|
|
|
|
| |
accordance to OpenBSD patchset 182.
|
|
|
|
|
|
| |
Go to the next if the current best process is replaced, don't keep comparing
it with itself. Also fix process name comparison.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make all messages sent between the client and server fixed size.
This is the first of two changes to make the protocol more resilient and less
sensitive to other changes in the code, particularly with commands. The client
now packs argv into a buffer and sends it to the server for parsing, rather
than doing it itself and sending the parsed command data.
As a side-effect this also removes a lot of now-unused command marshalling
code.
Mixing a server without this change and a client with or vice versa will cause
tmux to hang or crash, please ensure that tmux is entirely killed before
upgrading.
|
| |
|
| |
|
|
|
|
|
|
| |
Set the active pane when respawning a window - fixes problems when respawning
a window with multiple panes.
|
|
|
|
|
|
| |
Use the full range of ACS line drawing characters to draw pane borders,
including intersections.
|
|
|
|
|
| |
cmd_find_index should return -2 on error.
|
|
|
|
|
|
|
| |
Simplify screen redrawing by drawing the border and background together rather
than border separately, and consolidating all the drawing characters into one
string.
|
|
|
|
|
| |
Accept lowercase c- and m- prefix as well as C- and M-.
|
|
|
|
|
|
|
| |
Permit commands to be bound to key presses without the prefix key first. The
new -n flag to bind-key and unbind-key sets or removes these bindings, and
list-key shows them in []s.
|
|
|
|
|
|
|
|
|
|
|
| |
up-pane and down-pane no longer auto-repeat; update the description of
repeat-time accordingly. ok nicm@
if you prefer old behaviour;
bind -r Up up-pane
bind -r Down down-pane
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
None of the server message functions return anything but 0, so make them all
void.
Also remove a leftover variable in client.c.
|
|
|
|
|
|
| |
Tidy client message return slightly: convert flags into an enum, and merge
error string into struct client_ctx as well.
|
|
|
|
|
| |
Redraw after starting selection to correctly remove any existing selection.
|
| |
|
|
|
|
|
| |
C-d is delete as well in emacs mode.
|
|
|
|
|
|
|
| |
Both of cmdclient and curclient CAN be NULL - if the command is executed from
the configuration file. In this case, attach-session can't do much, and
new-session should just assume -d.
|
|
|
|
|
|
| |
If there is a current session, use its default path and working directory for
the initial window when creating a new session.
|
|
|
|
|
|
| |
Pass a set of flags into client_init rather than just a start_server
variable. Only one flag now but more to come later.
|
|
|
|
|
|
| |
window_add_pane cannot fail, so remove the unused cause argument and don't
bother to check for a NULL return.
|
|
|
|
|
|
|
|
|
|
| |
Tidy the target parsing code a bit and correct the behaviour so that as before
a string with no colon as a target window is first looked up as a window then
as a session, noted by Iain Morgan.
Also attempt to clarify the description of the target specification in the man
page.
|
|
|
|
|
|
| |
tty_write is relatively short and the only function left in tty-write.c so
move it into tty.c.
|
|
|
|
|
|
| |
More tty code tidying: move the saved cursor/region position (from before the
screen was updated) out of struct screen and into struct tty_ctx.
|
|
|
|
|
|
|
| |
enum tty_cmd is only used as an index into the array of command function
pointers, so remove it and use the function pointers directly to represent
themselves.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
There are relatively few arguments to tty_cmd_* functions now, so tidy them up
by using a struct rather than hiding everything with varargs.
|
|
|
|
|
|
| |
tty_cmd_raw is only used once, for raw UTF-8 output, so rename it to
tty_cmd_utf8character and eliminate the size argument.
|
|
|
|
|
| |
Adjust field width to fit longest key when listing.
|
|
|
|
|
| |
Remove leftover debug logging of password.
|
|
|
|
|
|
| |
Make some functions which return unused values void (mostly found by lint) and
tweak a redundant expression in window_pane_set_mode.
|
|
|
|
|
| |
Nix a few unused attributes on arguments which are no longer unused.
|
| |
|
|
|
|
|
|
| |
Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by
lint.
|
| |
|
|
|
|
|
|
|
|
| |
__progname is not const, pointed out by deraadt.
And, as a consequence change its declaration for operating systems which
don't provide __progname as well.
|