Comments (14)
Fixed in v0.3.1.
from hexyl.
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.
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.
It should be fairly easy for hexyl
to just use 8-bit ANSI codes. We should work on this.
from hexyl.
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.
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.
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
Terminal.app with tmux
from hexyl.
Awesome. how beautiful it is! ❤️
Kudos for your amazing work!
v0.3.1 in Terminal.app with tmux:
from hexyl.
hmmmm.... color not right in rxvt-unicode, v0.3.1
my environment variables: (if it helps)
COLORTERM=rxvt-xpm
COLORFGBG=default;default
TERM=rxvt-unicode
from hexyl.
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.
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:
from hexyl.
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.
@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.
solved by using the 256 color urxvt, sorry to bother
from hexyl.
Related Issues (20)
- Add option to disable printing 0 bytes as ascii 0. HOT 1
- `--no-characters` causes output artifacts when squeezing lines HOT 5
- Is there a cheat sheet anywhere telling what color correlates to category of byte? HOT 3
- Add support for the NO_COLOR environment variable HOT 4
- Regression: broken pipe error
- Make --panels=auto the new default? HOT 3
- hexyl should not fail if `--panels=auto` is used and output is not a TTY
- Identical lines not squeezed HOT 3
- hexyl -C does the inverse of hexdump -C HOT 1
- Request: publish source tar with generated manpage HOT 3
- Support for different code pages / character tables
- Incorrect output when reading from terminal HOT 2
- Feature request: Ship as a crate HOT 3
- `hexyl /dev/zero` hangs HOT 6
- Display some non-printable characters like `bat --show-all` HOT 5
- Feature request: Comodore prg mode HOT 1
- CI artifact names conflict HOT 2
- Provide Statically Compiled Binaries for (aarch64|arm64) Linux
- Support raw output HOT 2
- Customize colors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexyl.