public TTerminalWindow(final TApplication application, final int x,
final int y, final String commandLine) {
- this(application, x, y, RESIZABLE, commandLine.split("\\s"),
+ this(application, x, y, RESIZABLE, commandLine.split("\\s+"),
System.getProperty("jexer.TTerminal.closeOnExit",
"false").equals("true"));
}
public TTerminalWindow(final TApplication application, final int x,
final int y, final String commandLine, final boolean closeOnExit) {
- this(application, x, y, RESIZABLE, commandLine.split("\\s"),
+ this(application, x, y, RESIZABLE, commandLine.split("\\s+"),
closeOnExit);
}
equals("true"))
) {
ptypipe = true;
- spawnShell(cmdShellPtypipe.split("\\s"));
+ spawnShell(cmdShellPtypipe.split("\\s+"));
} else if (System.getProperty("os.name").startsWith("Windows")) {
- spawnShell(cmdShellWindows.split("\\s"));
+ spawnShell(cmdShellWindows.split("\\s+"));
} else if (System.getProperty("os.name").startsWith("Mac")) {
- spawnShell(cmdShellBSD.split("\\s"));
+ spawnShell(cmdShellBSD.split("\\s+"));
} else if (System.getProperty("os.name").startsWith("Linux")) {
- spawnShell(cmdShellGNU.split("\\s"));
+ spawnShell(cmdShellGNU.split("\\s+"));
} else {
// When all else fails, assume GNU.
- spawnShell(cmdShellGNU.split("\\s"));
+ spawnShell(cmdShellGNU.split("\\s+"));
}
}
// Synchronize against the emulator so we don't stomp on its reader
// thread.
synchronized (emulator) {
+ setHiddenMouse(emulator.hasHiddenMousePointer());
setCursorX(emulator.getCursorX() + 1);
setCursorY(emulator.getCursorY() + 1
* @param mouse a mouse-based event
* @return whether or not the mouse is on the emulator
*/
- private final boolean mouseOnEmulator(final TMouseEvent mouse) {
+ private boolean mouseOnEmulator(final TMouseEvent mouse) {
synchronized (emulator) {
if (!emulator.isReading()) {