Skip to content

Commit

Permalink
added details on redirection to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy authored and gnodet committed May 14, 2018
1 parent e2ac629 commit 272f395
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jansi/src/main/java/org/fusesource/jansi/AnsiMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@
* support natively ANSI escape sequences like any Unix terminal,</li>
* <li>on Windows, cmd.exe, PowerShell or Git-cmd terminals should get <code>WINDOWS</code> mode.</li>
* </ul>
* The results will vary if you play with <code>jansi.passthrough</code>, <code>jansi.strip</code> or
* If stdout is redirected to a file (<code>&gt; out.txt</code>), System.out should switch to <code>STRIP_ANSI</code>.
* Same for stderr redirection (<code>2&gt; err.txt</code>) which should affect System.err mode.
* <p>The results will vary if you play with <code>jansi.passthrough</code>, <code>jansi.strip</code> or
* <code>jansi.force</code> system property, or if you redirect output to a file.
* <p>If you have a specific situation that is not covered, please report precise conditions to reproduce
* the issue and ideas on how to detect precisely the affected situation.
* @see AnsiConsole
*/
public class AnsiMain {
public static void main(String... args) throws IOException {
Expand Down

0 comments on commit 272f395

Please sign in to comment.