|
TipsAndTricks
Tips and Tricks for working with Mobile Terminal.
Featured OBSOLETE: This page is out of date and needs to be updated. It does not reflect v426. IntroductionThis page is a collection of tips and tricks that people have found useful. Please feel free to leave your own in the comments, but put feature requests in the Issues section. TipsHide the KeyboardTap twice quickly on the screen to hide the keyboard. Repeat to bring it back. Control CharactersYou can send a control-C by pressing the "bullet" key (First press ".?123", then "#+=", then the circle on the middle right), then press the C key. This can be useful when you want to escape out of a long running program such as ping. Control-C can also be accessed with a short Up-Right and Control is a short Down-Right swipe, after which the cursor will turn highlight red, from here press any character q, x, c, A to complete or the delete button to exit Control mode. Escape is control-[ or a short Up-Left swip, which may come in handy with vi. Tab is control-I or a short Down-Left swip (yay tab completion). Swipe Controls
None of the Two Finger Swipes seem to work right in 2.0 firmware Multiple TerminalsTerminal comes with four terminal windows. Tap on the battery icon to go right, tap directally on the time to go left, and tap on the carrier name (AT&T or iPod) to crash Terminal (or do a really quick killall Terminal depending on how you look at it). Things to do with your terminalWhile this is in no way a full how-to for UNIX systems, these are some of the commands that you may find useful for your Terminal. Copy
Delete
Free Space
Filesystem 1K-blocks Used Available Use% Mounted on /dev/disk0s1 2048000 465184 1562336 23% / devfs 18 18 0 100% /dev /dev/disk0s2 13811364 9972572 3838792 73% /private/var Filesystem Size Used Avail Use% Mounted on /dev/disk0s1 2.0G 455M 1.5G 23% / devfs 18K 18K 0 100% /dev /dev/disk0s2 14G 9.6G 3.7G 73% /private/var Make Folder
(root home folder is /private/var/root, mobile is /private/var/mobile) Move About
Direct Output
Background Processes
Common unix binariesGet the latest iphone-binkit from http://iphone.natetrue.com which contains lots of useful unix binaries. Also there ssh, apache, python, ruby. Join #iphone-shell on irc.osx86.hu for more discussion. For some tips on setting up and using sshd and an ssh client see: http://www.thebends.org/~allen/code/iphone-apps/binary/openssh-4.6p1/README Binary packages: http://www.thebends.org/~allen/code/iphone-apps/binary/openssh-4.6p1-iphone-binary.tar.gz | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
backspace?
Incredible, this means Ruby on the iPhone. Woah.
If I had one I'd immediately work on making UIKit available from Ruby.
any way to ssh from your iphone to another computer?
Download http://iphone.natetrue.com/ssh_3.2.9.1_mach-o_acorn.tar.gz , copy ssh2 to /usr/bin.
how do you get an <escape> char for the VI editor?
what terminal is it emulating? What do I set TERM to for editing? Can you select-cut-paste text?
If this all works, its the killer app for the IPhone (at least for me!) Thanks!!
What about the Tab key? It is too time consuming to type the whole thing if a file has a long name.
Great job, wonderful app, just a few questions.
I may be silly, but I just can't figure out how to use VI without the arrow keys. Is there a way to use arrow keys?
What terminall is it using. VI seems to default to ANSI. Can I use Xterm?
The current version included with Installer.app blows up when starting. It starts loading, and then just disappears. Any suggestions?
To navigate in vi: h=left j=down k=up l=right
davelugo: Try installing the latest iphone-binutils. It seems that you need /bin/login installed (and you'll actually get a bash shell instead of just sh)
Anyone know how to hide the keyboard in the vt100 branch ? I tried various gestures and figured out up, down, left, right etc, but can't for the life of me figure out keyboard hiding (it's not a single touch like the trunk)
Is this what we should be using? Terminal-unstable-vt100-branch-152.zip ??
o colors are VERY broke
o double tap says 'display all possibilities?' (doesnt affect the keyboard)
o green is a lot harder to read than white (maybe some options for these things?)
o screen doesnt work because the app does not hold control + a down at the same time. (a c-a key on the number pad would RULE for this app, so you press 1 key that does control-a then a number).
so 141 is a lot better, still no ability to use screen, some font settings and such would be neat :)
is the 5 second delay during startup normal?
I am seeing something strange since upgrading today. Now when I open Terminal I can only type 3 characters then a newline is forced and it tries to run what ever 3 letters I had.
Anyone else see this?? I also reverted back to v85 and the same thing happened so sounds like I maybe broke something? Any ideas?
PLEASE add that pie graph thingy to the iterm branch!! the vt100 just doesnt handle the colors right. :((
Also PLEASE add a control-A to that graph.. maybe instead of the arrow keys. this is a MUST have for screen. I will gladly donate. :)
Seems to be a fundamental problem with pico and MobileTerminal?. I've set my term environment to vt100 and copied over required files, but all I get are control characters. Any ideas what the problems might be?
I want to be able to ssh into my other computers on my network and remotely. My computers use public keys that were generated with "ssh-keygen -t dsa". Normally you would put your private key into your home directory under .ssh. Where do I go about putting my private key for the iphone so I can log into my machine?
I just realized that when I ran ssh under the terminal it did in fact create a .ssh directory. I just copied over my private key made for the iphone and all works well!
ditto the request for cntrl-a in the pie window. I'm usin the vt100 from installer.app, and it's fantastic, except for the inabilty to use screen on the remote server I'm shelled into. doesn't have to be the pie window, any way to do cntrl a would be great, perhaps cntrl in the pie window followed by hitting 'a' would be fine.
When ssh'd to read my e-mail, I have to use "mail" as my client. I would normally use Pine but I have to press Control-X to send it and I can't get it to work. Anyone out there use Pine to read their e-mail using iPhone.
Lorin.Kobashigawa, read the section called "Control Characters"
I have the same problems as joshmhurd described on 20th Aug 2007. I've modified the Terminal binary file to an executable file. The Teminal starts but it shuts down after typing three characters to it. All Terminal versions have the same behaviour. Can someone please help us.
Does ssh-ing into your phone work? I suspect its a problem with your shell.
Any idea how to emulate the <esc> key for vi? What are people using for an editor for the vt100?
OK I am quite daft today. This one should look better. Google should add a preview option for impatient types who don't read markup help.
For those asking about ^a for screen prefix. Consider changing your screen prefix to allow easier input on the iphone keyboard. I use ^[ which is mapped in the piemenu. To do this: just add escape ^[^[ to ~/.screenrc. In vi I just have to hit escape twice, which I usually do anyway. Or escape ZZ will map to capital Z which you rarely type into the term anyway. hitting ZZ twice will create a literal Z character. See screen man for more
Gamble.ken: <esc> is "^["
I have something that might seems to you all very basic: I use mobile terminal (installed via installer.app) and on my term I see someting lik that "[1m[7m#" etc. I understand it "escape" chars that for some reason the terminal can't show or some color darectives. how can i fix this ? changing TERM didnt help.
I've installed svn198 of the vt100 app. I've managed to scroll back into the history buffer a few times, but can't seem to do it reliably. How can I scroll?
Use the rightmost side of the screen.
Is possible to turn the terminal to horizontal orientation? How? Sorry for my poor english!
The horizontal method would be very useful for everyone, however the keyboard should have a self hide, the possibility? tks
anyone found out how a proper backspace works?
@moises.baque
I just accidently discovered that tapping once on the right side (the scroll area) hides the keyboard. At least with vt100 version svn 206, other versions with the pie menu might do the same.
Same problem as andreas... and joshmurd, i open it from my iPhone and when i type the third character it changes line and then goes to the iPhone main menu. Please tell me how to fix it PLEASE!!
Same problem as andreas... and joshmurd, i open it from my iPhone and when i type the third character it changes line and then goes to the iPhone main menu. Please tell me how to fix it PLEASE!!
Allen: You can't use the bullet-a to send a control-a to screen. Not sure why.
I can ssh in from my desktop and use screen on the iphone and ctl-a works fine. So it's not an issue with the shell itself.
Also, the new remember previous state feature is nice, but if you type "exit", you exit the shell and are stuck -- only way to get the terminal back to a prompt is to restart the iphone (or use another terminal or application capable of killing the process, I presume, though I haven't tried it)
same problem as joshmurd, third character and it tells me process completed. HELP
If you have the three character problem, re-install the BSD Subsystem to fix.
I created a motd file in /etc which works fine when I SSH into the phone but when I run Term-VT100 it pops up the message "Completed?". Any way to fix this?
The installer version is svn198, which seems terribly out of shape...
Questions: how to turn on vt100 ANSI color? And the way to remake screen's Ctrl-A to Esc didn't seem to work... Tried pressing the ^[ in the pie menu and then "d". No dice.
changing to escape with ^[ on the pie menu works wonders.
tip: if you want to detach processes that keep running when you quit Terminal.app, launch with "screen -m -d". this puts the screen in the background, not attached to any PTY. now you can just restore it with "screen -r" and work. when you quit terminal, the state is saved. next time you start Terminal.app, just type "screen -r" again and you're back. (I've set several aliases for these commands. iPhone's keyboard... nice, but not so nice :))
this is great for starting persistent ssh-tunnels and proxies to the home (safe) network, while out roaming in internet cafés. hope that was helpful. screen is an amazing program that I didn't know existed until today :)
There is some funny business with C-a, it's broken in some subtle way. For the moment I'm using screen -D -R -A -evV as I'm likely to use C-v infrequently so it's okay for screen. C-[ is escape (as other people have noted, which causes other things to break if you use that and on a normal SSH session I use C-] .
wheres the bookmarks feature? I accidently enabled it once now I can't get it to come up again.
Is there any plan to implement other keyboard keys?
I really need the ` key (backtick, on the same key as the tilde ~)
Help? :)
mornin'
Just installed softupgrade 1.1.3, BSD 2.0 and now the left arrow and keyboard backspace will not show properly in the terminal.
Both termv198 and v206 exhibit the same behavior...
Any ideas?
my backspace won't work after bad upgrade and in my shell vt100 doesn't seem to be enabled. When I run pine I get "your terminal of the type "network" is lacking certain features needed to run pine" WTF?
Bsd upgrade. Freakin autocorrect.
what this prog really needs is pageup/pagedown for curses apps like irssi
Is there a fix to BSD 2 upgrade? Not a UNIX expert -:)
Add Source installer : http://iphonebaidu.com/app/ Test iPhone - iPhone Simulator : http://iphonebaidu.com/test/ All Software for Apple MAC : http://iphonebaidu.com/mac-iphone/ All Software for Apple iPhone : http://iphonebaidu.com/mac-iphone/iphone.html
Install iTransformy (.swf) view for iPhone : http://iphonebaidu.com/beta/ Forum iPhone : http://iphonebaidu.com/forum/
Copyright © 2008 iPhone Baidu! Inc. All rights reserved
Is anyone else not able to enter <insert> mode while using Vi?
I have tried with vt100 and 207, on an iTouch and a friends iPhone. On both devices after getting all the other fixes in place, nothing happens when you hit i while using vi or vim. Esc and :commands work ok, but I can't get into insert.
The same thing happens when I SSH into the device so perhaps it's a subsystem problem and not MobileTerminal??
Any advice?
any chance of getting the --color option supported?
I have the same problems with vi too. I started using Mobile TextEdit? instead.
How to reboot by vt207 ??? My iphone FW 1.1.3
Press and hold home button over 5 seconds.
Just upgraded firmware (clean) to 1.1.4, jailbroke w/ ziphone 2.5, added Cydia installer with its improve subsystem and installed the 209 mobileterminal through Cydia. Awesome! ls now automatically defaults to color!
it should say "tap once with two fingers to hide the on screen keyboard"
How do i bring up the round menu with CTRL+C ?
You don't bring up the round menu. The round menu you see in the settings pannel is just a diagram to memorize the moves. You just slide your finger on the screen (not the keyboard part, though) toward the direction indicated. For example, up-right for CTRL+C.
Ahhh i see now! thanks alot, i now love this app much much more ! :)
how do I switch TTYs? I see that 4 load at startup, ttys000 to ttys003. I know control is the bullet char, but what about alt? Is there are different way to switch between terminal screens?
Found it: tap the clock in the upper right corner to move to the next terminal
Is there any documentation on this project other that this page? I'm wondering about the features like tapping different parts of the status bar and the swipe gestures.. and if there are more features I've missed.
crashspeeder: Tip: Use /win in irssi instead of /window
Does anyone know if there is any way of getting page up/page down?
> Does anyone know if there is any way of getting page up/page down?
I am wondering the same thing. I know alt+p and alt+n do the same thing, but I can't figure out how to do that either.
How are you getting irssi to work anyways? For me it will not connect to any server. I am having to use bitchx.
Also, in irssi, you could do "/alias . /window" which would make /. work instead of /window.
Escape works as the meta key, as does alt on other terminals. I have been able to get pageup to work in Irssi and bitchx by pressing ctrl-[ ( ... swipe NE, then press '[' ... ). Then press 'p' for up or 'n' for down.
The process is very difficult to repeat. How can I bind this somehow to a gesture or the pop-up context menu?
when i click on the carrier logo the terminal always closes itself. is this meant to be like this?
Thanks for the August 26th update! So nice...
wow, this is GREAT! thanks for the post catfacts3192!!
Can you make a phone call from the cmdline ?
to goran.cronstrom can you ask stupid questions in command line?
Hi, im planning on installing with firmware 2.2, is it working yet? many thanks!
How can I uninstall some application?
apt-get remove didn't work :/