Hi Paul, hi Tom,

thanks for your hints. :)
The ncurses solution didn't work, WINDOW method isn't known.
But no problem, I'm glad about every idea. :)

In the meanwhile I've solved the problem by using `stty`.

===---===---===---===---===---===
#!/usr/bin/ruby -w
c = `stty size`.chomp
c =~ /\s/
lines, columns = $`, $'
===---===---===---===---===---===

Frank

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