this post was submitted on 24 Dec 2024
33 points (100.0% liked)
Rust
6244 readers
16 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I thought, colour codes are platform dependent, will it work on windows
I usually run things on Linux or macOS, but using a library (crate) may add portability, imo
๐ค I think the vt100 protocols (where the escape code come from) predate windows and I think all modern terminals still use those as the base. So I think they are cross platform. From a quick search it looks like they are the same codes on windows. So I dont think the libraries are doing anything special for cross platform support.
I see, so I was wrong then
Maybe I should try colour codes on windows when I get to it ๐ thanks for the info