diogorb / j3270

Java Wrapper for x3270 (IBM 3270 terminal emulator)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

j3270 Release Maven Central

A Java Wrapper for x3270 (IBM 3270 terminal emulator) based on py3270.

It is a Java API for x3270 (Linux) or s3270 (Windows) subprocess.

Compiling

git clone git@github.com:filipesimoes/j3270.git
cd j3270
mvn clean install

Usage

It is necessary to have installed and in your path x3270 emulator.

try (Emulator emulator = new Emulator()) {
  emulator.start();
  emulator.connect("3270host.example.com");
  emulator.waitField(10);

  emulator.fillField(17, 23, "mylogin");
  emulator.fillField(18, 23, "mypass");
  emulator.sendEnter();

  emulator.waitField(10);
  emulator.disconnect();
}

If you need more details, read Emulator class.

About

Java Wrapper for x3270 (IBM 3270 terminal emulator)

License:MIT License


Languages

Language:Java 100.0%