You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
286 B
CoffeeScript
23 lines
286 B
CoffeeScript
13 years ago
|
class AsciiIo.ScrollRegion
|
||
|
|
||
|
constructor: (@top, @bottom) ->
|
||
|
|
||
|
setTop: (@top) ->
|
||
|
|
||
|
setBottom: (@bottom) ->
|
||
|
|
||
|
getTop: ->
|
||
|
@top
|
||
|
|
||
|
getBottom: ->
|
||
|
@bottom
|
||
|
|
||
|
save: ->
|
||
|
@savedTop = @top
|
||
|
@savedBottom = @bottom
|
||
|
|
||
|
restore: ->
|
||
|
@top = @savedTop
|
||
|
@bottom = @savedBottom
|
||
|
|