Hi Martin,
Yes, Harbour in terminal supports the mouse. You keep your `@...SAY/GET`, `Inkey()` and F-keys, and *additionally* respond to clicks. Four concepts:
1. `SET EVENTMASK TO K_LBUTTONDOWN` — enables left-click events.
2. `nKey := Inkey(0)` — returns 1002 (`K_LBUTTONDOWN`) on a click.
3. `MRow()` / `MCol()` — click position.
4. You compare those coordinates against your screen regions and act.
It's not mandatory to upgrade from 3.2 to 3.4 just for the mouse, but 3.4 fixes things on modern Windows consoles and high-DPI. If your 3.2 is stable, test in a small separate project first; don't upgrade and add mouse at the same time.
Compile with: `hbmk2 test.prg -lgtwvt`
⚠️ Mandatory: link `gtwvt.lib` (Borland) or `libgtwvt.a` (MinGW). If you compile with Borland using a `.lnk`, add `gtwvt.lib` manually to the library list. Otherwise you'll get `Unresolved external '_HB_FUN_HB_GT_WVT_DEFAULT'`.
The optimal solution is to switch to MiniGui Extended.
Project site:
https://www.hmgextended.com/You can send me any example you have so I can show you how to migrate from Clipper to MiniGui Extended.
Attached: terminal code with mouse support and a MiniGui Extended example.
Regards,
Marcos Jarrin