Meaningless Drivel is fun!*
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 Spring in Action this week in the Spring 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

how to make an Editor in linux

koushik maiti

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

Joined: Jul 08, 2003
Posts: 24187

Go to Sourceforge ( or Freshmeat ( 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.


Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: how to make an Editor in linux