Re: How many colors?

"James Lehman" <[email protected]> Wed, 12 Sep 2007 15:58:35 -0400
Newsgroups gmane.linux.fbdev.user
Message-ID <000a01c7f577$4dd27520$0300a8c0@black>
Cool!

I'm glad you like it.

I'll have to get my stuff together and release version 10.0.
It uses function pointers that get set only once whenever a change is made
to the frame buffer resolution. That way the right function gets called
automatically with no time wasted on a switch statement. It is WAY faster
than the version that is on the web now. It is written in C, but it acts
like C++.

I guess I don't really understand your first question. You can't get more
than 16 colors out of any terminal because the program that runs to display
in the terminal has no way to ask for more than the 16 usual colors. The
colors are set with escape sequences; a coded string of characters. These
can also set absolute cursor position anywhere on the screen and do other
things like reverse the text foreground and background or make it blink.
It's not really graphics at all. You have no pixels; only character cells;
and it is (supposed to be) OS independent.

James.   :o)




----- Original Message ----- 
From: "cga2000" <[email protected]>
To: <[email protected]>
Sent: Tuesday, September 11, 2007 9:30 PM
Subject: Re: [Linux-fbdev-users] How many colors?


> On Fri, Aug 31, 2007 at 11:16:44PM EDT, James Lehman wrote:
> > The colors that you see in an ncurses application are based on an (any
OS)
> > ANSI color terminal. There is a specific set of 16 colors and their
> > associated escape sequences that set any ANSI compliant terminal's
> > foreground and background colors for each character cell. BUT, there is
> > nothing that says that you couldn't write your own layer of abstraction
/
> > interpretation that could render its own bitmapped fonts in either high
or
> > true color.
> >
> > Take a look at this...
> > http://www.akrobiz.com/ezfb
> >
> > EZFB version 10.0 is done and awaiting release. It's WAY faster than any
> > previous version.
> >
> > James.   :o)
>
> Great stuff!
>
> And a screen capture utility that actually works on the fb console in
> the bargain.  Years I'd been looking for one!
>
> I'm not sure how all this relates to my original post but downloading
> your stuff and having fun running it sure wasn't a waste of my time.
>
> Thank You!
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Linux-fbdev-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/