X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTTerminalWindow.java;h=74f71edc7c0af8b9387dddca88a246d275810a9a;hb=107bba162165a2e6fc88913065f52c14d04b3883;hp=93d0fa1575a5a6e550ef78b26db87d7f22a081d7;hpb=615a0d99fd0aa4437116dd083147f9150d5e6527;p=fanfix.git diff --git a/src/jexer/TTerminalWindow.java b/src/jexer/TTerminalWindow.java index 93d0fa1..74f71ed 100644 --- a/src/jexer/TTerminalWindow.java +++ b/src/jexer/TTerminalWindow.java @@ -300,6 +300,19 @@ public class TTerminalWindow extends TScrollableWindow } + /** + * Handle window close. + */ + @Override + public void onClose() { + emulator.close(); + if (shell != null) { + terminateShellChildProcess(); + shell.destroy(); + shell = null; + } + } + /** * Handle window/screen resize events. * @@ -355,19 +368,6 @@ public class TTerminalWindow extends TScrollableWindow } // synchronized (emulator) } - /** - * Handle window close. - */ - @Override - public void onClose() { - emulator.close(); - if (shell != null) { - terminateShellChildProcess(); - shell.destroy(); - shell = null; - } - } - /** * Handle keystrokes. *