Results 22 comments of Matthew Thomas

Inspired by your comment in the OP, but I'm using both green and red: ```rust use core::fmt; pub enum ExtendedColor fmt::Display for ExtendedColor

Here's Version Two. Feels a little more Rusty to me (but what do I know?) ```rust use core::fmt; pub struct Rgb { pub r: u8, pub g: u8, pub b:...

@phil-opp Do you want the below as a PR? ## Usage ```rust fn main() { serial_print!("{}", extended_format(|commands| commands.foreground(Rgb::new(0, 0, 255)) .and_then(|_| commands.print("W")) .and_then(|_| commands.foreground(Rgb::new(0, 255, 0))) .and_then(|_| commands.print("o")) .and_then(|_| commands.foreground(Rgb::new(0,...

@phil-opp Awesome feedback. Perfect for a beginner Rustacean like me—thanks! I see your point about the uncommon interface, and the lack of support for `fmt::Debug` _et al_. I like your...

> I sent you an invite to the organization. You should then be able to move your repository if you like or create a new one. Awesome, thanks! I'll work...

@phil-opp I've never moved a repository in GitHub before, nor have I done anything with Teams. I think it's showing: I renamed my repo to `ansi_rgb` and transferred ownership to...

@phil-opp Boom! https://crates.io/crates/ansi_rgb Will update documentation, package better, etc later

> Awesome! I try to include it on the blog soon. @phil-opp The crate works so it'd be okay for people to use, but there are a few [things I'd...

@phil-opp 0.2.0 came faster than I expected: https://crates.io/crates/ansi_rgb/0.2.0 🎉

@64 Consuming ANSI escape sequences definitely sounds useful. However, consumption of ANSI escape sequences is a separate concern than producing them, and I suspect very little code would be common...