maaslalani / slides

Terminal based presentation tool
http://maaslalani.com/slides/
MIT License
9.65k stars 264 forks source link

Formatting incorrect within tmux #217

Open lukepighetti opened 1 year ago

lukepighetti commented 1 year ago

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 commented 1 year ago

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

pbnj commented 1 year ago

@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