Skip to main content

Pico (text editor)









Pico (text editor)




From Wikipedia, the free encyclopedia






Jump to navigation
Jump to search



















Pico
Developer(s)University of Washington
Initial release1989
(30 years ago)
 (1989)
Written inC
Operating systemUnix-like
Available inEnglish
TypeText editor
LicenseApache License
Websitewww.washington.edu/pine/

Pico (Pine composer) is a text editor for Unix and Unix-based computer systems. It is integrated with the Pine e-mail client, which was designed by the Office of Computing and Communications at the University of Washington.[1]


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...".[2]


Pico does not support working with several files simultaneously and cannot perform a find and replace across multiple files. It also cannot copy text from one file to another (though it is possible to read text into the editor from a 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.[3]


A clone of Pico called nano, which is part of the GNU Project,[4] was developed because Pico's earlier license had unclear redistribution terms.[5] Newer versions of Pico as part of Alpine are released under the Apache License.




Contents





  • 1 Basic commands and navigation


  • 2 Command-line options


  • 3 See also


  • 4 References


  • 5 External links




Basic commands and navigation[edit]


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 CTRL-T 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 spelled.


The CTRL-J 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 CTRL-J command justifies the text in the paragraph that the cursor is placed on. The command CTRL-W CTRL-U 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 CTRL-U command immediately after justification has been done.


The CTRL-W 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 Page Up, or Page Down, scroll the text up or down (towards the beginning or end of the file, respectively). The commands CTRL-W CTRL-Y, and CTRL-W CTRL-V move the cursor to the beginning or end of the file respectively, while the commands CTRL-A and CTRL-E move the cursor to the beginning and the end of the line that the cursor is located on.



Command-line options[edit]


The following command line options allow users to configure Pico before editing a file. This information can be obtained by starting Pico with the -h command. When Pico is invoked from Pine or Alpine some of the options below can be configured from their Setup Configuration Screen by either enabling a specific feature, or configuring a variable. Below is indicated the way to configure Pico from the command line, as well as how to configure it from Alpine. Possible starting arguments for the Pico editor are:




























































































Command Line ArgumentMeaningAlpine Configuration Option
-eComplete - allow file name completion[X] Enable Tab Completion (enabled by default)
-kCut - let ^K cut from cursor position to end of line[X] Ctrl-K Cuts From Cursor
-aShowDot - show dot files in file browser[X] Enable Dot Files
-jGoto - allow 'Goto' command in file browser[X] Enable Goto in File Browser (enabled by default)
-gShow - show cursor in file browser[X] Show Cursor
-mMouse - turn on mouse support[X] Enable Mouse in Xterm
-xNoKeyhelp - suppress keyhelp[X] Disable Keymenu
-pPreserveStartStop - preserve "start"(^Q) and "stop"(^S) characters[X] Preserve Start/Stop Characters
-q TermdefWins - termcap or terminfo takes precedence over defaults[X] Termdef Takes Precedence
-Q <quotestr>Set quote string (e.g. "> ") esp. for composing emailReply Indent String =
-dRebind - let delete key delete current character[X] Delete Key Maps to Ctrl-D
-fKeys - force use of function keys
-bReplace - allow search and replace[X] Enable Search and Replace (enabled by default)
-hHelp - give this list of options
-r[#cols]Fill - set fill column to #cols columns, default=72Composer Wrap Column =
-n[#s]Mail - notify about new mail every #s seconds, default=180Mail Check Interval =
-s <speller>Speller - specify alternative spellerSpeller =
-tShutdown - enable special shutdown mode
-o <dir>Operation - specify the operating directoryOperating Dir =
-zSuspend - allow use of ^Z suspension[X] Enable Suspend
-wNo Wrap - turn off word wrap
-W <wordseps>Set word separators other than whitespaceComposer Word Separators =
-dcs <display_character_set>default uses LANG or LC_CTYPE from environmentDisplay Character Set =
-kcs <keyboard_character_set>defaults to display_character_setKeyboard Character Set =
-syscsuse system-supplied translation routines[X] Use System Translation
+[line#]Line - start on line# line, default=1
-vView - view file
-no_setlocale_collatedo not do setlocale(LC_COLLATE)[X] Disable Setlocale Collate
-versionPico version number

All arguments may be followed by a file name to edit.


The options -dcs, -kcs and -syscs are not available in the Windows version of Pico. However, the Windows version of Pico also has four options (-cnf, -cnb, -crf, -crb) that are not available in unix versions of Pico; each option is defined as follows: -cnf for Color for Normal Foreground, -cnb for Color for Normal Background, -crf for Color for Reverse Foreground and -crf for Color for Reverse Background. Their possible values are black, red, green, yellow, blue, magenta, cyan, and white or a 3 digit number, such as 009, 064, or 137.



See also[edit]


  • List of text editors

  • Comparison of text editors


References[edit]




  1. ^ "Pine Project History". University of Washington. January 4, 2002. Retrieved December 23, 2018..mw-parser-output cite.citationfont-style:inherit.mw-parser-output .citation qquotes:"""""""'""'".mw-parser-output .citation .cs1-lock-free abackground:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration abackground:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center.mw-parser-output .citation .cs1-lock-subscription abackground:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registrationcolor:#555.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration spanborder-bottom:1px dotted;cursor:help.mw-parser-output .cs1-ws-icon abackground:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center.mw-parser-output code.cs1-codecolor:inherit;background:inherit;border:inherit;padding:inherit.mw-parser-output .cs1-hidden-errordisplay:none;font-size:100%.mw-parser-output .cs1-visible-errorfont-size:100%.mw-parser-output .cs1-maintdisplay:none;color:#33aa33;margin-left:0.3em.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-formatfont-size:95%.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-leftpadding-left:0.2em.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-rightpadding-right:0.2em


  2. ^ "2.2 What is PICO?". University of Washington. January 29, 2002. Retrieved December 23, 2018.


  3. ^ "PICO - the PIne COmposer - a simple editor". Guckes.net. Retrieved December 23, 2018.


  4. ^ "[Nano-devel] nano to remain in GNU". GNU Project. August 19, 2016. Retrieved December 23, 2018.


  5. ^ "GNU nano -- an enhanced clone of the Pico text editor". GNU nano. Retrieved December 23, 2018.




External links[edit]


  • The Pine Information Center at the University of Washington

  • Pico User Guide




Retrieved from "https://en.wikipedia.org/w/index.php?title=Pico_(text_editor)&oldid=875154822"










Navigation menu


























(window.RLQ=window.RLQ||).push(function()mw.config.set("wgPageParseReport":"limitreport":"cputime":"0.172","walltime":"0.226","ppvisitednodes":"value":835,"limit":1000000,"ppgeneratednodes":"value":0,"limit":1500000,"postexpandincludesize":"value":11432,"limit":2097152,"templateargumentsize":"value":907,"limit":2097152,"expansiondepth":"value":12,"limit":40,"expensivefunctioncount":"value":2,"limit":500,"unstrip-depth":"value":1,"limit":20,"unstrip-size":"value":14111,"limit":5000000,"entityaccesscount":"value":1,"limit":400,"timingprofile":["100.00% 201.878 1 -total"," 50.37% 101.685 1 Template:Reflist"," 47.70% 96.302 1 Template:Infobox_software"," 44.53% 89.888 5 Template:Cite_web"," 40.07% 80.884 1 Template:Infobox"," 8.01% 16.169 1 Template:Start_date_and_age"," 3.54% 7.152 1 Template:URL"," 2.96% 5.966 1 Template:Years_or_months_ago"," 2.94% 5.932 1 Template:Infobox_software/simple"," 1.96% 3.950 5 Template:Yesno"],"scribunto":"limitreport-timeusage":"value":"0.080","limit":"10.000","limitreport-memusage":"value":2721684,"limit":52428800,"cachereport":"origin":"mw1325","timestamp":"20190322131624","ttl":86400,"transientcontent":true);mw.config.set("wgBackendResponseTime":90,"wgHostname":"mw1330"););

Popular posts from this blog

Top Tejano songwriter Luis Silva dead of heart attack at 64

ReactJS Fetched API data displays live - need Data displayed static

Evgeni Malkin