473,320 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Developing Text editors in C

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

Jun 30 '07 #1
2 1518
On 2007-06-30 15:24, Cheeks wrote:
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.
You can't make a good texteditor unless you use some kind of thurd-party
library for controlling the console (unless you want to make a new ed).
Since you are talking about standard in/out I suspect you are targeting
Unix/Linux (under windows you'd probably be looking into using a GUI) in
which case you might be interested in ncurses.

--
Erik Wikström
Jun 30 '07 #2
Neo
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

Jun 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MLH | last post by:
I think I must be getting too old and my mind is failing. I never knew browsers could double as word processors or text editors. But recently I bought a book to assist in my effort to launch an...
7
by: Razzbar | last post by:
I have a textarea and some buttons. The buttons apply functions to the text the user selects, i.e. the good old "wrap with a tag" thing we all have seen in 100 different editors. Trouble is,...
10
by: st4 | last post by:
Help, As part of my family history web site i need to get 150 pages of typed text into some format to display. It just text right now but I would like to add some graphics (photos) and make the...
1
by: Tim Johnson | last post by:
Hi all, I'm a little bit stuck, so wondering if anyone has encountered this issue before. I am developing a toolkit which is fully integrated in Visual Studio .NET, and so there are lots of...
11
by: Simon | last post by:
Hi all As I'm sure is common knowledge the version of IIS included in XP Pro is limited in that you can only create 1 website in the IIS snap in. As an ASP.net developer this is a pain in the...
63
by: John Salerno | last post by:
I know there's a request for a good IDE at least once a week on the ng, but hopefully this question is a little different. I'm looking for suggestions for a good cross-platform text editor (which...
31
by: John Salerno | last post by:
Ok, I know it's been asked a million times, but I have a more specific question so hopefully this won't be just the same old post. I've tried a few different editors, and I really like UltraEdit,...
13
by: so many sites so little time | last post by:
say i want spacing in my text so instead of doing <br> <br> in between the lines or having to do <href = or <a href = for a link what could i do to have php enter to mysql or retrive it formated?
0
by: macca | last post by:
My favourite text editor (on windows) is the free software ConTEXT (http://www.context.cx), as already mentioned, notepad++ is also good. I dont really like any of the editors that i have tried on...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.