This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes how to make an Editor in linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to make an Editor in linux" Watch "how to make an Editor in linux" New topic
Author

how to make an Editor in linux

koushik maiti
Greenhorn

Joined: Jul 22, 2005
Posts: 9
hi ,
friends ,
I am very interested in linux.I had done shell script programming and other programming like socket,pipe,etc in linux o/s.
Now i am very eager to make a small editor in linux..plz give me some idea about this ...u can give some references of books ..I have no idea about this....plz help me..
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Go to Sourceforge (sourceforge.net) or Freshmeat (freshmeat.net). Search for "editor." You'll find literally hundreds of little text editors that people have written for Linux and/or Windows. Pick one. Look at the code until the desire to write your own fades away.


[Jess in Action][AskingGoodQuestions]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
First you need to pick a language to write it in. Do you want to use Java, C, C++, Perl, Lisp, Scheme, or something else? Also, do you want a text or GUI interface? If you want a GUI, Java is a decent language to use since Swing or AWT provides much of the functionality you will need. Using Java also means that your text editor isn't necessarily limited to Linux. You can write it so that it runs on other OSes without a lot of effort. On the other hand you can use C or C++, especially if you are interested in learning Linux-specific GUI libraries like GTK or qt. I'm sure other languages provide similar libraries.

If you want to write a text interface, Java is probably fairly weak in that area. Java is not very strong for console I/O, although there may be third-party libraries available to help with that. In C or C++, you can use the curses library. Again, other languages may have more or less support, but I'm not very familiar with them.

I hope this helps and good luck.

Layne


Java API Documentation
The Java Tutorial
 
 
subject: how to make an Editor in linux
 
Similar Threads
How can i make canvas Transparent
Passed SCWCD with 81%
EJB Start Up
Open "vi" Editor from java
details about certification