mfontanini / presenterm

A markdown terminal slideshow tool
https://mfontanini.github.io/presenterm/
BSD 2-Clause "Simplified" License
1.19k stars 29 forks source link

Can not show properly on Mac Terminal #294

Closed shenxiangzhuang closed 2 months ago

shenxiangzhuang commented 2 months ago

It seems I can not got right format on Mac. What's the possible reasons about this problem? I try to set the profile of the terminal into default, but it doesn't fix this.

Version

❯ presenterm -V        
presenterm 0.7.0

image

mfontanini commented 2 months ago

Are you using iterm2? Is this using the default presenterm theme?

shenxiangzhuang commented 2 months ago

Are you using iterm2? Is this using the default presenterm theme?

No, I'm using the build-in terminal of MacOS with default profile setting. And, yes, I use the default presenterm theme.

By the way, I test presenterm on iterm2 and other terminals(like warp and some ide's build-in terminals), and there is no problem. So I think the problem is most likely related to the MacOS build-in terminal that I use, rather than presenterm...But I still wondering how this happened :)

mfontanini commented 2 months ago

My guess is that terminal doesn't support 24 bit colors. Can you run presenterm --theme terminal-dark path-to-your-presentation.md? That theme uses your terminal's colora rather than 24 bit ones so if that's the case it should work.

shenxiangzhuang commented 2 months ago

My guess is that terminal doesn't support 24 bit colors. Can you run presenterm --theme terminal-dark path-to-your-presentation.md? That theme uses your terminal's colora rather than 24 bit ones so if that's the case it should work.

Thanks for your suggestion! The --theme terminal-dark option works fine, except the code block: image

And I try --theme terminal-light option, which works much better: image

Thank you again for your timely reply!