Terminal graphics support: Difference between revisions

From Try-AS/400
Jump to navigation Jump to search
m →APA: typo, not md
Revised article
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
A subset of the mainframe ''Graphical Data Display Manager'' was ported to OS/400.
A subset of the mainframe ''Graphical Data Display Manager'' was ported to OS/400.


GDDM needs special support regarding terminals. The only existing twinax terminal supporting GDDM was the 5292 model 2.
GDDM needs special support regarding terminals. According to IBM documentation, only the following devices can display GDDM graphics:<ref name="gddm">''AS/400 Programming: GDDM Programming Guide'', SC41-0536-00 (1992), and ''AS/400: GDDM Programming'', SC41-3717-00 (1994), both in chapter ''AS/400 Hardware''. The list did not change between these editions.</ref>
* 5292 model 2
* IBM PS/55 configured as a 5555 model G01 or G02
* IBM personal computer with work station function (WSF)
* IBM personal computer with work station emulation (WSE)
* IBM personal computer with 5250 emulation
 
The only existing dedicated twinax terminal supporting GDDM was the 5292 model 2.<ref>The IBM 3179 G models were graphics terminals, too, but for 3270 coax, not 5250 twinax. The twinax 3179 model 2 is a color display without graphics, compatible with the 5292 model 1. See the [https://sharktastica.co.uk/resources/docs/txt/IBM_185-076_3179-G1-G2-3979_1985_IBM.txt 3179 G1/G2 announcement letter] and the [https://sharktastica.co.uk/resources/docs/txt/IBM_185-148_3179-2-Announce_1985_IBM.txt 3179 model 2 announcement letter].</ref> The 5555 G models in the list are PS/55 personal computers configured as such, not dedicated terminals. Plotters could be attached to graphics work stations.<ref>On the System/36, the IBM XY/749 plotter attached through the 5292 model 2, see the [https://ftp.mirrorservice.org/sites/www.bitsavers.org/pdf/ibm/system36/G580-0451-5_System36_Equipment_and_Programs.pdf System/36 Equipment and Programs] brochure, G580-0451-5. For the AS/400, the GDDM manuals list the IBM 6180, 6182, 6184, 6185, 6186-1, 6186-2, 7371 and 7372 plotters.</ref>


Emulators supporting GDDM:
Emulators supporting GDDM:
* IBM PC support for DOS (not verified), with special drivers, resolutions up to 1024×768 might be possible,
* IBM PC support for DOS (not verified). On PCs, the graphics capability depends on the hardware, and the ''Virtual Device Interface'' (VDI) driver loaded in <code>CONFIG.SYS</code>. The drivers range from 320×200 pixels (<code>VDIDY004</code>) to 1024×768 pixels with 8 colors (<code>VDIDYAF1</code>, <code>VDIDYAF2</code>). With 5250 emulation, the program <code>GR5250</code> must be run from DOS before a GDDM application is started. Otherwise, the error <code>CPF8619</code> may be generated.<ref name="gddm" />
* an older IDEAcomm release for Windows 3.1 (16 bit), precise version not known.
* an older IDEAcomm release for Windows 3.1 (16 bit), precise version not known.


In later times, it was presumably meant as a way to create graphics for printing.
In later times, it was presumably meant as a way to create graphics for printing.<ref>The GDDM manuals list the SCS printers IBM 4214, 4234-2, 5224, and 5225, and any IPDS printer supporting graphics, e.&thinsp;g. IBM 3812, 3816, 4028, and 4224.</ref>


== Enhanced display ==
== Enhanced display ==
This is a function of the 5250 controller in tandem with a hardware terminal, or a feature of the emulator itself. It provides automatic replacement of on-screen objects with a more or less graphical representation of an object. This includes, but is not limited to:
This is a function of the twinax controller in tandem with a hardware terminal, or a feature of the emulator itself. It provides automatic replacement of on-screen objects with a more or less graphical representation of an object. This includes, but is not limited to:
* Window borders
* Window borders
* DDS<ref>Should also work with UIM tags, but not real life tested.</ref> <code>MLTCHCFLD</code> as check boxes
* DDS <code>MLTCHCFLD</code> as check boxes
* DDS <code>SNGCHCFLD</code> as radio buttons
* DDS <code>SNGCHCFLD</code> as radio buttons
* DDS <code>SFLEND(*SCRBAR)</code> for load-all subfiles
* DDS <code>SFLEND(*SCRBAR)</code> as scroll bars<ref>''*SCRBAR'' can also be used when <code>SFLPAG</code> equals <code>SFLSIZ</code>, but the scroll box then covers the entire shaft. The scroll bar is only meaningful when the system pages through the subfile (<code>SFLSIZ</code> greater than <code>SFLPAG</code>). See ''AS/400e Series: DDS Reference'', SC41-5712-01, <code>SFLEND</code> keyword.</ref>
* UIM selection lists with check boxes and radio buttons<ref name="adp">''AS/400 Advanced Series: Application Display Programming'', SC41-5715-00 (1997), chapter ''Hardware Configuration'', tables 6-1 and 6-2.</ref>
 
On hardware terminals, this is '''not''' graphics. The terminal draws these elements with special characters.<ref name="ug3489">''IBM InfoWindow II 3489 Modular Display Station User's Guide'', GA18-7492-00, chapter ''Enhanced User Interface'': "Special symbols are provided that enhance the appearance of pop-up menus, scroll bars, radio buttons, check boxes, pushbuttons, window frames, and pull down menus."</ref> IBM calls this ''character-based GUI'', in contrast to ''GUI'' on programmable work stations, with solid line window borders, selectable background colors, and a pointer device.<ref name="adp" />
 
Use of the enhanced display is controlled by the <code>ENHDSP</code> parameter of the <code>CRTDSPF</code>, <code>CHGDSPF</code>, and <code>OVRDSPF</code> commands. The default is <code>*YES</code>. <code>ENHDSP(*NO)</code> always displays records in character-based mode. If the display station is attached to a controller not supporting the enhanced interface, <code>ENHDSP(*YES)</code> is ignored.<ref>''Application Display Programming'', SC41-5715-00, chapter ''Enhanced Display Parameter''. The system file used for UIM help is shipped with <code>ENHDSP(*NO)</code>. Calling help from a display file with <code>ENHDSP(*YES)</code> thus switches the display to character-based mode.</ref>
 
Enhanced display needs special support regarding the twinax controller:<ref name="adp" /><ref name="ug3489" />
* 5494 remote control unit, release 1.1 or later
* work station controller features 6050, 2661, 9146, and 9148, with OS/400 V2R2 or later
 
ASCII work station controller features 6041, 6141, 2637, 9145, and 9147 provide a reduced set: character windows and a bar selection cursor.
 
Terminals supporting enhanced display:
* InfoWindow II 3486, 3487, 3488<ref name="adp" />, and 3489<ref name="ug3489" />
* 3477, with a reduced set: character windows and mnemonics, but no check boxes and radio buttons. Scroll bars are shown as <code>*MORE</code>, <code>*PLUS</code>, or character scroll bars.<ref name="adp" />


Enhanced display needs special support regarding terminals. It is present at least in the twinax 3486 terminal, but presumably in all 348x terminals.
Other 5250 display stations attached to such a controller only gain the bar selection cursor.


Emulators supporting Enhanced Display:
Emulators supporting Enhanced Display:
* all (newer?) IBM provided 5250 emulators
* newer IBM provided 5250 emulators
** iACS
** iACS. Window borders are drawn with characters, too.<ref>See [https://ibm-power-systems.ideas.ibm.com/ideas/IBMI-I-2010 IBM Idea IBMI-I-2010], requesting real drawn borders instead of the "textual characters". The Idea names the feature ''ENPTUI'' (Enhanced Non-Programmable Terminal User Interface).</ref>
** Client Access
** Client Access, in later releases<ref>In 1997, IBM still listed Client Access among programmable work stations ''not'' supporting the enhanced interface, see ''Application Display Programming'', SC41-5715-00, table 6-2, configuration F. Which release introduced the support is not known.</ref>
* RUMBA/400, and AIX AS/400 Connection Program/6000 release 2 are named by IBM as examples for programmable work stations with full GUI support.<ref name="adp" />
* tn5250j (seems to be broken)
* tn5250j (seems to be broken)


== APA ==
== Image/Fax ==
''All Points Addressable'' is IBM lingo for pixel graphics support. Little is known about this mode at all, and its sole use case was the <code>dspfax</code> command, to see received Faxes in TIFFG4 format.
A single page monochrome image is displayed in a rectangular ''viewport'', whose location and size are controlled by the application. The display itself scales (zoom), rotates, reverses, and scrolls the image within the viewport.<ref name="ug3489img">''IBM InfoWindow II 3489 Modular Display Station User's Guide'', GA18-7492-00, chapters ''Image/Fax Support'' and ''Image Viewing Function''.</ref>


According to documentation, the 3489 is the only hardware terminal supporting this display mode.
=== DSPFAX ===
The only known application is the <code>DSPFAX</code> command of ''Facsimile Support for OS/400''. It displays documents of the types MO:DCA, MO:DCAFAX, RFT:DCA, or RFT:DCAFAX, as created by the <code>FILFAX</code> command, or the ''File'' option of <code>WRKFAX</code> and <code>WRKRCVFAX</code>. Only image objects (IOCA function set 10 bi-level images) are displayed. Text, bar codes, or graphics are not. Each image is shown as a separate page, accessed with the Page-up and Page-down keys.<ref name="fax">''AS/400e: Facsimile Support for AS/400 Programmer's Guide and Reference'', SC41-0656-01 (1999), chapter ''DSPFAX (Display Fax) Command''.</ref> If the display is not image/fax capable, message <code>FAX4010</code> is issued.<ref>''AS/400: Facsimile Support for OS/400 Programmer's Guide and Reference'', SC41-0572-00, chapter ''Common Errors When Displaying Faxes''.</ref>


No known emulators support APA.
=== Devices ===
According to documentation, the InfoWindow II 3489 is the only hardware terminal supporting image/fax.<ref name="fax" /> Its limitations and requirements are:<ref name="ug3489img" /><ref>''IBM InfoWindow II 3489 Modular Display Station User's Guide'', GA18-7492-00, appendix G ''Prerequisites for 3489 Functions''.</ref>
* Only the first of four 5250 sessions can display an image viewport.
* Only one image viewport can be displayed at a time.
* OS/400 V3R1, or V2R3 with work station controller PTF
* Work station controller features 6050, 2661, 9146, or 9148, or 5494 remote control unit release 3.0 or later
 
IBM also names the ''IBM Network Station'' at release 3.0 or later, and "other image-capable 5250 emulation program[s]".<ref name="fax" /> Besides the Network Station, no emulator supporting image/fax is known.
 
Alternatively, fax documents can be viewed outside of 5250 with any workstation software supporting RFT:DCA or MO:DCA documents with IOCA function set 10 bi-level images.<ref>''AS/400e: Facsimile Support for AS/400 Installation Guide'', SC41-0654-01, chapter ''Hardware Requirements''.</ref>
 
=== Data stream ===
Image/fax is fully documented as part of the 5250 data stream. The structured fields ''IMAGE/FAX CONTROL'' and ''IMAGE/FAX DOWNLOAD'' are sent with a ''Write Single Structured Field'' command. The controller verifies that the display is capable of image/fax, and otherwise rejects the command.<ref name="fr5494">''5494 Remote Control Unit: Functions Reference'', SC30-3533-04, chapters ''IMAGE/FAX CONTROL Command'' and ''IMAGE/FAX DOWNLOAD Command''.</ref> Notable details:
* Image formats: IOCA, TIFF (single image only), PCX, and stand alone Group 3 fax compression
* Scaling from 3% to 400%, rotation, reverse image, transparent display over text, foreground and background colors
* Scroll bars and mouse scrolling are handled by the display itself.
* A flag bit is "reserved for IBM image/fax-capable displays", and "non-IBM displays should ignore" it. Hence, non-IBM image/fax displays were anticipated.


== See also ==
== See also ==
Line 40: Line 80:
== Weblinks ==
== Weblinks ==
* [https://www.ibm.com/docs/en/i/7.4.0?topic=device-application-display-programming Application Display Programming] (PDF download), IBM.com
* [https://www.ibm.com/docs/en/i/7.4.0?topic=device-application-display-programming Application Display Programming] (PDF download), IBM.com
== Literature ==
* ''AS/400 Programming: GDDM Programming Guide'', SC41-0536-00
* ''AS/400: GDDM Programming'', SC41-3717-00
* ''AS/400 Advanced Series: Application Display Programming'', SC41-5715-00
* ''AS/400e Series: DDS Reference'', SC41-5712-01
* ''IBM InfoWindow II 3489 Modular Display Station User's Guide'', GA18-7492-00
* ''AS/400: Facsimile Support for OS/400 Programmer's Guide and Reference'', SC41-0572-00
* ''AS/400e: Facsimile Support for AS/400 Installation Guide'', SC41-0654-01
* ''AS/400e: Facsimile Support for AS/400 Programmer's Guide and Reference'', SC41-0656-01
* ''5494 Remote Control Unit: Functions Reference'', SC30-3533-04


== Footnotes ==
== Footnotes ==

Latest revision as of 21:19, 28 November 2026

There are three modes of graphics support in OS/400 regarding terminals.

GDDM

A subset of the mainframe Graphical Data Display Manager was ported to OS/400.

GDDM needs special support regarding terminals. According to IBM documentation, only the following devices can display GDDM graphics:[1]

  • 5292 model 2
  • IBM PS/55 configured as a 5555 model G01 or G02
  • IBM personal computer with work station function (WSF)
  • IBM personal computer with work station emulation (WSE)
  • IBM personal computer with 5250 emulation

The only existing dedicated twinax terminal supporting GDDM was the 5292 model 2.[2] The 5555 G models in the list are PS/55 personal computers configured as such, not dedicated terminals. Plotters could be attached to graphics work stations.[3]

Emulators supporting GDDM:

  • IBM PC support for DOS (not verified). On PCs, the graphics capability depends on the hardware, and the Virtual Device Interface (VDI) driver loaded in CONFIG.SYS. The drivers range from 320×200 pixels (VDIDY004) to 1024×768 pixels with 8 colors (VDIDYAF1, VDIDYAF2). With 5250 emulation, the program GR5250 must be run from DOS before a GDDM application is started. Otherwise, the error CPF8619 may be generated.[1]
  • an older IDEAcomm release for Windows 3.1 (16 bit), precise version not known.

In later times, it was presumably meant as a way to create graphics for printing.[4]

Enhanced display

This is a function of the twinax controller in tandem with a hardware terminal, or a feature of the emulator itself. It provides automatic replacement of on-screen objects with a more or less graphical representation of an object. This includes, but is not limited to:

  • Window borders
  • DDS MLTCHCFLD as check boxes
  • DDS SNGCHCFLD as radio buttons
  • DDS SFLEND(*SCRBAR) as scroll bars[5]
  • UIM selection lists with check boxes and radio buttons[6]

On hardware terminals, this is not graphics. The terminal draws these elements with special characters.[7] IBM calls this character-based GUI, in contrast to GUI on programmable work stations, with solid line window borders, selectable background colors, and a pointer device.[6]

Use of the enhanced display is controlled by the ENHDSP parameter of the CRTDSPF, CHGDSPF, and OVRDSPF commands. The default is *YES. ENHDSP(*NO) always displays records in character-based mode. If the display station is attached to a controller not supporting the enhanced interface, ENHDSP(*YES) is ignored.[8]

Enhanced display needs special support regarding the twinax controller:[6][7]

  • 5494 remote control unit, release 1.1 or later
  • work station controller features 6050, 2661, 9146, and 9148, with OS/400 V2R2 or later

ASCII work station controller features 6041, 6141, 2637, 9145, and 9147 provide a reduced set: character windows and a bar selection cursor.

Terminals supporting enhanced display:

  • InfoWindow II 3486, 3487, 3488[6], and 3489[7]
  • 3477, with a reduced set: character windows and mnemonics, but no check boxes and radio buttons. Scroll bars are shown as *MORE, *PLUS, or character scroll bars.[6]

Other 5250 display stations attached to such a controller only gain the bar selection cursor.

Emulators supporting Enhanced Display:

  • newer IBM provided 5250 emulators
    • iACS. Window borders are drawn with characters, too.[9]
    • Client Access, in later releases[10]
  • RUMBA/400, and AIX AS/400 Connection Program/6000 release 2 are named by IBM as examples for programmable work stations with full GUI support.[6]
  • tn5250j (seems to be broken)

Image/Fax

A single page monochrome image is displayed in a rectangular viewport, whose location and size are controlled by the application. The display itself scales (zoom), rotates, reverses, and scrolls the image within the viewport.[11]

DSPFAX

The only known application is the DSPFAX command of Facsimile Support for OS/400. It displays documents of the types MO:DCA, MO:DCAFAX, RFT:DCA, or RFT:DCAFAX, as created by the FILFAX command, or the File option of WRKFAX and WRKRCVFAX. Only image objects (IOCA function set 10 bi-level images) are displayed. Text, bar codes, or graphics are not. Each image is shown as a separate page, accessed with the Page-up and Page-down keys.[12] If the display is not image/fax capable, message FAX4010 is issued.[13]

Devices

According to documentation, the InfoWindow II 3489 is the only hardware terminal supporting image/fax.[12] Its limitations and requirements are:[11][14]

  • Only the first of four 5250 sessions can display an image viewport.
  • Only one image viewport can be displayed at a time.
  • OS/400 V3R1, or V2R3 with work station controller PTF
  • Work station controller features 6050, 2661, 9146, or 9148, or 5494 remote control unit release 3.0 or later

IBM also names the IBM Network Station at release 3.0 or later, and "other image-capable 5250 emulation program[s]".[12] Besides the Network Station, no emulator supporting image/fax is known.

Alternatively, fax documents can be viewed outside of 5250 with any workstation software supporting RFT:DCA or MO:DCA documents with IOCA function set 10 bi-level images.[15]

Data stream

Image/fax is fully documented as part of the 5250 data stream. The structured fields IMAGE/FAX CONTROL and IMAGE/FAX DOWNLOAD are sent with a Write Single Structured Field command. The controller verifies that the display is capable of image/fax, and otherwise rejects the command.[16] Notable details:

  • Image formats: IOCA, TIFF (single image only), PCX, and stand alone Group 3 fax compression
  • Scaling from 3% to 400%, rotation, reverse image, transparent display over text, foreground and background colors
  • Scroll bars and mouse scrolling are handled by the display itself.
  • A flag bit is "reserved for IBM image/fax-capable displays", and "non-IBM displays should ignore" it. Hence, non-IBM image/fax displays were anticipated.

See also

Weblinks

Literature

  • AS/400 Programming: GDDM Programming Guide, SC41-0536-00
  • AS/400: GDDM Programming, SC41-3717-00
  • AS/400 Advanced Series: Application Display Programming, SC41-5715-00
  • AS/400e Series: DDS Reference, SC41-5712-01
  • IBM InfoWindow II 3489 Modular Display Station User's Guide, GA18-7492-00
  • AS/400: Facsimile Support for OS/400 Programmer's Guide and Reference, SC41-0572-00
  • AS/400e: Facsimile Support for AS/400 Installation Guide, SC41-0654-01
  • AS/400e: Facsimile Support for AS/400 Programmer's Guide and Reference, SC41-0656-01
  • 5494 Remote Control Unit: Functions Reference, SC30-3533-04

Footnotes

  1. ↑ 1.0 1.1 AS/400 Programming: GDDM Programming Guide, SC41-0536-00 (1992), and AS/400: GDDM Programming, SC41-3717-00 (1994), both in chapter AS/400 Hardware. The list did not change between these editions.
  2. ↑ The IBM 3179 G models were graphics terminals, too, but for 3270 coax, not 5250 twinax. The twinax 3179 model 2 is a color display without graphics, compatible with the 5292 model 1. See the 3179 G1/G2 announcement letter and the 3179 model 2 announcement letter.
  3. ↑ On the System/36, the IBM XY/749 plotter attached through the 5292 model 2, see the System/36 Equipment and Programs brochure, G580-0451-5. For the AS/400, the GDDM manuals list the IBM 6180, 6182, 6184, 6185, 6186-1, 6186-2, 7371 and 7372 plotters.
  4. ↑ The GDDM manuals list the SCS printers IBM 4214, 4234-2, 5224, and 5225, and any IPDS printer supporting graphics, e. g. IBM 3812, 3816, 4028, and 4224.
  5. ↑ *SCRBAR can also be used when SFLPAG equals SFLSIZ, but the scroll box then covers the entire shaft. The scroll bar is only meaningful when the system pages through the subfile (SFLSIZ greater than SFLPAG). See AS/400e Series: DDS Reference, SC41-5712-01, SFLEND keyword.
  6. ↑ 6.0 6.1 6.2 6.3 6.4 6.5 AS/400 Advanced Series: Application Display Programming, SC41-5715-00 (1997), chapter Hardware Configuration, tables 6-1 and 6-2.
  7. ↑ 7.0 7.1 7.2 IBM InfoWindow II 3489 Modular Display Station User's Guide, GA18-7492-00, chapter Enhanced User Interface: "Special symbols are provided that enhance the appearance of pop-up menus, scroll bars, radio buttons, check boxes, pushbuttons, window frames, and pull down menus."
  8. ↑ Application Display Programming, SC41-5715-00, chapter Enhanced Display Parameter. The system file used for UIM help is shipped with ENHDSP(*NO). Calling help from a display file with ENHDSP(*YES) thus switches the display to character-based mode.
  9. ↑ See IBM Idea IBMI-I-2010, requesting real drawn borders instead of the "textual characters". The Idea names the feature ENPTUI (Enhanced Non-Programmable Terminal User Interface).
  10. ↑ In 1997, IBM still listed Client Access among programmable work stations not supporting the enhanced interface, see Application Display Programming, SC41-5715-00, table 6-2, configuration F. Which release introduced the support is not known.
  11. ↑ 11.0 11.1 IBM InfoWindow II 3489 Modular Display Station User's Guide, GA18-7492-00, chapters Image/Fax Support and Image Viewing Function.
  12. ↑ 12.0 12.1 12.2 AS/400e: Facsimile Support for AS/400 Programmer's Guide and Reference, SC41-0656-01 (1999), chapter DSPFAX (Display Fax) Command.
  13. ↑ AS/400: Facsimile Support for OS/400 Programmer's Guide and Reference, SC41-0572-00, chapter Common Errors When Displaying Faxes.
  14. ↑ IBM InfoWindow II 3489 Modular Display Station User's Guide, GA18-7492-00, appendix G Prerequisites for 3489 Functions.
  15. ↑ AS/400e: Facsimile Support for AS/400 Installation Guide, SC41-0654-01, chapter Hardware Requirements.
  16. ↑ 5494 Remote Control Unit: Functions Reference, SC30-3533-04, chapters IMAGE/FAX CONTROL Command and IMAGE/FAX DOWNLOAD Command.