BasicObject
# File curses/rain.rb, line 7
def onsig(sig)
close_screen
exit sig
end
# File curses/view2.rb, line 57
def scroll_down
if( $top + $screen.maxy < $data_lines.length )
$screen.scrl(1)
$top += 1
str = $data_lines[$top + $screen.maxy - 1]
if( str )
$screen.setpos($screen.maxy - 1, 0)
$screen.addstr(str)
end
return true
else
return false
end
end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please see Improve the docs, or visit Documenting-ruby.org.