1. bug put_screen_char()?

Following the example in the lib_e_g.htm I created a file with this content.

include image.e

? video_config()
-- returns {1,3,25,80,0,0,32,1}

sequence s
-- read character and attributes at top left corner
s = get_screen_char(1,1) 
-- store character and attributes at line 25, column 10
put_screen_char(25, 10, {s})


Whenever I run it by exw.exe (Win XP) I got the error message:
"...\include\image.e:346 in procedure put_screen_char()
third argument to put_screen_char() must be a sequence of even length"

Is it supposed to be like this? {:-.

Regards,

Salix

new topic     » topic index » view message » categorize

2. Re: bug put_screen_char()?

Salix wrote:
> 
> Following the example in the lib_e_g.htm I created a file with this content.
> 
> }}}
<eucode>
> include image.e
> 
> ? video_config()
> -- returns {1,3,25,80,0,0,32,1}
> 
> sequence s
> -- read character and attributes at top left corner
> s = get_screen_char(1,1) 
> -- store character and attributes at line 25, column 10
> put_screen_char(25, 10, {s})
> </eucode>
{{{

> 
> Whenever I run it by exw.exe (Win XP) I got the error message:
> "...\include\image.e:346 in procedure put_screen_char()
> third argument to put_screen_char() must be a sequence of even length"
> 
> Is it supposed to be like this? {:-.

The example in the docs is wrong.  It should be:
put_screen_char(25, 10, s)


Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu