Thursday, July 30, 2009

Cursors for a simple text editor?

I was asked to write a simple text editor (no graphical interface) using only C language, that opens a file, displays its contents and allows the users to edit its contents and finally save the changes...





I preapred an executable file that displays the contents of a file...My question is how to get a cursor that moves around the text in an executale file??

Cursors for a simple text editor?
Look into the "curses" library. It provides support for moving a cursor around and changing text wherever you want on the screen. See below for an introduction document. This library is available for free and is probably already on your Unix system ( at school :-) )

song downloads

No comments:

Post a Comment