mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +00:00
Use 8-bit colors instead of 24-bit truecolor
This commit is contained in:
1 parent
7b7a0ff32d
commit
3c3d91cd51
1 file changed
+7
-7
+7
-7
@@ -8,16 +8,16 @@ use std::io::{self, prelude::*, StdoutLock};
|
||||
use clap::{App, AppSettings, Arg};
|
||||
|
||||
use ansi_term::Colour;
|
||||
use ansi_term::Colour::RGB;
|
||||
use ansi_term::Colour::Fixed;
|
||||
|
||||
const BUFFER_SIZE: usize = 64;
|
||||
|
||||
const COLOR_NULL: Colour = RGB(117, 113, 94); // grey
|
||||
const COLOR_OFFSET: Colour = RGB(117, 113, 94); // grey
|
||||
const COLOR_ASCII_PRINTABLE: Colour = RGB(102, 217, 239); // cyan
|
||||
const COLOR_ASCII_WHITESPACE: Colour = RGB(166, 226, 46); // green
|
||||
const COLOR_ASCII_OTHER: Colour = RGB(249, 38, 114); // magenta
|
||||
const COLOR_NONASCII: Colour = RGB(253, 151, 31); // orange
|
||||
const COLOR_NULL: Colour = Fixed(242); // grey
|
||||
const COLOR_OFFSET: Colour = Fixed(242); // grey
|
||||
const COLOR_ASCII_PRINTABLE: Colour = Fixed(81); // cyan
|
||||
const COLOR_ASCII_WHITESPACE: Colour = Fixed(148); // green
|
||||
const COLOR_ASCII_OTHER: Colour = Fixed(197); // magenta
|
||||
const COLOR_NONASCII: Colour = Fixed(208); // orange
|
||||
|
||||
enum ByteCategory {
|
||||
Null,
|
||||
|
||||
Reference in new issue
Block a user