09/14/2011, 03:21 PM
|
#1 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 404
Likes Received: 82
Thanks: 64
Thanked 78 Times in 33 Posts
|
Other people on this board including myself have recently lamented the omission of the CTRL and ESC keys on the TouchPad's virtual keyboard. This poses a real problem for those people who NEED to use vi. While the Palm phones have a sequence to generate these characters, TouchPad users were left in the dark. Until now....
I noticed many alternate keys don't generate characters on the screen. I suspected they were generating *something*. So I started playing with multiple-key sequences to see what I could find. I found out how to generate ANY control character (including ESC)! The CTRL key is emulated by pressing and HOLDING the 't' key, waiting for the secondary keys to pop up and hitting the right-most one. It looks like "|o". It's what's called the 'thorn' symbol. To send a CTRL-x, hit the 'thorn' key then, immediately hit the 'x' key. This sends a CTRL-x. To send a CTRL-k, hit the 'thorn' key, then press 'k'. To verify this is so, start up an xserver/xterm via xecutah and then start up vi and put it into 'insert' mode, type a few control characters as outlined above. You can see vi echo the control characters as "^X" and "^K". And the Coup de Grace is the ESC key. It's simply CTRL-[. To generate that, hit the 'thorn' key, then press '['. Simple as that. Try it in a vi session and you'll see it switches you out of 'insert' mode. I tried it locally on the TP using a local xterm, then I ssh'd to a remote machine and did the same vi test. Works great! Now that I discovered this, my TP is 10x more useful to me! Now that we know we can generate any CTRL key as well as the ESC key, would be nice if the keyboard can be patched to generate the ESC sequence with just a single keystroke as outlined above. Maybe we can get a dedicated key so we can generate ESC quickly. It's just a 'CTRL-[' or '|o-[' or 'thorn-[' - I hope a keyboard patch can emulate that. This would be a real boon to those that need to use vi from their TouchPads. Now only if we could get PuTTY ported to the TP.... Last edited by jblather; 09/14/2011 at 04:30 PM. |
09/14/2011, 03:46 PM
|
#2 (permalink) |
|
Member
![]() Join Date: Jun 2010
Location: Alaska
Posts: 1,617
Likes Received: 105
Thanks: 67
Thanked 304 Times in 227 Posts
|
Your "weirdo symbol", þ, is called a thorn. It's an Old English character that was replaced by 'th' in modern English.
__________________
Sign up for SugerSync Get and Give 500MB of extra space Sign up for DropBox Get and Give 250MB of extra space Sign up for Memopal Get and Give 500MB of extra space GoAruna is a cloud service with a webOS app maintained by the company and referral bonuses
|
09/14/2011, 04:32 PM
|
#5 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 404
Likes Received: 82
Thanks: 64
Thanked 78 Times in 33 Posts
|
vi is a text editor in Unix/Linux. It is probably the most-used text editor in Unix/Linux land.
Please see: vi - Wikipedia, the free encyclopedia With this technique, one can use vi or even emacs from a TouchPad. Vi uses the ESC key a lot, emacs uses the CTRL key a lot. This 'workaround' makes their use possible from the TouchPad, finally. |
09/14/2011, 08:24 PM
|
#7 (permalink) |
|
Member
![]() ![]() Join Date: Dec 2009
Location: Mexico
Posts: 2,392
Likes Received: 225
Thanks: 88
Thanked 944 Times in 475 Posts
|
oh, man, thanks for this finding! This is excellent!! Now I can throw my laptop to the trash, this is what I was missing from my TP! :-)
__________________
Just remember: If I helped you, press the thanks button! ![]() Owner of: Pre Sprint, Pre Telcel, Pre Plus AT&T, Pre 2 Unlocked, Pixi Plus AT&T, TouchPad, and a shiny new AT&T Pre3. Needs: Veer (anyone?) Apps: Subnet Calculator, FreeCam, PhotoFun, NuttyPad (work in progress) HomeBrew: meta-doctor and Messaging Plugins collaborator Twitter: @cesarneg |
09/14/2011, 08:31 PM
|
#8 (permalink) |
|
Member
![]() ![]() Join Date: Feb 2011
Posts: 80
Likes Received: 32
Thanks: 20
Thanked 7 Times in 7 Posts
|
Huge thanks to jblather. I kept meaning to mess around with xev and see what keycodes were being generated in my Copious Free Time™...
The þ is also the origin of using "ye" in place of "the" to make a sign look ancient. One of the printed variants looks like a "y". |
09/14/2011, 08:34 PM
|
#9 (permalink) |
|
Member
![]() Join Date: Oct 2010
Posts: 901
Likes Received: 83
Thanks: 19
Thanked 121 Times in 101 Posts
|
I wonder if these keys can be remapped. I remember rod saying that webOS just eats ESC commands so finding a native way to do it seems useful
Last edited by FenrirWolf; 09/14/2011 at 08:43 PM. |
09/14/2011, 08:39 PM
|
#10 (permalink) |
|
Developer
![]() ![]() Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
|
I have released Xecutah 0.8.5 to the testing feed with this new information included.
Thanks! -- Rod
__________________
WebOS Internals and Preware Founder and Developer You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful. All donations go back into development. www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals |
09/14/2011, 08:49 PM
|
#13 (permalink) |
|
Member
![]() Join Date: May 2009
Posts: 1,142
Likes Received: 49
Thanks: 151
Thanked 286 Times in 147 Posts
|
what is Xecutah? and is there a way to add a cursor back and forward to the virtual keyboard? i've been playing around with keyboard layouts to include these additional keys to have a better keyboard but i'm not a developer so i can't make it happen.
|
09/15/2011, 12:21 AM
|
#15 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 404
Likes Received: 82
Thanks: 64
Thanked 78 Times in 33 Posts
|
To use OpenSSH, have to fire up Xecutah, then Xserver the Xterm, then openssh. Kinda clumsy.
With PuTTY, you only have to select which profile you want to connect to - a very concise interface and loved by many. No starting other programs to use it. Nothing wrong with openssh, but not nearly as convenient as PuTTY. Last edited by jblather; 09/15/2011 at 12:28 AM. |
09/15/2011, 12:23 AM
|
#16 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 404
Likes Received: 82
Thanks: 64
Thanked 78 Times in 33 Posts
|
Okay, I see that we won't be able to have a keyboard patch to emulate the ESC key. This is because the ESC key is really two characters, the 'thorn' (see OP) and then the right bracket ('['). Keys can generate only one 'character' at a time. Bummer.
But could we bring the 'thorn' key (which is really the CTRL key) to be its own dedicated key? That would making typing any CTRL key (including ESC) much easier and less clumsy. |
09/15/2011, 12:26 AM
|
#17 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 404
Likes Received: 82
Thanks: 64
Thanked 78 Times in 33 Posts
|
Exactly - if I had to carry around a keyboard as well, I might as well carry my lappy or a netbook. This makes the TP all that more useful. I keep all my mail on a unix server using a plain-jane text interface (pine). This lets me access my email from anywhere, securely, without having to POP or IMAP and all from my TouchPad!
Last edited by jblather; 09/15/2011 at 12:32 AM. |
09/15/2011, 12:45 AM
|
#18 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 404
Likes Received: 82
Thanks: 64
Thanked 78 Times in 33 Posts
|
Xecutah is a way to launch xserver and then xterm. If you install the preware xterm app, it will also automatically download and install xserver and xecutah to your TP.
Last edited by jblather; 09/15/2011 at 12:55 AM. |
09/15/2011, 01:13 AM
|
#19 (permalink) |
|
Member
![]() Join Date: Nov 2007
Location: Orange County, CA
Posts: 238
Likes Received: 13
Thanks: 57
Thanked 19 Times in 15 Posts
|
1. So awesome, thanks for finding and þosting this!
2. Wutt in the hell?? Is there some kind of secret reason as to why they would do this? :þ |
09/15/2011, 05:00 AM
|
#20 (permalink) |
|
Member
![]() Join Date: Jul 2010
Posts: 282
Likes Received: 84
Thanks: 26
Thanked 187 Times in 40 Posts
|
BTW, use vi not emacs =D
__________________
Follow me on Twitter: http://twitter.com/warthogkernel Experimental warthog kernels for webOS devices. Patches such as Muffle System Logging, Max Blocker etc. Donations go towards further experimentation.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



