lib/kittikrb/cursor.rb
# Erase the specified region.
# The region describes the rectangle shape which need to erase.
Erase the specified region.
The region describes the rectangle shape which need to erase.
Erase the specified region . The region describes the rectangle shape which need to erase .
def erase(x1, y1, x2, y2)
        y1.floor.upto(y2.floor) do |y|
          x1.floor.upto(x2.floor) do |x|
            @buffer[get_pointer_from_xy(x, y)] = self.class.wrap " ", {x: x,
                                                                       y: y}
          end
        end
        self
      end
def erase ( x1 , y1 , x2 , y2 ) y1 . floor . upto ( y2 . floor ) do | y | x1 . floor . upto ( x2 . floor ) do | x | @buffer [ get_pointer_from_xy ( x , y ) ] = self . class . wrap " " , { x : x , y : y } end end self end
Erase the specified region.
Erase the specified region .
x1
<not_specific>
y1
<not_specific>
x2
<not_specific>
y2
<not_specific>