jline / jline3

JLine is a Java library for handling console input.
Other
1.49k stars 218 forks source link

JLine exec provider should reject terminal creation on a redirected output stream #1098

Open gnodet opened 1 month ago

gnodet commented 1 month ago

Terminal created with:

TerminalBuilder.builder().systemOutput(TerminalBuilder.SystemOutput.ForcedSysOut).build()

if running:

cmd > out.txt

In such a case, the system out stream is redirected, but it's forced as the output, so the creation should be rejected.