Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50094

FBInk: A small tool/library to print crap on your screen!

$
0
0
The lack of a small utility to print messages on screen (àla eips on Kindles) has been bugging me (and others, hi @frostschutz! :p) for *quite* a while... So, I finally caved, and spent a few days working on this...

So here comes FBInk.
Basically, you feed it a string & a position on screen (row/column), and it'll print it there. Voilà.
There's a few helper flags if you want automagic padding, centering, or both, and it should break long strings over multiple-lines automatically (albeit in the dumbest fashion possible, no hyphenation, that's way out of scope here).

It has zero dependency besides the libc, since it's basically drawing monospaced monochrome glyphs straight to the framebuffer.

It's available as a standalone utility, which includes some of eips's more obscure features (like the ability to trigger specific mxcfb refresh calls without touching the fb at all), and as a C library, which is how I'm using it in KFMon.

Attached Files
File Type: zip FBInk-v0.9.0-2-g0d30806.zip (37.8 KB)

Viewing all articles
Browse latest Browse all 50094

Latest Images

Trending Articles



Latest Images