Thread:Indie go games/@comment-26924640-20151001014421

To move the cursor in write mode you can do something like this: Make another variable for the cursor's location (I'm using CX, use whatever). Go to the write loop and add these lines wherever you think would work best:

IF BUTTON==4 AND CX>0 THEN CX=CX-1

IF BUTTON==8 AND CX=LEN(DEF$(S)) THEN CX=LEN(DEF$(S))

Remove the "_" after the text and instead add something like this:

LX=FLOOR(CX/31)

GPAGE 0,1,1

GLINE (CX-LX*31)*8,LX*8+8,(CX-LX*31)*8+8,LY*8+8,(whatever color you find fit)

And now it should draw this line in the right place. Now for the difficult part, adding text and deleting text with this new cursor... These are what I think will work...

IK$=INKEY$

IF TCHST AND IK$!="" THEN DEF$(S)=MID$(DEF$(S),0,CX+1)+IK$+MID$(DEF$(S),CX+1,LEN(DEF$(S))):CX=CX+1

IF CX>0 AND LEN(DEF$(S))>0 THEN DEL$=LEFT$(DEF$(S),CX)+RIGHT$(DEF$(S),LEN(DEF$(S))-CX-1)

IF KEYBOARD==15 AND CX>0 AND LEN(DEF$(S))>0 THEN DEF$(S)=DEL$

These lines shouldn't be too long. If they are, just figure out a way to split them up. If you've already added a moving cursor then just ignore this. There are probably some bugs in there, but I'm sure that you'll be able to fix them. 