我在gnome-terminal中使用tmux.
当我第一次打开一个窗口(默认大小为80×24)时,tmux条紧贴在窗口的底部.但是,当我最大化终端窗口时,tmux栏下方会出现一个令人烦恼的大间隙.
maximised gnome-terminal tmux session with gap under tmux bar
这是我的.tmux.conf:
set-option -g default-command bash # remap prefix to Control + a unbind-key C-b set-option -g prefix C-a bind-key C-a send-prefix bind-key C-a-h split-window -h #Split panes vertically # time/no(0) time between C-a and command set -s escape-time 0 #set-option -u repeat-time #global setting,"delete" repeat-time set-option -g -q mouse on #activate mouse
当我最大化终端窗口时,如何让tmux栏像它一样小?
解决方法
您必须调整字体大小.由于终端窗口的高度不完全是N线高,因此引入了间隙.如果您真的讨厌这个差距,可以放大或缩小字体大小,直到找到适合您屏幕的字体.