Skip to content

ligolang/ligo_using_colours

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using colours in ligo

To install this package using ligo

echo '{}' > package.json
ligo install using colours

runing a test file (use_console.mligo) with ligo

#import "using_colours/console.mligo" "Console"
#import "using_colours/utf8.mligo" "Utf8"

let test_colours =
  let () = Console.set_yellow () in
  let () = Console.set_background_red () in
  let () = Test.print "Mate: " in
  let () = Test.println (Utf8.utf8 129481n) in
  let () = Console.colour_reset () in
  let () = Console.set_background_green () in
  let () = Test.print "Coffee: " in
  let () = Test.println (Utf8.utf8 9749n) in
  let () = Console.colour_reset () in
  ()

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published