Skip to content
/ ansi Public

ANSI color and attribute utility module for V Lang.

License

Notifications You must be signed in to change notification settings

omegaui/ansi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

262c503 Β· Apr 26, 2023

History

4 Commits
Apr 25, 2023
Apr 26, 2023
Apr 26, 2023
Apr 26, 2023
Apr 25, 2023
Apr 25, 2023
Apr 25, 2023
Apr 25, 2023
Apr 26, 2023
Apr 26, 2023

Repository files navigation

ansi

ANSI color and attribute utility module for V Lang.

Install

v install omegaui.ansi

Example Usage

module main

import omegaui.ansi.display
import omegaui.ansi.codes

// main demonstrating the basic usage
// for more, see codes and functions available in [codes] and [text] module
fn main() {
	display.println(text: display.blend(text: "hello", style: codes.italic), style: codes.bold)
	display.print(text: 'Hey, This works pretty', fg: codes.blue, style: codes.italic)
	print(' cool ')
	display.println(text: 'Right?', fg: codes.bright_white, style: codes.dim)
}

About

ANSI color and attribute utility module for V Lang.

Topics

Resources

License

Stars

Watchers

Forks

Languages