mirror of
https://github.com/tmux/tmux.git
synced 2024-11-05 02:18:47 +00:00
641191ab20
This adds two new options, window-size and default-size, and a new command, resize-window. The force-width and force-height options, and the session_width and session_height formats have been removed. The new window-size option tells tmux how to work out the size of windows: largest means it picks the size of the largest session, smallest the smallest session (similar to the old behaviour) and manual means that it does not automatically resize windows. aggressive-resize modifies the choice of session for largest and smallest as it did before. If a window is in a session attached to a client that is too small, only part of the window is shown. tmux attempts to keep the cursor visible, so the part of the window displayed is changed as the cursor moves (with a small delay, to try and avoid excess redrawing when applications redraw status lines or similar that are not currently visible). Drawing windows which are larger than the client is not as efficient as those which fit, particularly when the cursor moves, so it is recommended to avoid using this on slow machines or networks (set window-size to smallest or manual). The resize-window command can be used to resize a window manually. If it is used, the window-size option is automatically set to manual for the window (undo this with "setw -u window-size"). resize-window works in a similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a sets the window to the size of the smallest client (what it would be if window-size was smallest) and -A the largest. For the same behaviour as force-width or force-height, use resize-width -x or -y. If the global window-size option is set to manual, the default-size option is used for new windows. If -x or -y is used with new-session, that sets the default-size option for the new session. The maximum size of a window is 10000x10000. But expect applications to complain and higher memory use if you make a window that big. The minimum size is the size required for the current layout including borders. This change allows some code improvements, most notably that since windows can now never be cropped, that code can be removed from the layout code, and since panes can now never be outside the size of the window, window_pane_visible can be removed. |
||
---|---|---|
compat | ||
logo | ||
presentations | ||
regress | ||
tools | ||
.gitignore | ||
.mailmap | ||
.travis.yml | ||
alerts.c | ||
arguments.c | ||
attributes.c | ||
autogen.sh | ||
cfg.c | ||
CHANGES | ||
client.c | ||
cmd-attach-session.c | ||
cmd-bind-key.c | ||
cmd-break-pane.c | ||
cmd-capture-pane.c | ||
cmd-choose-tree.c | ||
cmd-command-prompt.c | ||
cmd-confirm-before.c | ||
cmd-copy-mode.c | ||
cmd-detach-client.c | ||
cmd-display-message.c | ||
cmd-display-panes.c | ||
cmd-find-window.c | ||
cmd-find.c | ||
cmd-if-shell.c | ||
cmd-join-pane.c | ||
cmd-kill-pane.c | ||
cmd-kill-server.c | ||
cmd-kill-session.c | ||
cmd-kill-window.c | ||
cmd-list-buffers.c | ||
cmd-list-clients.c | ||
cmd-list-keys.c | ||
cmd-list-panes.c | ||
cmd-list-sessions.c | ||
cmd-list-windows.c | ||
cmd-list.c | ||
cmd-load-buffer.c | ||
cmd-lock-server.c | ||
cmd-move-window.c | ||
cmd-new-session.c | ||
cmd-new-window.c | ||
cmd-paste-buffer.c | ||
cmd-pipe-pane.c | ||
cmd-queue.c | ||
cmd-refresh-client.c | ||
cmd-rename-session.c | ||
cmd-rename-window.c | ||
cmd-resize-pane.c | ||
cmd-resize-window.c | ||
cmd-respawn-pane.c | ||
cmd-respawn-window.c | ||
cmd-rotate-window.c | ||
cmd-run-shell.c | ||
cmd-save-buffer.c | ||
cmd-select-layout.c | ||
cmd-select-pane.c | ||
cmd-select-window.c | ||
cmd-send-keys.c | ||
cmd-set-buffer.c | ||
cmd-set-environment.c | ||
cmd-set-hook.c | ||
cmd-set-option.c | ||
cmd-show-environment.c | ||
cmd-show-messages.c | ||
cmd-show-options.c | ||
cmd-source-file.c | ||
cmd-split-window.c | ||
cmd-string.c | ||
cmd-swap-pane.c | ||
cmd-swap-window.c | ||
cmd-switch-client.c | ||
cmd-unbind-key.c | ||
cmd-wait-for.c | ||
cmd.c | ||
colour.c | ||
compat.h | ||
configure.ac | ||
CONTRIBUTING | ||
control-notify.c | ||
control.c | ||
COPYING | ||
environ.c | ||
example_tmux.conf | ||
format.c | ||
grid-view.c | ||
grid.c | ||
hooks.c | ||
input-keys.c | ||
input.c | ||
ISSUE_TEMPLATE | ||
job.c | ||
key-bindings.c | ||
key-string.c | ||
layout-custom.c | ||
layout-set.c | ||
layout.c | ||
log.c | ||
Makefile.am | ||
mdoc2man.awk | ||
mode-tree.c | ||
names.c | ||
notify.c | ||
options-table.c | ||
options.c | ||
osdep-aix.c | ||
osdep-cygwin.c | ||
osdep-darwin.c | ||
osdep-dragonfly.c | ||
osdep-freebsd.c | ||
osdep-hpux.c | ||
osdep-linux.c | ||
osdep-netbsd.c | ||
osdep-openbsd.c | ||
osdep-sunos.c | ||
osdep-unknown.c | ||
paste.c | ||
proc.c | ||
README | ||
README.ja | ||
resize.c | ||
screen-redraw.c | ||
screen-write.c | ||
screen.c | ||
server-client.c | ||
server-fn.c | ||
server.c | ||
session.c | ||
status.c | ||
style.c | ||
SYNCING | ||
tmux.1 | ||
tmux.c | ||
tmux.h | ||
TODO | ||
tty-acs.c | ||
tty-keys.c | ||
tty-term.c | ||
tty.c | ||
utf8.c | ||
window-buffer.c | ||
window-client.c | ||
window-clock.c | ||
window-copy.c | ||
window-tree.c | ||
window.c | ||
xmalloc.c | ||
xmalloc.h | ||
xterm-keys.c |
Welcome to tmux! tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached. This release runs on OpenBSD, FreeBSD, NetBSD, Linux, OS X and Solaris. tmux depends on libevent 2.x. Download it from: http://libevent.org It also depends on ncurses, available from: http://invisible-island.net/ncurses/ To build and install tmux from a release tarball, use: $ ./configure && make $ sudo make install tmux can use the utempter library to update utmp(5), if it is installed - run configure with --enable-utempter to enable this. To get and build the latest from version control: $ git clone https://github.com/tmux/tmux.git $ cd tmux $ sh autogen.sh $ ./configure && make (Note that this requires at least a working C compiler, make, autoconf, automake, pkg-config as well as libevent and ncurses libraries and headers.) For more information see http://git-scm.com. Patches should be sent by email to the mailing list at tmux-users@googlegroups.com or submitted through GitHub at https://github.com/tmux/tmux/issues. For documentation on using tmux, see the tmux.1 manpage. It can be viewed from the source tree with: $ nroff -mdoc tmux.1|less A small example configuration in example_tmux.conf. And a bash(1) completion file at: https://github.com/imomaliev/tmux-bash-completion For debugging, running tmux with -v or -vv will generate server and client log files in the current directory. tmux mailing lists are available. For general discussion and bug reports: https://groups.google.com/forum/#!forum/tmux-users And for Git commit emails: https://groups.google.com/forum/#!forum/tmux-git Subscribe by sending an email to <tmux-users+subscribe@googlegroups.com>. Bug reports, feature suggestions and especially code contributions are most welcome. Please send by email to: tmux-users@googlegroups.com This file and the CHANGES, FAQ, SYNCING and TODO files are licensed under the ISC license. All other files have a license and copyright notice at their start. -- Nicholas Marriott <nicholas.marriott@gmail.com>