02-14-2013, 08:47 PM | #121 | |
Wizard
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
Quote:
I will make a version of it with images - but then the one baf made looks good on Touch. And it still would not work one for all. It will always be images too small on PW or too big on Touch. I prefer the nice big symbols as in the screenshots over even the keyboard-wide.xml that cubemike99 made. What about a version of it that does not depends on libs? |
|
02-14-2013, 09:05 PM | #122 |
Member
Posts: 23
Karma: 193423
Join Date: Jul 2012
Device: Kindle Touch
|
Here's a proof-of-concept example of using kterm's -e and -l options to launch a terminal program from KUAL with a custom interface using matchbox-keyboard's layout config, in this case a media player with basic controls (play/pause, forward, back, next, previous, volume +/-, off).
This is just an example and not of much practical use since it just plays *.mp3 in a folder, but the concept can be adapted to other things (or a media player with a better frontend, at least). Hopefully it'll give someone an idea to play with. No screenshots since I apparently can't do that when kterm's running a program. Just imagine an ugly text-based media player with hastily drawn media buttons under it. Install: Put the attached mplayer_test folder in your extensions folder. You will need mplayer provided by baf from the bottom of the page here: http://www.fabiszewski.net/kindle-xterm/ Put mplayer in any of the following folders (or edit mplayer_test.sh): /mnt/us/bin /mnt/us/opt/bin /mnt/us/extensions/mplayer_test/bin Put some MP3s in /mnt/us/music (you can change this location in mplayer_test.sh) Launch it from KUAL. Notes: Matchbox-keyboard's README with layout info: https://github.com/Xlab/matchbox-key...xlab/README.md There's a bug of sorts with kterm (and xterm before it) where some programs won't execute right if just run with the -e command (e.g. "kterm -e foo" will open kterm but then immediately exit without running foo). I don't know why this is but you can get around this by putting the command in a shell script and using -e on that instead (e.g. "kterm -e foo.sh" where foo.sh contains only "#!/bin/sh [linefeed] foo" -- see attached example for example). |
Advert | |
|
02-14-2013, 09:15 PM | #123 | ||
Wizard
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
Quote:
Quote:
|
||
02-14-2013, 09:50 PM | #124 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
I am so testing this. (I attached the mplayer I will be testing with for future reference ) Last edited by twobob; 02-14-2013 at 09:52 PM. |
|
02-14-2013, 11:49 PM | #125 |
Old Kaz
Posts: 202
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
keyboard-wide.xml errors:
<key width="3571" extended="false"> <default display="image:img/squarebracketleft.png" action="{" /> <shifted display="image:img/curlybracketleft.png" action="[" /> <mod1 display="image:img/ecirc.png" action="ê" /> <mod2 display="image:img/cecirc.png" action="Ê" /> </key> <key width="3571" extended="false"> <default display="image:img/squarebracketright.png" action="}" /> <shifted display="image:img/curlybracketright.png" action="]" /> <mod1 display="image:img/euml.png" action="ë" /> <mod2 display="image:img/ceuml.png" action="Ë" /> </key> <key width="3571=" extended="false"> <default display="image:img/backslash.png" action="\" /> <shifted display="image:img/pipe.png" action="|" /> </key> |
Advert | |
|
02-15-2013, 12:58 AM | #126 |
Wizard
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
Fixed it all up. Made a few beautifying adjustments to key sizes. One liberty I took, well 2 actually. I moved the arrow keys back to inverted T, and added the missing esc key left of the left shift key. This *should* now work on Touch as well (any takers?). It does look good on PW. If this one works on Touch and PW equally well (and shows the buttons the same) it could be a one-fits-all solution.
Note: I removed all the unnecessary extended="false" statements. Matchbox keyboard assumes it is false by default. The normal sized keys I removed all the width="****" statements. Matchbox keyboard considers 1000 as the standard size for a key. Theoretically it should matter not if implicitly specifying width. Unfortunately the calculations of the relative keysizes only works correct if width="1000" is omitted for standard sized keys. Relative sizes are also adjusted - so specifying a width="1500" will make the key 1.5 times as wide as a standard key. Much better to work with to create a layout based on relative position rather than providing hard numbers. Attached a screenie from PW, and the modified keyboard-wide.xml file. Again, someone please test this on Touch, it is supposed to work on both PW and Touch, and look about the same. P.S.: If this one works, I will make a us-dvorak layout by simply editing this xml. P.P.S.: This one is revoked now too. See post #129 for a improved version by baf. Last edited by DuckieTigger; 02-15-2013 at 12:08 PM. |
02-15-2013, 01:43 AM | #127 |
Member
Posts: 23
Karma: 193423
Join Date: Jul 2012
Device: Kindle Touch
|
Works and looks the same. I can finally type "ls" without it ending up being "la"!
|
02-15-2013, 03:14 AM | #128 | |
Wizard
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
Quote:
The one thing that I am worried about is the keys that got cut out: pageup/down, home/end, delete, ...... If those are necessary, then maybe they should get their own modifier - similar to the buttons left and right of space. The matchbox keyboard that comes with kterm does support a third modifier.That modifier can work to provide all those keys that got lost from baf's original implementation - plus a way to also add a number key block. |
|
02-15-2013, 04:05 AM | #129 | |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Quote:
I suggest such small changes:
|
|
02-15-2013, 04:33 AM | #130 | ||
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Quote:
Quote:
|
||
02-15-2013, 12:19 PM | #131 | |
Wizard
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
Quote:
|
|
02-15-2013, 02:07 PM | #132 | |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Quote:
|
|
02-15-2013, 02:17 PM | #133 |
Wizard
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
No, I never messed with the images. My screenshot is with the default ones, since I was striking to remove all the PW this, TOUCH that hassle. If you want a layout for PW that is seperate, then get rid of the images where you can. That will always look better than trying to fight with images. Make them too big, and all goes real crazy.
|
02-15-2013, 03:23 PM | #134 |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
|
02-19-2013, 05:42 AM | #135 | |
Wizard
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
Quote:
I put as action: "escpape" and it should be "escape". Did not notice until just now. My apologies. |
|
Tags |
kindle touch, kindle touch hacks, terminal emulator |
|
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 |