Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crossterm_style's ResetColor is not re-exported in lib.rs #273

Closed
Zooce opened this issue Oct 9, 2019 · 4 comments · Fixed by #274
Closed

crossterm_style's ResetColor is not re-exported in lib.rs #273

Zooce opened this issue Oct 9, 2019 · 4 comments · Fixed by #274
Labels

Comments

@Zooce
Copy link

Zooce commented Oct 9, 2019

If I use crossterm as my only dependency, I don't get access to ResetColor from crossterm_style because it isn't re-exported like the others:

#[cfg(feature = "style")]
pub use crossterm_style::{
    color, style, Attribute, Color, Colored, Colorize, ObjectStyle, PrintStyledFont, SetAttr,
    SetBg, SetFg, StyledObject, Styler, TerminalColor,
};
@TimonPost
Copy link
Member

TimonPost commented Oct 9, 2019

Good catch. It will be fixed soon. Sorry for the inconvenience. Try to use TerminalColor::reset() as temporary solution.

@Zooce
Copy link
Author

Zooce commented Oct 10, 2019

The workaround I'm using is actually similar, Color::Reset.

@TimonPost
Copy link
Member

That works as well, you could even use Attribute

@zrzka
Copy link
Contributor

zrzka commented Oct 10, 2019

One thing to note here - the ResetColor is in the master branch only and not released yet.

@TimonPost TimonPost added the in_progress is being worked on label Oct 15, 2019
december1981 pushed a commit to december1981/crossterm that referenced this issue Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants