Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 696 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 696 Bytes

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)
}