我尝试从我的 MacOSX 上的命令行调整终端窗口的大小
我可以使用以下命令调整终端的宽度和高度(Control Sequence Introducer CSI)
printf '\e[8;100;200t' "resize to 200x100
但是当我在终端中使用 tmux 时,命令(printf '\e[8;100;200t') 不再起作用
任何建议都会受到赞赏。
这是我的 tmux 配置文件:
bind r source-file ~/.tmux.conf \; display "Reloaded!" #Reload with ctrl-r
set-window-option -g mode-keys vi #copy-mode vim-like
set -g prefix ` #prefix from ctrl-b to ctrl-a
unbind C-b #allow ctrl-b for other things
set -sg escape-time 1 #quicker responses
bind ` send-prefix #Pass on ctrl-a for other apps
set -g base-index 1 #Numbering of windows
setw -g pane-base-index 1 #Numbering of Panes
bind \ split-window -v #Split panes horizontal
bind v split-window -h #Split panes vertically
unbind-key j
bind-key j select-pane -D # Similar to 'C-w j' to navigate windows in Vim
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R
unbind-key Left
bind-key Left resize-pane -L 10
unbind-key Right
bind-key Right resize-pane -R 10
unbind-key Up
bind-key Up resize-pane -U 10
unbind-key Down
bind-key Down resize-pane -D 10
set -g window-status-current-style fg=red
set -g default-command "reattach-to-user-namespace -l /bin/bash"