Skip to content

Commit

Permalink
Fix titles on Windows (1.3.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
e3ndr committed May 29, 2021
1 parent a976180 commit 9260ec3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>xyz.e3ndr</groupId>
<artifactId>ConsoleUtil</artifactId>
<version>1.3.0</version>
<version>1.3.1</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void clearConsole() throws IOException, InterruptedException {

@Override
public void setTitle(@NonNull String title) throws IOException, InterruptedException {
this.run("title " + title).inheritIO().start();
this.run("title " + title.replace("^", "^^").replace("|", "^|")).inheritIO().start();
}

@Override
Expand Down

0 comments on commit 9260ec3

Please sign in to comment.