Using the Mouse on a Hardware Terminal: Difference between revisions

From Try-AS/400
Jump to navigation Jump to search
Reworked article
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Certain IBM Terminals in the ''InfoWindow II'' line of products have an additional port where one can attach a PS/2 mouse. Information about '''using the Mouse on a Hardware Terminal''' is scarce and not too easy to find.<ref>Who would search a Marketing Manual for information usually being written in a User's Manual?</ref>
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.<ref>The 3489 also supports a light-pen.</ref> Information about '''using the Mouse on a Hardware Terminal''' is scarce and not too easy to find.<ref>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.</ref>


Two basic functions are available, and described in more detail on PDF page 13 of the below mentioned PDF document.
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''.<ref name="ug3489">''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''.</ref>
 
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.<ref>''IBM InfoWindow II 3489 Modular Display Station User's Guide'', GA18-7492-00, appendix G ''Prerequisites for 3489 Functions''.</ref> See also [[Terminal graphics support#Enhanced display|Enhanced display]].


== Copy-Paste ==
== Copy-Paste ==
Two types are available:
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 both shift key and the mouse button copies the marked characters into a local buffer.
* 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'''.<ref>I wonder what type of engineer comes up with such a cumbersome idea!</ref> Instead drag the mouse to mark the desired screen area. Releasing both shift key and 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'''.<ref>I wonder what type of engineer comes up with such a cumbersome idea!</ref> 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 at the cursor position by shift key + right click.
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.<ref name="ug3489" />


This function allows copy-paste not only working within one terminal session, but also between multiple ones.
This function allows copy-paste not only working within one terminal session, but also between multiple ones.
Line 15: Line 17:
There are two types of ''multiple sessions''.
There are two types of ''multiple sessions''.


One is provided by the operating system in the host, and they can be switched by pressing the ''attention key'' and choosing the appropriate menu item. Default number of sessions is two.<ref>This can be expanded. I'll document that as soon as I find the information about ''how?'' again.</ref> The inactive session(s) is/are suspended and not given CPU time.
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 <code>TFRGRPJOB</code> command, which is typically run from a menu program called by pressing the ''Attention'' key.<ref>See ''Work Management'', chapter ''Group Jobs'', for an entire chapter dedicated to this topic. The attention key program is set with the <code>SETATNPGM</code> command.</ref>
In both cases, only one job is active at a time, the others are suspended.


The other is provided by the terminal and might take additional addresses on the daisy-chained twinax line. The number of sessions is dependent on the terminal's capabilities and configuration. Some terminals allow sessions to be concurrently visible and active on the display.
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.<ref>''IBM InfoWindow II 3489 Modular Display Station User's Guide'', GA18-7492-00, appendix G ''Prerequisites for 3489 Functions''.</ref>


== Simple Hotspots ==
== Simple Hotspots ==
These provide alternate ways of interacting with the system.
These provide alternate ways of interacting with the system. Hotspots are selected with the left mouse button.<ref name="adp">''AS/400 Advanced Series: Application Display Programming'', SC41-5715-00, chapter ''Simple Hotspots''.</ref>
* Double-click with the mouse's left key is the same as pressing <code>Enter</code>.
* Double-click with the mouse's left key is the same as pressing <code>Enter</code>.
* Subfiles can be scrolled downwards by left-clicking on the <code>More…</code> indicator at the bottom right of a subfile, and upwards by right-clicking there.
* Left-clicking next to a menu item on AS/400 menus selects this menu item.<ref name="ug3489" />
* The description of command keys — usually found at the bottom of a screen — is automatically converted to hotspots which can be left-clicked instead of pressing the respective function key.
* 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 <code>F3=</code>, <code>F12=</code>, <code>PF3=</code>, or <code>PF3</code>, wherever it appears on the screen.<ref name="adp" />
* Left-clicking a <code>+</code> character is the same as pressing ''Page Down'' (''Roll Up''), left-clicking a <code>-</code> character the same as pressing ''Page Up'' (''Roll Down'').<ref>IBM suggests to change the text of the messages <code>CPX6AB2</code> (default <code>More...</code>) to <code>More: +/-</code>, and <code>CPX6AB1</code> (default <code>Bottom</code>) to <code>Bottom: -</code>, to provide these characters for subfiles using <code>SFLEND(*MORE)</code>. Clicking the default <code>More...</code> text has no effect.</ref>
* Appropriately written applications might provide a menu bar, and pulldown menus which can be used like well-known from GUIs through left-clicking them.<ref>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.</ref>
* Appropriately written applications might provide a menu bar, and pulldown menus which can be used like well-known from GUIs through left-clicking them.<ref>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.</ref>
== Other Mouse Functions ==
* Left-clicking the error line resets an operator error.<ref name="ug3489" />
* Left-clicking anywhere on the screen moves the cursor to the mouse pointer position.<ref name="ug3489" />
* Applications can assign function keys to mouse events with the DDS keyword <code>MOUBTN</code>. Up to 18 events can be defined: Three buttons, with button down, button up, and double-click, each unshifted and shifted.<ref>''AS/400 Advanced Series: Application Display Programming'', SC41-5715-00, chapter ''Programmable Mouse Buttons''.</ref>


== See also ==
== See also ==
* [https://ibmdocs.pocnet.net/G326-0265-10.pdf G326-0265-10], IBM InfoWindow II 3486, 3488, 3489 Marketing Reference Guide
* [https://www.ibm.com/resources/publications/OutputPubsDetails?PubID=G326026510 IBM InfoWindow II 3486, 3488, 3489 Marketing Reference Guide], G326-0265-10
* [https://www.ibm.com/resources/publications/OutputPubsDetails?PubID=SC41530603 IBM AS/400e Work Management], SC41-5306-03
* [[IBM Twinax-Terminals Overview]]
* [[Terminal graphics support]]
 
== 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 ==
== Footnotes ==

Latest revision as of 12:35, 1 December 2026

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.