Cursor position in text mode

How do u set cursor position in text mode windows terminal?
I've tried this

require 'curses'
    Curses.setpos(6, 3) # column 6, row 3
    print "O"

and it sais this:

D:\programming\Ruby193\bin\ruby.exe -e
$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)
D:/programming/made_apps/programs/1st.rb

Redirection is not supported.

Process finished with exit code 1

···

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