Is there a usable iOS4 Terminal App?
I use iSSH: http://www.zinger-soft.com/iSSH_features.html
It's available on the app store, but if you're jailbroken you can ssh to 127.0.0.1 and it works just fine.  Costs $10 though.