JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
wrap lines in <code>s not <divs>
authorJason Woofenden <jason@jasonwoof.com>
Fri, 1 Feb 2013 05:40:38 +0000 (00:40 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Fri, 1 Feb 2013 05:40:38 +0000 (00:40 -0500)
Fennec (firefox) on android still doesn't do monospace

client.coffee
index.html
server.coffee

index 282b742..b69dad1 100644 (file)
@@ -101,7 +101,7 @@ $ ->
                if term.cursor_visible
                        term.attributes[term.y][cursor_x] ^= 0x080000
                for i in [0...term.text.length]
                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]
                        txt = ''
                        a = 0x000007
                        for j in [0...term.text[i].length]
index ef33901..010e0cf 100644 (file)
@@ -14,7 +14,8 @@
                        padding: 0;
                        margin: 0;
                }
                        padding: 0;
                        margin: 0;
                }
-               body div {
+               body code {
+                       display: block;
                        white-space: pre;
                }
        </style>
                        white-space: pre;
                }
        </style>
index 5beaa97..adf1d55 100644 (file)
@@ -37,7 +37,7 @@ terminal = require('./terminal.coffee')
 
 # SETTINGS
 app.listen(2218)
 
 # SETTINGS
 app.listen(2218)
-term = terminal.new(104, 66)
+term = terminal.new(104, 34)
 
 sockets = []
 
 
 sockets = []