Claude d36d924bd9 Docs: modemmenu is now dmodem-login, in D-Modem/login
The menu repository is renamed D-Modem/login, and its program modemmenu
is now dmodem-login (with an LDAP provider).  The links, names and
sample paths follow (/usr/local/bin/dmodem-login,
/etc/asterisk/dmodem-login.conf, /run/dmodem-login/dmodem-login.sock).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTD8BSptdpaUWGcs65
2026-11-23 05:05:33 +00:00

D-Modem/go3270: Go servers for 3270 terminals

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.

The D-Modem suite

Repository What it is
D-Modem The open V.92 softmodem: dmodemd, libdmodem and the Asterisk, FreeSWITCH and ARI modules
app The D-Modem app for Android and iOS: a dial-up modem on a SIP call
hardware pico-serial: RP2040 serial adapters and phone-line USB sticks
login dmodem-login: the login, menu and LDAP provider for dial-up callers
bbs A bulletin board for telnet, SSH, TN3270 and modem callers
go3270 A Go library for 3270 terminal servers, used by bbs
brand Logos, colours, type and the naming guide

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).

S
Description
A Go library for writing TN3270 servers
Readme AGPL-3.0
954 KiB
0 Stars 1 Watchers 0 Forks
Languages
Go 100%