| 1 | package com.googlecode.lanterna.terminal.swing; |
| 2 | |
| 3 | /** |
| 4 | * This enum stored various ways the AWTTerminalFrame and SwingTerminalFrame can automatically close (hide and dispose) |
| 5 | * themselves when a certain condition happens. By default, auto-close is not active. |
| 6 | */ |
| 7 | public enum TerminalEmulatorAutoCloseTrigger { |
| 8 | /** |
| 9 | * Auto-close disabled |
| 10 | */ |
| 11 | DoNotAutoClose, |
| 12 | /** |
| 13 | * Close the frame when exiting from private mode |
| 14 | */ |
| 15 | CloseOnExitPrivateMode, |
| 16 | /** |
| 17 | * Close if the user presses ESC key on the keyboard |
| 18 | */ |
| 19 | CloseOnEscape, |
| 20 | ; |
| 21 | } |