Coder Social home page Coder Social logo

Comments (14)

sharkdp avatar sharkdp commented on May 21, 2024 2

Fixed in v0.3.1.

from hexyl.

kilobyte avatar kilobyte commented on May 21, 2024 1

The only remaining terminal I know that doesn't understand anything but 16 colors in Hurd console — but it's not like Hurd sees any real use. Anything else at least does something useful (like, Linux and FreeBSD text consoles gracefully degrade 256 to 16, for compatibility with legacy hardware limitations). I obviously exclude unmaintained software, and terminals I haven't looked at.

As for 24-bit, here's a nice table documenting support. TL;DR: the vast majority of maintained terminals support that in current versions, but in too many cases this support is recent. Thus, going with 8-bit sounds right. You can revisit the decision in several years from now.

from hexyl.

sharkdp avatar sharkdp commented on May 21, 2024

There shouldn't be any background colors in the output. It seems like your terminal emulator does not support truecolor ANSI color codes (24-bit) and is mistakenly displaying background colors.

from hexyl.

sharkdp avatar sharkdp commented on May 21, 2024

It should be fairly easy for hexyl to just use 8-bit ANSI codes. We should work on this.

from hexyl.

kilobyte avatar kilobyte commented on May 21, 2024

Just checked: rxvt-unicode supports 30-37 (basic ANSI, plus optional bold=bright), 90-97 (aixterm bright), 38;5;0-255 (256-color) but not 38;2;0-255;0-255;0-255 (24-bit).

But then, you don't need any colors above the basic 16, so even 30-37 + 1 should be enough.

from hexyl.

sharkdp avatar sharkdp commented on May 21, 2024

Hm, yes. We could also go to a basic 16 color scheme, but that would require the user to have a decent color scheme in the terminal 😄

I think I'd go with interpolated 8-bit colors.

from hexyl.

mooyoul avatar mooyoul commented on May 21, 2024

It would be great if hexyl supports 256 colors also 👍
I cannot get beautiful results from hexyl since i'm using Terminal.app (macOS built-in app) with tmux, which does not support 24bit true colors.

Please refer below screenshots:

Terminal.app without tmux

2019-01-10 7 42 52

Terminal.app with tmux

2019-01-10 7 43 10

from hexyl.

mooyoul avatar mooyoul commented on May 21, 2024

Awesome. how beautiful it is! ❤️
Kudos for your amazing work!

v0.3.1 in Terminal.app with tmux:

2019-01-10 5 39 35

from hexyl.

garywill avatar garywill commented on May 21, 2024

hmmmm.... color not right in rxvt-unicode, v0.3.1

image
my environment variables: (if it helps)

COLORTERM=rxvt-xpm
COLORFGBG=default;default
TERM=rxvt-unicode

from hexyl.

sharkdp avatar sharkdp commented on May 21, 2024

rxvt-unicode, v0.3.1

That can't be right. The current version (from 2016!) is v9.22. v0.3.1 doesn't even seem to be published.

Can you run basic ANSI color tests like this: https://gist.github.com/ketan/2866a236596636311d64 ?

from hexyl.

garywill avatar garywill commented on May 21, 2024

I mean hexyl 0.3.1. Sorry I wans't clear.

I found two rxvt binaries urxvt-256color and urxvt in system. I used urxvt. The 256 color one seems OK.

This is the urxvt test result:

image

image

from hexyl.

kilobyte avatar kilobyte commented on May 21, 2024

Isn't that the ancient mainline branch of rxvt, with last upstream update in 2001 then a beta in 2003? It lingered until last year in Debian-based distributions. If so, then no wonders it's crap.

from hexyl.

sharkdp avatar sharkdp commented on May 21, 2024

@garywill I didn't quite understand if you managed to solve the issue or not. If you believe that there is something wrong with hexyl, please open a new ticket.

from hexyl.

garywill avatar garywill commented on May 21, 2024

solved by using the 256 color urxvt, sorry to bother

from hexyl.

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.