diff --git a/.idea/encodings.xml b/.idea/encodings.xml index d67b0637..49c237dd 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -1,7 +1,7 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index 233c76fb..dbc35af7 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,11 @@ winget install ultimatecube 2. 安装依赖: ```shell +# vnc mvn install:install-file -Dfile=libs/tightvnc-jviewer.jar -DgroupId=com.g3g4x5x6 -DartifactId=tightvnc-jviewer -Dversion=2.8.3 -Dpackaging=jar -mvn install:install-file -Dfile=libs/jediterm-core-3.20-SNAPSHOT.jar -DgroupId=com.jediterm -DartifactId=jediterm-core -Dversion=3.20-SNAPSHOT -Dpackaging=jar -mvn install:install-file -Dfile=libs/jediterm-ui-3.20-SNAPSHOT.jar -DgroupId=com.jediterm -DartifactId=jediterm-ui -Dversion=3.20-SNAPSHOT -Dpackaging=jar +# jediterm +mvn install:install-file -Dfile=libs/jediterm-core-3.44-SNAPSHOT.jar -DgroupId=com.jediterm -DartifactId=jediterm-core -Dversion=3.44-SNAPSHOT -Dpackaging=jar +mvn install:install-file -Dfile=libs/jediterm-ui-3.44-SNAPSHOT.jar -DgroupId=com.jediterm -DartifactId=jediterm-ui -Dversion=3.44-SNAPSHOT -Dpackaging=jar ``` 3. 编译运行: diff --git a/libs/jediterm-core-3.20-SNAPSHOT-sources.jar b/libs/jediterm-core-3.20-SNAPSHOT-sources.jar deleted file mode 100644 index 76f089d6..00000000 Binary files a/libs/jediterm-core-3.20-SNAPSHOT-sources.jar and /dev/null differ diff --git a/libs/jediterm-core-3.20-SNAPSHOT.jar b/libs/jediterm-core-3.20-SNAPSHOT.jar deleted file mode 100644 index 979ee306..00000000 Binary files a/libs/jediterm-core-3.20-SNAPSHOT.jar and /dev/null differ diff --git a/libs/jediterm-core-3.44-SNAPSHOT-sources.jar b/libs/jediterm-core-3.44-SNAPSHOT-sources.jar new file mode 100644 index 00000000..45c3df2c Binary files /dev/null and b/libs/jediterm-core-3.44-SNAPSHOT-sources.jar differ diff --git a/libs/jediterm-core-3.44-SNAPSHOT.jar b/libs/jediterm-core-3.44-SNAPSHOT.jar new file mode 100644 index 00000000..b08f215b Binary files /dev/null and b/libs/jediterm-core-3.44-SNAPSHOT.jar differ diff --git a/libs/jediterm-ui-3.20-SNAPSHOT.jar b/libs/jediterm-ui-3.20-SNAPSHOT.jar deleted file mode 100644 index 6bba68d2..00000000 Binary files a/libs/jediterm-ui-3.20-SNAPSHOT.jar and /dev/null differ diff --git a/libs/jediterm-ui-3.44-SNAPSHOT-sources.jar b/libs/jediterm-ui-3.44-SNAPSHOT-sources.jar new file mode 100644 index 00000000..b19d21d4 Binary files /dev/null and b/libs/jediterm-ui-3.44-SNAPSHOT-sources.jar differ diff --git a/libs/jediterm-ui-3.44-SNAPSHOT.jar b/libs/jediterm-ui-3.44-SNAPSHOT.jar new file mode 100644 index 00000000..8a95806a Binary files /dev/null and b/libs/jediterm-ui-3.44-SNAPSHOT.jar differ diff --git a/pom.xml b/pom.xml index 6de1a327..f5e3f8c3 100644 --- a/pom.xml +++ b/pom.xml @@ -42,8 +42,11 @@ 0.8.0 0.12.13 - 3.20-SNAPSHOT - 3.20-SNAPSHOT + 3.44-SNAPSHOT + 3.44-SNAPSHOT + + 1.9.22 + RELEASE 2.8.3 @@ -89,6 +92,19 @@ ${jediterm-ui-version} + + + org.jetbrains.kotlin + kotlin-stdlib + ${kotlin-stdlib-version} + + + + + org.jetbrains.kotlin + kotlin-stdlib-common + + net.lingala.zip4j diff --git a/ultimate-app/pom.xml b/ultimate-app/pom.xml index c558eb28..1ba5e8bc 100644 --- a/ultimate-app/pom.xml +++ b/ultimate-app/pom.xml @@ -54,6 +54,17 @@ jediterm-ui + + org.jetbrains.kotlin + kotlin-stdlib + + + + + org.jetbrains.kotlin + kotlin-stdlib-common + + com.g3g4x5x6 tightvnc-jviewer diff --git a/ultimate-app/src/main/java/com/g3g4x5x6/panel/console/CmdSettingsProvider.java b/ultimate-app/src/main/java/com/g3g4x5x6/panel/console/CmdSettingsProvider.java index 92cb9eaf..bf5b2737 100644 --- a/ultimate-app/src/main/java/com/g3g4x5x6/panel/console/CmdSettingsProvider.java +++ b/ultimate-app/src/main/java/com/g3g4x5x6/panel/console/CmdSettingsProvider.java @@ -4,7 +4,6 @@ import com.g3g4x5x6.remote.ssh.DefaultTerminalTypeAheadSettings; import com.g3g4x5x6.ui.terminal.settings.ColorScheme; import com.g3g4x5x6.ui.terminal.settings.DefaultColorPaletteImpl; -import com.jediterm.core.Platform; import com.jediterm.terminal.HyperlinkStyle; import com.jediterm.terminal.TerminalColor; import com.jediterm.terminal.TextStyle; @@ -15,9 +14,7 @@ import lombok.SneakyThrows; import org.jetbrains.annotations.NotNull; -import javax.swing.*; import java.awt.*; -import java.awt.event.InputEvent; import java.util.Collections; import java.util.Objects; @@ -47,7 +44,7 @@ public float getTerminalFontSize() { } @Override - public TextStyle getDefaultStyle() { + public @NotNull TextStyle getDefaultStyle() { return new TextStyle(TerminalColor.rgb(colorScheme.getForegroundColor().getRed(), colorScheme.getForegroundColor().getGreen(), colorScheme.getForegroundColor().getBlue()), TerminalColor.rgb(colorScheme.getBackgroundColor().getRed(), colorScheme.getBackgroundColor().getGreen(), colorScheme.getBackgroundColor().getBlue())); } @@ -139,48 +136,6 @@ public TerminalActionPresentation getOpenUrlActionPresentation() { return new TerminalActionPresentation("Open as URL", Collections.emptyList()); } - @NotNull - public TerminalActionPresentation getCopyActionPresentation() { - KeyStroke keyStroke = Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(67, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(67, InputEvent.SHIFT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK); - return new TerminalActionPresentation("Copy", keyStroke); - } - - @NotNull - public TerminalActionPresentation getPasteActionPresentation() { - KeyStroke keyStroke = Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(86, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(86, InputEvent.SHIFT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK); - return new TerminalActionPresentation("Paste", keyStroke); - } - - @NotNull - public TerminalActionPresentation getClearBufferActionPresentation() { - return new TerminalActionPresentation("Clear Buffer", Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(75, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(76, InputEvent.CTRL_DOWN_MASK)); - } - - @NotNull - public TerminalActionPresentation getPageUpActionPresentation() { - return new TerminalActionPresentation("Page Up", KeyStroke.getKeyStroke(33, InputEvent.SHIFT_DOWN_MASK)); - } - - @NotNull - public TerminalActionPresentation getPageDownActionPresentation() { - return new TerminalActionPresentation("Page Down", KeyStroke.getKeyStroke(34, InputEvent.SHIFT_DOWN_MASK)); - } - - @NotNull - public TerminalActionPresentation getLineUpActionPresentation() { - return new TerminalActionPresentation("Line Up", Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(38, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(38, InputEvent.CTRL_DOWN_MASK)); - } - - @NotNull - public TerminalActionPresentation getLineDownActionPresentation() { - return new TerminalActionPresentation("Line Down", Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(40, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(40, InputEvent.CTRL_DOWN_MASK)); - } - - @NotNull - public TerminalActionPresentation getFindActionPresentation() { - return new TerminalActionPresentation("Find", Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(70, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(70, InputEvent.CTRL_DOWN_MASK)); - } - @NotNull public TerminalActionPresentation getSelectAllActionPresentation() { return new TerminalActionPresentation("Select All", Collections.emptyList()); diff --git a/ultimate-app/src/main/java/com/g3g4x5x6/remote/serial/SerialSettingsProvider.java b/ultimate-app/src/main/java/com/g3g4x5x6/remote/serial/SerialSettingsProvider.java index 731fd7b9..09a017f2 100644 --- a/ultimate-app/src/main/java/com/g3g4x5x6/remote/serial/SerialSettingsProvider.java +++ b/ultimate-app/src/main/java/com/g3g4x5x6/remote/serial/SerialSettingsProvider.java @@ -1,5 +1,6 @@ package com.g3g4x5x6.remote.serial; +import com.g3g4x5x6.utils.os.OsInfoUtil; import com.jediterm.terminal.HyperlinkStyle; import com.jediterm.terminal.TerminalColor; import com.jediterm.terminal.TextStyle; @@ -7,7 +8,6 @@ import com.jediterm.terminal.emulator.ColorPaletteImpl; import com.jediterm.terminal.model.TerminalTypeAheadSettings; import com.jediterm.terminal.ui.TerminalActionPresentation; -import com.jediterm.terminal.ui.UIUtil; import com.jediterm.terminal.ui.settings.DefaultSettingsProvider; import org.jetbrains.annotations.NotNull; @@ -19,7 +19,7 @@ public class SerialSettingsProvider extends DefaultSettingsProvider { @NotNull public TerminalActionPresentation getNewSessionActionPresentation() { - return new TerminalActionPresentation("New Session", UIUtil.isMac ? KeyStroke.getKeyStroke(84, 256) : KeyStroke.getKeyStroke(84, 192)); + return new TerminalActionPresentation("New Session", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(84, 256) : KeyStroke.getKeyStroke(84, 192)); } @NotNull @@ -29,19 +29,19 @@ public TerminalActionPresentation getOpenUrlActionPresentation() { @NotNull public TerminalActionPresentation getCopyActionPresentation() { - KeyStroke keyStroke = UIUtil.isMac ? KeyStroke.getKeyStroke(67, 256) : KeyStroke.getKeyStroke(67, 192); + KeyStroke keyStroke = OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(67, 256) : KeyStroke.getKeyStroke(67, 192); return new TerminalActionPresentation("Copy", keyStroke); } @NotNull public TerminalActionPresentation getPasteActionPresentation() { - KeyStroke keyStroke = UIUtil.isMac ? KeyStroke.getKeyStroke(86, 256) : KeyStroke.getKeyStroke(86, 192); + KeyStroke keyStroke = OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(86, 256) : KeyStroke.getKeyStroke(86, 192); return new TerminalActionPresentation("Paste", keyStroke); } @NotNull public TerminalActionPresentation getClearBufferActionPresentation() { - return new TerminalActionPresentation("Clear Buffer", UIUtil.isMac ? KeyStroke.getKeyStroke(75, 256) : KeyStroke.getKeyStroke(76, 128)); + return new TerminalActionPresentation("Clear Buffer", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(75, 256) : KeyStroke.getKeyStroke(76, 128)); } @NotNull @@ -56,22 +56,22 @@ public TerminalActionPresentation getPageDownActionPresentation() { @NotNull public TerminalActionPresentation getLineUpActionPresentation() { - return new TerminalActionPresentation("Line Up", UIUtil.isMac ? KeyStroke.getKeyStroke(38, 256) : KeyStroke.getKeyStroke(38, 128)); + return new TerminalActionPresentation("Line Up", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(38, 256) : KeyStroke.getKeyStroke(38, 128)); } @NotNull public TerminalActionPresentation getLineDownActionPresentation() { - return new TerminalActionPresentation("Line Down", UIUtil.isMac ? KeyStroke.getKeyStroke(40, 256) : KeyStroke.getKeyStroke(40, 128)); + return new TerminalActionPresentation("Line Down", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(40, 256) : KeyStroke.getKeyStroke(40, 128)); } @NotNull public TerminalActionPresentation getCloseSessionActionPresentation() { - return new TerminalActionPresentation("Close Session", UIUtil.isMac ? KeyStroke.getKeyStroke(87, 256) : KeyStroke.getKeyStroke(87, 192)); + return new TerminalActionPresentation("Close Session", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(87, 256) : KeyStroke.getKeyStroke(87, 192)); } @NotNull public TerminalActionPresentation getFindActionPresentation() { - return new TerminalActionPresentation("Find", UIUtil.isMac ? KeyStroke.getKeyStroke(70, 256) : KeyStroke.getKeyStroke(70, 128)); + return new TerminalActionPresentation("Find", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(70, 256) : KeyStroke.getKeyStroke(70, 128)); } @NotNull @@ -80,14 +80,14 @@ public TerminalActionPresentation getSelectAllActionPresentation() { } public ColorPalette getTerminalColorPalette() { - return UIUtil.isWindows ? ColorPaletteImpl.WINDOWS_PALETTE : ColorPaletteImpl.XTERM_PALETTE; + return OsInfoUtil.isWindows() ? ColorPaletteImpl.WINDOWS_PALETTE : ColorPaletteImpl.XTERM_PALETTE; } public Font getTerminalFont() { String fontName; - if (UIUtil.isWindows) { + if (OsInfoUtil.isWindows()) { fontName = "新宋体"; - } else if (UIUtil.isMac) { + } else if (OsInfoUtil.isMacOS()) { fontName = "Menlo"; } else { fontName = "Monospaced"; diff --git a/ultimate-app/src/main/java/com/g3g4x5x6/remote/ssh/SshSettingsProvider.java b/ultimate-app/src/main/java/com/g3g4x5x6/remote/ssh/SshSettingsProvider.java index 315640ea..b1940230 100644 --- a/ultimate-app/src/main/java/com/g3g4x5x6/remote/ssh/SshSettingsProvider.java +++ b/ultimate-app/src/main/java/com/g3g4x5x6/remote/ssh/SshSettingsProvider.java @@ -3,7 +3,6 @@ import com.g3g4x5x6.AppConfig; import com.g3g4x5x6.ui.terminal.settings.ColorScheme; import com.g3g4x5x6.ui.terminal.settings.DefaultColorPaletteImpl; -import com.jediterm.core.Platform; import com.jediterm.terminal.HyperlinkStyle; import com.jediterm.terminal.TerminalColor; import com.jediterm.terminal.TextStyle; @@ -137,22 +136,6 @@ public TerminalActionPresentation getOpenUrlActionPresentation() { return new TerminalActionPresentation("Open as URL", Collections.emptyList()); } - @NotNull - public TerminalActionPresentation getCopyActionPresentation() { - KeyStroke keyStroke = Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(67, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(67, InputEvent.SHIFT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK); - return new TerminalActionPresentation("Copy", keyStroke); - } - - @NotNull - public TerminalActionPresentation getPasteActionPresentation() { - KeyStroke keyStroke = Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(86, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(86, InputEvent.SHIFT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK); - return new TerminalActionPresentation("Paste", keyStroke); - } - - @NotNull - public TerminalActionPresentation getClearBufferActionPresentation() { - return new TerminalActionPresentation("Clear Buffer", Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(75, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(76, InputEvent.CTRL_DOWN_MASK)); - } @NotNull public TerminalActionPresentation getPageUpActionPresentation() { @@ -164,21 +147,6 @@ public TerminalActionPresentation getPageDownActionPresentation() { return new TerminalActionPresentation("Page Down", KeyStroke.getKeyStroke(34, InputEvent.SHIFT_DOWN_MASK)); } - @NotNull - public TerminalActionPresentation getLineUpActionPresentation() { - return new TerminalActionPresentation("Line Up", Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(38, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(38, InputEvent.CTRL_DOWN_MASK)); - } - - @NotNull - public TerminalActionPresentation getLineDownActionPresentation() { - return new TerminalActionPresentation("Line Down", Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(40, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(40, InputEvent.CTRL_DOWN_MASK)); - } - - @NotNull - public TerminalActionPresentation getFindActionPresentation() { - return new TerminalActionPresentation("Find", Platform.current() == Platform.Mac ? KeyStroke.getKeyStroke(70, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(70, InputEvent.CTRL_DOWN_MASK)); - } - @NotNull public TerminalActionPresentation getSelectAllActionPresentation() { return new TerminalActionPresentation("Select All", Collections.emptyList()); diff --git a/ultimate-app/src/main/java/com/g3g4x5x6/remote/telnet/TelnetSettingsProvider.java b/ultimate-app/src/main/java/com/g3g4x5x6/remote/telnet/TelnetSettingsProvider.java index 798e427b..7f20d350 100644 --- a/ultimate-app/src/main/java/com/g3g4x5x6/remote/telnet/TelnetSettingsProvider.java +++ b/ultimate-app/src/main/java/com/g3g4x5x6/remote/telnet/TelnetSettingsProvider.java @@ -1,5 +1,6 @@ package com.g3g4x5x6.remote.telnet; +import com.g3g4x5x6.utils.os.OsInfoUtil; import com.jediterm.terminal.HyperlinkStyle; import com.jediterm.terminal.TerminalColor; import com.jediterm.terminal.TextStyle; @@ -7,7 +8,6 @@ import com.jediterm.terminal.emulator.ColorPaletteImpl; import com.jediterm.terminal.model.TerminalTypeAheadSettings; import com.jediterm.terminal.ui.TerminalActionPresentation; -import com.jediterm.terminal.ui.UIUtil; import com.jediterm.terminal.ui.settings.DefaultSettingsProvider; import org.jetbrains.annotations.NotNull; @@ -19,7 +19,7 @@ public class TelnetSettingsProvider extends DefaultSettingsProvider { @NotNull public TerminalActionPresentation getNewSessionActionPresentation() { - return new TerminalActionPresentation("New Session", UIUtil.isMac ? KeyStroke.getKeyStroke(84, 256) : KeyStroke.getKeyStroke(84, 192)); + return new TerminalActionPresentation("New Session", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(84, 256) : KeyStroke.getKeyStroke(84, 192)); } @NotNull @@ -29,19 +29,19 @@ public TerminalActionPresentation getOpenUrlActionPresentation() { @NotNull public TerminalActionPresentation getCopyActionPresentation() { - KeyStroke keyStroke = UIUtil.isMac ? KeyStroke.getKeyStroke(67, 256) : KeyStroke.getKeyStroke(67, 192); + KeyStroke keyStroke = OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(67, 256) : KeyStroke.getKeyStroke(67, 192); return new TerminalActionPresentation("Copy", keyStroke); } @NotNull public TerminalActionPresentation getPasteActionPresentation() { - KeyStroke keyStroke = UIUtil.isMac ? KeyStroke.getKeyStroke(86, 256) : KeyStroke.getKeyStroke(86, 192); + KeyStroke keyStroke = OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(86, 256) : KeyStroke.getKeyStroke(86, 192); return new TerminalActionPresentation("Paste", keyStroke); } @NotNull public TerminalActionPresentation getClearBufferActionPresentation() { - return new TerminalActionPresentation("Clear Buffer", UIUtil.isMac ? KeyStroke.getKeyStroke(75, 256) : KeyStroke.getKeyStroke(76, 128)); + return new TerminalActionPresentation("Clear Buffer", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(75, 256) : KeyStroke.getKeyStroke(76, 128)); } @NotNull @@ -56,22 +56,22 @@ public TerminalActionPresentation getPageDownActionPresentation() { @NotNull public TerminalActionPresentation getLineUpActionPresentation() { - return new TerminalActionPresentation("Line Up", UIUtil.isMac ? KeyStroke.getKeyStroke(38, 256) : KeyStroke.getKeyStroke(38, 128)); + return new TerminalActionPresentation("Line Up", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(38, 256) : KeyStroke.getKeyStroke(38, 128)); } @NotNull public TerminalActionPresentation getLineDownActionPresentation() { - return new TerminalActionPresentation("Line Down", UIUtil.isMac ? KeyStroke.getKeyStroke(40, 256) : KeyStroke.getKeyStroke(40, 128)); + return new TerminalActionPresentation("Line Down", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(40, 256) : KeyStroke.getKeyStroke(40, 128)); } @NotNull public TerminalActionPresentation getCloseSessionActionPresentation() { - return new TerminalActionPresentation("Close Session", UIUtil.isMac ? KeyStroke.getKeyStroke(87, 256) : KeyStroke.getKeyStroke(87, 192)); + return new TerminalActionPresentation("Close Session", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(87, 256) : KeyStroke.getKeyStroke(87, 192)); } @NotNull public TerminalActionPresentation getFindActionPresentation() { - return new TerminalActionPresentation("Find", UIUtil.isMac ? KeyStroke.getKeyStroke(70, 256) : KeyStroke.getKeyStroke(70, 128)); + return new TerminalActionPresentation("Find", OsInfoUtil.isMacOS() ? KeyStroke.getKeyStroke(70, 256) : KeyStroke.getKeyStroke(70, 128)); } @NotNull @@ -80,14 +80,14 @@ public TerminalActionPresentation getSelectAllActionPresentation() { } public ColorPalette getTerminalColorPalette() { - return UIUtil.isWindows ? ColorPaletteImpl.WINDOWS_PALETTE : ColorPaletteImpl.XTERM_PALETTE; + return OsInfoUtil.isWindows() ? ColorPaletteImpl.WINDOWS_PALETTE : ColorPaletteImpl.XTERM_PALETTE; } public Font getTerminalFont() { String fontName; - if (UIUtil.isWindows) { + if (OsInfoUtil.isWindows()) { fontName = "新宋体"; - } else if (UIUtil.isMac) { + } else if (OsInfoUtil.isMacOS()) { fontName = "Menlo"; } else { fontName = "Monospaced"; diff --git a/ultimate-app/src/main/java/com/g3g4x5x6/ui/terminal/TerminalOutputSaver.java b/ultimate-app/src/main/java/com/g3g4x5x6/ui/terminal/TerminalOutputSaver.java deleted file mode 100644 index 01ef5929..00000000 --- a/ultimate-app/src/main/java/com/g3g4x5x6/ui/terminal/TerminalOutputSaver.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.g3g4x5x6.ui.terminal; - -import com.jediterm.core.typeahead.TerminalTypeAheadManager; -import com.jediterm.terminal.*; -import org.jetbrains.annotations.NotNull; - -public class TerminalOutputSaver extends TerminalStarter { - - public TerminalOutputSaver(@NotNull Terminal terminal, @NotNull TtyConnector ttyConnector, @NotNull TerminalDataStream dataStream, @NotNull TerminalTypeAheadManager typeAheadManager, @NotNull TerminalExecutorServiceManager executorServiceManager) { - super(terminal, ttyConnector, dataStream, typeAheadManager, executorServiceManager); - } - -} \ No newline at end of file diff --git a/ultimate-app/ultimate-app.iml b/ultimate-app/ultimate-app.iml index e8ce7224..68a9707e 100644 --- a/ultimate-app/ultimate-app.iml +++ b/ultimate-app/ultimate-app.iml @@ -2,6 +2,7 @@ +