Skip to content

Commit

Permalink
Merge pull request #7 from Blazemeter/METHOD_VISIBILITY-CHANGED
Browse files Browse the repository at this point in the history
Modify `setCursorPosition` visibility.
  • Loading branch information
Baraujo25 authored Aug 18, 2020
2 parents 2e44b8d + 45b63f7 commit b61ca55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<artifactId>xtn5250</artifactId>
<!-- This version has no relation to the released version since the release version is extracted
from git tag by Travis -->
<version>3.2.2-SNAPSHOT</version>
<version>3.2.3-SNAPSHOT</version>

<name>${project.artifactId}</name>
<description>This is a fork of https://sourceforge.net/projects/xtn5250/</description>
Expand Down Expand Up @@ -142,4 +142,4 @@
</profile>
</profiles>

</project>
</project>
6 changes: 5 additions & 1 deletion src/main/java/net/infordata/em/TerminalClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void setSocketFactory(SocketFactory socketFactory) {
public void setConnectionTimeoutMillis(int connectionTimeoutMillis) {
emulator.setConnectionTimeoutMillis(connectionTimeoutMillis);
}

/**
* Connect to a terminal server.
*
Expand Down Expand Up @@ -213,6 +213,10 @@ public Optional<Point> getCursorPosition() {
.of(new Point(emulator.getCursorCol() + 1, emulator.getCursorRow() + 1)) : Optional.empty();
}

public void setCursorPosition(int row, int column) {
emulator.setCursorPos(column, row);
}

/**
* Gets the status of the alarm.
*
Expand Down

0 comments on commit b61ca55

Please sign in to comment.