JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
bump version number to 1.0
[watch-my-terminal.git] / client.coffee
index e5615af..b69dad1 100644 (file)
@@ -77,8 +77,8 @@ $ ->
                return 'background-' + color_to_css(i ^ 0x080000)
 
        stylize = (txt, style) ->
-               if (txt.length == 0 or style == 0x000007)
-                       return txt
+               return '' if txt.length is 0
+               return $('<span>').text txt if style is 0x000007
                css = ''
                css += 'font-weight: bold; ' if style & 0x010000
                css += 'text-decoration: underline; ' if style & 0x020000
@@ -101,7 +101,7 @@ $ ->
                if term.cursor_visible
                        term.attributes[term.y][cursor_x] ^= 0x080000
                for i in [0...term.text.length]
-                       div = $('<div>')
+                       div = $('<code>')
                        txt = ''
                        a = 0x000007
                        for j in [0...term.text[i].length]