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 08-05-2011, 07:14 AM   #31
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Might it be that you have not installed the original package from Luigi, followed by overriding myts.arm with the modified version.

Luigi's package has equivalent functionality to the launchpad hack which should be removed prior to installing Luigi terminal. I suspect having both is incompatible.
PoP is offline   Reply With Quote
Old 08-05-2011, 08:17 AM   #32
Halberdier
Junior Member
Halberdier began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2011
Device: Kindle 3 Wi-Fi
Now I am completely lost.

The launchpad is a .bin that must be installed via Kindle update command.

The zip by Luigi contains, besides source files, a .asm that requires launch from shell. Having neither launchpad nor the terminal itself, how can I access the shell?
Halberdier is offline   Reply With Quote
Advert
Old 08-05-2011, 11:25 AM   #33
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
1) First, remove the lunchpad by running its uninstall bin.

2) Then create a directory "Kiterm" on the USB where you will copy from Luigi's archive the following files:
ajaxterm.css
ajaxterm.html
ajaxterm.js
keydefs.ini
launchpad.ini
myts.arm

3) Replace the original myts.arm with the most recently modified.

4) SSH to the Kindle, cd /mnt/us/Kiterm, and ./myts.arm &

5) From the Kindle Shift T will open the terminal shell (per the definition in launchpad.ini)
PoP is offline   Reply With Quote
Old 08-05-2011, 11:55 AM   #34
Halberdier
Junior Member
Halberdier began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2011
Device: Kindle 3 Wi-Fi
Thank you very much, I'll try.

I understood that the ajaxterm wasn't needed anymore. The readme states that it is there only for historical reasons.
Halberdier is offline   Reply With Quote
Old 08-07-2011, 05:23 AM   #35
Halberdier
Junior Member
Halberdier began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2011
Device: Kindle 3 Wi-Fi
Got it now!

I didn't figure out 1) that launchpat cannot launch ./myts.arm, 2) that I had to install the usbNetwork hack to access the shell and 3) that the usbNetwork howto is only described in its bundled README_FIRST.txt

I understood correctly that the Ajaxterm is not needed. The launchpad cannot be used to start myts, but does not conflict with it. More schematically:

1) copy keydefs.ini, launchpad.ini and myts.arm in a directory
2) install and activate usbnetwork from here, following instructions in README_FIRST.txt (don't be too scared )
3) telnet or ssh from the host, navigate to /mnt/us/<your myts.arm directory> and launch .myts.arm &
4) shift T on Kindle and you are done

Sorry for repeating things already known and thank you all for the great job and the support.
Halberdier is offline   Reply With Quote
Advert
Old 08-14-2011, 11:24 AM   #36
MacUsers
Member
MacUsers began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jul 2011
Device: Kindle 3
Quote:
Originally Posted by Halberdier View Post
[......]
Sorry for repeating things already known and thank you all for the great job and the support.
Two questions: Looks like I always need to run ".myts.arm" prior to launch a terminal. I know there are several ways to do that automatically but that's the way it's designed to run at the moment - right? I'm just trying to understand if I'm missing anything.

Also, I get a half of screen window with a keyboard layout at the bottom? Can I get it in full screen mode and possibly with a lager font? Cheers!!!
MacUsers is offline   Reply With Quote
Old 08-19-2011, 01:52 AM   #37
Halberdier
Junior Member
Halberdier began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2011
Device: Kindle 3 Wi-Fi
To launch .myts.arm from inside the Kindle at startup (without the need of remote login), one method is explained here.

It links also to a terminal version implemented by Xqtftqx to make it full screen, but unfortunately the link is now dead. I don't have a copy of it, because I was happy with the half screen with the keyboard layout and I never downloaded it.
Halberdier is offline   Reply With Quote
Old 08-26-2011, 05:12 PM   #38
ninjageckoattack
Junior Member
ninjageckoattack began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
Quote:
Originally Posted by PoP View Post
[EDIT 2011-04-07] Following up on my previous version

