Linux 終端復用器,Tmux 2.1 發布
tmux 是一個與 GNU screen 類似的程序,可作為后者的替代品使用。tmux 采用 BSD 許可授權。
如上圖所示,啟動 tmux 后,在窗口底部有狀態行顯示,其中包括已創建的窗口列表、當前窗口(使用 * 表示)等。
與 GNU screen 相似,tmux 也使用快捷鍵來執行相關操作。要創建一個新的窗口,可以按 C-b c,即先按 Ctrl-b,再按 c。在各個窗口間切換可使用下列快捷鍵:
-
C-b n 切換到下一個窗口
</li> -
C-b p 切換到上一個窗口
</li> -
C-b 0、C-b 1……C-b n 切換到第 n 個窗口
</li> </ul>分離會話可執行 C-b d 。
通過
man tmux
可以獲得更詳盡的 tmux 使用指南。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.</pre>來自:http://www.oschina.net/news/67222/tmux-2-1
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!