Pico (text editor)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:Short description {{#invoke:Infobox|infobox}}Template:Template other {{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y| AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo class | logo size | logo title | logo upright | logo_alt | logo_caption | logo_class | logo_size | logo_title | logo_upright | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | qid | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot class | screenshot size | screenshot title | screenshot upright | screenshot_alt | screenshot_class | screenshot_size | screenshot_upright | service_name | size | standard | title | ver layout | website }}Template:Main other

Pico (Pine composer) is a text editor for Unix and Unix-like computer systems. It is integrated with Pine and Alpine, email clients initially designed by the Office of Computing and Communications at the University of Washington.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

From the Pine FAQ: "Pine's message composition editor is also available as a separate stand-alone program, called PICO. PICO is a very simple and easy-to-use text editor offering paragraph justification, cut/paste, and a spelling checker...".<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

Features

Pico does not support working with several files simultaneously and cannot perform a find and replace across multiple files. It also cannot copy partial text from one file to another (though it is possible to read text into the editor from a whole file in its working directory). Pico does support search and replace operations.

By comparison, some popular Unix text editors such as vi and Emacs provide a wider range of features than Pico; including regular expression search and replace, and working with multiple files at the same time. By comparison, Pico's simplicity makes it suitable for beginners.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

Basic commands and navigation

Pico features a number of commands for editing. Arrow keys move the cursor a character at the time in the direction of the movement. Inserting a character is done by pressing the corresponding character key in the keyboard, while giving commands (such as save, spell check, justify, search, etc.) is done using a control key.

The Template:Key press command is used to spell check. The speller is defined from the command line using the -s option. When a person writes files in different languages, the speller can be set to be a script that interacts with the user to select the language to be checked.

The Template:Key press command is used to left justify text. Text is flowed in each line of a paragraph up to a limit set with the -r option in the command line. If no limit is given in the command line, then a default value of 72 characters per line is used. This limit is used to wrap lines during composition, as well as to justify text. The Template:Key press command justifies the text in the paragraph that the cursor is placed on. The command Template:Key press Template:Key press is used to justify the full file. In case that justification is not done correctly, or by mistake, it can be undone by pressing the Template:Key press command immediately after justification has been done.

The Template:Key press command is used to search for text. Search is done case insensitively, The search and replace command is not available by default, but must be enabled through the -b option in the command line.

Moving inside the editor can be done using the keyboard by using the arrow keys. Keys such as Template:Key press, or Template:Key press, scroll the text up or down (towards the beginning or end of the file, respectively). The commands Template:Key press Template:Key press, and Template:Key press Template:Key press move the cursor to the beginning or end of the file respectively, while the commands Template:Key press and Template:Key press move the cursor to the beginning and the end of the line that the cursor is located on.

Derivatives

A clone of Pico called nano, which is part of the GNU Project,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> was developed because Pico's earlier license had unclear redistribution terms.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> Newer versions of Pico as part of Alpine are released under the Apache License version 2.0.

See also

References

Template:Refs