How is a word processor written? A very basic one, for only editing text.
- only navigate with arrow keys
- edit pre entered text, and write more
Is the general way like this:
- make each line any array with max length
- push each line entered on stack
- use the arrow keys to move up and down in stack and left and righ in each line (array index)
- get a character at a time, and enter it in the write position for each array line
Thanks for your feedback..