PxPlus User Forum

Twitter Twitter Twitter

Author Topic: How to determine if INSERT mode is enabled in Text Mode  (Read 1702 times)

PxPlus

  • Administrator
  • Diamond Member
  • *****
  • Posts: 1091
    • View Profile
How to determine if INSERT mode is enabled in Text Mode
« on: May 31, 2018, 09:39:36 AM »
In text mode you can set the system parameter 'IM' to preserve the Insert Mode state between inputs.

However you can also read byte 19 (bit $04) of the FIN to determine if Insert mode is active. If you want to force Insert mode to be active you can PREINPUT the negative CTL value associated with INSERT mode (-1009).

For Example:

    IF and(mid(fin(0),19,1),$04$)=$00$ preinput -1009

In Windows/GUI mode this is handled by the individual controls.