Hi, i have in mind to build a simpletext editor, not like vi for linux, but more like gedit, but command line not gui.
For who knows the subjetc, what are the main problems to solve?
Hi, i have in mind to build a simpletext editor, not like vi for linux, but more like gedit, but command line not gui.
For who knows the subjetc, what are the main problems to solve?
When you say 'command line not gui' are you referring to making a full screen text editor like the old MS-DOS edit program or a command line editor like edlin?
You can also search the forums for "making text editor" as we've had two or three moderately interesting threads on the topic here.
IMO the main problem to solve is how to store the file contents internally, because everything else except some ui stuff is built over the internal data structure containing the file contents. Gap buffer is quite nice and (at least I've been told) used, some of more line oriented editors like vi use just some kind of linked list of which every node contains one line of text.