| Commit message (Collapse) | Author | Age |
... | |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Each window now has a tree of layout cells associated with it. In this tree,
each node is either a horizontal or vertical cell containing a list of other
cells running from left-to-right or top-to-bottom, or a leaf cell which is
associated with a pane.
The major functional changes are:
- panes may now be split arbitrarily both horizontally (splitw -h, C-b %) and
vertically (splitw -v, C-b ");
- panes may be resized both horizontally and vertically (resizep -L/-R/-U/-D,
bound to C-b left/right/up/down and C-b M-left/right/up/down);
- layouts are now applied and then may be modified by resizing or splitting
panes, rather than being fixed and reapplied when the window is resized or
panes are added;
- manual-vertical layout is no longer necessary, and active-only layout is gone
(but may return in future);
- the main-pane layouts now reduce the size of the main pane to fit all panes
if possible.
Thanks to all who tested.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
If these are enabled (and the monitor-activity, bell-action and monitor-content
options are configurated appropriately), when activity, a bell, or content is
detected, a message is shown.
Also tidy up the bell/activity/content code in server.c slightly and fix a
couple of errors.
|
|
|
|
|
| |
screen on that box too :-).
|
|
|
|
|
|
| |
kill-window - if a window is linked into only one session it unlinked and
destroyed.
|
|
|
|
|
| |
window instead of being an error.
|