Skip to content

JoshCheek/ansio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANSIO

What is it?

A Library for using ANSI escape sequences with the Io programming language. Currently only colours are implemented, but if you have need for other sequences, feel free to add them and send me a request, or to ask me to add them for you.

How to use it

There are eight colours, Black Red Green Yellow Blue Magenta Cyan and White. For each of these, you can set them as the foreground by invoking fgColour or as the background with bgColour. This will set the string's foreground or background to that colour at the begining, and then invoke the reset at the end.

If you do not want the reset to be invoked, you can use setFgColour and setBgColour.

An example:

screenshot

How to install it

$ io install.io

How to run tests

This uses willful for testing. First install that, then go to the root dir and run $ willful test

About

ANSI lib for Io (eg: command line colouring)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published