Commit Graph
66 Commits
Author SHA1 Message Date
sharkdp 19030470f9 Add proper Ctrl-C handling 2019-01-14 10:40:04 +01:00
sharkdp b27ab61608 Fix behavior on broken pipe 2019-01-14 10:17:14 +01:00
sharkdp 39a83021dc Use 16 colors instead of 256 2019-01-14 09:53:33 +01:00
sharkdp f6f41e76aa Use --color=always/auto/never instead of --no-color 2019-01-14 09:14:47 +01:00
Bennett Hardwick 74861353fa Add --no-color flag to disable ANSI sequences 2019-01-14 09:14:47 +01:00
Arnav Borborah 78d8cc516f Change exit code for help and version messages to 0 2019-01-13 18:35:15 +01:00
arnavb11 faebee7b8c Move duplicate code out of conditional 2019-01-13 18:03:07 +01:00
arnavb11 92c974d066 Handle clap errors and other errors separately 2019-01-13 18:03:07 +01:00
arnavb11 866feb2966 Refactor error handling into a if-let 2019-01-13 18:03:07 +01:00
arnavb11 952fff0ee4 Use instead of for consistency 2019-01-13 18:03:07 +01:00
Lily Ballard 1619cd5afe Bump the buffer size to 256 bytes
On my machine this produces an 11% speedup (benchmarked reading a 1.3MB
file from disk). Higher buffer sizes don't seem to make a difference.
2019-01-13 17:35:51 +01:00
Lily Ballard 20694bb628 Write lines into an in-memory buffer before printing to stdout
Running them through an in-memory buffer first produces a 25% speedup
(when tested against a 1.3MB file).
2019-01-13 17:35:51 +01:00
sharkdp 98311282e5 Fix #25 v0.3.1 2019-01-10 09:03:39 +01:00
Lily Ballard afb6669477 Replace all uses of format!()
Previously we were allocating 2 strings per byte, plus another for the
offset. Instead we can just write all this directly to stdout.

Also replace the calculation of the ANSI escape code for every single
byte. This produces a significant speedup.
2019-01-10 09:00:44 +01:00
sharkdp 0dad8bf481 Bump version 2019-01-10 08:36:45 +01:00
sharkdp 612a227a81 Update dependencies 2019-01-10 08:34:28 +01:00
sharkdp 351fcf0aea Add note about Windows
closes #22
2019-01-10 08:32:46 +01:00
sharkdp 3c3d91cd51 Use 8-bit colors instead of 24-bit truecolor 2019-01-10 08:32:27 +01:00
Lily Ballard 7b7a0ff32d Get rid of the use of str.repeat()
This allocates a string. Instead we can (ab)use format specifiers to do
the repetitions for us.
2019-01-10 07:56:42 +01:00
Sebastian Thiel 2e403a2d11 Make clear we didn't accidentally forget to handle Results 2019-01-09 23:41:29 +01:00
Tobias Kortkamp 155b14e865 Add FreeBSD install instructions to README.md
I've just packaged hexyl for FreeBSD. It should be available in a couple of days from the `latest` package repository.

https://svnweb.freebsd.org/changeset/ports/489825
2019-01-09 23:07:50 +01:00
sharkdp 8429b87594 Re-enable Windows build 2019-01-09 20:20:37 +01:00
Thomas Schneider 1cddf395a8 Update README.md
changed yaourt to 
could be pakku, pikaur, aurman or something 
But yaourt is out of date, insecure and not recommended anymore
2019-01-09 19:55:14 +01:00
Yasuaki Uechi 2a1ae1d295 Add macOS installation guide 2019-01-07 10:09:37 +01:00
sharkdp 57e1c67bfb Disable Windows build 2018-12-30 13:27:21 +01:00
sharkdp a109ce7aba Bump version v0.3.0 2018-12-30 12:56:20 +01:00
David Peter b5704f660c Change variable name 2018-12-02 20:41:11 +01:00
PewZ 648e96dbaf add COLOR_OFFSET 2018-12-02 20:41:11 +01:00
PewZ 91a119f453 display input offset 2018-12-02 20:41:11 +01:00
sharkdp 22b544393b Enable ANSI support on Windows, closes #2 2018-11-21 19:36:20 +01:00
sharkdp 269246097c Enable builds for Windows 2018-11-21 19:36:20 +01:00
Erjan Kalybek eb7a5b677f Fix typo 2018-11-12 09:00:59 +01:00
sharkdp 374b04dd43 Update logo 2018-11-08 20:03:11 +01:00
David Peter 3ac0f9752b Update README.md 2018-11-08 19:58:51 +01:00
Attenuation 499bd4aa54 fixed 2018-11-08 19:58:51 +01:00
Attenuation 1b460c0cef package hexyl to archlinux 2018-11-08 19:58:51 +01:00
David Peter e54d7286b8 Update README.md 2018-11-06 22:26:26 +01:00
David Peter 0e0e1626ab Update README.md 2018-11-06 22:20:52 +01:00
David Peter 300dc73605 Update README.md 2018-11-06 22:19:48 +01:00
sharkdp cd989ba5c4 Add install instructions 2018-11-06 21:43:50 +01:00
David Peter 4046ea4163 Added description. 2018-11-06 21:34:46 +01:00
sharkdp 71e05dde87 Update logo v0.2.0 2018-11-06 21:28:19 +01:00
sharkdp ba5f800265 Update Cargo.lock 2018-11-06 21:28:13 +01:00
sharkdp 1a88fd5f38 Bump version 2018-11-06 21:23:51 +01:00
sharkdp 784c714bde Fix clippy warning 2018-11-06 21:21:40 +01:00
sharkdp ecf6dfc7ae Add ci scripts 2018-11-06 21:20:43 +01:00
sharkdp b77ce63731 Remove demo.svg 2018-11-06 21:19:29 +01:00
David Peter 31546024ae Add demo images 2018-11-06 21:19:00 +01:00
David Peter d28e8ae521 Update README.md 2018-11-06 21:06:01 +01:00
David Peter 4afd84d863 Update README.md 2018-11-06 21:05:44 +01:00