Im-Beast / deno_tui

🦕 Deno module for creating Terminal User Interfaces
https://deno.land/x/tui
MIT License
266 stars 18 forks source link

bug: Vertical progress bar shifts content of the window in WSL + tmux #12

Closed ansipunk closed 1 year ago

ansipunk commented 2 years ago

Bug description Vertical progress bar shifts content of the window in WSL + tmux

Expected behavior Nothing should be shifted

Reproduction Add this to .zshrc:

export TERM=xterm-256color

and this to .tmux.conf:

set -g default-terminal "screen-256color"
set-option -sa terminal-overrides ",xterm-256color:RGB"

Works fine without tmux. Haven't tested with different tmux and zsh configs.

Screenshots image

Information

Im-Beast commented 1 year ago

This issue is caused by tmux or WSL (most probably WSL), they improperly render some UNICODE characters and as far as I know I can't do anything about it.

You can set smooth property on progress bars to false and then spaces will be used for rendering progress, it makes progress less granular and smooth but doesn't cause any issues on WSL.

Keep it mind that when you style progress bars on smooth: false you need to set background color instead of foreground one like with smooth: true.

Closing for now, if anyone would want to look at it, please do :)