- I have added escape sequences for the Home and End keys (which now work in htop, mc, vi, nano, ...)
- I have modified the keyboard help accordingly (it is now even more crowded, welcoming anyone's suggestion to make it more elegant).

...
PoP,
Could you explain to me how to apply this patch to the source code?
I have tried downloading the code from http://info.iet.unipi.it/~luigi/kind...m-20110107.tgz and applying the patch by using "patch -p0 < KiTerm.patch"; however, this gives errors such as
Code:
patching file ./KiTerm/font.h
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file ./KiTerm/font.h.rej
and so on.

I realize that I can simply use the binary file, but I would like to see how this works.
ninjageckoattack is offline   Reply With Quote
Old 08-27-2011, 10:14 AM   #39
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Don't know why it is rejected on your system (I am no diff/patch expert), it just ran fine on my Ubuntu system

Code:
PoP:~/Kindle$ patch -p0 < KiTerm.patch
patching file ./KiTermOriginal/font.h
patching file ./KiTermOriginal/launchpad.c
patching file ./KiTermOriginal/launchpad.ini
patching file ./KiTermOriginal/terminal.c
PoP:~/Kindle$
But anyway, here are the updated sources after the patch is applied: KiTerm 36x100 2011-04-08 src.zip
PoP is offline   Reply With Quote
Old 08-29-2011, 12:28 AM   #40
ninjageckoattack
Junior Member
ninjageckoattack began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
OK, thanks. I'm messing around with it now, but that seems to help.
ninjageckoattack is offline   Reply With Quote
Old 10-05-2011, 05:02 AM   #41
anthonyb
Member
anthonyb began at the beginning.
 
Posts: 16
Karma: 24
Join Date: Sep 2011
Device: Kindle 3 WiFi v3.2.1
Hi PoP

I recently upgraded to your build 20110408 and I notice when running htop that the column alignment is a bit out for some rows (tabs not expanding correctly?). I'm wondering if this has something to do with the change from a 8px wide font to 6px wide and if some additional code somewhere needs changing, or is this a bug in htop?

You asked for suggestions to declutter the help block. Since this area is static I'm thinking it could be improved by replacing the block of help text with a bitmap image. A very much nicer help image could be created this way and then the bitmap painted onto the display with pix_blt() instead of outputting it as text. What do you think?

As soon as I have the chance to get a toolchain setup I'll start making some changes myself. I'm thinking of including both fonts and having the rows, columns and font configurable either via a config file or the command line. I'd also like to add a special key combination (or a signal handler) to tell kiterm to reload the config file and change the layout in real time. So the user can just press some keys or perhaps issue kill -WINCH 'myts' (or USR1 or HUP) to switch to full screen for example. For full screen mode I'd add a key combination to toggle the help on or off. Just some ideas...
anthonyb is offline   Reply With Quote
Old 10-05-2011, 01:16 PM   #42
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Quote:
Originally Posted by anthonyb View Post
Hi PoP

I recently upgraded to your build 20110408 and I notice when running htop that the column alignment is a bit out for some rows (tabs not expanding correctly?). I'm wondering if this has something to do with the change from a 8px wide font to 6px wide and if some additional code somewhere needs changing, or is this a bug in htop?
Interesting. An easy way to find out would be to compare your htop screen under my version and under Luigi's original version.


Quote:
Originally Posted by anthonyb View Post
You asked for suggestions to declutter the help block. Since this area is static I'm thinking it could be improved by replacing the block of help text with a bitmap image. A very much nicer help image could be created this way and then the bitmap painted onto the display with pix_blt() instead of outputting it as text. What do you think?
That would be nice and would certainly help. Another approach could be to refresh the text-only help block as each modifier key is pressed, such as to only display the glyphs available when *that* modifier key pressed. Or perhaps more ambitiously, popping a virtual keyboard and selecting keys by navigating glyphs with the five-way button.

Quote:
Originally Posted by anthonyb View Post
As soon as I have the chance to get a toolchain setup I'll start making some changes myself. I'm thinking of including both fonts and having the rows, columns and font configurable either via a config file or the command line. I'd also like to add a special key combination (or a signal handler) to tell kiterm to reload the config file and change the layout in real time. So the user can just press some keys or perhaps issue kill -WINCH 'myts' (or USR1 or HUP) to switch to full screen for example. For full screen mode I'd add a key combination to toggle the help on or off. Just some ideas...
Since you are thinking to change the screen capabilities on-the-fly, maybe can you consider adapting the lines*columns according to the device being in portrait or landscape. Also, if you implement a pop-up help, the terminal could always remain in full screen mode gaining back the 10 lines presently consumed by the help block. I'll look forward to your improvements.

Last edited by PoP; 10-05-2011 at 05:21 PM.
PoP is offline   Reply With Quote
Old 10-18-2011, 09:03 AM   #43
anthonyb
Member
anthonyb began at the beginning.
 
Posts: 16
Karma: 24
Join Date: Sep 2011
Device: Kindle 3 WiFi v3.2.1
Since the Kindle's Alt key in combination with Q..P is used to get digits, how does one get the Alt key? In other words if I want to do something like a Copy operation in the nano editor which is usually Alt-6 how do I enter this?
anthonyb is offline   Reply With Quote
Old 10-19-2011, 03:26 PM   #44
Matan
Enthusiast
Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'
 
Posts: 42
Karma: 39432
Join Date: May 2011
Device: none
I worked a little on kiterm and produced a version that works alongside launchpad, instead of replacing it. This file can be installed by using launchpad installation (copy to /mnt/us/customupdates and press shift shift I), or directly by unzipping under /mnt/us.

Source code is at: http://my.svgalib.org/kindle/myts-1.tar.gz

After installing, the default launchpad configuration (in the file /mnt/us/launchpad/myts.l.ini) is:
T T = start (or return to) terminal 1
T Y = start (or return to) terminal 2
T U = start (or return to) terminal 3
T A = kill myts

Main changes:

No http or launchpad functionality.
Uses configurable encodings and font, not compiled in.
Fixed line wrapping.
Full screen (https://www.mobileread.com/forums/sho...d.php?t=125860)
Different keyboard mapping for symbols:
Code:
Menu:
F1 F2 F3 F4 F5 F6 F7 F8 F9  F10
`  %  ^  <  >  [  ]  =  F11 F12
   ;  ,  (  )  {  }
   
   
Back:

!  @  #  $  %  ^  &  *  (  )
'  +  #  -  _  (  )  &  !  ?
~  $  |  /  \  "  '  :
Matan is offline   Reply With Quote
Old 10-19-2011, 06:43 PM   #45
force
Junior Member
force began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2011
Device: Kindle 3 3G B00A
Cool!
Nicely cleared it out.
All i miss is TAB key
force is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP+Apache web server for calibre ... chaley Related Tools 254 04-28-2014 08:18 PM
Running Calibre on Terminal Server JeffAlan66 Calibre 2 08-12-2010 02:00 PM
Web Content Server mezme Calibre 7 01-08-2010 09:59 PM
Calibre - web server problems eclpmb Calibre 9 11-28-2008 02:04 PM


All times are GMT -4. The time now is 08:42 PM.


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