Help required in developing an Editor.


 
Thread Tools Search this Thread
Top Forums Programming Help required in developing an Editor.
# 1  
Old 03-20-2008
Help required in developing an Editor.

Hi,

I wish to develop a editor of my own. My idea is using
  • 100% C programming
  • Linked list as the Data structure
  • GNU/Linux as the compiling environment
  • ncurses utility for screen

Many of might have wrote a editor in your college itself as a project. But I am from non IT background. But anyways, I wish to develop an editor of my own now.

Please give your valuable inputs and ideas for me in developing editor.
Also f you have any online link/material which helps me developing, please suggest that.

Thanks,
Ramkrix
# 2  
Old 03-25-2008
I would suggest starting with simplified code/data for
keeping text in memory. Maybe fixed array (requiring plenty of copying when inserting/deleting characters) or linked list
of buffers with pointers to previous and next lines.

Think of proper interface to this, suitable for further changing
to more efficient method.

Fortunately, with curses and fixed font width this is major
part of the program.
In my opinion the text editor can be a challenging project.
Situation gets even more complicated with X11 and proportional font handling.

If you like to see some code, I can suggest reading
sources of 'text' widget from Tcl/Tk library. This is quite clean code so maybe it could be useful.

Good luck.
# 3  
Old 03-25-2008
# 4  
Old 03-26-2008
Bug

Thanks guys for your Reply and the link

Regards,
Ramkrix
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

Developing Applications for UNIX.COM

A number of people have asked me about the best way to develop some cool new web app for UNIX.COM. In today's "very easy web dev" world, developers do not need to be burdened (like I am) to the "back end" of the site. The best way to develop web apps is to build the application on your desktop... (2 Replies)
Discussion started by: Neo
2 Replies

2. Shell Programming and Scripting

Help with approach and developing script

Hi- I need to develop a script for following scenario in AIX and K shell environment.I am from windows server background for most my career ,so please bear with me and advise suitable approach and technical assistance.Having said that I am aware of unix shell commands but never pput together at... (1 Reply)
Discussion started by: nirasm
1 Replies

3. UNIX for Dummies Questions & Answers

Help for developing script

I want to develop a unix script. Scenario:A folder is containing many text files and there is one text file eg. test.csv which is having 2 words at line 1 & line 2.The script should search for word at line 1 in test.csv file in all other text file present in folder & replace it with word at line 2... (5 Replies)
Discussion started by: Anna Cardoz
5 Replies

4. Shell Programming and Scripting

Help in developing an awk code

#!/bin/ksh set -x FILENAME=$1 #To calculate debit and credit DEBIT=`awk -F, '{value=$28 ;if(value<0) {debit+=value}} END {print debit}' $FILENAME` CREDIT=`awk -F, '{value=$28 ;if(value>0) {credit+=value}} END {print credit}' $FILENAME` #This part is not working since the debit value is... (2 Replies)
Discussion started by: selvankj
2 Replies

5. UNIX for Dummies Questions & Answers

developing a Kernel for old old Unix?

Hello all , My father has been running the last version of unix before all the liscensing began 20 or so years ago. In his particular field his programmer has written a great deal of software to work with this version. Emulating so newer computers could speak to the unix server as well. Im sure... (6 Replies)
Discussion started by: Bill78
6 Replies

6. Shell Programming and Scripting

Getting required fields from a test file in required fromat in unix

My data is something like shown below. date1 date2 aaa bbbb ccccc date3 date4 dddd eeeeeee ffffffffff ggggg hh I want the output like this date1date2 aaa eeeeee I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Discussion started by: rdhanek
7 Replies

7. Shell Programming and Scripting

Developing own shell

Hi everyone.I am trying ti create my own shell in C.So far i have managed to create a parser to separate args from cmd line of my shell.(i have done nothing different for tokens is that wrong?).so i can run commands like "ls -l" "cp" "cat" etc.now i want to add redirection.can anyone guide me... (1 Reply)
Discussion started by: bashuser2
1 Replies

8. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

9. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

10. Shell Programming and Scripting

Can you help me regarding developing script?

Hi All, I want to develope this script. any help will be appreciated. It is possible to use two pipes and create two-way communication between two processes. (In practice, this is not done because sockets are available.) Create a program where the parent process reads the name of a language... (2 Replies)
Discussion started by: vishalpatel03
2 Replies
Login or Register to Ask a Question