1. display_text_image

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?

new topic     » topic index » view message » categorize

2. Re: display_text_image

irv said...

Anyone want to confirm that this works/fails on other terminals?

This is what I get on Windows 10.

https://i.imgur.com/NqG9hDj.png

This is what I get on Linux Mint 19.

https://i.imgur.com/nsdga6V.png

-Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: display_text_image

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: display_text_image

irv said...

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: display_text_image

ghaberek said...
irv said...

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.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu