1. bug put_screen_char()?
- Posted by Salix <salix at f?eem?il.hu> Sep 27, 2007
- 581 views
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
2. Re: bug put_screen_char()?
- Posted by Matt Lewis <matthewwalkerlewis at ?mail.com> Sep 27, 2007
- 549 views
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