Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitalspace/ansi
Ansi Zig
https://github.com/vitalspace/ansi
ansi colors zig
Last synced: 6 days ago
JSON representation
Ansi Zig
- Host: GitHub
- URL: https://github.com/vitalspace/ansi
- Owner: vitalspace
- Created: 2024-01-11T02:17:35.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-11T02:25:04.000Z (10 months ago)
- Last Synced: 2024-01-11T05:21:23.217Z (10 months ago)
- Topics: ansi, colors, zig
- Language: Zig
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansi Zig
## Usage
```typescript
pub fn main() {
const allocator = std.mem.page_allocator;
const ansi = try Ansi().init(allocator);
const message = try ansi.bgBlack(try ansi.cyan("Hello world!!"));
defer allocator.free(message);std.debug.print("{s}\n", .{message});
}
```![image](https://github.com/vitalspace/ansi/assets/29004070/d25048b5-448d-4208-9b52-40c6d2ab19b6)