Smartkeyslib - SmartKeys UI for Coleco Adam

Post Reply
tschak909
Well known member
Posts: 171
Joined: Sun Sep 09, 2018 5:44 pm

Smartkeyslib - SmartKeys UI for Coleco Adam

Post by tschak909 »

I have released a @Z88DK library called "smartkeyslib" which makes #ColecoAdam SmartKeys bars and status displays. It uses the proportional font found in the SmartWriter ROM for its display. Code is here at Github: https://github.com/tschak909/smartkeyslib . Here are pics from the example program.
WIN_20210819_23_20_25_Pro.jpg
WIN_20210819_23_20_16_Pro.jpg
-Thom
You do not have the required permissions to view the files attached to this post.
tschak909
Well known member
Posts: 171
Joined: Sun Sep 09, 2018 5:44 pm

Re: Smartkeyslib - SmartKeys UI for Coleco Adam

Post by tschak909 »

@dom and others who may be able to answer, what could be done to make the text output faster? The font is proportional, and I am manually plotting each dot, is the font machinery able to deal with proportional fonts? or should I use the blit functions?

-Thom
User avatar
dom
Well known member
Posts: 2072
Joined: Sun Jul 15, 2007 10:01 pm

Re: Smartkeyslib - SmartKeys UI for Coleco Adam

Post by dom »

Take a look at video/tms9918/stdio/ansi or thereabouts you’ll see how Stefano did the variable width printing for the ansi engine.

Effectively it’s a read of 256 bytes, manipulate, write back 256. It’s the simplest way to do it though it may not be the most optimal.
tschak909
Well known member
Posts: 171
Joined: Sun Sep 09, 2018 5:44 pm

Re: Smartkeyslib - SmartKeys UI for Coleco Adam

Post by tschak909 »

also, how am I supposed to handle custom tiles/chars that aren't in the 96 characters output from the system font ?
tschak909
Well known member
Posts: 171
Joined: Sun Sep 09, 2018 5:44 pm

Re: Smartkeyslib - SmartKeys UI for Coleco Adam

Post by tschak909 »

Basically trying to replicate stuff like this, which uses tiles, but in GRAPHICS II (as evidenced by the various bits of color trim:)
WIN_20210820_16_09_50_Pro.jpg
-Thom
You do not have the required permissions to view the files attached to this post.
Post Reply