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 2 1533
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
On Jun 30, 6:24 pm, Cheeks <rss...@gmail.c omwrote:
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 "QTextEdito r" which
builds into it, most of the editing capabilities you are looking for.
--Neo This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 AMP application on a linux server.
I'm new to linux, Apache, MySQL and PHP. But I have an
application that's already been built, a linux box that's already
been build with Apache, MySQL and PHP already installed and
I need to how to get the MySQL...
|
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, when I click the button, the selected text gets
unselected. Select some text in the textbox and click -anywhere-
and the text unselects.
I want that text to stay selected!
|
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 text more
friendly to read. I am thinking to divide it into smaller chapters and
to format it something like a newspaper article. But just learning
about HTML, 150 pages just seems like too greater task. Is there a
shortcut or another way to do...
|
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 UITypeEditors which display modal forms, and
TypeConverters and so on.
The problem is that when I have a modal Type Editor form which has a
|
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 arse because I can't figure
out how to stop having this fact cock up my relative urls.
When I create a virtual directory - presumably what you're supposed to do
when you're only allowed one site my relative URL's refer to the root of the
| |
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 the features
for coding, such as syntax highlighting, etc.) but not a full IDE with
all the fancy jazz (GUI developer, UML diagrams, etc.).
Ideally, it would be something I could even put on a flash drive and
move from computer to computer, but...
|
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, but it's
Windows-only and I'm working more on Linux nowadays.
Here are my criteria:
1. syntax highlighting (highly customizable)
2. auto/smart indenting
3. ability to run script
|
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?
|
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 Linux, but
the best one I have tried is Quanta I suppose.
As for books, PHP5 Objects, Patterns & Practice (Zandstra) is a good
book - not for the faint hearted though. Something a bit easier to
comprehend is PHP 5 Fast and Easy web development...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |