https://github.com/vitalspace/ansi
Ansi Zig
https://github.com/vitalspace/ansi
ansi colors zig
Last synced: 12 months ago
JSON representation
Ansi Zig
- Host: GitHub
- URL: https://github.com/vitalspace/ansi
- Owner: vitalspace
- Created: 2024-01-11T02:17:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-11T02:25:04.000Z (over 2 years ago)
- Last Synced: 2025-03-01T09:18:00.050Z (over 1 year 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});
}
```
