Terminal Emulator - ctrl-c - Vibrant Themes and Apps

How would I enter ctrl-c in terminal emulator?

Seriously. It sounds like a n00b question until you actually try to type a CTRL-C on the Vibrant.
Ideas? Am I missing something?
Maybe it is a n00b question?

I have noticed (from other phones I've used in the past), that if you press menu while in the emulator it will give you a list of commands. I havent ben able to verify this on my Vibrant yetm, since i haven't rooted yet. But I hope that helps...

Not a question with an easy answer. I am using the Full Keyboard app, but I really don't like it. The best would be if the terminal itself would implement an easy way to input keys like ctrl alt and escape.
There is a bug filed with connectbot, which is the terminal emulator I use, and I have added my voice to the clamor for a solution, but who knows when that will happen. If you are an android developer you might give the source of your terminal a hack and whip up a patch...
Sent from my SGH-T959 using XDA App

How can FN keys be emulated in softkeyboard?
What about Fn keys?
I use SSH to x servers and used to mc a lot. Swype is pretty pointless there even with dedicated directional keys.

It looks like the makers of "terminal emulator" fixed the swype/backspace issues, but have yet to fix the special characters issues.
It seems like a phone that does not have a camera button *and* does not have a trackball is not considered in a bunch of apps. Terminal Emulator and Crystallight are two shining examples.

On my terminal emulator the Menu>>Special Keys button told me to press the down volume button and the 'c' key when the soft keyboard was displayed.

kdriedger said:
On my terminal emulator the Menu>>Special Keys button told me to press the down volume button and the 'c' key when the soft keyboard was displayed.
Click to expand...
Click to collapse
exactly. or go into preferences and choose your own ctrl key.

it works !
But how to get last command used or prompt ?
I belive you are using this app:
github.com/jackpal/Android-Terminal-Emulator
(cannot add as link...grrr)
Not many people using Terminal inside Android I recon, but I will, sometimes I'm using adb as well.
Any better Terminal you have?
I successfully install MC but cannot run in this terminal:
"Error opening terminal : xterm"

Use hacker keyboard download it on the market!
Sent from my SGH-T959 using XDA Premium App

As noted above -- just check the Help screen for whatever terminal emulator you're using and see what hardware keys/combinations are mapped to the CTRL characters. As with the others just above, the emulator I'm using has Vol-Dn + [letter] mapped to CTRL-[letter], so Vol-dn and C = CTRL-C. Just tried it out -- started up Top in the emulator, and this killed it perfectly.

t1n0m3n said:
How would I enter ctrl-c in terminal emulator?
Click to expand...
Click to collapse
vol down c

note that this question was before vol down + c was implemented. nice thread rez.
Eat at Joe's

No effect after pressing volume up + w for up arrow -- terminal emulator from jackpal dude, gboard keyboard. Needs to install hacker keyboard which works, separately.
Connectbot works fine in this scenario although I am using this one due to it's light size and it is recommended by many.

Volume down + C was not working for me (with Gboard) till I saw someone suggest a different keyboard. Volume down + C works fine using Samsung keyboard.

Related

[how-to] remap genius key

1) Boot in to ClockworkMod Recovery
2) mount /system from partitions menu
3) adb pull /system/usr/keylayout/latte-keypad-v2.kl latte-keypad-v2.kl
4) Edit file locally, the genius key is: key 187 (make a backup of the original file first)
5) adb push latte-keypad-v2.kl /system/usr/keylayout/
6) Reboot
For more information on remapping keys see: http://forum.xda-developers.com/showthread.php?t=695936
If you want the genius button remaped to ENDCALL (if on a call it will end the call, if not on a call it will lock the screen, if you hold it down it activates the power button menu) and don't won't to edit the file yourself you can download this premodified version, just place it in the directory you are running adb from and skip steps 3&4): http://www.4shared.com/file/ein06_25/latte-keypad-v2.html
Notes:
There is a slight hardware delay on the button press, so whatever you assign it to you need to hold the button for half a second just like with the current genius app.
It does not seem to be any easy task to be able to call an alternate application, for now, you can only reassign the key to something another key already does (letter/number, end call, power, volume, camera, etc.). I'm currently working on being able to call an alternate application.
falken98 said:
1) Boot in to ClockworkMod Recovery
2) mount /system from partitions menu
3) adb pull /system/usr/keylayout/latte-keypad-v2.kl
4) Edit file locally, the genius key is: key 187
5) adb push /system/usr/keylayout/latte-keypad-v2.kl
6) Reboot
For more information on remapping keys see: http://forum.xda-developers.com/showthread.php?t=695936
Click to expand...
Click to collapse
Well, how about that. Great find, falken98!
Complete aside: Is your handle taken from the movie "WarGames"? If so, awesome.
So what are people planning to map to this particular hardware key?
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
kingofyo1 said:
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
Click to expand...
Click to collapse
Sure can, to make end call just change:
key 187 FUNC_4
to:
key 187 ENDCALL WAKE_DROPPED
HebrewToYou said:
Complete aside: Is your handle taken from the movie "WarGames"? If so, awesome.
Click to expand...
Click to collapse
haha. yes, it is. nice catch!
and what about the sleep functionality like on the old mytouch?
YESSS
i started a thread on this and was hard into figureing this out
thanks for the help
kingofyo1 said:
and what about the sleep functionality like on the old mytouch?
Click to expand...
Click to collapse
That i'm not sure about, i'll do some digging and see.
kingofyo1 said:
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
Click to expand...
Click to collapse
glad you asked this, that is what i want my genius button to be and it bugs me that it's not since i hit it all the time when trying to hang up on people(came from G1 so that's where my button was) i will do this later
managed to switch fn and menu on hw keyboard, it was bugging me that i constantly hit menu when trying to hit fn(bad button planning by HTC) but now i have the keys where i want them may have to make a few changes later as well to other stuff(camera and focus should do something else)
its not working whenever i put in adb pull "" it just gives me all the adb options..
kingofyo1 said:
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
Click to expand...
Click to collapse
This is actually working this way for me. If on a call, I can hold it for about half a second, it will end the call. Press it for half a second again, it will put it to sleep. If I press and hold the key, it will bring up the Power options menu. This is after I mapped key 187 to ENDCALL WAKE_DROPPED.
Edit: Also, I love "187" being the Genius key
squidbutt said:
its not working whenever i put in adb pull "" it just gives me all the adb options..
Click to expand...
Click to collapse
Sure you have it typed correctly?
D:\android-sdk-windows\key> adb pull /system/usr/keylayout/latte-keypad-v2.kl
358 KB/s (3675 bytes in 0.010s)
fermunky said:
This is actually working this way for me. If on a call, I can hold it for about half a second, it will end the call. Press it for half a second again, it will put it to sleep. If I press and hold the key, it will bring up the Power options menu. This is after I mapped key 187 to ENDCALL WAKE_DROPPED.
Click to expand...
Click to collapse
That does turn out rather well for that button! No more annoying "say a command".
to make it a search key I:
key 187 FUNC_4
to:
key 187 SEARCH
??
Great find man, I switched it to end call/dropped too and its working perfectly. If anyone figures out before I do to make it the sleep function please post.
FYI, after you remap the key it seems to be safe to go ahead and remove:
vsuite.apk, vsuite.odex, VSuiteApp.apk, VSuiteApp.odex
If you have no interest in the genius button function.
what does the WAKE_DROPPED mean
btw when I pull the file where does it pull to? my sdcard or do I have to put a directory? Someone should just upload the stock file
turboyo said:
what does the WAKE_DROPPED mean
Click to expand...
Click to collapse
WAKE: When this key is pressed while the device is asleep, the device will wake up and the key event gets sent to the app.
WAKE_DROPPED: When this key is pressed while the device is asleep, the device will wake up and the key event does not get sent to the app.
If we figure out how to put the device the sleep there would actually be a difference.
turboyo said:
btw when I pull the file where does it pull to? my sdcard or do I have to put a directory? Someone should just upload the stock file
Click to expand...
Click to collapse
It pulls it to the computer you ran adb from (in the directory you are in), you then edit the file with a text editor and push it back up.
Since you have to edit the file and push it back you might as well just go ahead and pull it first, seems more annoying to try and download it first.
Im getting the same thing with it just listing all the adb commands.. Ahh things like this were so much easier with SUFBS lol, all I would have to do is go to the directory and edit the file right in there

