Hi,
I'm experimenting a bit with Lanterna 3.0.0-beta2, and I'm running some code as a Unit Test inside IntelliJ, basically the equivalent of the very first example in the docs. When I close the SwingTerminalFrame, the Unit Test keeps running. What would be the proper way to shut down:
gui.addWindowAndWait(window)...
on closing of the SwingTerminalFrame?
Maarten
ps. I'm actually experimenting with creating a groovy DSL for this. The Griffon project has one, but that cannot be used stand-alone, only as part of a Griffon project. I've got a minimal example up-and-running, including IDE code completion:
def terminal = new LanternaTerminalBuilder().build() {
window {
panel {
border(style: 'singleLine', title: 'Main panel')
gridLayout(2)
label('My First Little Label')
}
}
}
terminal.waitFor()