Odin printing library with support for ANSI colors and attributes. The goal is to mirror the existing core:fmt library to provide a seamless alternative.
- afmt (a for ansi) is designed to be used as a collection.
- Reference examples.odin for idiomatic patterns for each procedure in the library.
https://github.com/odin-lang/Odin/blob/master/LICENSE
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
- The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
- This notice may not be removed or altered from any source distribution.
- Clone afmt into odin/shared folder:
cd $(odin root)shared git clone https://github.com/OnlyXuul/afmt.git
- To use the library, add to the top of your project file:
import "shared:afmt"
- To run usage examples:
cd $(odin root)shared/afmt/examples odin run .






