![]() |
Forum Index : Microcontroller and PC projects : CMM: Text cursor control
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Hi folks, Two questions regarding text cursor control in MMBasic 4.5 on the CMM: 1) Is there any way of getting the current text cursor position? 2) Is there a control code to move the text cursor to the beginning of the current line? Regards, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
1) MM.HPOS and MM.VPOS will give you the position in pixels. POS will give you the current cursor position in the line in characters but I cannot think of anything that would return the line. 2) The carriage return character. ie, PRINT CHR$(13); Geoff Geoff Graham - http://geoffg.net |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Thanks Geoff, 1) I had missed POS when I read the manual :-( I didn't need the line, and as it turned out I worked out a way of not needing the column either. 2) Right, I had tried CHR$(13) and it "didn't work" - seemed to do a newline instead, but I must have done something else wrong because when I tried it again it did <shrugs shoulders/> Thanks again. Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |