retrofit
[fanfix.git] / src / jexer / TTerminalWindow.java
index aa555b0d92832da6639d586b12780933a8de8fcc..a22625e8e95f5287c8ba3d727ded3e3633336bb8 100644 (file)
@@ -443,4 +443,16 @@ public class TTerminalWindow extends TScrollableWindow {
         return terminal.waitForOutput(millis);
     }
 
+    /**
+     * Get the exit value for the emulator.
+     *
+     * @return exit value
+     */
+    public int getExitValue() {
+        if (terminal == null) {
+            return -1;
+        }
+        return terminal.getExitValue();
+    }
+
 }