Using the Mouse on a Hardware Terminal

From Try-AS/400
Revision as of 12:35, 1 December 2026 by PoC (talk | contribs) (Reworked article)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The IBM Terminals in the InfoWindow II line of products (3486, 3487, 3488, 3489) have an additional port where one can attach a PS/2 mouse.[1] Information about using the Mouse on a Hardware Terminal is scarce and not too easy to find.[2]

Besides local functions of the terminal itself, like moving the split screen separator line, or selecting items in the setup panels, four functions are available. These are described in the 3489 User's Guide, and on PDF page 13 of the Marketing Reference Guide.[3]

These four functions are provided by the twinax controller, not by the terminal alone. They are available only with a controller supporting the enhanced interface. That is a work station controller feature 6050, 2661, 9146, or 9148 with OS/400 V2R3 or later, or a 5494 remote control unit release 2.0 or later.[4] See also Enhanced display.

Copy-Paste

Two types are available:

  • For copying a line, press and hold the shift key, press and hold the left mouse button and select the desired text by dragging. Releasing the mouse button copies the marked characters into a local buffer.
  • For copying a block, press and hold the shift key, do a double-click with the left mouse button, but do not release the button at the second click.[5] Instead drag the mouse to mark the desired screen area. Releasing the mouse button copies the marked characters into a local buffer.

Pasting is done by shift key + right click. Depending on the terminal's Offline Setup, the text is pasted at the current cursor position, or at the mouse pointer position. The same data can be pasted repeatedly, until the display is turned off, or another copy is performed.[3]

This function allows copy-paste not only working within one terminal session, but also between multiple ones.

About Multiple Sessions

There are two types of multiple sessions.

One is provided by the operating system in the host:

  • The secondary interactive job is reached by pressing the System Request key, and choosing the appropriate menu item. Two jobs can be switched between this way.
  • So called group jobs allow up to 16 jobs per group, 32 in total together with a secondary interactive job. Switching is done with the TFRGRPJOB command, which is typically run from a menu program called by pressing the Attention key.[6]

In both cases, only one job is active at a time, the others are suspended.

The other is provided by the terminal itself, and usually takes additional addresses on the daisy-chained twinax line. Each session is then a separate device to the host. The number of additional sessions is dependent on the terminal's capabilities and configuration. Some terminals even allow sessions to be concurrently visible and active on the display. In any case, switching between sessions is done with a hotkey. The 3489 can also share one address between up to four display sessions. This shared addressing needs OS/400 V3R1, or a 5494 release 3.0.[7]

Simple Hotspots

These provide alternate ways of interacting with the system. Hotspots are selected with the left mouse button.[8]

  • Double-click with the mouse's left key is the same as pressing Enter.
  • Left-clicking next to a menu item on AS/400 menus selects this menu item.[3]
  • Command key descriptions — usually found at the bottom of a screen — are automatically converted to hotspots which can be left-clicked instead of pressing the respective function key. The controller recognizes text in the forms F3=, F12=, PF3=, or PF3, wherever it appears on the screen.[8]
  • Left-clicking a + character is the same as pressing Page Down (Roll Up), left-clicking a - character the same as pressing Page Up (Roll Down).[9]
  • Appropriately written applications might provide a menu bar, and pulldown menus which can be used like well-known from GUIs through left-clicking them.[10]

Other Mouse Functions

  • Left-clicking the error line resets an operator error.[3]
  • Left-clicking anywhere on the screen moves the cursor to the mouse pointer position.[3]
  • Applications can assign function keys to mouse events with the DDS keyword MOUBTN. Up to 18 events can be defined: Three buttons, with button down, button up, and double-click, each unshifted and shifted.[11]

See also

Literature

  • IBM InfoWindow II 3489 Modular Display Station User's Guide, GA18-7492-00
  • AS/400 Advanced Series: Application Display Programming, SC41-5715-00

Footnotes

  1. ↑ The 3489 also supports a light-pen.
  2. ↑ Who would search a Marketing Manual for information usually being written in a User's Manual? The 3489 User's Guide has a chapter about mouse operation, though.
  3. ↑ 3.0 3.1 3.2 3.3 3.4 IBM InfoWindow II 3489 Modular Display Station User's Guide, GA18-7492-00, chapters Use of the Mouse/Light-pen, and Mouse Operation for Advanced Functions.
  4. ↑ IBM InfoWindow II 3489 Modular Display Station User's Guide, GA18-7492-00, appendix G Prerequisites for 3489 Functions.
  5. ↑ I wonder what type of engineer comes up with such a cumbersome idea!
  6. ↑ See Work Management, chapter Group Jobs, for an entire chapter dedicated to this topic. The attention key program is set with the SETATNPGM command.
  7. ↑ IBM InfoWindow II 3489 Modular Display Station User's Guide, GA18-7492-00, appendix G Prerequisites for 3489 Functions.
  8. ↑ 8.0 8.1 AS/400 Advanced Series: Application Display Programming, SC41-5715-00, chapter Simple Hotspots.
  9. ↑ IBM suggests to change the text of the messages CPX6AB2 (default More...) to More: +/-, and CPX6AB1 (default Bottom) to Bottom: -, to provide these characters for subfiles using SFLEND(*MORE). Clicking the default More... text has no effect.
  10. ↑ I've not yet seen such an application in the wild. I refuse to utilize this technique in my applications because for plain keyboard users, a menu bar is more cumbersome to use than pressing a simple function key. Also, they look good only on a terminal (emulator) supporting the enhanced interface. Finally, implementing menus is also very cumbersome, a lot of definitions in the screen's DDS source.
  11. ↑ AS/400 Advanced Series: Application Display Programming, SC41-5715-00, chapter Programmable Mouse Buttons.