File tree 1 file changed +12
-1
lines changed
jansi/src/main/java/org/fusesource/jansi
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 32
32
import static org .fusesource .jansi .internal .CLibrary .isatty ;
33
33
34
34
/**
35
- * Main class for the library, providing executable jar to diagnose Jansi setup.
35
+ * Main class for the library, providing executable jar to diagnose Jansi setup.
36
+ * <p>If no system property is set and output is sent to a terminal (no redirect to a file):
37
+ * <ul>
38
+ * <li>any terminal on any Unix should get <code>RESET_ANSI_AT_CLOSE</code> mode,</li>
39
+ * <li>on Windows, Git-bash or Cygwin terminals should get <code>RESET_ANSI_AT_CLOSE</code> mode also, since they
40
+ * support natively ANSI escape sequences like any Unix terminal,</li>
41
+ * <li>on Windows, cmd.exe, PowerShell or Git-cmd terminals should get <code>WINDOWS</code> mode.</li>
42
+ * </ul>
43
+ * The results will vary if you play with <code>jansi.passthrough</code>, <code>jansi.strip</code> or
44
+ * <code>jansi.force</code> system property, or if you redirect output to a file.
45
+ * <p>If you have a specific situation that is not covered, please report precise conditions to reproduce
46
+ * the issue and ideas on how to detect precisely the affected situation.
36
47
*/
37
48
public class AnsiMain {
38
49
public static void main (String ... args ) throws IOException {
You can’t perform that action at this time.
0 commit comments