Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-04-2016, 06:37 AM   #241
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
It works fine on my PW3
Thank you!
encol is offline   Reply With Quote
Old 10-04-2016, 09:40 AM   #242
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Kterm v2.2 working OK on PW1, PW3 & KT3.

Only.. If you have a script which calls the kterm executable directly with parameters (usually -e), bypassing kterm.sh, then your'e stuck with the default keyboard images.

To avoid that, you have to pass parameters to the kterm.sh script. But it looks like it has to be re-written to accept parameters. Or am I missing something?
nasser is offline   Reply With Quote
Advert
Old 10-04-2016, 09:54 AM   #243
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by nasser View Post
Only.. If you have a script which calls the kterm executable directly with parameters (usually -e), bypassing kterm.sh, then your'e stuck with the default keyboard images.
Include layout selecting option in your custom script. kterm.sh is just meant to start kterm from kual.
baf is offline   Reply With Quote
Old 10-04-2016, 10:03 AM   #244
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by nasser View Post
Kterm v2.2 working OK on PW1, PW3 & KT3.

Only.. If you have a script which calls the kterm executable directly with parameters (usually -e), bypassing kterm.sh, then your'e stuck with the default keyboard images.

To avoid that, you have to pass parameters to the kterm.sh script. But it looks like it has to be re-written to accept parameters. Or am I missing something?
Quote:
Originally Posted by baf View Post
Include layout selecting option in your custom script. kterm.sh is just meant to start kterm from kual.
KUAL can pass parameters.
or
as baf suggests, use a custom script.

As (now) written:
https://github.com/bfabiszewski/kter...g/bin/kterm.sh
It does not expect parameters.

To submit changes, fixes or whatever: use the features of git/github.

