New issue 459 by joeshmo...@gmail.com: No access to numeric symbols using
Asus Transformer keyboard dock
http://code.google.com/p/connectbot/issues/detail?id=459
What steps will reproduce the problem?
1. Hit either Shift key using the Asus Transformer TF101 Keyboard dock; The
small triangle appears at the top of the cursor denoting (I'm guessing...)
that the next character typed will be "shifted"
2. Press any of the numbered keys (0-9) to attempt to type a symbol
("!", "@", etc. but most importantly, "(" and ")")
What is the expected output? What do you see instead?
Expected output: Symbol that corresponds to the numeric key pressed.
Actual output: A tilde from numbers 5 - 9, and nothing is displayed from
keys 1 - 4
What version of the product are you using (you can see this by using Menu
-> About in the Host List)?
ConnectBot 1.7.1
What type of system are you trying to connect to?
Unix machine with a bash shell
If you are able to connect, what is the output of "echo $TERM", "uname -a",
and any other relevant information on the host?
echo $TERM: "screen"
uname -a: Linux...2008 i686 athlon i386 GNU/Linux
Please provide any additional information below.
There was one point where the keys functioned completely normally with
proper shift functions. During this time period though, pressing
the "shift" key did not alter the cursor the way it had before, and "alt"
not did nothing (it was adding a small triangle on the bottom of the
cursor). I have not been able to recreate this though.
For me, this is also a "hot" issue - I see no alternative to ConnectBot, so
we better fix it here somehow.
It would be most appreciable to have a way to map Escape to somewhere, too,
since the TF keyboard has no escape key.
The patched fork is working great for me. Thanks!
I tried the fork (had to uninstall the old ConnectBot due to the changed
signature on the package) and don't see any difference.
What was supposed to have changed? Shift-keys don't work any differently,
Control doesn't work, nor does Alt.
What's working?
Under the "Settings" menu, there's an option for "Asus Transformer with
keyboard". Select that and give it a try.
Ah, ok. That makes sense.
Still the Alt-1 through Alt-0 and Alt-a aren't working (which would be
useful for irssi), but at least having Ctrl and the symbols above the
numbers work is a big step forward.
Thanks.
You are welcome :) I'll try to solve the problem with alt combinations asap.
I have a slightly modified fork of connectbot for asus transformer, you can
try it.
https://github.com/downloads/lorantkurthy/connectbot/ConnectBot.apk
(The repo is at https://github.com/lorantkurthy/connectbot)
The Alt-key will not work, because the alt on the transformer is not a
modifier key, it sends an KeyEvent.KEYCODE_ALT_RIGHT keycode, pressed
together with other keys sends nothing (only exception is with TAB).
However irssi works, try it with Search-0, Search-1, Search-a (Press
Search, release Search, press 0). From irssi documentation:
Meta-1, Meta-2, .. Meta-0 - Jump directly between windows 1-10
Clearly the easiest way is to use Meta-number keys. And what is the Meta
key? ESC key always works as Meta, but there's also easier ways. ALT could
work as Meta
On transformer the alt key is not a standard alt key, so you can use the
Meta key, which is ESC, and ESC is mapped to the Search key (just tried and
it works).
The Alt-key will not work, because the alt on the transformer is not a
modifier key, it sends a KeyEvent.KEYCODE_ALT_RIGHT keycode, pressed
together with other keys sends nothing. However irssi works, try with
Thanks, Kurt! Your modified version of connectbot works great. Search makes
a perfect alternative meta key, since it is where alt is on most non-mac
keyboards, too.
Alt would make a great meta key too -- since it's there -- but this is
seriously exactly what I was looking for.
IMORTANT: for all who are working with the modified asus transformer
version: switch the option "Asus Transformer with keyboard" ***BEFORE***
you connect to the host, i made it the wrong way and was wondering, why the
arrow keys and backspace were not working ;)
Question for the modified version (asus transformer and linux editors):
vi: ENTER is working
joe: ENTER not working
how i can fix that ???
thanks for any help!
for editor "joe" i have to press "Alt Gr/Alt" + Enter to get a newline, is
there any way to fix that ?
Thank you for all the comments! I'm glad you find the modofication useful.
Ricky you are right, the alt would make a good meta key too, but because
the Search is the meta, the normal alt+enter combination works in joe :)
(the real alt key, on the right side of the space key).
Michael, thank you for the clarification, the documentation is not my
strength :) To set the option in the menu is a bit annoying for me too, but
I can not find a way to detect that the program is running on an Asus
Transformer (this is an android restriction). If anybody knows a solution,
please feel free to contact me, or leave a comment here.
fwiw, enter doesn't work in emacs, either. I was using Control-M to get
the desired effect. Interesting to see that Alt+Enter is another way of
getting that effect.
Also, Control-X (another common emacs combination) and Control-U are both
overloaded. Control-X brings up a copy & paste dialog, and Control-U
brings up a URL Scan. They both do their other function as well, so this
is a little confusing. Would it be possible to move those functions onto a
less common combination, perhaps Fn-X and Fn-U ?
Looking forward to this patch being merged into the main branch.
Dear bertelsh and other joe users, this is quite strange, that in joe you
have to use the alt+enter combination, I will try to fix it soon.
Sorry for the ctrl-x shortcut, that is ctrl-c in the original version, but
on linux that is also confusing. Unfortunately the Fn key works only with
the up, down, left, right arrows, with other keys has no effect, the
program can not see it. If anybody has another idea for shortcut keys,
please, leave a comment.
Imho there is not much chance to merge this patch into the main branch,
because the handling of the ctrl key is not standard on android (see
https://github.com/kruton/connectbot/pull/3#issuecomment-444854)
Still i will try to keep my fork in sync with the master, the patch affects
only 1 function.
dear kurt: maybe you can make a seperate APP at the market so that we are
able to get auto-updates ??
The separate app is a good idea, i will make it after i correct the
alt+enter and the shortcut problems.
FWIW, you can check the model by something like:
Build.MODEL.equals("Transformer TF101");
Kurt, cool, that definitely makes the shift & control keys work on the
Transformer dock... however... :) It has some other issues I didn't have
before:
- It drops the connection when I rotate. (Settings of rotate = automatic)
It rotates, but as soon as I type a character, boom, drops it. (Claims the
host has dropped it, but it didn't; the u n-modded version was rock solid
before on rotates.)
- When undocked it doesn't display right when it connects. It shows the
last few lines of host output after I log in, but not the whole login
output. E.g. if my login stuff prints 50 lines of output, the top of the
screen starts with just the last 2-3. No way to scroll up to see them
either. (This is with menu bar set to hidden and scroll back at 900 lines.)
- The un-modded version showed Settings in the bottom status bar area, but
this version moves that to a new, extra top nav area. In docked/landscape
mode that takes a lot of space. If I hide the top area, then there's no
Settings icon (which otherwise would be in the bottom nav area; so you
can't get to Settings when undocked with top menu hidden).
Also want to +1 the idea of having the Transformer keyboard fixes in the
main branch.
Kever, thank you for the tip, it works.
New version (automatic transformer detection, no option in settings, enter
works in joe and emacs without alt, alt key=search key=meta, shortcuts
disabled) at
https://github.com/downloads/lorantkurthy/connectbot/ConnectBot1.apk
Dear ab-adnon, which version you mean un-modded? Master branch from github,
or the app from Market? Because the github version has other bugs as well
on android 3.0-3.1 thanks to the new android feature strictmode.
I dont understand why ConnectBot doesnt have a map feature? it would be
awesome to be able to map the control key to the search key on the android
device for example.
Kurt, ha, ok, hadn't even thought about that, duh! I grabbed the app from
the Market. Didn't even stop to think it would be significantly different.
Are you or is anyone working on fixing the 3.x bugs?
Thanks!
dear tgwa, you are right, but on other keyboards for android phones you
usually type with two thumbs, on the transformer you can type like on a
notebook. So on an android you type ctrl-c like: press ctrl, release it,
press c. On the transformer you can press the two keys together. So the two
keyboard handling function is quite different, and the key mapping feature
would be not enough.
Dear ab-adnon, i'm working on it, 2 bugs are already fixed , which rendered
the github version unusable on honeycomb (after login, connectbot closed
connection on first keypress). The mentioned bugs are quite similar, but I
need some time to find them, and the keyboard issues are more important to
fix.
hey kurt,
i was more speaking in general. i have the thunderbolt it would be cool
instead of tapping the screen to bring up control, then tapping it.. to
just tap search -> key. would also be cool to map esc to back as well..
or atleast map the keys to the volume keys.
Dear tgwa, yes, it would be cool. In future versions I will include options
into the settings for key mapping, but only for the transformer.
Hi all, new version (synchronized with
https://github.com/kruton/connectbot/) is at
https://github.com/downloads/lorantkurthy/connectbot/ConnectBot.apk
The "new version" seems to be a regression. "Enter" in emacs/joe stopped
working, "Ctrl-U" now brings up the URL scan again.
Why was this put out? What's supposed to be new/fixed?
Sorry, that was not the final version, but now it is.
url is the same:
https://github.com/downloads/lorantkurthy/connectbot/ConnectBot.apk
This "new version" is new, because in the meantime there were some
improvments in the generic hardware keyboard handling, and with a bit of
luck this version can be merged into the main branch.
Sorry, that was not the final version, but now it is.
url is the same:
https://github.com/downloads/lorantkurthy/connectbot/ConnectBot.apk
This "new version" is new, because in the meantime there were some
thanks kurt, this version of connectbot works great on the TF101 keyboard.
The title bar is a little bit distracting but appart from that I found no
issue so far.
Thanks for this great improvement! It turned my Transformer from a nice
widget to a full-fledged terminal ;-) I hope it will get merged into main.
Only minor improvement I'd love is a nice mapping for ESC (this would make
working in vi a lot nicer). Back probably doesn't work (or isn't a good
idea). If possible Ctrl-Back might be a feasible approach.
I think that could work as well, catching onBack(), and doing "back" only
if pressed twice within a second or so. At least I wish there will be an
option for something like this, so I can work on my transformer as well!
I have the latest APK that is linked from this page and things are
initially working well. Thans for the patch. Any idea when the TF changes
will go into the main apk available form the android market?
The model name of 3G version is "Transformer TF101G", please consider to
add it.
Thanks for your great work.
Hey guys. Just an FYI, we can remap the keys on the Transformer dock.
Here's a link to the instructions I followed.
http://forum.xda-developers.com/showthread.php?t=1144204
Of course, the Transformer needs to be rooted to be able to do this. Good
luck!
Thanks Kurt, that fork is incredibly useful!
This fork works really well for me. Something like this should be
incorporated in to the main branch of the program, it really should!
Just find this thread after posting for the same issue. I downloaded the
latest version
mentionned in this thread and everything is working fine. Thank you very
much.
Found this post via a Google search for a "good" SSH client for the ASUS.
I really appreciate the fork, works very much like puTTY. Now I just need
to break the muscle memory of hitting the back button to escape in vi :-/
I'm using 'back' as escape, I've modified the lkurty version.
But I didn't make (and don't have the time) any options to have a back
button. I could make it default though on TF101 and just back twice would
mean a real back.
If anyone interested, I can upload either version on the weekend, maybe
even do a push request to one of the forks or this, though I haven't done
such thing yet
re #50 : Could you post the patch somewhere? I am moving house this week
but will hopefully find time in a week or so to have a hack at all these
keyboard issues. Unless someone else beats me to it. :)
This replaces back with 'esc', something like checking if it has been
already pressed once then it should do the 'back' action (or, have a menu
item do the Activity.onBackPressed() call) needs to be done in order to be
connected to multiple hosts. I hope it will help.
in src/org/connectbot/ConsoleActivity.java, just put it somewhere in the
activity if the patch doesn't apply
@@ -589,6 +589,15 @@ public class ConsoleActivity extends Activity {
});
}
+ @Override
+ public void onBackPressed() {
+ View flip = findCurrentView(R.id.console_flip);
+ if (flip == null) return;
+ TerminalView terminal = (TerminalView)flip;
+
+ TerminalKeyListener handler =
terminal.bridge.getKeyHandler();
+ handler.sendEscape();
+ }
I agree, the for is amazing for the tranformer. Everything works as it
should! Thanks so much.
Fork works perfectly. Any chance we can get it merged with mainline? ;)
Thanks for the fork, I was about to try to code a fix myself.
On the fork for Asus Transformer Docking Keyboard, could you make 'shift +
backspace' map to a forward delete (as it does in the rest of android?).
Thanks!!
I'm wondering if someone can create a WIKI page that documents the current
keyboard settings. The Comment #39 APK works great, with the search button
now being the escape key.
Previously the shift-1 would send the F1, but now it appropriately sends
an "!". This now begs the question of how one would send an F1 if that was
indeed what they needed.
Also, please add a comment when this change makes it to the regularly
distributed application in the Marketplace, so we can all switch back to
using that one (which gets automatic updates).
Thank you for all this work! This is making the transformer so much more
of a laptop replacement for me (better battery life, etc, etc).
I've made a simple debug build with grizza's patch. I don't know enough to
implement his suggestions regarding allowing back via menu or double press,
but as a vi user I need ESC to be easy to use.
https://github.com/downloads/dschep/connectbot/ConnectBot-debug.apk
APK in comment #39 works great, thanks! Would love to see this get synced
into main so I could just download from market.
Kurt, I don't see the "Transformer" option in settings after installing
your version. Could this be either because this is the 3G version (TF101G)
or because the langauge of my system is not English?
Yes I don't see it either. I am using asus slider.
The option was removed when the code started to check
Build.MODEL.equals("Transformer TF101"); We'll need to enhance this check
for things like the Transformer Prime and the slider.
I have my own version of this fork that also fixes the Enter key issue (as
mentioned in that bug) and am about to try out the back-as-esc change. It
would be nice to limit that remapping to just the back via the keyboard
(not the screen), but that may not be possible (I haven't checked yet). If
the lorantkurthy version doesn't get updated soon, I'll push out a git fork
that has the latest official changes + all these extra fixes.
I have been trying to get this to work on my Slider for the past few hours.
Searching has finally led me here. I can be patient waiting for a new build
that does the Buld.MODEN.equals in a way that supports the Slider, but I
wonder if I should expect any additional issues? I have the Japanese
version of the slider. The keyboard is somewhat different.
I made an attempt to support the TF101G in my fork. See
https://github.com/akaihola/connectbot/commit/4b70b92b186fb88c2b8eb5496dce79ce7f0496c0
Unfortunately I haven't yet had a chance to actually compile and test the
modification.
I'd suggest changing the 2 lines that end
with !Build.MODEL.equals("Transformer TF101") into:
... && !Build.MODEL.startsWith("Transformer ");
That way it matches anything that starts with "Transformer" and a space.
(akaihola: you missed on in src/org/connectbot/ConsoleActivity.java )
I'll attach a patch with this change in it.
Attachments:
all-transformers.patch 1.4 KB
This isn't specific to the Asus Transformer's keyboard dock. I encountered
the exact same problem on an Eee PC 1005PEB running Android-x86 3.2 RC2
(Honeycomb). Is there any way the model could be detected at run time, so
we don't wind up with ten million versions of Connectbot?
Is there an android way to check for a physical keyboard or better yet
keyboard layout? This problem is going to be more and more common as
tablets become popular.
Are there still issues with the Transformer? In my clone -
http://connectbot.vx.sk - I am providing a selectable menu option for
Xperia (mini) pro users. Do all the Transformer keys work? If not, I could
provide something similiar for the Transformer.
The only combo that I would like to work on connect bot for the transformer
is shift + delete, have it map to delete next character (as it does in the
rest of the Android system). I am not sure about the function keys as I
don't use them, I can confirm that vim works great using the search key
(magnifying glass) in place of escape.
I've just downloaded and installed the July 11 version from
https://github.com/downloads/lorantkurthy/connectbot/ConnectBot.apk, but
I'm not getting any setting options for the ASUS Transformer Keyboard.
Have I missed something?
Thanks
-pd
I just saw comment #62, saying the ASUS Transformer keyboard support option
was removed from the lorantkurthy version. Is there a copy of this still
available anywhere? Or some other replacement? I really need to be able
to use this TF101 for mutt and emacs on a remote system.
Thanks,
-pd
I have my own clone with some transformer changes and some fixes (e.g.
Enter key, pubkey). You can find it here:
https://code.google.com/r/4wayned-connectbot-transformer-fixes/source/list
It's pretty easy to use ant to build that, if you want to set up your own
android SDK. If you don't want to hassle with that, you could snag my
debug apk here:
Thanks, 4WayneD. I just tried the debug build, but I still don't see any
option in Settings to set the keyboard to ASUS TF101. Am I missing
something? Thanks!
As I mentioned in comment 65, the option was done away with long ago.
What's not working?
Oh, I see. The option is gone, but the keys just work. Excellent! I'm
going to experiment some more, but my initial results with emacs look good.
Thanks!
I just got my ASUS Transformer Prime and keyboard dock with the main
purpose of running emacs.
With the ConnectBot-debug.apk, the control key works fine (though I will
remap it to caps-lock) and the search key works as Alt. Made my day.
Thanks!
Also just got my Transformer Prime. Needed the debug version mentioned
above to get the Ctrl working, but now it does! Thanks
Just tried the debug version on a prime. It works. Thank you 4WayneD !
TF-101 and have tried each of the versions in the thread. All address esc
& ! characters for me, however the | is not present that I can find. Odd
mappings that I'm seeing: 2/@ actuall maps to 2/", "/' maps to "/@, and the
\ / | key maps to # and ~.
Anyone working on a fix for |?
thanks!
This app works fine with the hardware keyboard on the Transformer:
https://github.com/jackpal/Android-Terminal-Emulator
ctrl works great, which is what I use all the time with "screen" etc
Perhaps the code from it can be used in connectbot to fix the hardware key
issues?
Attachments:
P20120128202452.png 162 KB
The debug version from #72 is pretty near perfect. It seems better on
Android v4 than the ancient version on the market and it supports the Prime
keyboard perfectly. This should be merged into the main branch and released
on the market imho. Great work.
First thing I did with my prime was to fire up an ssh with connectbot and
cry at its unusability, build in comment #72 has made me happy again, don't
forget to enable back key = esc in the settings.
Pretty much same feeling as #82. I love the build from #72 :) It would be
awesome if you could keep the back button on the screen working while
remapping the keyboard one, but that is just nitpicking.
Hi,
is it some change for select text with shift+arrow and copy, paste? :)
Since there is a tablet version of ConnectBot, anyone fancy enough to put
Transformer/Prime/Slider keyboard modifications in it?
I kinda like it more than 'normal' phone versione since i can switch
extremely easily among different established SSH sessions.
Would be really nice to have it modified.
Thanks in advance!
I personally dislike the tablet version, as it wastes screen space that I
want to use for displaying content. It was also buggy back when I tried
it, so I am satisfied with the normal version.
Well I find it useful, so I grabbed source from your git, tablet branch,
and incorporated few of your tweaks (actually everything except last two
you committed in master branch).
Here is a link to it :
http://dl.dropbox.com/u/9348267/connectbot-debug-tablet.apk
Dunno if there's a more relevant bug report, but I have the same symptoms
with Connectbot on my Motorola Droid4. Shifted number keys are not getting
entered correctly, 1-4 produce nothing. Shifted 5 thru 0 produce VT100
function key codes 5, 7, 8, 9, 0, and 1.
Can someone please point me to the particular source patch that fixed this
for the Transformer? Thanks.
I see, the Droid4 issue has been reported as Issue#558.
I think we should switch the current auto-detection code back to using a
menu option so that other devices can try out the code. I'll look into
that for my patched version soon.
THANK YOU SO MUCH 4WayneD!!!
Your APK from post 72 is perfect :)
I tried using the APKs from #72 and #87, however neither seemed to work for
me on my Slider SL101; they behaved no differently than the official
builds. Is this perhaps related to the auto-detection?
apk from #87 works great on asus transformer prime
thanks!