README: go3270 is a support library, not a core repository
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()andRunTransactions() - 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.
- docs/: usage, code pages, graphics and IND$FILE, references
- API reference
- Documentation style: the rules for ASD-STE100 Simplified Technical English
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).