diff --git a/src/main/java/com/neotys/rte/TerminalEmulator/SendTextActionEngine.java b/src/main/java/com/neotys/rte/TerminalEmulator/SendTextActionEngine.java index 626729a..e254243 100644 --- a/src/main/java/com/neotys/rte/TerminalEmulator/SendTextActionEngine.java +++ b/src/main/java/com/neotys/rte/TerminalEmulator/SendTextActionEngine.java @@ -107,7 +107,7 @@ public SampleResult execute(Context context, List parameters) { { sampleResult.sampleStart(); - final String output = channel.sendKeys(Key, TimeOut,NoWaitForEcho,ClearBufferBefore); + final String output = channel. sendKeys(Key, TimeOut,NoWaitForEcho,ClearBufferBefore); sampleResult.sampleEnd(); appendLineToStringBuilder(responseBuilder, output); diff --git a/src/main/java/com/neotys/rte/TerminalEmulator/ch/SpecialKeysConverter.java b/src/main/java/com/neotys/rte/TerminalEmulator/ch/SpecialKeysConverter.java index f046c77..8fd9256 100644 --- a/src/main/java/com/neotys/rte/TerminalEmulator/ch/SpecialKeysConverter.java +++ b/src/main/java/com/neotys/rte/TerminalEmulator/ch/SpecialKeysConverter.java @@ -187,13 +187,13 @@ public SpecialKeys apply(final String specialKeys) { switch (specialKeys.toUpperCase()) { case UP: - return SpecialKeys.of(Ascii.ESC, "[A".getBytes()); + return SpecialKeys.of(Ascii.ESC, "OA".getBytes()); case DOWN: - return SpecialKeys.of(Ascii.ESC, "[B".getBytes()); + return SpecialKeys.of(Ascii.ESC, "OB".getBytes()); case LEFT: - return SpecialKeys.of(Ascii.ESC, "[D".getBytes()); + return SpecialKeys.of(Ascii.ESC, "OD".getBytes()); case RIGHT: - return SpecialKeys.of(Ascii.ESC, "[C".getBytes()); + return SpecialKeys.of(Ascii.ESC, "OC".getBytes()); default: return SpecialKeys.of(Ascii.ESC); }