Conceptual overview of a text editor/browser
Hi,
I'm interested in integrating a text browser using the ncurses interface into my CLI app. This is largely intended to overcome the limitations of outputting to terminal/stdout.
I'm looking for advice as to the fundamental principle involved in text editor (or text browser for that mater) design.
This is what I want to do:
* Add new strings to a text buffer.
- What sort of a char* buffer should I be considering?
- What is the approach to increment new strings or data to the buffer? Not using strncat or string.h. I could be wrong. A more direct 'low-level' approach is desired.
* Read and display the buffer continuously as new content gets added to the buffer.
The overall size of the content for the buffer would be comparable to a plain text file several megabytes large.
All views greatly appreciated.
Thanks