Skip to content

Conversation

spyrkob
Copy link
Collaborator

@spyrkob spyrkob commented Jul 4, 2025

A few fixes related to displaying the installation progress bar

leftover text when using translated texts

When using translated text with characters that don't fit single character space (e.g. chinese), the text erase mechanism can leave some text behind resulting in something like:

feature-packs が解決されました。                                                 at-00007
パッケージがインストールされました。40/541(100%) 
アーティファクトがダウンロードされました。                                           -00001-resources.jarjar7.jar1.jarjarjarararar
JBoss モジュールがインストールされました。91/492(100%) 
設定が生成されました。              を適用しています...    lancer.xml
JBoss の例がインストールされました。                    dalone-xts.xmljms.xmlxmld.xml

To fix that, we're adding jansi library and using ANSI escape codes to clear the text in the progress bar.

skipping to next line of text

When terminal width is not enough to display the whole message, the progress bar can jump to a new line. This fix will truncate the message based on the actual width of the console

displaying the downloaded artifact path on Windows

When downloading artifacts the file name of the downloaded jar should be displayed (e.g. prospero-core-1.3.6.Final.jar). However on Windows a whole path of the file is displayed.

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