Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

support text style 馃槃 #18

Closed
Krosxx opened this issue Jul 23, 2019 · 1 comment
Closed

support text style 馃槃 #18

Krosxx opened this issue Jul 23, 2019 · 1 comment

Comments

@Krosxx
Copy link

Krosxx commented Jul 23, 2019

https://github.com/ajalt/mordant

@linux-china
Copy link

Now my solution:

  • Add mordant-1.2.1.jar in your .kash.json file as classPaths
  • declare t as global variable in .kash.kts
val t = com.github.ajalt.mordant.TermColors()
  • execute your Kotlin code:
println(t.red("This text will be red on terminals that support color"))

@Krosxx Krosxx closed this as completed Aug 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants