webOS Nation Forums >  webOS tablets >  HP TouchPad > Using CTRL and ESC keys on TP Virtual keyboard - WORKS!
Using CTRL and ESC keys on TP Virtual keyboard - WORKS!

  Reply
Like Tree33Likes

 
LinkBack Thread Tools Display Modes
Old 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
Default Using CTRL and ESC keys on TP Virtual keyboard - WORKS!

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.
jblather is offline   Reply With Quote
Liked by rwhitby, Knucklehead, ALuckyGuy and 16 others like this.
Old 09/14/2011, 03:46 PM   #2 (permalink)
Member
 
Orion Antares's Avatar
 
Join Date: Jun 2010
Location: Alaska
Posts: 1,617
Likes Received: 105
Thanks: 67
Thanked 304 Times in 227 Posts
Default

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
Orion Antares is offline   Reply With Quote
Thanked By: jblather
Old 09/14/2011, 04:24 PM   #3 (permalink)
Member
 
Join Date: Aug 2011
Posts: 404
Likes Received: 82
Thanks: 64
Thanked 78 Times in 33 Posts
Default

Thanks for the explanation. I was wondering what the heck "|o" was. I updated the original post.
jblather is offline   Reply With Quote
Old 09/14/2011, 04:30 PM   #4 (permalink)
Member
 
Join Date: Sep 2011
Posts: 44
Likes Received: 7
Thanks: 31
Thanked 1 Time in 1 Post
Default

thanks alot, but what is "vi"?
hypertech is offline   Reply With Quote
Old 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
Default

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.
jblather is offline   Reply With Quote
Liked by hypertech and dectech like this.
Thanked by dectech, hypertech
Old 09/14/2011, 07:59 PM   #6 (permalink)
Member
 
Join Date: Jan 2010
Location: NZ
Posts: 59
Likes Received: 2
Thanks: 21
Thanked 6 Times in 6 Posts
Default

Man this rocks! I could get away with it using the bluetooth keyboard but having to carry that around all the time was a hassle - now I don't have to!
llama233 is offline   Reply With Quote
Old 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
Default

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
NuttyBunny is offline   Reply With Quote
Liked by TheDewWorm, jblather and dreamfly like this.
Old 09/14/2011, 08:31 PM   #8 (permalink)
Member
 
lagoldste's Avatar
 
Join Date: Feb 2011
Posts: 80
Likes Received: 32
Thanks: 20
Thanked 7 Times in 7 Posts
Default

Huge thanks to jblather. I kept meaning to mess around with xev and see what keycodes were being generated in my Copious Free Time™...

Quote:
Originally Posted by Orion Antares View Post
Your "weirdo symbol", þ, is called a thorn. It's an Old English character that was replaced by 'th' in modern English.
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".
lagoldste is offline   Reply With Quote
Liked by Diesel Donkey likes this.
Old 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
Default

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.
FenrirWolf is offline   Reply With Quote
Old 09/14/2011, 08:39 PM   #10 (permalink)
Developer
 
rwhitby's Avatar
 
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
Default

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
rwhitby is offline   Reply With Quote
Thanked By: jzrawls
Old 09/14/2011, 08:45 PM   #11 (permalink)
Moderator
 
Cantaffordit's Avatar
 
Join Date: Jan 2010
Posts: 15,149
Likes Received: 958
Thanks: 3,804
Thanked 3,910 Times in 2,776 Posts
Default

well, if we now have ctrl+k and ctrl+p all we need is for someone to port Goldstar to webOS.
Cantaffordit is offline   Reply With Quote
Thanked By: mivoligo
Old 09/14/2011, 08:47 PM   #12 (permalink)
Member
 
hrminer92's Avatar
 
Join Date: Jun 2009
Posts: 905
Likes Received: 31
Thanks: 89
Thanked 85 Times in 62 Posts
Default

Quote:
Originally Posted by jblather View Post
Now only if we could get PuTTY ported to the TP....
what's wrong with openssh?
hrminer92 is offline   Reply With Quote
Old 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
Default

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.
__________________
--

Get your virtual onscreen keyboard themes & installation instructions here

Free 2GB of online storage, with automatic synching between multiple devices, on Dropbox
un_designer is offline   Reply With Quote
Old 09/14/2011, 11:33 PM   #14 (permalink)
Member
 
Join Date: Jan 2009
Posts: 104
Likes Received: 4
Thanks: 4
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by hrminer92 View Post
what's wrong with openssh?
openssh great but putty comes with a gui and a profile manager, just more convenient.
karun is offline   Reply With Quote
Old 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
Default

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.
jblather is offline   Reply With Quote
Old 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
Default

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.
jblather is offline   Reply With Quote
Old 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
Default

Quote:
Originally Posted by llama233 View Post
Man this rocks! I could get away with it using the bluetooth keyboard but having to carry that around all the time was a hassle - now I don't have to!
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.
jblather is offline   Reply With Quote
Old 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
Default

Quote:
Originally Posted by un_designer View Post
what is Xecutah?
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.
jblather is offline   Reply With Quote
Old 09/15/2011, 01:13 AM   #19 (permalink)
Member
 
decalex's Avatar
 
Join Date: Nov 2007
Location: Orange County, CA
Posts: 238
Likes Received: 13
Thanks: 57
Thanked 19 Times in 15 Posts
Default

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?

__________________
decalex is offline   Reply With Quote
Old 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
Default

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.
codecrumb is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0