Pico

From OpenTom

Jump to: navigation, search
pico
The console text editor.
Properties
Developer: Michael Seibel, Laurence Lundblade
Version:  ()
Architecture: arm-linux, linux, UNIX
Language: {{{language}}}
Comment:
Dependencies
Requires: TTconsole
See also: Software


pico - simple text editor in the style of the Pine Composer

Syntax:

 pico [ options ] [ file ]

Description:

Pico is a simple text editor based on the Pine message system composer. Commands are displayed at the bottom of the screen, and context-sensitive help is provided. As characters are typed they are immediately inserted into the text.

Download

Install

bin-pico.zip uncompresses into a set of sub Dir’s.

media/INTERNAL/bin/
bin/  :
 248136 2008-01-09 10:48 libncurses.so.5*
    260 2008-01-10 13:40 pico*
 167420 2008-01-09 11:45 pico.bin*
 923707 2008-01-10 10:10 termcap*
d  4096 2008-01-10 13:03 terminfo/

Now, please just copy the bin folder and all of its content to the root of the TomTom device (/mnt/sdcard or whatever Drive E: or so it appears). If a bin folder is already there, only copy the contents of pico's bin into the bin on the TomTom.


Usage

Pico is started from the “busybox” shell (TTconsole) by typing:

pico 

or

pico <filename.txt>

Where <filename.txt> is the name of the file you want to edit. The file must be in the current working directory, which you can change with "cd" command. You can also use <path/filename> combinations. Examples:

 pico bin/TTTracklog-wrapper
 pico cleanup.txt
 cd bin
 pico TTTracklog-wrapper

(it is nice to know, that the tab key does autocompletion on filenames.)

If you have not specified a filename on start, pico starts and you can load the file to be edited (must be in the same directory) by using the CTL-“R” command. Now just type in the file name (e.g. “config.txt” and hit the enter key) Now you can edit the files content. When finished editing, use the CTL-“O” command to save the file (writeout) or the CTL-"X" command to save the file and quit pine. You will get a prompt that warns you if this file already exists, and asks if you are sure you want to over write it. A "Y"(yes) or a "N"(no) will either save the file or take you back. The command CTL “X” exits pico and takes you back to the shell (TTconsole).

Note: while in pico, the command CTL-"G" opens up a fairly comprehensive set of help screens that change depending on where you are in the command structure.

Retrieved from "http://www.opentom.org/Pico"
Personal tools