Skip to content

jline3 example should close Terminal (using try-with-resource or try-finally) #1168

@dwalluck

Description

@dwalluck

Should this line ensure that the terminal is closed?

Terminal terminal = TerminalBuilder.builder().build();

In the docs https://www.javadoc.io/doc/org.jline/jline/3.14.1/org/jline/terminal/Terminal.html it states that "Terminals should be closed by calling the Closeable.close() method in order to restore their original state" although I cannot tellw ithout looking at the code what resources it might actually free and what constitutes the "original state".

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions