![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 14730
Join Date: Jun 2012
Device: none
|
Small screen printing framework
Hi all!
I've created a small printing framework based on the "eips" utility in the Kindle. It's written as a shell script which you can source and use its functions. Features:
This tool is limited by eips, so:
Code:
pprintfn "$(ls)" Configurables: (enabled means set to 1)
http://jailbreak-kt.tk/bin/pfw How to use: Code:
source /path/to/pfw # it will init automatically printn "Hello world!" Last edited by mmatej; 07-10-2012 at 11:57 AM. |
![]() |
![]() |
![]() |
#2 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
You can add some more interesting eips wrapper code by sourcing the built-in FUNCTIONS script. That even does centering and other stuff. Also, there is an eips command to scroll the screen (used in some of my published scripts) -- no need to use dd for that...
|
![]() |
![]() |
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 14730
Join Date: Jun 2012
Device: none
|
I've found some eips-related things in /etc/upstart/functions, but I don't see centering here. Could you tell me where the functions script is? Also, I was not able to scroll entire screen with eips - it always skips first line.
|
![]() |
![]() |
![]() |
#4 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
So put a status bar or menu bar or some such on the first line and don't bother with it.
![]() |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 14730
Join Date: Jun 2012
Device: none
|
|
![]() |
![]() |
![]() |
#6 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
There was an eips replacement program posted awhile back (eprint, I think) that should do more characters. It is in an thread by fbdev, as I recall. The functions script that did centering was on my K3. There were other useful eink functions too. I did not look closely at it on newer kindles. Perhaps the "good stuff" is missing in the latest firmware. ![]() Last edited by geekmaster; 07-10-2012 at 12:52 PM. |
|
![]() |
![]() |
![]() |
#7 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 14730
Join Date: Jun 2012
Device: none
|
|
![]() |
![]() |
![]() |
#9 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 14730
Join Date: Jun 2012
Device: none
|
BTW, if someone used this script, post or PM me. If not, at least I know I shouldn't bother with things like this when no one really cares.
![]() |
![]() |
![]() |
![]() |
#11 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
EDIT: If nothing else, YOU learned something by creating it, and sharing it will (eventually) help others. Thank you for sharing. I am sure somebody will find a use for it. Last edited by geekmaster; 07-10-2012 at 06:37 PM. |
|
![]() |
![]() |
![]() |
#12 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 14730
Join Date: Jun 2012
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
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
|
@mmatej: Welcome to the Internet? Joking aside, it really is appreciated, and I'd suggest to just ignore the grumpy people ;-).
|
![]() |
![]() |
![]() |
#14 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 14730
Join Date: Jun 2012
Device: none
|
|
![]() |
![]() |
![]() |
#15 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Sadly, the best programmers tend to have some degree of OCD, which is often accompanied by mood swings. It gets worse as we get older (i.e. Grumpy Old Men). Just be patient and forgiving with us, because we have a lot to offer...
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blotchy Kindle screen printing? | samonakuba | Amazon Kindle | 2 | 08-09-2011 05:51 PM |
My images are disappearing on small screen devices | sbrwake | Kindle Formats | 2 | 01-10-2009 09:01 PM |
Subtitute font when rending PDF on small screen | caritas | 2 | 06-30-2008 07:41 AM | |
Subtitute font when rending PDF in small screen | caritas | Sony Reader | 0 | 06-28-2008 08:09 AM |