Over on #iphone-shell, user Doggkruse was wondering how to get pico to work on his iPhone. Problem was that the iPhone had no terminal definitions on-board. So every time he ran pico, he got “Unknown termtype vt100″ errors.
For those of you curious how to fix this problem, here’s the solution:
On your iPhone, create the folder
/usr/share/terminfo/76
and copy /usr/share/terminfo/76/vt100 from your Mac over to the iPhone. Once there, set your term environment variable to vt100. In csh, this is set term=vt100. It varies, obviously, by shell. Once this is done, you should be able to use pico in normal full-screen mode. For those of you full-screen addicts, there’s now vim and pico. For the rest of us, there’s ed–the editor of kings. User DrunkDwarf was nice enough to put up a copy of vt100 for Windows users here. Thanks DrunkDwarf!
Article Source: Here
PS: Setting TERM to vt100 makes pico work but break vim at the same time. After some trials, I have found setting TERM to xterm satisfies both pico and vim.

One Comment
Hey i am not getting anything for this on windows i don’t know if i am supposed to post questions here but sorry.
Thanks