1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Tmux 2.1 发布,Linux 终端复用器 下载

本帖由 漂亮的石头2015-10-19 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    486,020
    赞:
    46
    Tmux 2.1 发布,此版本更新内容如下:

    非兼容改进
    ====================

    * Mouse-mode has been rewritten. There's now no longer options for:
    - mouse-resize-pane
    - mouse-select-pane
    - mouse-select-window
    - mode-mouse

    Instead there is just one option: 'mouse' which turns on mouse support
    entirely.
    * 'default-terminal' is now a session option. Furthermore, if this is set
    to 'screen-*' then emulate what screen does. If italics are wanted, this
    can be set to 'tmux' but this is still new and not necessarily supported
    on all platforms with older ncurses installs.
    * The c0-* options for rate-limiting have been removed. Instead, a backoff
    approach is used.

    常规改进
    ==============

    * New formats:
    - session_activity
    - window_linked
    - window_activity_format
    - session_alerts
    - session_last_attached
    - client_pid
    - pid
    * 'copy-selection', 'append-selection', 'start-named-buffer' now understand
    an '-x' flag to prevent it exiting copying mode.
    * 'select-pane' now understands '-P' to set window/pane background colours.
    * 'renumber-windows' now understands windows which are unlinked.
    * 'bind' now understands multiple key tables. Allows for key-chaining.
    * 'select-layout' understands '-o' to undo the last layout change.
    * The environment is updated when switching sessions as well as attaching.
    * 'select-pane' now understands '-M' for marking a pane. This marked pane
    can then be used with commands which understand src-pane specifiers
    automatically.
    * If a session/window target is prefixed with '=' then only an exact match
    is considered.
    * 'move-window' understands '-a'.
    * 'update-environment' understands '-E' when attach-session is used on an
    already attached client.
    * 'show-environment' understands '-s' to output Bourne-compatible commands.
    * New option: 'history-file' to save/restore command prompt history.
    * Copy mode is exited if the history is cleared whilst in copy-mode.
    * 'copy-mode' learned '-e' to exit copy-mode when scrolling to end.

    tmux 是一个与 GNU screen 类似的程序,可作为后者的替代品使用。tmux 采用 BSD 许可授权。

    [​IMG]

    如上图所示,启动 tmux 后,在窗口底部有状态行显示,其中包括已创建的窗口列表、当前窗口(使用 * 表示)等。

    与 GNU screen 相似,tmux 也使用快捷键来执行相关操作。要创建一个新的窗口,可以按 C-b c,即先按 Ctrl-b,再按 c。在各个窗口间切换可使用下列快捷键:


    • C-b n 切换到下一个窗口


    • C-b p 切换到上一个窗口


    • C-b 0、C-b 1……C-b n 切换到第 n 个窗口

    分离会话可执行 C-b d 。

    通过 man tmux 可以获得更详尽的 tmux 使用指南。
    Tmux 2.1 发布,Linux 终端复用器下载地址
     
正在加载...