Giter Club home page Giter Club logo

Comments (7)

xlucn avatar xlucn commented on June 14, 2024 1

Just checked the AUR package, indeed does not work with my fbtermrc. I am forking some (I forgot exactly which repo) patched version on GitHub, my fork is here. This one has a commit to patch configurable colour palette.
If I am not wrong, the old AUR package (fbterm had been removed from AUR once before) was also based on some GitHub repo, which had the color palette patch.

As for the current AUR (or debian) package, colors can only be changed with fbterm's own escape sequence:

printf "\033[3;0;33;33;33}" # color0 is now #212121

from dotfiles.

xlucn avatar xlucn commented on June 14, 2024 1

Confirmed. Looking through the code, reason is the patch only changes the first 16 colors, so color-{fore,back}ground still can not set to rgb values. I guess I was hoping them to.

from dotfiles.

xlucn avatar xlucn commented on June 14, 2024 1

Seems hard to do. In the code foreground and background colors are always represented by an index number of the palette. In other words, you can only choose colors in the 256-color palette.

If you just want different fg and bg from base-16 colors, the only workaround is to define some color in the palette first, and assign that to either foreground or background color. I made a little change to the code, see the latest commit. You can change similar colors, e.g., color-232 to color-255 are grey scales (from dark to bright), to the ones you like:

color-235=212121
color-247=a6a19b
color-background=235
color-foreground=247

from dotfiles.

xlucn avatar xlucn commented on June 14, 2024 1

Right, I forgot to correct that after I came up with the fix. By default bg and fg only use color 0-7. Good to know it works.

from dotfiles.

ragnarov avatar ragnarov commented on June 14, 2024

Thank you for replying.
I have applied that patch.
I can change:

color-0=212121
color-1=826023
color-2=618231
color-3=7e7b28
color-4=3e825c
color-5=82685c
color-6=749cb3
color-7=a6a19b
color-8=484848
color-9=b48430
color-10=86b443
color-11=b0ab37
color-12=55b47f
color-13=b4907f
color-14=9bb4c8
color-15=d8d1c9

But these don't work:

color-foreground=a6a19b
color-background=212121

Can you confirm that only changing color-foreground and color-background works.
Without using :

color-0=212121
color-1=826023
color-2=618231
color-3=7e7b28
color-4=3e825c
color-5=82685c
color-6=749cb3
color-7=a6a19b
color-8=484848
color-9=b48430
color-10=86b443
color-11=b0ab37
color-12=55b47f
color-13=b4907f
color-14=9bb4c8
color-15=d8d1c9

from dotfiles.

ragnarov avatar ragnarov commented on June 14, 2024

Can you confirm that only changing color-foreground and color-background works. Without using :

Confirmed. Looking through the code, reason is the patch only changes the first 16 colors, so color-{fore,back}ground still can not set to rgb values. I guess I was hoping them to.

I assume this does not work.
(i.e. just using the options color-foreground and color-background do not work)
So is there some solution?
Will you make another patch?
Can I please have it? :D

from dotfiles.

ragnarov avatar ragnarov commented on June 14, 2024

... In the code foreground and background colors are always represented by an index number of the palette. In other words, you can only choose colors in the 256-color palette.

color-background=235
color-foreground=247

For me, even after applying the first patch, I can't use those 256 colors.
As if I did not set any config.

Does this code work for you?

color-background=235
color-foreground=247

Is there some other patch that I should use for this?

Okay. I have built and tried your fork and it seems the following code does work.

color-background=235
color-foreground=247

So it seems I need both the latest patch and the first patch. But I am not sure.

Edit:

Awesome.
I have applied the two commits as patch on the aur version and the following code works:

color-background=235
color-foreground=247

Thanks you @OliverLew

from dotfiles.

Related Issues (1)

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.