"script", "-fqe", "/dev/null"
};
String [] cmdShellBSD = {
- "script", "-qe", "-F", "/dev/null"
+ "script", "-q", "-F", "/dev/null"
};
// Spawn a shell and pass its I/O to the other constructor.
// Claim the keystrokes the emulator will need.
addShortcutKeys();
+
+ // Add shortcut text
+ newStatusBar("Terminal session executing...");
}
/**
// Claim the keystrokes the emulator will need.
addShortcutKeys();
+
+ // Add shortcut text
+ newStatusBar("Terminal session executing...");
}
/**
/**
* Handle window close.
*/
- @Override public void onClose() {
+ @Override
+ public void onClose() {
emulator.close();
if (shell != null) {
terminateShellChildProcess();
shell = null;
emulator.close();
clearShortcutKeypresses();
+ statusBar.setText("Terminal session completed, exit " +
+ "code " + rc + ".");
} catch (IllegalThreadStateException e) {
// The emulator thread has exited, but the shell Process
// hasn't figured that out yet. Do nothing, we will see
shell = null;
emulator.close();
clearShortcutKeypresses();
+ statusBar.setText("Terminal session completed, exit " +
+ "code " + rc + ".");
} catch (IllegalThreadStateException e) {
// The shell is still running, do nothing.
}