You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2017/03/18 12:35:41 UTC
[jira] [Comment Edited] (MNG-6188) Console color not properly reset
when interrupting build process
[ https://issues.apache.org/jira/browse/MNG-6188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15931207#comment-15931207 ]
Hervé Boutemy edited comment on MNG-6188 at 3/18/17 12:35 PM:
--------------------------------------------------------------
will probably require a ShutdownHook: http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread) registered in MavenCli just after Jansi is installed
this hook will require to be called before uninstalling Jansi (if Jansi is deinstalled), and write a "reset" ANSI code (if ANSI was enabled)
first, we'll need to make this issue reproducible, since working blindly will probably lead to pseudo fix...
was (Author: hboutemy):
will probably require a ShutdownHook: http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)
this hook will require to be called before uninstalling Jansi (if Jansi is deinstalled), and write a "reset" ANSI code (if ANSI was enabled)
first, we'll need to make this issue reproducible, since working blindly will probably lead to pseudo fix...
> Console color not properly reset when interrupting build process
> ----------------------------------------------------------------
>
> Key: MNG-6188
> URL: https://issues.apache.org/jira/browse/MNG-6188
> Project: Maven
> Issue Type: Bug
> Components: Logging
> Affects Versions: 3.5.0-alpha-1
> Reporter: Robert Scholte
> Fix For: 3.5.0-candidate
>
> Attachments: jansi-bug.PNG
>
>
> When interrupting the build process for some reason, it could happen that console has still a color assigned.
> For a possible result, see the attachment (most of mint should have been white)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)