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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a way to use ANSI codes on Windows, with a very small library #176

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

ZetaMap
Copy link

@ZetaMap ZetaMap commented Oct 1, 2024

Hello anuke, i come back with another way, to use ansi codes on windows.

It use a very small library, with a dll, to be able to use the windows' kernel32 api.

This time, the code is tested and fully functional. I also added the dependency in the build.gradle, with an implementation of it, only for windows.

the library used is jansi-native, version 1.1. A 15 years old version, but it's enough for the use.

I hope, this time, you will merge this PR.
Have nice day.

@ZetaMap
Copy link
Author

ZetaMap commented Oct 2, 2024

I also take this opportunity to fix some bugs and adds lots of useful functions in Strings.java to simplify string formatting. Like to easily print a menu, using mJust/lJust/rJust, like this:
image

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

Successfully merging this pull request may close these issues.

1 participant