Annoying padding between tmux bar and bottom of terminal window when maximised
Asked Answered
W

1

12

I am using tmux inside of a gnome-terminal.

When I first open a window (with the default size being 80x24) the tmux bar sits snugly at the bottom of the window. When I maximise the terminal window, however, an annoyingly large gap appears underneath the tmux bar.

maximised gnome-terminal tmux session with gap under tmux bar

This is my .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

How do I get the tmux bar to sit as it does in the small this when I maximise the terminal window?

80x24 gnome-terminal window with tmux bar located correctly

Waldemar answered 27/9, 2016 at 1:45 Comment(0)
P
35

You will have to adjust your font size. The gap is introduced since the height of terminal window is not exactly N-lines high. If you really hate that gap, you may either enlarge or shrink your font size until you find one that fits your screen.

Plastic answered 28/10, 2016 at 4:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.