1. display_text_image
- Posted by irv Sep 07, 2019
- 1147 views
Here's the example program for std/console.e display_text_image():
clear_screen() display_text_image({1,1}, {{'A', WHITE, 'B', GREEN}, {'C', RED+16*WHITE}, {'D', BLUE}})
On Linux with a gnome terminal, the first line with AB does not show at all, the second line is C with black text on white bkgnd, the third line is D in red with black bkgnd.
Anyone want to confirm that this works/fails on other terminals?
2. Re: display_text_image
- Posted by ghaberek (admin) Sep 07, 2019
- 1034 views
Anyone want to confirm that this works/fails on other terminals?
This is what I get on Windows 10.
This is what I get on Linux Mint 19.
-Greg
3. Re: display_text_image
- Posted by irv Sep 07, 2019
- 1046 views
OK, then it must be the gnome terminal (or some setting) since I'm also running Mint 19.
Nope, I've tried several different terminals. I note that the A and B are "there", but displayed with black letters on a black background, regardless of the color scheme the terminal is set to display.
Also, note the difference in colors between Windows and Linux.
4. Re: display_text_image
- Posted by ghaberek (admin) Sep 07, 2019
- 1014 views
Also, note the difference in colors between Windows and Linux.
I'll have to leave that to those of you with good color vision. I can't tell the difference.
-Greg
5. Re: display_text_image
- Posted by irv Sep 07, 2019
- 1022 views
Also, note the difference in colors between Windows and Linux.
I'll have to leave that to those of you with good color vision. I can't tell the difference.
-Greg
Basically, red and blue are swapped. As are yellow and cyan, etc. when you try them.