the ^ character

Pico makes wides use of "control key sequences," represented in writing as commands starting with a caret (^). Lines that have a ^ followed by a letter, are actually typed as commands by pressing the Control key and typing the character (while you are holding the control key down). For example, the command for deleting a line is control-k, represented in writing as

    ^k

To actually type this command, you hold down the control key while you type the lower-case letter k.

finding pico's commands

All pico commands are displayed along the bottom of the pico screen. So if you need to accomplish a task in pico and don't know what the command is to do that, the bottom of the screen should be the first place you look.

starting pico

Log into the CMS Unix environment (see Unix: Access from Windows or Unix: Access from Macintosh OSX) and enter the pico command:

    % pico

You should now see a blank screen ready for you to edit:

editing a file

Use the following commands

Moving the Cursor

    up a line - ^p
    down a line - ^n
    left a character - ^b
    right a character - ^f
    right a word - ^@ or ^SPACEBAR
    beginning of line - ^a
    end of line - ^e
    page down - ^v
    page up - ^y

Deleting Text

    delete previous character - BACKSPACE
    delete current character - ^d
    delete the line - ^k

Moving a Line of Text

  1. Position cursor on the line.
  2. Type ^k to cut the line.
  3. Move cursor to the new location of the line.
  4. Type ^u to paste line to the new location.

Moving a Block of Text

  1. Position cursor at the beginning of the text block you want to move.
  2. Type ^^ (control key and the ^ character).
  3. Move the cursor to the end of the text block (text block is highlighted).
  4. Type ^k to delete the block.
  5. Move cursor to the new location
  6. Type ^u to paste the block of text to the new location.

Formatting Text

    inserting a tab - ^i
    format (justify) paragraph - ^j
    refresh the display - ^l
    report cursor position - ^c

saving a file

  1. Type ^o to write to a file.
  2. Type the filename, and press Return. You'll see the name of the file at the top of the screen.

inserting a file

  1. Place cursor where you want to insert the file.
  2. Type ^r to insert the file.

exiting pico

Type ^x to exit pico.



3032