diff options
Diffstat (limited to 'js/lex.js')
| -rw-r--r-- | js/lex.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -31,12 +31,19 @@ Lex.prototype.irc = function(){ } } Lex.prototype.clone = function (lex){ - if (! erasing && lex.isClear()) return + if (lex.isClear()) return this.fg = lex.fg this.bg = lex.bg this.char = lex.char this.build() } +Lex.prototype.erase = function (lex){ + if (lex.isClear()) return + this.fg = colors.white + this.bg = colors.black + this.char = " " + this.build() +} Lex.prototype.fill = function(fg,bg){ this.fg = fg this.bg = bg |
