"Plural, not singular"

openid
Marcin Kulik 12 years ago
parent 7e3120a4dd
commit f3775cdf3a

@ -193,9 +193,9 @@ class AsciiIo.AnsiInterpreter
else else
@cb 'eraseToRowEnd' @cb 'eraseToRowEnd'
when "L" when "L"
@cb 'insertLine', n or 1 @cb 'insertLines', n or 1
when "M" when "M"
@cb 'deleteLine', n or 1 @cb 'deleteLines', n or 1
when "P" # DCH - Delete Character, from current position to end of field when "P" # DCH - Delete Character, from current position to end of field
@cb 'deleteCharacters', n or 1 @cb 'deleteCharacters', n or 1
when "S" when "S"

@ -258,12 +258,12 @@ class AsciiIo.ScreenBuffer
@cursorY >= @topMargin() and @cursorY <= @bottomMargin() @cursorY >= @topMargin() and @cursorY <= @bottomMargin()
scrollUp: (n = 1) -> scrollUp: (n = 1) ->
@insertLine n, @topMargin() @insertLines n, @topMargin()
scrollDown: (n = 1) -> scrollDown: (n = 1) ->
@deleteLine n, @topMargin() @deleteLines n, @topMargin()
insertLine: (n, l = @cursorY) -> insertLines: (n, l = @cursorY) ->
return unless @inScrollRegion() return unless @inScrollRegion()
i = 0 i = 0
@ -274,7 +274,7 @@ class AsciiIo.ScreenBuffer
@updateLines(l, @bottomMargin()) @updateLines(l, @bottomMargin())
deleteLine: (n, l = @cursorY) -> deleteLines: (n, l = @cursorY) ->
return unless @inScrollRegion() return unless @inScrollRegion()
i = 0 i = 0

@ -191,10 +191,10 @@ class AsciiIo.VT
eraseToRowEnd: -> eraseToRowEnd: ->
@buffer.eraseToRowEnd() @buffer.eraseToRowEnd()
insertLine: (n) -> insertLines: (n) ->
@buffer.insertLine n @buffer.insertLine n
deleteLine: (n) -> deleteLines: (n) ->
@buffer.deleteLine n @buffer.deleteLine n
deleteCharacters: (n) -> deleteCharacters: (n) ->

Loading…
Cancel
Save