|
|
@ -81,10 +81,14 @@ class AsciiIo.TerminalView extends Backbone.View
|
|
|
|
|
|
|
|
|
|
|
|
blinkCursor: ->
|
|
|
|
blinkCursor: ->
|
|
|
|
cursor = @$el.find(".cursor")
|
|
|
|
cursor = @$el.find(".cursor")
|
|
|
|
if cursor.hasClass("inverted")
|
|
|
|
if cursor.hasClass("visible")
|
|
|
|
cursor.removeClass "inverted"
|
|
|
|
cursor.removeClass "visible"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
cursor.addClass "inverted"
|
|
|
|
cursor.addClass "visible"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resetCursorState: ->
|
|
|
|
|
|
|
|
cursor = @$el.find(".cursor")
|
|
|
|
|
|
|
|
cursor.addClass "visible"
|
|
|
|
|
|
|
|
|
|
|
|
startCursorBlink: ->
|
|
|
|
startCursorBlink: ->
|
|
|
|
@cursorTimerId = setInterval(@blinkCursor.bind(this), 500)
|
|
|
|
@cursorTimerId = setInterval(@blinkCursor.bind(this), 500)
|
|
|
@ -96,6 +100,7 @@ class AsciiIo.TerminalView extends Backbone.View
|
|
|
|
|
|
|
|
|
|
|
|
restartCursorBlink: ->
|
|
|
|
restartCursorBlink: ->
|
|
|
|
@stopCursorBlink()
|
|
|
|
@stopCursorBlink()
|
|
|
|
|
|
|
|
@resetCursorState()
|
|
|
|
@startCursorBlink()
|
|
|
|
@startCursorBlink()
|
|
|
|
|
|
|
|
|
|
|
|
visualBell: ->
|
|
|
|
visualBell: ->
|
|
|
|