Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > cursesライブラリ > Cursesモジュール > setscrreg

module function Curses.#setscrreg

setscrreg(top, bottom) -> bool

[TODO]

Set a software scrolling region in a window. +top+ and +bottom+ are lines numbers of the margin.

If this option and Curses.scrollok are enabled, an attempt to move off the bottom margin line causes all lines in the scrolling region to scroll one line in the direction of the first line. Only the text of the window is scrolled.

[PARAM] top:
上方向のマージン行数を指定します。
[PARAM] bottom:
下方向のマージン行数を指定します。
module Curses