X-Git-Url: https://jasonwoof.com/gitweb/?p=watch-my-terminal.git;a=blobdiff_plain;f=terminal.coffee;h=19296bf0b028c30159e927836c149756a75b4c24;hp=37d3971b4fba9f787c9169b92bfae71d9d85e5a3;hb=639264f34589d0637860ffbd47d788e03c48c76a;hpb=d9b7866716ffba8f58845b7b864d8a0ee1c3d4b1 diff --git a/terminal.coffee b/terminal.coffee index 37d3971..19296bf 100644 --- a/terminal.coffee +++ b/terminal.coffee @@ -92,11 +92,11 @@ class Terminal when '\x0a', '\x0b' # lf, vertical tab (same thing) @wrap_to_next_line() else + if @x >= @width + @wrap_to_next_line() @text[@y][@x] = c @attributes[@y][@x] = @a @x += 1 - if @x is @width - @wrap_to_next_line() return set_attribute_bits: (mask, value) ->