TerminalEmulatorAutoCloseTrigger.CloseOnEscape

This commit is contained in:
Reinhard Pointner 2016-11-27 02:18:48 +08:00
parent 99f87d20fd
commit b82fab09f7
1 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ import com.googlecode.lanterna.screen.Screen;
import com.googlecode.lanterna.screen.TerminalScreen;
import com.googlecode.lanterna.terminal.DefaultTerminalFactory;
import com.googlecode.lanterna.terminal.Terminal;
import com.googlecode.lanterna.terminal.swing.TerminalEmulatorAutoCloseTrigger;
import net.filebot.RenameAction;
import net.filebot.similarity.Match;
@ -45,7 +46,7 @@ public class CmdlineOperationsTextUI extends CmdlineOperations {
private MultiWindowTextGUI ui;
public CmdlineOperationsTextUI() throws Exception {
terminal = new DefaultTerminalFactory().createTerminal();
terminal = new DefaultTerminalFactory().setTerminalEmulatorFrameAutoCloseTrigger(TerminalEmulatorAutoCloseTrigger.CloseOnEscape).createTerminal();
screen = new TerminalScreen(terminal);
ui = new MultiWindowTextGUI(screen, new DefaultWindowManager(), new EmptySpace(TextColor.ANSI.DEFAULT));