[App] ButtonRemapper

On the market for full root users, check it out.
Basically let's you remap any buttons to anything else and I am thinking this will be a nice fix to accidentally hitting the volume rocker when closing the keyboard.
Dedicated camera key? Hopefully the Shift gets some support.
Here you can follow what devices have support and possibly chime in to push for support of the Shift =)
http://forum.xda-developers.com/showthread.php?t=850464
Sent from space!
If you temp root with zRoot, install this, set the buttons, then restart so it is no longer rooted, will the revised button config stick?
I doubt it. Guessing though...
Sent from space!

Vim - no esc key?

Hi, I'm using Nexus 7 with stock JB system, with a usb keyboard, and when I use Vim both esc key and ctrl produce a ^@ character. I wasn't able to use mappings with ^@ char to get anything working (most importantly ctrl-[ for escape).
At the very basic level, I'd like to get Esc working, but ctrl would be really great, too.
I can see that android itself does understand ctrl key as a modifier, for example to jump over words in any editor by using ctrl+left/right.
How can I get this to work? It seems like such a tiny thing but it keeps me from being able to write code on N7, write and edit longer text documents.
Any help / hints appreciated!

What's up with CTRL key?

I have been using some time Terminal emulator and Connect Bot apps. CTRL key works perfect with both applications when using onscreen Hacker's Keyboard, but every time I try to use an external keyboard, CTRL key never works. I tried remapping it by editing /system/usr/keylayout/qwerty.kl without success. I have verified the keyboard throws key 29 when I hit CTRL key, but adding a line like this:
key 29 CTRL_LEFT
causes a weird behaviour. CTRL key doesn't work, and other keys (like SPACE) also stop working.
What's the problem with CTRL key on Android? Why is it so difficult/impossible to get it to work in external keyboards?

Harmony Smart Control Keyboard Fix (Should work on other Remotes too) (Req. Xposed)

Hi guys, not sure how many people this will help but hopefully it will help a few.
I have a Harmony Smart Control which I used as my universal remote, it connects to the NP fine but I had a problem that whenever I tried to search for something in a Google app using the remote the keyboard would disappear. Did a search and Logitech said this was a limitation of the NP as the harmony acts as a bluetooth keyboard. Like I said don't know how many people this will help, but I've managed to get around it.
You need to be rooted and have Xposed installed, a mouse is required for the initial setup too.
Once you have Xposed install an app from the repo called Xposed Additions.
In the app scroll down and select buttons, then add new key. Click Allow External Devices and choose them all.
Hit the OK button on the Harmony remote (or whatever the equivalent is on which ever remote you're using) and the app will pick it up, then you need to click ok with your mouse to save the key.
Then select the key you just saved, it should be called Enter, the click Add new condition and choose screen on.
Then click the condition, choose the click option and find DPad Center.
Now the button will act as the official remotes select button rather than and enter button and you can use it in the google keyboard.
You can also use it to remap other buttons as well to add menu functions etc.
The app also offers lost of customisations such as long presses of buttons amongst other things so it's definitely worth checking out even if you don't need to fix any buttons!
Hope this helps someone!

Categories

Resources