Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:11 12 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : HPOS, VPOS for MMBasic DOS

Author Message
hkoetz
Newbie

Joined: 30/03/2019
Location: Netherlands
Posts: 19
Posted: 08:56am 30 Apr 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1106
Posted: 11:50am 30 Apr 2019
Copy link to clipboard 
Print this post

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)

BrianEdited by Chopperp 2019-05-01
ChopperP
 
hkoetz
Newbie

Joined: 30/03/2019
Location: Netherlands
Posts: 19
Posted: 01:45pm 30 Apr 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1116
Posted: 01:05am 01 May 2019
Copy link to clipboard 
Print this post

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: Netherlands
Posts: 19
Posted: 03:35pm 02 May 2019
Copy link to clipboard 
Print this post

Thx, now only the elusive VPOS remains.

Henk
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025