To create a word processing program, you need at least:
- a dimensioned variable (rows column) which contains the whole text document;
- a display module which presents part of the text on the visible screen
- an interactive part (inkey$, mouse...input, etc.) which impacts the screen and the dimensionned variable too
- lot of options (save, load, copy, aso... )
If you don't follow this way, you will not overcome this application...
A did such application in 80's...
Good luck !!!