Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to make an Editor in linux

 
koushik maiti
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic