From: Jason Woofenden Date: Thu, 31 Jan 2013 04:21:42 +0000 (-0500) Subject: make csi_K (clear characters) inclusive always X-Git-Tag: v1.0~27 X-Git-Url: https://jasonwoof.com/gitweb/?p=watch-my-terminal.git;a=commitdiff_plain;h=f98881c2a5954799212ae89965f0886b7c2ad217 make csi_K (clear characters) inclusive always --- diff --git a/terminal.coffee b/terminal.coffee index abc006a..3c8c9a9 100644 --- a/terminal.coffee +++ b/terminal.coffee @@ -161,7 +161,7 @@ class Terminal @text[@y][i] = ' ' @attributes[@y][i] = @a when '1' # erase to left - for i in [0...@x] + for i in [0..@x] @text[@y][i] = ' ' @attributes[@y][i] = @a when '2' # erase whole line