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

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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