mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:31 +00:00
Enable ANSI support on Windows, closes #2
This commit is contained in:
1 parent
269246097c
commit
22b544393b
1 file changed
+4
@@ -242,6 +242,10 @@ fn run() -> io::Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
// Enable ANSI support for Windows
|
||||||
|
#[cfg(windows)]
|
||||||
|
let _ = ansi_term::enable_ansi_support();
|
||||||
|
|
||||||
let result = run();
|
let result = run();
|
||||||
match result {
|
match result {
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
|||||||
Reference in new issue
Block a user