I want to support the suggestion of the "locate" command to position the cursor within the textwindow
And i want to add more possibilities to the text window and cursor managment. The idea is to make the text window more useful and be able to play around with it (like on the C64 in the old days).
- a "locate" command to set the cursor to postition
- commands for cursor up, down, left and right
- a "home" command to bring the cursor back to top left without clearing the window.
- a command to define the window to a certain width and hight. Like the grafics window but with the charakter-count in mind. (e.g. setwindow 40,20 would mean 40 characters wide and 20 row height)
- a "locate" command to set the cursor to postition
- may be a possibility to edit the character-set.
- commands to set the backgroundcolor of then window, etc.
i think there are lots of more possibilitys in this area.
ok, first try to do it myself :)
works only with monospace font and is for the graphics window:
subroutine locate(x,y,textx,texty,a$)
font "courier",5,30
text x+1+textxtextwidth(a$)/length(a$),y+textytextheight,a$
end subroutine
Last edit: Al Voland 2023-08-27