X-Git-Url: https://jasonwoof.com/gitweb/?p=watch-my-terminal.git;a=blobdiff_plain;f=terminal.coffee;h=e9cf54046ceadf1627e714c8b0dcf5da49196616;hp=7f80a76d2e548f61257d5e4004c1de59d0f02c90;hb=99c236235ea97b892efd200506f7c20463a5be46;hpb=50a84f79b9bf74674a4191db9ae771c63385cd17 diff --git a/terminal.coffee b/terminal.coffee index 7f80a76..e9cf540 100644 --- a/terminal.coffee +++ b/terminal.coffee @@ -16,7 +16,7 @@ class Terminal @attributes = [] @x = 0 @y = 0 - @a = 0 # cursor attributes + @a = 0x000007 # cursor attributes @partial = '' @resize width, height @@ -113,7 +113,7 @@ class Terminal # remove all style/color when '' # leading zeros are removed (even if that's all of them) - @set_attribute_bits 0xffffff, 0 + @set_attribute_bits 0xffffff, 0x000007 # style attributes when '1' # bold @@ -137,6 +137,9 @@ class Terminal when '28' # not invisible @set_attribute_bits 0x80000, 0 + when '100' # reset colors but not other attributes + @set_attribute_bits 0xffff, 0x0007 + # 8 fg colors when '30' # fg black @set_attribute_bits 0xff, 0x00