mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 00:00:03 +03:00
Only reset color and underline after link
This commit is contained in:
parent
cb86b44dea
commit
d1571d18f9
|
@ -94,7 +94,9 @@ pub fn terminal_file_link(stdout: &mut StdoutLock, path: &str, color: Color) ->
|
||||||
stdout,
|
stdout,
|
||||||
"\x1b]8;;file://{canonical_path}\x1b\\{path}\x1b]8;;\x1b\\",
|
"\x1b]8;;file://{canonical_path}\x1b\\{path}\x1b]8;;\x1b\\",
|
||||||
)?;
|
)?;
|
||||||
stdout.queue(ResetColor)?;
|
stdout
|
||||||
|
.queue(SetForegroundColor(Color::Reset))?
|
||||||
|
.queue(SetAttribute(Attribute::NoUnderline))?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue