yong wrote:
> Hi all
> 
> I'm writting a program to detect the cursor position with the vt100 
> command "\x1b[6n".
> 
> So I need to redirect STDOUT to a string.
> 
> How can I do this?
> 
> Thanks

I suggest looking at the code for the win2console library, which gives 
an example of something similar.


-- 
Posted via http://www.ruby-forum.com/.