Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osiris-team/better-thread
Provides ordered, live thread visualisation inside console using jansi and jline.
https://github.com/osiris-team/better-thread
jansi java jline3 thread
Last synced: 16 days ago
JSON representation
Provides ordered, live thread visualisation inside console using jansi and jline.
- Host: GitHub
- URL: https://github.com/osiris-team/better-thread
- Owner: Osiris-Team
- License: mit
- Created: 2020-12-03T03:53:01.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T09:54:35.000Z (over 1 year ago)
- Last Synced: 2024-11-02T17:42:48.418Z (2 months ago)
- Topics: jansi, java, jline3, thread
- Language: Java
- Homepage:
- Size: 4.75 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Better-Thread [![](https://jitpack.io/v/Osiris-Team/Better-Thread.svg)](https://jitpack.io/#Osiris-Team/Better-Thread)
Provides colored, highly customizable, thread visualisation
for any terminal, via [jansi](http://fusesource.github.io/jansi/)
and [jline](https://github.com/jline/jline3).
Add it to your project with [Maven/Gradle/Sbt/Leinigen](https://jitpack.io/#Osiris-Team/Better-Thread/).```java
BThreadManager manager = new BThreadManager();
manager.startPrinter();
manager.start(thread -> {
for (int i = 1; i <= 100; i++) {
thread.setStatus("Climbing stairs... Step: "+ i);
thread.step();
}
}, new BuilderBThreadModules().date().spinner().status().build());
```### Features
- Works on multiple platforms (Windows, Unix, MacOs etc...)
- Customizable messages via modules.
- Easy to use and fast to write.### Usage
- [Example how to create a Task, with parent class.](https://github.com/Osiris-Team/Better-Thread/blob/main/src/test/java/UsageExample.java)
- [Example how to create a Task, without parent class.](https://github.com/Osiris-Team/Better-Thread/blob/main/src/test/java/UsageExample.java)### Links
- Support and chat over at [Discord](https://discord.com/invite/GGNmtCC)
- Support the development by [donating](https://www.paypal.com/donate?hosted_button_id=JNXQCWF2TF9W4)
- Thanks a lot to [@gnodet](https://github.com/gnodet) for his help with jansi and jline