Hi fellows,
We , in our college are supposed to code a text editor similar to the edit in dos using turbo c(i know its age old) without using any graphics (i.e no graphics.h utilities)
Since we are supposed to stick on to using C (no c++) I decided to use this opportunity to learn c in depth. So far i am able to display typed text and move cursor but i have these to problems
*) Which is the best data structure to store the text being displayed ? Currently i am using char array for testing purpose. Linked lists might fit in well but i want to know whether there are other efficient data structure or modified forms of data structure for this purpose ?
*) Secondly i don't have a clue on how to implement scrolling ? In one of the dos book there was an interrupt to do scrolling but i didn't understand how this worksWe are using framebuffer to display the text directly.
Can you people please help me out ?![]()
Bookmarks