Commit Graph
23 Commits
Author SHA1 Message Date
Claude 4c5deed79b gfxtest: images overpainted in the terminal's own palette
With mix O the image test diffuses the picture (Floyd-Steinberg) to the
colors in the terminal's Graphic Color query reply (B4) - IBM Personal
Communications has 16, orange, purple, the dark shades and grey among
them - a bitmap a color, black left as the background; without the reply,
the 8 base colors.  The preview draws in the same palette.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-15 21:58:26 +00:00
Claude c3cb342f1a Vector graphics by the Summary reply; gfxtest: overpainted images, Query List
IBM Personal Communications lists the Segment reply (B0) and the other
graphics replies in its Summary but does not send them for a Query, so
SupportsVectorGraphics said no to a terminal that draws them.  It now
takes B0 in the Summary too.

gfxtest: with mix O the image test sends a bitmap per colour, each pel in
one, overpainted (no exclusive or); test 9 sends a Query List for the
replies the Summary lists that did not come; the trace logs telnet
commands on their own rather than as the start of the next record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-15 21:48:59 +00:00
Claude 0248a683b0 gfxtest: -preview writes each picture as a PNG; the image test says what it decoded
The image test's caption and the log give the file's decoded size,
format and length and the size drawn, and -preview DIR writes what the
terminal should show (the planes XOR'd, or overpainted) to compare with
what it does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-15 21:41:52 +00:00
Claude 64d1f6bd78 gfxtest: a TN3270 server for debugging vector graphics on an emulator
Shows the terminal's query replies, draws Object Picture test pictures
(test pattern, colour bars as XOR planes or bitmaps, corner markers, a
dithered image) with the origin, position, size, mix and order as
settings, sends structured fields typed in hex, and logs every record
both ways with the graphics orders and inbound replies decoded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-15 21:23:33 +00:00
Claude 750b72ee6b IND$FILE file transfer (DFT), the host's side
ParseIndFile reads the "IND$FILE GET|PUT name [(] options" an emulator
types (TSO and VM/CMS forms).  SendFileDFT (GET) and ReceiveFileDFT
(PUT) run the transfer with Data Transfer structured fields: open,
insert or set cursor and get, close, with the request layouts of a real
TSO IND$FILE (x3270's s3270/Test/ft_dft.trc); DFTMessage ends it with
IND$FILE's message.  DFTBufferSize reads the terminal's DFT buffer from
its DDM query reply (0 when it has no DFT).  ReadRecord reads one
inbound record, which the screen functions cannot (the AID is 0x88).

Tested with s3270 through bbs-sec: binary and ASCII CRLF files both
ways, and a GET of a file that is not there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-10 18:08:04 +00:00
Claude e50b7be809 Keep the query replies; programmed symbols and vector images
NegotiateTelnet keeps every query reply the client sends, and DevInfo
gives them out: QueryReply, QueryCodes, CellSize (from Usable Area),
SymbolSets (the Character Sets reply: GE, Load PS support, formats,
slot size, the sets and their RWS and LCID) and SupportsVectorGraphics
(the Segment reply).

LoadPS builds the Load Programmed Symbols structured field (formats 1
and 3, basic or extended) from Symbol bitmaps; WriteStructuredFields
sends structured fields; Field.CharSet (SFE type 0x43) and Field.Raw
show the symbols.  ImagePicture builds an Object Picture structured
field drawing bitmaps with native vector graphics (experimental).

Fixes: a query reply shorter than 4 bytes made NegotiateTelnet panic
(slice of negative length, index out of range), which any client could
send; the replies a client may send are limited to 16 KB; encoded field
text is telnet-escaped, so a character a code page maps to 0xFF cannot
end the record or start a telnet command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-10 17:20:04 +00:00
Matthew R. Wilson bdc1d714d2 Add DevInfo.SupportsGE() function 2025-12-15 15:36:18 -08:00
Matthew R. Wilson 2c10f7f34d Add more code pages 2025-11-27 03:15:59 -08:00
Matthew R. Wilson 7b7d375e91 Per-client codepage detection and handling 2025-11-25 16:31:09 -08:00
Matthew R. Wilson 1859568369 Add additional EBCDIC code pages 2025-11-15 01:40:56 -08:00
Matthew R. Wilson 1eee614349 Add link to Moshix' Minesweeper example application 2025-11-10 12:54:12 -08:00
Matthew R. Wilson e6838c397c Add support for graphic escape character set 2025-11-06 12:51:19 -08:00
Matthew R. Wilson 904699bf1e Fix broken EBCDIC conversions. Fully switch to CP1047<->UTF-8. 2025-10-25 16:06:14 -07:00
Matthew R. Wilson b6fa48f37f Alternate screen size support.
This is a relatively big new feature, which introduces small breaking changes
to the API:

 * NegotiateTelnet() now returns (DevInfo, error) instead of just error.  The
   function signature for the Tx type now has one additional DevInfo parameter.
 * RunTransactions() requires one additional parameter, the DevInfo (which is
   allowed to be nil).

Otherwise, existing behavior continues to work as-is and everything still
defaults to operating on the default 24x80 terminal size.

See example5 for a larger-terminal-aware application.

Pending some time to make sure no new bugs cropped up in this release and that
the alternate screen size support works in the wild, I anticipate this will
become the v1.0.0 release of go3270.
2025-06-29 12:58:18 -07:00
Matthew R. Wilson 78aaf72e84 Add RunTransactions() approach to application design 2025-04-13 22:04:54 -07:00
Matthew R. Wilson 5f2d7355e4 Non-screen-clearing update support
New ShowScreenOpts() function, which takes a new ScreenOpts struct, to control
various aspects of the ShowScreen behavior. This should now be used in favor of
the deprecated ShowScreen() and ShowScreenNoResponse() functions, and allows
for the additional of future options without needing to continue making new
functions or breaking the public API.
2025-04-12 16:56:24 -07:00
Matthew R. Wilson cfa06ec4bc Issue #4: add and use telnetRead() function 2020-12-30 15:55:31 -08:00
Matthew R. Wilson 123df70716 Add telnet options reference to readme 2020-12-26 02:02:58 -08:00
Matthew R. Wilson 7a7e8165dd Update README to reflect the 2 examples 2020-12-07 02:00:48 -08:00
Matthew R. Wilson a2aa93587d Update readme 2020-11-04 15:34:08 -08:00
Matthew R. Wilson 655290c2ca Add link to intro video in readme 2020-11-02 23:19:49 -08:00
Matthew R. Wilson d27f1136eb Update readme 2020-11-02 17:46:55 -08:00
Matthew R. Wilson 0243fc3e13 Project creation; initial screen send capability 2020-11-02 01:00:30 -08:00