![]() |
#16 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
|
Thanks lrizzo, i was trying to get Ajaxterm going a couple days ago myself, but got put off by the installing-python issue. Great timing!
|
![]() |
![]() |
![]() |
#17 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2010
Location: Czech Republic
Device: Kindle 3 - 3G
|
I successfully compiled Midnight Commander for kindle :-). From ssh it's good. Encoding is ok and mouse is working too. On AjaxTerm is bad encoding (I can rebuild it with ISO-8859-1, but some encoding switch will be nice - especially for different languages (Default <-> UTF8)). But main problem is missing keys (F1..F12, arrows etc.). How Ajaxterm emulate them? How about add some virtual buttons for 'crtl' and 'function key' (for example with mouse click on 'function key' and on keyboard press Q for F1)
Last edited by centaurian; 11-09-2010 at 06:34 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Can't remember if mc is using ncurses or slang, but if it's ncurses, check if using the xterm terminfo file bundled with usbnetwork helps. (The one shipped with the Kindle is like a gazillion years old).
(That is, if AjaxTerm does indeed set xterm as TERMINFO, and the browser doesn't mess things up after that. Make sure you have a proper environment set up in your shell too (ie. a proper login shell, not just calling /bin/sh, or source /etc/profile at least).). Granted, that won't change a thing for the key mapping, but it'll maybe help with the color/ansi escape stuff. Last edited by NiLuJe; 11-09-2010 at 07:49 PM. |
![]() |
![]() |
![]() |
#19 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 22222
Join Date: Oct 2010
Device: kindle3
|
i am working on completing the ANSI/xterm support in my version of ajaxterm (it is done in the backend, myts.c, function page_append(). Currently, support is limited to the basic positioning commands and line/screen erase.
Full support for colors and attributes requires a small revision of the code, to keep track of attributes for every single character (right now i only track the cursor position). Encoding is UTF-8, but the code at the moment only supports plain ascii codes (0-127). Key emulation instead belongs to the javascript code. i already remapped ALT so that it works as CTRL (but you lose numbers on the Kindle3, you need to use sym for that) and the 'prev-page' on the left to generate an ESC. I'd avoid depending on mouse clicks on some area of the screen as it takes time to move the mouse to the right position. Maybe shift-alt could be used instead, possibly also popping up a window with the mappings so people don't have to remember them. Last edited by lrizzo; 11-10-2010 at 07:22 AM. Reason: remove leftover text |
![]() |
![]() |
![]() |
#20 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 22222
Join Date: Oct 2010
Device: kindle3
|
[removed, it was a duplicate]
Last edited by lrizzo; 11-10-2010 at 07:23 AM. Reason: remove duplicate msg |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2010
Location: Czech Republic
Device: Kindle 3 - 3G
|
Yes,but in this way it still don't have some keys.
I think, that's best way to add two virtual modifiers - one for CTRL, second for FN. For example you click on CTRL modifier and on real keyboard on C key -> emulates CTRL+C. Second press on key C only C. FN modifier keys: In this way is possible to emulate all keys without too much cursor moving on virtual keyboard. What do you think? |
![]() |
![]() |
![]() |
#22 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Nov 2010
Device: Kindle DXG
|
6 mounth ago I developed a nice simple Webshell for hacking embedded devices like NAS or E-Book readers.
Is more simple that ajaxterm, but with less features: http://downloads.plextor.nas-central...ock/webshell.c |
![]() |
![]() |
![]() |
#23 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2010
Location: Czech Republic
Device: Kindle 3 - 3G
|
OK. Just by do it yourself metod, I make some changes in ajaxterm.js and implemented full keyboard support and handles some UTF8 characters from terminal.
Changes from Luigi last version: Virtual keys: Zoom: Change font size (to better fit to window), tree steps Alt: Toggle alt key. Real alt key is working too, but by this way, you can press more combinations such as ATL+Q etc. (ALT+Q on real kindle keyboard meas 0) Ctrl: Toggle Ctrl key. Fn: Toggle virtual FN key. Shows help image. In this way, you can use F1-F2 keys, arrows, TAB, ESC etc. Keys on side of Kindle: Up: Toggle FN key (same as virtual button) Down: Toggle CTRL key (same as virtual button) Double UTF8 handling (only some characters). Screenshots: Instalation: just replace ajaxterm.js Last edited by centaurian; 11-27-2010 at 05:09 PM. |
![]() |
![]() |
![]() |
#24 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2010
Location: Czech Republic
Device: Kindle 3 - 3G
|
Here is compiled MidnightCommander for use in Kindle term. Fully functional.
Just extract it to flash root (/mnt/us/) and start it with: cd /mnt/us/local/terminal/ Edit: Added missing libslang.so.2 Last edited by centaurian; 11-30-2010 at 02:19 PM. |
![]() |
![]() |
![]() |
#25 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Nov 2010
Device: Kindle
|
running ajaxterm on nell or kindle DX
hey,
how can we use this hack of Ajaxterm for Nell (Kindle DX) which doesn't have a wifi option. Can we use it on wan? Is it possible throught USBNet hack. if yes how? |
![]() |
![]() |
![]() |
#26 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 22222
Join Date: Oct 2010
Device: kindle3
|
Quote:
As the author of "launchpad" mentioned me, and there is code included in his latest version, see https://www.mobileread.com/forums/showthread.php?t=97636 the Kindle's framebuffer is accessible through /dev/fb with a standard and easy API (the screen is memory mapped, and there are a few ioctls to update the screen). So we can implement a proper terminal by merging launchpad and ajaxterm as follows: 1. extend launchpad with some option to enter a "terminal" mode where input from keyboard and fiveways is captured (so, not sent to the kindle's framework) and used as below; 2. convert kindle events into keycodes produced by a terminal (with ALT, CTRL, cursors...). This is more or less what ajaxterm.js does . 3. use the code in myts.c (the ajaxterm backend) to send keycodes to a shell, and interpret the responses to update a virtual screen (we need better ANSI emulation) 4. convert the screen into a proper bitmap that we can display in the framebuffer. The missing code is not particularly difficult, just boring to write: for #2 is purely a translation from js to C, for #3 we need to extend the ANSI emulation, for #4 we need a 7 pixel-wide monospace font (so we can display 80 columns on the Kindle3 which has 600 pixels) and extend the blitting code so it can handle areas that are not byte-aligned (the Kindle3 has 4bpp so a 7-pixel font occupies 3.5 bytes per line; not sure if the DX has 4bpp or less). cheers luigi |
|
![]() |
![]() |
![]() |
#27 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() Posts: 37
Karma: 434
Join Date: Apr 2010
Location: Zagreb, Croatia
Device: Kobo Aura One, KPW, K3, K2i, K2US
|
Quote:
Code:
T = !/mnt/us/local/terminal/terminal.sh > /dev/null Also, regarding MC, when i try to run it I get: ./mc: error while loading shared libraries: libslang.so.2: cannot open shared oy Last edited by jetfin; 11-29-2010 at 04:24 PM. |
|
![]() |
![]() |
![]() |
#28 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2010
Location: Czech Republic
Device: Kindle 3 - 3G
|
I added missing library to that archive.
I running it with: Code:
B = !/bin/sh /mnt/us/local/terminal/terminal.sh ;echo 101 >/proc/eink_fb/update_display What I found, ajaxterm works only, if you are connected to wifi network. After going to sleep it's frozen, so you will need to restart it with double execution of Shift-B. |
![]() |
![]() |
![]() |
#29 |
Enthusiast
![]() ![]() ![]() ![]() ![]() Posts: 37
Karma: 434
Join Date: Apr 2010
Location: Zagreb, Croatia
Device: Kobo Aura One, KPW, K3, K2i, K2US
|
Thanks, the launchpad shortcut now shows "Success!" but the server still does not seem to be running... -still works fine when I start it through command line on ssh...
|
![]() |
![]() |
![]() |
#30 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 wifi
|
Maybe i just dont get it but i dont have a ctrl key on my kindle? Is it some magic hidden key?
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle, Calibre, Author sort | gdaydigger | Calibre | 5 | 03-11-2014 08:21 PM |
Kindle app for iPad appears in the App Store | pilotbob | News | 46 | 04-06-2010 08:25 PM |
kindle app? is it possible to design a app to full support PDF? | lili1989 | Amazon Kindle | 12 | 02-05-2010 05:29 PM |
Author Sort & Kindle | seagull | Calibre | 0 | 12-25-2009 12:42 PM |
How does kindle sort pictures? | princeofegypt | Amazon Kindle | 1 | 04-24-2009 04:54 PM |