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