X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=terminal.coffee;h=3f81daa5a26bf5813629d09a521d4b65c9a0e8ee;hb=0b32a659e5fd1a77e5ec865050f09d1109a4d2be;hp=242d24683cf4e17f86bfa0cdd015700d1827c360;hpb=37d536e72e3e6fa4de536ad916a0a80119f15509;p=watch-my-terminal.git diff --git a/terminal.coffee b/terminal.coffee index 242d246..3f81daa 100644 --- a/terminal.coffee +++ b/terminal.coffee @@ -286,7 +286,7 @@ class Terminal if @saved_normal_screen? log "ignoring request to switch to the alt screen because we're already on the alt screen" return - @saved_normal_screen = [@x, @y, @text, @attributes] + @saved_normal_screen = x: @x, y: @y, text: @text, attributes: @attributes @text = [] @attributes = [] for y in [0...@height] @@ -311,10 +311,10 @@ class Terminal if not @saved_normal_screen? log "ignoring request to switch to the normal screen because we're already on the normal screen" return - @x = @saved_normal_screen[0] - @y = @saved_normal_screen[1] - @text = @saved_normal_screen[2] - @attributes = @saved_normal_screen[3] + @x = @saved_normal_screen.x + @y = @saved_normal_screen.y + @text = @saved_normal_screen.text + @attributes = @saved_normal_screen.attributes @saved_normal_screen = null else log "confusing arg for csiq_l: #{arg}" @@ -479,7 +479,7 @@ class Terminal else @csi_L '1' - # str is the whole escape sequence (minus the esc[ prefix) + # str is the whole escape sequence (minus the esc character) update_sequence: (str) -> if str[0] is '[' prefix = 'csi_'