Skip to content

add text escape sequences #25

Description

@PatrykPaluch
  • 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:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions