Daniel YC Lin
Daniel YC Lin

Reputation: 16032

tmux can not display vertical line when split vertical panel

Environment:

Strange behavior:

Is there any method to let it always display vertical line?

My tmux.conf

set -g utf8
setw -g utf8 on
set-option -g mode-mouse on
set-option -g mouse-resize-pane on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
# I've tried the following three settings, all failed.
set -g default-terminal "screen-256color"
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#set -g default-terminal "linux"

And the TERM and locale variables inside tmux

$ echo $TERM
screen-256color
$ locale
LANG=en_US.utf8
LC_CTYPE=zh_TW.utf8

Upvotes: 0

Views: 2913

Answers (2)

Daniel YC Lin
Daniel YC Lin

Reputation: 16032

In putty/pietty, Turn off the option change settings/Window/Translation/Treat CJK ambiguous characters as wide

Upvotes: 2

user777337
user777337

Reputation:

From the tmux man page:

The TERM environment variable must be set to ''screen'' for all programs run-ning inside tmux. New windows will automatically have ''TERM=screen'' added to their environment, but care must be taken not to reset this in shell start-up files.

Maybe try changing this and see if it helps?

I've seen other users usually set this in their .tmux.conf so they also get color support:

set -g default-terminal 'screen-256color'

Upvotes: 1

Related Questions