On Jun 30, 6:24 pm, Cheeks <rss...@gmail.comwrote:
Hi all,
Has anyone here developed a text editor using C ? If so pls share
the ideas with me.
I have some basic doubts on how to edit the text in stdout as per the
input from keyboard.
Also whenever the user inputs any characted to a IO function like
scanf, the character is displayed in stdout.. how can I block it.
Regards,
Cheekuu
Erik is right in pointing out that without using some third-party
library, you would end up dealing with just too much of esoterism.
Though, NCurses is good enough to develop any basic editing tool,
empirical experiences have taught me that it takes just too much of
code to get even the most basic thing upright running, in the context
of providing the window where text would be typed, maintaining those
buffers in sync and odd!
Since this is a C++ group, I inevitably suggest the below.
Take a look into the Trolltech's C++ framework called QT, it is
available for free and comes along with the neccessary editor, make
tool and help pages. The framework defines a class "QTextEditor" which
builds into it, most of the editing capabilities you are looking for.
--Neo