Announcement

Collapse
No announcement yet.

to(GFX) breaks txt_MoveCursor ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • to(GFX) breaks txt_MoveCursor ?

    Not sure whether this is a bug, I'm doing something wrong, or not, but once you use 'to(GFX)', 'txt_MoveCursor' seems to have no effect.

    func main()
    txt_Set(FONT_SIZE, 1);
    gfx_MoveTo(0,8*4); // position GFX to line 4

    txt_MoveCursor(0, 0); // position the cursor, this works
    putstr("This should be on line 0");
    txt_MoveCursor(2, 0); // position the cursor, this works
    putstr("This should be on line 2");
    to(GFX);
    putstr("This should be on line 4");
    txt_MoveCursor(6, 0); // position the cursor, this fails
    // if the to(GFX) is commented out then it works
    putstr("This should be on line 6");
    print("\n\n\n\n\n\nThat's all folks\n") ;
    while(1) ;
    endfunc
Working...
X