| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Tidy up keys: use an enum for the key codes, and remove the macros which just
wrap flag sets/clears/tests.
|
|
|
|
|
|
| |
despite sx, sy and fd being fine (an fcntl on the fd succeeds). No problems on
other platforms so ignore the error under #ifdef __sun__.
|
|
|
|
|
|
| |
Now that #P could be in the status line, flag it for redraw when the active
pane changes.
|
|
|
|
|
|
|
| |
automatically.
Also remove .depend from clean target and add a clean-depend target.
|
| |
|
| |
|
|
|
|
|
| |
Tweak unbind-key language very slightly.
|
| |
|
|
|
|
|
|
| |
Display the number of failed password attempts (if any) when the server is
locked. From Tom Doherty.
|
|
|
|
|
|
| |
Add a status-justify option to allow the window list in the status line to be
positioned at the left, centre, or right.
|
|
|
|
|
|
|
| |
New options, window-status-current-{fg,bg,attr}, to set the fg, bg and
attributes with which the current window is shown in the status line. From
Johan Friis, thanks.
|
|
|
|
|
| |
Kill some dead stores and fix a null pointer deref, found by clang.
|
|
|
|
|
| |
Move the offsets as well when swapping panes.
|
|
|
|
|
| |
tweak previous;
|