thanhlamcltv91 / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

cannot see char under the cursor #625

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Would like to see a blinking cursor so that there is a chance to see under it.

Original issue reported on code.google.com by thea...@gmail.com on 14 Dec 2012 at 12:37

GoogleCodeExporter commented 8 years ago
I believe this is because of an upgrade to a newer Android API (or maybe just 
your phone's API version).  PixelXorXfermode is deprecated as of API version 
16, and apparently is just completely ditched because it's not convenient to 
accelerate.  The correct answer is probably to manually XOR the cursor into the 
Bitmap.

Before this PixelXorXfermode was dropped, the cursor was inverse video (so you 
could still see the character, just black-on-white instead of white-on-black).  
A return to this behavior is the proposed remedy.

I'm working on it.

Original comment by andlingers on 30 Jul 2013 at 9:07

GoogleCodeExporter commented 8 years ago
Okay I fixed this.  The cursor is now inverse even on Jelly Bean, so you can 
see what is under it.

It is in the andlingers-softkeys git tree
   https://code.google.com/r/andlingers-softkeys/
in the "transparentcursor" branch.  Not sure if I should submit a pull request 
or what.  I'll attach the patch here too...

Original comment by andlingers on 3 Aug 2013 at 5:08

Attachments:

GoogleCodeExporter commented 8 years ago
The patch in the previous submission is not quite sufficient, see the newer 
commits on the andlingers-softkeys transparentcursor branch.

Original comment by andlingers on 21 Aug 2013 at 5:36