Terminal Emulator Tab button - Captivate Themes and Apps

Does anyone know how to emulate the "tab" key in Terminal Emulator. I'm sick of having to type out long case sensitive file/folder names in Terminal Emulator

Related

Better Terminal Emulator Magic

Just showed up in the market. Awesome works the 1.5 soft keyboard. Has its quirks but does have some good uses, an update was put out this morning to fix the enter key problem.
great find! it's so hard to sort through the **** apps these days. can't wait until we get a well needed market update.
Just to let people know they have a message saying it doesn't work on some modified Roms. I'm on 6.0h and it didnt work for me. it went into a force close loop even when i wasnt using it.
Its a step in the right direction, but its not all there quite yet. VERY HELPFUL though
1) There is a problem getting the <enter> key working. I find that I need to roll around the scroll button a bit before the enter key will work after starting or switching users.
** another way to deal with this is to use a different shell. For some reason, using full bash instead of sh works. There are other (great) advantages to this (more on that later).
2) You can't see what you're typing when in landscape mode, which is the only way that the VK is actually practical -- keys are too small to use effectively in portrait.
3) If you use a colored shell, the colors screw up when switching to/from the vk. Must be something to do with how he's buffering and redrawing the console.
On using bash instead of sh...
Advantages:
1) color
2) BASH HISTORY
3) scroll wheel = arrow keys
4) lots more -- http://en.wikipedia.org/wiki/Bash
How:
copy bash into some executable part of the filesystem
create a bashrc file anywhere at all in the filesystem.
put in your bashrc the following:
Code:
PS1="[\w]\\$ "
HISTFILE=/some/path/file/with/write/permissions
** this is of course a regular shell script, so add whatever startup code you like in there, like a custom PATH, etc.
IN the "better terminal emulator" program, menu --> preferences --> command line and set it to "/path/to/bash --rcfile /path/to/bashrc"
And of course, running the following:
Code:
su -c "/path/to/bash --rcfile /path/to/bashrc"
will give you root with bash and the same setup as your regular user, including a shared history file (note that the history file is only updated when bash EXITS and so it is current as of the moment you initially LAUNCHED the terminal app.
Note: I like to write that su -c line into a wrapper I call "subash" that I place in the path.
bash is attached for convenience, its a .tar.gz file with an extra extension to confuse the newbs (and trick the forum filter into allowing it).
@lbcoder
Thanks Great tip!
@lbcoder
Thanks Great tip!
using bash as default shell
Id love to use bash, its the shell im used to and since Im not that good at *nix having bash would help, 1 cyanogen rom had ash(i think) and then none of the scripts floating around worked and so they needed to be edited(something that sounds a bit tedious)
Id also like a decent prompt, maybe color ls and all those bells and whistles, I think this could be well received with all the bugs worked out and maybe a script that would make any scripts found on the device into a format that bash needs...
the biggest is the lack of history, I have used a good variety of linux and unix shells and droids is the first without cmd history, a prompt with 'pwd' and tab auto complete...
cant we just get a REAL shell, is that so wrong?
bhang
Job Control
lbcoder said:
On using bash instead of sh...
Advantages:
1) color
2) BASH HISTORY
3) scroll wheel = arrow keys
4) lots more ...
Click to expand...
Click to collapse
Very nice and very useful. Thanks for providing this!
One feature lost in this build of bash: Job Control (^Z, jobs, fg, bg, and %number commands to manipulate jobs). Hitting Ctrl-Z suspends the bash shell and all its child processes.
The existing sh shell supports job control. This build of bash does not.
I'm going to have to learn how to set up a cross-compilation environment. Another project to add to the list...

Problems with using pTerminal

hey guys,
im using on my htc hero "pTerminal" as my terminal emulator, because the htc does not have a hw keyboard, and other terminals do not have a correct input.
when i type "su" (my phone is rooted), the su requester opens but keeps empty.. other apps can request successfully the root-permissions with su requester (which means in fact, that the requester DOES WORK).
does anyone have suggestions what to do, or if there are alternative solutions (except doing all the stuff via adb shell)
thx in advance
edit: i use the terminal mainly to install debian on the htc (http://www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=2248) - seems to be a little bit tricky without hardware keyboard ;-)
make sure USB debugging is enabled
if that does not work for you, try connectBot
connectbot would be perfect, if it would not insert extra signs, example:
when inserting "/" (which is actually on the "l" key) i have to long press on "l" and then connectbot inserts an l and after that an /
latest version r404 has fixed that, even tho the 12# key is still not working
http://code.google.com/p/connectbot/
unfortunately this does not work for me, but now im using the touchpal keyboard, this is doing the job so far.
thanks for your help!
if people have managed to install debian on hero please send a pm to me, maybe we can share information

General question to scripting coupled to key sequence ...

Hi All,
I am trying to learn how a script could be started in Better Terminal Emulator Pro by hitting a key sequence:
Let's assume pressing the ball key of my G1 and the key '1' simultaneously should run / invoke a script which contains a "netcat" command sequence to a telnet server. The telnet server is an empedded system controlling several I/O's (relais) in my home, e.g. to open my automatic garage door controlled by the embedded system.
This works already really nice with the nc command of busybox typed in from a command line in Better Terminal Pro.
But now I would like to set up a several different scripts - each for a different port in the embedded system to communicate to over Internet connection.
Any expert around who knows how to bind/link/invoke a script to/from a key sequence hit ?
Any help is pretty much appreciated.
Best regards
Not really an answer to your question (cuz I have no idea about the keybinding thing) but...
If you read this thread http://forum.xda-developers.com/showthread.php?t=538830&highlight=system+binaries it will help you set up a /usr/bin linked to /system/sd/bin for you to put your scripts in. This will. Allow you to easily invoke any script you write. Personally I put my home connection script here and in gscript so I can execute it via command line or graphically.
Hi dumfuq,
very good hint. Definitely some sophisticated stuff for a Linux newbie like me, but I think, this could be part of the solution ...!
Regards

CLI on the nexus?

can you enter the phone with a CLI on the nexus? CLI=Command Line Interface.... that is to say... can i connect to the device and manipulate its programming through commands?
hope nobody gets mad but what about the iphone?
magicalan said:
can you enter the phone with a CLI on the nexus? CLI=Command Line Interface.... that is to say... can i connect to the device and manipulate its programming through commands?
hope nobody gets mad but what about the iphone?
Click to expand...
Click to collapse
You can SSH into your phone as well as use a terminal emulator for shell. You also have the ability to use ADB.
Are these not what you are asking about?
Yes, you can do the same with an iphone. You can ssh into your iphone and use the mobile terminal app.

[DEVS]How to run automated scripts with 1.5.7

Use this code in a VBS File, and after the cmd /K inser commands as follows, and for every other command you need add an & sign so it would look like bellow
Updateed this works
Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd /k"
WScript.Sleep 500
WshShell.SendKeys "adb shell"
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1500
WshShell.SendKeys "su"
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1500
WshShell.SendKeys "reboot"
WshShell.SendKeys "{ENTER}"
Set objShell = Nothing
Found a way to run commands
Thanks for posting this for everyone... should make life a tad easier on this closed platform.
Yea the biggest issue Im having with gingerblur is you have to set the wait time and trying to calculate that is well a pita
When you run su, does it account for it not being an interactive shell?
shawnbuck said:
When you run su, does it account for it not being an interactive shell?
Click to expand...
Click to collapse
Yep, all the command does it act like you are typing which is why you need the WScript.Sleep 1500, 1500 stands for 1500ms so after 1500ms it waits and than keeps typing.

Categories

Resources