An open API service indexing awesome lists of open source software.

https://github.com/apple-x-co/zig-cli-color

for learning
https://github.com/apple-x-co/zig-cli-color

zig

Last synced: 5 months ago
JSON representation

for learning

Awesome Lists containing this project

README

          

# zig-cli-color

## Build

```bash
zig build -Doptimize=ReleaseFast
```

## Run

```bash
zig build run
```

![thumbnail](thumb.png)

## Usage

```zig
const std = @import("std");
const Color = @import("color.zig").Color;

var allocator = std.heap.page_allocator;
var color = Color.init(allocator);
defer color.deinit();

std.debug.print("{s}{s}\n", .{ color.fgBlack("Foreground BLACK"), color.reset() });
```