walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
585 stars 17 forks source link

ansi color theme in moar 1.22 version #186

Closed ciscohack closed 2 months ago

ciscohack commented 5 months ago

In moar version 1.22 I was getting ansi colour scheme that suited my taste. I know it was some bug as my moar setting was like this

alias mo="ct moar --style=catppuccin-macchiato --colors=16M --render-unprintable=whitespace " and it should render color scheme "catppuccin-macchiato" but I was getting ansi color scheme.. is it possible to get back the ansi color scheme.. I checked the chroma gallery and not find the scheme.

image

walles commented 5 months ago

For all I know this could be ct that changed.

If you run moar without ct, does moar's coloring work as expected in v1.23.0?

walles commented 5 months ago

Regarding the color style, moar used to always use native.

Now, native will be used on dark terminal backgrounds (like the one in your screenshot) and tango on bright terminal backgrounds.

ciscohack commented 5 months ago

Regarding the color style, moar used to always use native.

Now, native will be used on dark terminal backgrounds (like the one in your screenshot) and tango on bright terminal backgrounds.

@walles Ok will test it then. thanks

ciscohack commented 5 months ago

@walles ok I just did a test with and without CT if I have not mentioned any theme scheme then it uses native style but the theme scheme screenshot I have posted was taken by own

just try this once in old 1.22.0 you will see the color scheme that one was I am looking for alias mo="moar --style=catppuccin-macchiato --colors=16M --render-unprintable=whitespace "

walles commented 5 months ago

This should get you the old behavior:

 alias mo="moar --style=catppuccin-macchiato --colors=8 --render-unprintable=whitespace "

The relevant change is this one: e823d02

ciscohack commented 5 months ago

Ok so if i understand correctly and change my alias as you suggested --colors=8 then I will get the same theme right

walles commented 5 months ago

But rather than telling moar to use an 8 color display, maybe picking another theme might be better?

Maybe bw or algol or something else from this list: https://xyproto.github.io/splash/docs/longer/all.html

ciscohack commented 5 months ago

these themes are light themes will test with onedark or dracula

walles commented 2 months ago

How did it go, can this be closed?

ciscohack commented 2 months ago

@walles not tested i am out .. you can close if needed will open new ticket ..thanks