mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-17 22:58:08 -05:00
Only reset color and underline after link
This commit is contained in:
parent
cb86b44dea
commit
d1571d18f9
1 changed files with 3 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue