Files
Neo-DesktopandClaude Opus 5.5 894ae4c0c7 README: go3270 is a support library, not a core repository
Remove the suite table and the banner. The suite table and the Rainbow
Book banners are for the core repositories only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRh4dhs1LGg2Sj8h67
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 06:37:41 +00:00

2.0 KiB

go3270

A Go library to write TN3270 servers. It builds 3270 data streams from fields. It reads back the attention key and the values that the user typed.

This is the fork of racingmars/go3270 by Matthew R. Wilson for the D-Modem suite. Its API stays compatible with the API of racingmars/go3270. bbs uses it for its TN3270 callers.

  • Screens from fields, with ShowScreenOpts(), HandleScreen() and RunTransactions()
  • Telnet negotiation, detection of the terminal size, and screens larger than 24x80
  • 31 EBCDIC code pages, detected from the client, and graphic escape (code page 310)
  • In this fork: the library keeps all query replies. Programmed symbols, native 3270 vector graphics and images
  • In this fork: IND$FILE file transfer (DFT), the side of the host
  • cmd/gfxtest, a TN3270 server to try graphics on an emulator

Quick start

go get github.com/D-Modem/go3270
import "github.com/D-Modem/go3270"

Then refer to example1 to example5. example4 shows the recommended RunTransactions() structure. If your code imported github.com/racingmars/go3270, change only its import path.

Documentation

The documentation is also a website, d-modem.github.io/go3270, with reference pages made from the code.

Licence

AGPL-3.0-only (LICENSE), or a commercial licence from the D-Modem Authors (COMMERCIAL-LICENSE.md). The code from upstream stays under its MIT licence (LICENSE-MIT) as well. The SPDX-License-Identifier line of each file tells which licence applies to it. Contributions come with a contributor agreement (CONTRIBUTING.md).