Skip to content

Commit

Permalink
JLine exec provider should reject terminal creation on a redirected o…
Browse files Browse the repository at this point in the history
…utput stream (fixes #1098) (#1130)
  • Loading branch information
gnodet authored Dec 10, 2024
1 parent 99b5b6c commit c6378cd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public String name() {
}

public Pty current(SystemStream systemStream) throws IOException {
if (!isSystemStream(systemStream)) {
throw new IOException("Not a system stream: " + systemStream);
}
return ExecPty.current(this, systemStream);
}

Expand Down

0 comments on commit c6378cd

Please sign in to comment.