Background Console Colors

112 views
Skip to first unread message

Eduardo Bassotto

unread,
Jun 4, 2020, 6:50:15 AM6/4/20
to multisoft...@googlegroups.com
Hello,
I am trying to set background color on console, but I cant set to N+, or W+, for example.Already look for terminfo settings at setf, seta, op, colors=16.. But does not work...
So I make a C program to test, and it works on console.. the problem is with something on FlagShip...
Anybody know some way to do this?

I really need 2 or 3 levels of gray color.. but FlagShip shows only 1(white/light gray).

Please look the attachments..

Thank you


cores3.prg
image.png




cor.c:
image.png
cor.c
cores3.prg

Paul

unread,
Jun 10, 2020, 6:37:38 AM6/10/20
to multisoft...@googlegroups.com
You can set up to 255 different b/w background colors (same as any other r/g/b color combinations), but only in GUI mode (which interacts directly with the desktop).

In terminal i/o mode (= console), which uses curses, you only can set pre-defined terminfo colors (five in b/w), corresponding to the docu and same as in Clipper.
But how these terminfo colors are physically displayed depends on the used terminal and terminfo setting. Usually, curses supports ony two different b/w background colors in terminfo, see e.g.
https://stackoverflow.com/questions/42734416/how-to-set-colors-in-terminal-using-terminfo

Paul


cores_gui.png
cores_gui.prg
Reply all
Reply to author
Forward
0 new messages