NOTES: on Unix this only prints C (blue on white) and D (red on black) AB doesn't show at all.
If you change the coords to {2,1}, then the AB are printed, but C and D colors are still wrong.
This appears to be a bug that should be fixed in the source, not the documentation!
include std/console.e
clear_screen()
display_text_image({1,1}, {{'A', WHITE, 'B', GREEN},
{'C', RED+16*WHITE},
{'D', BLUE}})
-- displays:
-- AB
-- C
-- D
-- at the top left corner of the screen.
-- 'A' will be white with black (0) background color,
-- 'B' will be green on black,
-- 'C' will be red on white, and
-- 'D' will be blue on black.
-- Below, Unix colors are shown in parens. These only apply to display_text_image, not to background colors, etc.
-- which seem to be correct per the docs.
--0 black
--1 dark blue (red)
--2 green (green)
--3 cyan (yellow)
--4 crimson (dark blue)
--5 purple
--6 brown (green)
--7 light gray
--8 dark gray
--9 blue (red)
--10 bright green
--11 light blue (bright yellow)
--12 red (blue)
--13 magenta
--14 yellow (cyan)
--15 white