Using Pico Text Editor

Pico is a simple text editor that is selected for the first year students to use in the CS Department. The commands of pico text editor are displayed at the bottom of the screen. When you type, the characters are immediately inserted into the text. All the editing commands are used by typing the control-key sequences.

Simply enter pico filename to call up pico editor.
If the file does not exist, it will be created. If the file does exist, it will be read into the edit buffer.

The following picture shows a pico call up screen.

From the commands displayed at the bottom of the screen, select ^G by pressing ctrl-g, to get help. You should see the following.

Press ctrl-v to view more pages. Read the commands which are very useful to you when you edit your C++ program.

Here are more commands. Read them all.

Here is the last page for the Help. Read the page.

Now press ctrl-x to exit the help page. Press ctrl-x again to exit the pico text editor. You should see unix command line by now. It's time to practice.

Example of creating a file with pico

Here is an example of how to create a file called "header.txt".

Start by entering: pico header.txt

Entering the following lines.

     /***********************************************************
        Name:
        Student Number:
        Assignment Number:
        Program Creation Date:
        Purpose of the Program:
     ***********************************************************/

When you finish editing the file, be sure to save and exit pico by entering ctrl-o and then ctrl-x.

Copyright: Department of Computer Science, University of Regina.