|
Forum Index : Microcontroller and PC projects : HPOS, VPOS for MMBasic DOS
| Author | Message | ||||
| hkoetz Newbie Joined: 30/03/2019 Location: NetherlandsPosts: 19 |
Hello, is there a way of getting the horizontal and vertical cursor position in MMBasic for DOS, like HPOS and VPOS for the CMM? Thanks. |
||||
Chopperp![]() Guru Joined: 03/01/2018 Location: AustraliaPosts: 1106 |
Hi hkoetz Welcome to the Forum. Have you checked out the MMDOS manual downloadable from here (Bottom of the page) This will give the list of commands & functions which MMDOS does & does not support & other valuable information. I think you will find that MMDOS does NOT support graphics. (but I could be wrong) Brian ChopperP |
||||
| hkoetz Newbie Joined: 30/03/2019 Location: NetherlandsPosts: 19 |
Thanks Brian, MMDOS indeed does not support graphics. It has a command Cursor which positions the cursor on the console screen (column, row) in characters. I guess I should have asked if the reverse of this command is available in some way: getting the position of the cursor on the console screen. There is not a direct basic command for this. Is it possible to use some lower level command for this? Best Henk |
||||
| panky Guru Joined: 02/10/2012 Location: AustraliaPosts: 1116 |
Henk, The function POS will return the current cursor position (in characters) in a line, eg. PRINT "abc";:PRINT POS will return abc 4 ( that is, the cursor position is the 4th character position immediately after the c in the string abc. As far as the actual line number, MMBasic for DOS appears not to track this in normal program execution other than to just feed carriage return or new line through to Windows which scrolls the display window. The EDITOR command is a special case where MMB tracks the cursor position but this does not appear to be accessible outside this command ( and would not be relevent anyway). Hope this helps, Doug. ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
| hkoetz Newbie Joined: 30/03/2019 Location: NetherlandsPosts: 19 |
Thx, now only the elusive VPOS remains. Henk |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |