CS 1500
Text Editors

There are serveral text editors available for unix machines. We will focus on PICO. Below is some information and links to turorials.

PICO


JOVE

Enter "jove prog1.cpp".

The command "jove p1.cpp" starts up a text editor called JOVE, working with a file buffer called p1.cpp.

JOVE is a lot like some PC applications with which you may or may not be familiar: Notepad, TextEdit, or SimpleText. It is a simple text editor - better than a word processor for the kind of thing we are doing.

Unless the file already exists, the screen goes blank, except for some documentation lines at the bottom. JOVE is running. Type in your program

Now figure out how to use the keyboard to do this JOVE command:

C-x C-\

What I mean by the command above is "while holding down the ctrl-key with one hand, with the other hand press the x-key, release the x-key, press the \-key, and release the \-key. Finally release the ctrl-key." Consult JOVE -- a quick reference guide for more information about JOVE commands:

If you haven't done it already go ahead now and do a C-x C-\ command in the window where JOVE is running.

The C-x C-\ command causes a copy of the program you typed to be saved. It is saved as a file named p1.cpp, because of the name you typed in step 7.

C++ programs for the g++ compiler on the Suns are supposed to have names ending in ".cpp" or ".cc". In other words, they should have names like p1.cpp, myprog.cc, prog3.cpp, and so on. This is very important. If the ".cc" or ".cpp" is missing, the compiler or linker may fail, even though the program has no errors.

Now do this JOVE command:

C-x C-c

(You have to use again the definition of C- you just learned.) The command causes JOVE to terminate. You should now be seeing your shell prompt again (at the bottom of the screen).


VI


EMACS