X-Git-Url: https://jasonwoof.com/gitweb/?p=watch-my-terminal.git;a=blobdiff_plain;f=terminal.coffee;h=174c005bc4ffe1a705e0cf0d575c072af263c87a;hp=242d24683cf4e17f86bfa0cdd015700d1827c360;hb=55d03d755b1b783e32faa32bf0a4d59260660184;hpb=37d536e72e3e6fa4de536ad916a0a80119f15509 diff --git a/terminal.coffee b/terminal.coffee index 242d246..174c005 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}"