diff options
| author | mo8it <mo8it@proton.me> | 2024-08-26 00:48:12 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-08-26 00:48:12 +0200 |
| commit | d1571d18f915943418fb8d13a3997d0d7d384e77 (patch) | |
| tree | 0e2d9b481b567c8f14b21d9ab456c425a4919dae /src/term.rs | |
| parent | cb86b44dea79b538a9ce62fb230de4b74e95ccf4 (diff) | |
Only reset color and underline after link
Diffstat (limited to 'src/term.rs')
| -rw-r--r-- | src/term.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/term.rs b/src/term.rs index 4c6ac90..7b8642b 100644 --- a/src/term.rs +++ b/src/term.rs @@ -94,7 +94,9 @@ pub fn terminal_file_link(stdout: &mut StdoutLock, path: &str, color: Color) -> stdout, "\x1b]8;;file://{canonical_path}\x1b\\{path}\x1b]8;;\x1b\\", )?; - stdout.queue(ResetColor)?; + stdout + .queue(SetForegroundColor(Color::Reset))? + .queue(SetAttribute(Attribute::NoUnderline))?; Ok(()) } |
