*
* The MIT License (MIT)
*
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
"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.
}