jice-nospam / doryen-rs

ascii roguelike library in rust with native and wasm support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Displaying a formatted text

skyne98 opened this issue · comments

Hey there! Another issue for ya! Printing colored strings via %{color} is very convenient, but it doesn't allow you to have something like format!("%{white}Move with %{red}arrows %{} {}", fps).

commented

mmh indeed. I made a poor choice of color markers... This is something that can be fixed quickly. What markers would be best?

@jice-nospam, to be honest, I am thinking about something like #[color]. It looks like rust own attribute syntax and is slightly easier to type.