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

add text escape sequences #25

Open
PatrykPaluch opened this issue Sep 18, 2023 · 0 comments
Open

add text escape sequences #25

PatrykPaluch opened this issue Sep 18, 2023 · 0 comments
Assignees

Comments

@PatrykPaluch
Copy link
Member

  • Add the ability to write "escape sequences" something similar to ANSI escape code. Each sequence/code should accessible as afunction and automatically processed in Logger::write_str.
  • Create documentation for the escape sequences codes (or refer to ANSI escape code and document which sequences are available)

Something like

pub fn set_fg_color(&mut self, color: Color) { ... }
pub fn write_str(&mut self, s: &str) {
  if /* \eRED */ {
    self.set_color(Color::RED);
  }
  //...
}

I think we can implement the following:

@PatrykPaluch PatrykPaluch self-assigned this Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant