Code Monkey home page Code Monkey logo

Comments (10)

LeXofLeviafan avatar LeXofLeviafan commented on June 22, 2024

Unlike in Windows, Linux terminal differentiates between empty and unset variables. You can tell the difference by using a substitution, e.g. echo "${BUKU_COLORS+exists}" or echo "${BUKU_COLORS-unset}" (though the latter prints out the value if it's not empty).

Buku v4.8 (the version available in Homebrew) checks for unset BUKU_COLORS only. Perhaps this is the cause?

Otherwise, it might have something to do with your terminal or shell aliases; though that seems less likely.

from buku.

BarbzYHOOL avatar BarbzYHOOL commented on June 22, 2024

I'm on fish shell and cannot use these commands. I tried buku in bash (launched from within fish) and it still is all grey

fish: ${ is not a valid variable in fish.
echo "${BUKU_COLORS-unset}"

from buku.

LeXofLeviafan avatar LeXofLeviafan commented on June 22, 2024

In the fish shell, set --query BUKU_COLORS || echo unset could be used to perform an equivalent check.

…It seems that running buku with empty BUKU_COLORS actually results in an error, so I'm not sure what could be the actual cause of the issue here. Perhaps your terminal emulator is having difficulties displaying these specific colors for some reason?

Since --colors has some effect for you at least, you can try experimenting with combinations of available values to find whatever works for you. When you've settled on a combination, you can configure it to be set on shell startup in your rcfile – either as a variable export (e.g. export BUKU_COLORS='oKlxm'), or as an alias (e.g. alias buku='buku --colors oKlxm').

from buku.

BarbzYHOOL avatar BarbzYHOOL commented on June 22, 2024

Yes, I can do that with env variable, i've already thought about it but I didn't want to spend time looking at all the colors (i tried with "abcde" ^^)

So, it's unset for sure in both terminals. But it may not be related.
I switched to Gnome-terminal instead of Tilix, and then it works fine.

So my issue is with tilix, here are some of my settings if anything rings a bell

image
image
I also use a custom nerd font but disabling it doesn't seem to change anything

from buku.

BarbzYHOOL avatar BarbzYHOOL commented on June 22, 2024

Wait, I tried with your colors settings and it gives NOTHING

image

from buku.

LeXofLeviafan avatar LeXofLeviafan commented on June 22, 2024

…Yeah, I think I know what your problem is 😅
palette: Solarized
palette: Tango

from buku.

BarbzYHOOL avatar BarbzYHOOL commented on June 22, 2024

Ok so it's the palette of color

so as you can see on my first screenshot under the "column background", there are two colors, the one on the right is gray for two of them
Same on the right column "foreground". I have no idea what they are for, it's not written anywhere. I dont know if they are default colors.

I can change them and it changes the default output. I have no idea what else it affects

from buku.

LeXofLeviafan avatar LeXofLeviafan commented on June 22, 2024

The ANSI terminal spec uses 4-bit colour definition which includes 8 foreground + 8 background colours (i.e. a colour setting is defined as 3 RGB bits + 1 bit for specifying whether to use it for characters or for background); the palette, it would seem, is the 16 colours to be used for displaying equivalent terminal colours (+ optionally 2 more to be used as "default" setting). You can check my 2nd screenshot as a reference as to which colours are which (and your screenshot includes their names)… Honestly, it's pretty weird that this colour scheme shows half of all foreground colours as ‘grey’ 😅

I suggest either changing these colours to actually match their names, or switching to a different colour scheme (…or you can do both if you like some of the colours you have right now, I guess).

from buku.

BarbzYHOOL avatar BarbzYHOOL commented on June 22, 2024

I just modified them and it looks nice, it's just abstract to me what it does.
Thanks for all the help

from buku.

LeXofLeviafan avatar LeXofLeviafan commented on June 22, 2024

I just modified them and it looks nice, it's just abstract to me what it does.

“If a script prints out a ‘red’ text on ‘green’ background, here's the colours I want to be displayed on screen.”

from buku.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.