Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting incorrect within tmux #217

Open
lukepighetti opened this issue Mar 1, 2023 · 2 comments
Open

Formatting incorrect within tmux #217

lukepighetti opened this issue Mar 1, 2023 · 2 comments

Comments

@lukepighetti
Copy link

lukepighetti commented Mar 1, 2023

Just curious if there is a configuration issue on my end, but here's the result.

tmux 3.3a
helix 22.12 (96ff64a8)
slides 0.9.0
iTerm2 Build 3.5.0beta7

ProductName:		macOS
ProductVersion:		13.2.1
BuildVersion:		22D68

Actual result (inside tmux)

Screenshot 2023-03-01 at 9 17 54 AM

Expected result (outside tmux)

Screenshot 2023-03-01 at 9 17 50 AM

@maaslalani
Copy link
Owner

This is super strange. I see this on my end too. Thank you for the issue.

@pbnj
Copy link

pbnj commented Mar 21, 2023

@lukepighetti & @maaslalani -

My guess is that this has to do with tmux configurations (colors in tmux are notoriously difficult & confusing to get right due to compounding factors between tmux version + OS + terminal program/capabilities).

I have gone through several iterations of tmux configurations to fix color issues until I landed on this which seems to be working for me:

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

Given the test content:

# Ultrawide

This is a test

Here are my screenshots:

Inside tmux

Screenshot 2023-03-21 at 12 44 26 PM

Outside tmux

Screenshot 2023-03-21 at 12 45 37 PM
Screenshot 2023-03-21 at 12 45 39 PM

My info:

tmux 3.3a
helix 22.12 (96ff64a8)
vim 9.0 (2022 Jun 28, compiled Mar 11 2023 13:55:53) - macOS version - arm64 - Included patches: 1-1400
slides 0.9.0
alacritty 0.11.0 (8dbaa0b)

ProductName:		macOS
ProductVersion:		13.2.1
BuildVersion:		22D68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants