Author Topic: built in terminal text editor?  (Read 3382 times)

zaurusbs

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://www.multineedia.com
built in terminal text editor?
« on: January 17, 2004, 10:57:43 am »
is there a built-in pico-like text editor that one can use with the terminal app or does it need to be installed?
SL5600 with default Sharp ROM
Windows 2000, Windows XP Pro
Pretec 802.11b Wireless PDA Card
Trendnet 10/100BT CF Ethernet Card
Sandisk 512MB CF Card
Sandisk 256MB SD Card
Semsons Universal Battery Extender

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
built in terminal text editor?
« Reply #1 on: January 17, 2004, 11:25:53 am »
vi ? Probably not like pico, but I don\'t know what that is. Anyway vi is the only thing which comes by default.
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Anonymous

  • Guest
built in terminal text editor?
« Reply #2 on: January 20, 2004, 10:34:57 am »
vi isn\'t the only text editor included, it also has elvis, a vi clone, and ed, a line editor that is on every unix machine

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
built in terminal text editor?
« Reply #3 on: January 20, 2004, 11:48:29 am »
The following may not be meeting your needs (not sure if you wanted to avoid vi for lack of familiarity or simply preference), but just in case it’s the former (or for newbies that need to know), this is what I’d recommend for connecting to the zaurus for editing (see below for more details on each):

1.  grab ssh (again, this and the next two steps may be redundant for you)
2.  download puTTY to your Zaurus since it is MUCH easier to begin with vi on a full keyboard IMO
3.  change your PC Link to USB – TCP/IP (advanced).  Not sure if necessary, but this is how I’ve always had my zaurus configured since I’ve been using puTTY.
4.  grab some decent vi guides and start learning the appropriate commands

1) if you’re using tkcROM, you’re all set with ssh.  If not, look at the following zaurus devnet thread and put ssh on your zaurus:
http://www.zaurus.com/dev/board/index.php?...c=6735&hl=putty
http://www.zaurus.com/dev/board/index.php?...c=4386&hl=putty

2)  puTTY is a freeware terminal program that will allow for telnet, ssh, and other connections to your zaurus.  See the above devnet threads; you can find this easily with a google search.

3) look at this thread in the zaurus devnet forums:
http://www.zaurus.com/dev/board/index.php?...wtopic=4557&hl=

4) the main things that you need to know for vi are the following (off the top of my head):

-  open a file with # vi <filename>
-  to navigate, use the directional button (NOTE: all commands must be typed when in navigation mode; once in edit mode, obviously typing ‘x’ will place in x in the file)
-  to edit data in the file; type ‘x’ to delete a character, type ‘dd’ to delete a line, type ‘i’ to enter edit mode and start typing, type ‘a’ to enter edit mode starting after the character that your cursor is on, type esc (cancel on the z) to exit edit mode
-  to search a file, type the ‘/’ then the search chars, then enter ( ‘/ hci_uart <enter>’)
-  to jump from word to word (move faster through the file): type ‘w’ to move forward, ‘b’ to move backwards
-  to exit and/or save: to exit and save changes, type ‘ZZ’, otherwise type ‘:’ and then: type ‘q!’ to exit without saving changes, type ‘w <filename> to save the file and not exit the file, type ‘wq <filename> to save the file and exit

That may contain mistakes (google a real guide for confirmation!), but that provides 95% of the vi functionality that I use.  There are TONS of other commands, but that is the bare essential for editing config files and such.  I hope that it is clear and gets you started (if that was indeed your hangup)…

lpotter

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
    • http://qtopia.net
built in terminal text editor?
« Reply #4 on: January 20, 2004, 03:36:18 pm »
You can install uemacs, and I believe nano also works.
Software Engineer, Systems Group, MES, Trolltech
irc.freenode.net #qtopia
http://qtopia.net

yzord

  • Full Member
  • ***
  • Posts: 162
    • View Profile
    • http://
built in terminal text editor?
« Reply #5 on: January 20, 2004, 04:47:28 pm »
If you want pico, you can just grab it at:
http://www.killefiz.de/zaurus/showdetail.php?app=988

Be sure to download it as a binary (if you\'re using ie/windows, it\'ll try to download it as an ascii file). It\'s the actual executable binary, so you want to copy it into your /usr/bin (or anywhere in your path) to be able to invoke it from anywhere.

Yz

dino

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://
built in terminal text editor?
« Reply #6 on: January 21, 2004, 08:06:41 pm »
I use Midnight Commander.  Just select a file with MC and hit the cancle key then fn then 4  to edit (F4).  You can also type mcedit followed by the file name.
If your running OZ use:  
http://www.openzaurus.org/official/3.3.5/c...l-strongarm.ipk
For other roms use:
http://www.killefiz.de/zaurus/showdetail.php?app=221
SL5500, Open Zaurus 3.5.2, 128MB SD

jonnie

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://www.killingjoke.net/zaurus/
built in terminal text editor?
« Reply #7 on: January 22, 2004, 04:00:58 pm »
i think nano is the nearest to pico. and it works fine for me...