camerr / hackerskeyboard

Automatically exported from code.google.com/p/hackerskeyboard
0 stars 0 forks source link

Cisco Ctrl-^ Escape Sequence #286

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
[ Before posting bugs, please check
https://code.google.com/p/hackerskeyboard/wiki/FrequentlyAskedQuestions and
the existing bugs for known issues - my responses may be delayed since I have 
very little time to work on this project. ]

What steps will reproduce the problem?
1. CTRL-SHIFT-6
2.
3.

What is the expected behavior? What do you see instead?

Using a Prolific USB serial adapter, Slick USB, and hackerskeyboard I can 
connect to and issue commands to a Cisco IOS device (switch/router).  However, 
the CRTL-SHIFT-6 (CTRL-^) doesn't break the session.  For example, if I issue a 
ping command for 1000 retries, I can stop it using this key sequence on the PC 
using putty.  

The keyboard doesn't allow CTRL and SHIFT to be pressed at the same time, you 
can lock on the SHIFT then hit CTRL-^ but it seems that the CTRL-^ isn't being 
sent right.  This could either be the keyboard not sending the right code to 
Slick USB or Slick USB not passing on the code to the terminal session.

see:  http://rekrowten.wordpress.com/2011/11/11/change-ctrl-shift-6-in-ios/

What version of Hacker's Keyboard are you using? (See "Debug" section at the 
bottom of the app's Settings menu.)  1.33.132 d27b5144b8e2 2012-07-03

On what phone or tablet?  Asus Transformer Infinity

If applicable, does this affect the 4-row or 5-row layout, or both? Which?  
5-row

language(s)?  English

Please provide any additional information below.

Original issue reported on code.google.com by dave.a.h...@gmail.com on 4 Sep 2012 at 4:35

GoogleCodeExporter commented 9 years ago
Is the Ctrl-^ combination supposed to create a single byte "\x1E" (similar to 
Ctrl-] which does work), or a more complex combination? See issue 149 for the 
more general issue of complex modifier combinations.

Original comment by Klaus.We...@gmail.com on 22 Jan 2013 at 7:46

GoogleCodeExporter commented 9 years ago
Hm, turns out this may be a bit tricky to implement without breaking other 
applications. Currently, the keyboard restricts the Ctrl/Alt modifiers to the 
main symbols, since it can't send a key event for Ctrl + ^ - the caret doesn't 
exist as a keyboard key for events since it's only reachable via shift. It 
would need to send Ctrl-Shift-6, but the resulting translation is dependent on 
the OS keymap which is independent of the software keyboard's map, and I doubt 
this would work correctly.

I'll think about it, but I'm unsure if there's a good general workaround. Maybe 
as an opt-in option. Does it work if you use a hardware keyboard?

Original comment by Klaus.We...@gmail.com on 23 Jan 2013 at 6:34