-2

In a program I'm making, I really want to change the color of some words in my output. Thing is, the only solution I've found is Jansi, but honestly I'm very new to Github and this kind of projects and I have no idea about how to import it, or using it in my project.

So, is there any kind of alternative method to color some words in my Windows console? Or is Jansi my only option? In that case, can someone enlighten me about how to use it in my project?

Thanks in advance.

  • 1
    If you'd read the description on the repository, you would have found the [release downloads](http://fusesource.github.io/jansi/download.html) link. Just add the most recent one of those to your project like any other .jar – Socratic Phoenix Sep 23 '17 at 13:42

1 Answers1

-1

As an easiest solution you can just copy Ansi.class from Jansi to your project.

See an example of usage here

But actually Socratic Phoenix is right. Better way is to add it as a jar library to your project.

Alex Saunin
  • 976
  • 1
  • 8
  • 15