|
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
- Position cursor on the line.
- Type ^k to cut the line.
- Move cursor to the new location of the line.
- Type ^u to paste line to the new location.
Moving a Block of Text
- Position cursor at the beginning of the text block you want to move.
- Type ^^ (control key and the ^ character).
- Move the cursor to the end of the text block (text block is highlighted).
- Type ^k to delete the block.
- Move cursor to the new location
- 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
- Type ^o to write to a file.
- Type the filename, and press Return. You'll see the name of the file at the top of the screen.
inserting a file
- Place cursor where you want to insert the file.
- Type ^r to insert the file.
exiting pico
Type ^x to exit pico.
3032
|