[REBOL] Re: Console size...
From: johan::forsberg::6117::student::uu::se at: 26-Sep-2000 12:54
Hello Malte,
On 26-Sep-00, [multimalte--theinbox--org] wrote:
> Escape code for retrieving console-size doesn't work anymore does
> it? So, is there an alternate way of getting those values except
> waiting for input from the console port? (Which seems to be waiting
> in vain as of now..)
I had the same problem, but isolated it to my using 'copy on the
console port to retrieve the result. 'read-io worked better, but
'copy started working again when I added the /no-wait switch to
'open. I don't think this refinement was there before, perhaps the
behaviour of 'open has changed recently? I seem to remember that
using 'read-io is discouraged by RT, so that way is probably better.
> Specifying on which x and y values to print still work, but is quite
> unuseful without the knowledge of the console's size..
I don't think the colsope port's behaviour has changed, my old
scripts work again using /no-wait on 'open, anyway.
--
Johan Forsberg