From: David Roberts Date: 2006-10-15T06:12:33+09:00 Subject: Re: redirect STDOUT David Roberts wrote: > 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. Oh bother! That should be "win32console". DJ -- Posted via http://www.ruby-forum.com/.