How do I detect if desktop is 256 color?

BlitzMax Forums/BlitzMax Programming/How do I detect if desktop is 256 color?

I didn't think OpenGL worked in 256 color mode. I thought you had to be either in 16/32 bit mode? If this is the case, why not test the graphics modes and if they fail (which I would expect when initializing OpenGL) informed the user, including your little tid-bit about changing the color-mode ???