I.E (in general - full directions on github and a zillion places on the 'net):
Clone the repo.
Make a local branch.
Add / Modify as desired.
Issue a pull request. (the author can review in context)

For individuals with open source code, github is free (one of the reasons we use it often).
knc1 is offline   Reply With Quote
Old 10-04-2016, 10:17 AM   #245
JimmyR
ɴₐɴ
JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.
 
JimmyR's Avatar
 
Posts: 421
Karma: 2507940
Join Date: Jun 2011
Location: 37.2N 93.3W
Device: KV PW4 PW3 PW2
Works great on my K5 and PW2. Thank you.
JimmyR is offline   Reply With Quote
Advert
Old 10-04-2016, 10:56 AM   #246
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by baf View Post
Include layout selecting option in your custom script. kterm.sh is just meant to start kterm from kual.
Quote:
Originally Posted by knc1 View Post
KUAL can pass parameters.
or
as baf suggests, use a custom script.
....
I'm too lazy..
I'll just stick to using a single img/ folder and keyboard.xml.
... and copy the appropriate image files to each kindle..
... and of course, comment out the if then logic of kterm.sh.

EDIT:
But, this isn't an option for everybody.. especially plug-and-play users.. so, baf's package with 3 sets of image files and the layout selection logic in the startup script is the ideal solution..

Last edited by nasser; 10-04-2016 at 11:02 AM.
nasser is offline   Reply With Quote
Old 10-04-2016, 11:18 AM   #247
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by nasser View Post
- - - -
But, this isn't an option for everybody.. especially plug-and-play users.. so, baf's package with 3 sets of image files and the layout selection logic in the startup script is the ideal solution..
A good point.

Also, if it is made too Kindle specific, it loses its ability to run on any device with GTK+ support.
I.E: It should, and probably still does, run on your PC or Laptop.
knc1 is offline   Reply With Quote
Old 10-04-2016, 11:24 AM   #248
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by knc1 View Post
A good point.

Also, if it is made too Kindle specific, it loses its ability to run on any device with GTK+ support.
I.E: It should, and probably still does, run on your PC or Laptop.
No dice..
Code:
bash: ./kterm: cannot execute binary file: Exec format error
Maybe needs an ARM emulator?
nasser is offline   Reply With Quote
Old 10-04-2016, 12:20 PM   #249
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by nasser View Post
No dice..
Code:
bash: ./kterm: cannot execute binary file: Exec format error
Maybe needs an ARM emulator?
Enable qemu emulation or re-build for your pc's cpu type.
knc1 is offline   Reply With Quote
Old 10-04-2016, 08:00 PM   #250
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by nasser View Post
I'll just stick to using a single img/ folder and keyboard.xml.
... and copy the appropriate image files to each kindle..
... and of course, comment out the if then logic of kterm.sh.
- - - -
MrDCorn has a better idea.

When this version is considered stable (as in no code changes for xxyy time) -

We can wrap it in an update_*.bin package.
The install script of the package can selectively install the file(s) that match the Kindle model on which the updater is running.

This will also probably get rid of the keyboard flashing during application start-up when the code has to switch from the default keyboard.
knc1 is offline   Reply With Quote
Old 10-05-2016, 02:31 AM   #251
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by knc1 View Post
MrDCorn has a better idea.

When this version is considered stable (as in no code changes for xxyy time) -

We can wrap it in an update_*.bin package.
The install script of the package can selectively install the file(s) that match the Kindle model on which the updater is running.

This will also probably get rid of the keyboard flashing during application start-up when the code has to switch from the default keyboard.
That's clever idea, but the gain will be minimal. Average images folder size is 9 KB plus 10 KB of xml config. Removing two layouts you will save 40 KB.

Neither will it solve flashing problem. As we specify keyboard layout on command line kterm will just start with given config instead of default one. It won't be switched later.

I don't quite get what problems it could solve, but if there is need for kterm.sh script to accept the arguments that will be passed to kterm, the patch is trivial.
Code:
#!/bin/sh
EXTENSION=/mnt/us/extensions/kterm
DPI=`cat /var/log/Xorg.0.log | grep DPI | sed -n 's/.*(\([0-9]\+\), [0-9]\+).*/\1/p'`
#use different layouts for high resolution devices
if [ ${DPI} -gt 290 ]; then
  PARAM="-l ${EXTENSION}/layouts/keyboard-300dpi.xml"
elif [ ${DPI} -gt 200 ]; then
  PARAM="-l ${EXTENSION}/layouts/keyboard-200dpi.xml"
fi
${EXTENSION}/bin/kterm ${PARAM} "$@"
baf is offline   Reply With Quote
Old 10-05-2016, 02:44 AM   #252
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Can i suggest a new feature for the next version(s)?

It would be great some way (menu?, shortcut?, ..?) to show/hide the keyboard from inside kterm (once is started) or to rotate the screen
encol is offline   Reply With Quote
Old 10-05-2016, 02:55 AM   #253
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by encol View Post
Can i suggest a new feature for the next version(s)?

It would be great some way (menu?, shortcut?, ..?) to show/hide the keyboard from inside kterm (once is started) or to rotate the screen
Hmm, there is a menu. It opens on two finger touch in the terminal window. Doesn't it work for you?
baf is offline   Reply With Quote
Old 10-05-2016, 03:12 AM   #254
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Ehm... Sorry I haven't seen it before
encol is offline   Reply With Quote
Old 10-05-2016, 03:31 AM   #255
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by encol View Post
Ehm... Sorry I haven't seen it before
You ask for a feature and you have it.
baf is offline   Reply With Quote
Reply

Tags
kindle touch, kindle touch hacks, terminal emulator


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
One more terminal emulator for kindle. Matan Kindle Developer's Corner 158 03-23-2020 06:45 PM
PRS-T1 Terminal Emulator in rupor-minimal jcromero Sony Reader Dev Corner 2 09-26-2012 02:07 PM
Anybody working on terminal for Kindle Touch? markatlnk Kindle Developer's Corner 3 06-02-2012 10:07 AM
Development Terminal Emulator oddity twichy enTourage Archive 5 05-01-2011 11:51 AM
DR800 rxvt (terminal emulator) for DR800 GregorRichards iRex 13 01-04-2011 06:56 AM


All times are GMT -4. The time now is 04:15 AM.


MobileRead.com is a privately owned, operated and funded community.