Minor fixes commited from wsterm :)

This commit is contained in:
Florian Mounier
2014-01-16 18:28:48 +01:00
parent 18e12d61a0
commit 526b6c23fc
5 changed files with 14 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ class TermWebSocket(Route, tornado.websocket.WebSocketHandler):
env["TERM"] = "xterm"
env["COLORTERM"] = "wsterm"
command = os.getenv('SHELL')
env["SHELL"] = command[0]
env["SHELL"] = command
p = Popen(command, env=env)
p.wait()
self.log.info('Exiting...')

View File

@@ -11,7 +11,7 @@ $ ->
screenKeys: true
)
term.on "data", (data) ->
ws.send 'SH|' + data
ws.send 'SH|' + data
term.on "title", (title) ->
document.title = title

View File

@@ -15,6 +15,10 @@ body
.terminal
/* margin: .5em
flex: 1
font-family: monospace
font-family: 'Droid Sans Mono', monospace
outline: none
color: $fg
.terminal-cursor
color: $bg
background-color: $fg

View File

@@ -17,7 +17,12 @@ body main {
body main .terminal {
/* margin: .5em */
flex: 1;
font-family: monospace;
font-family: "Droid Sans Mono", monospace;
outline: none;
color: #cccccc;
}
/* line 22, ../sass/main.sass */
body main .terminal-cursor {
color: #222222;
background-color: #cccccc;
}

View File

@@ -10,7 +10,7 @@ import tornado.options
import tornado.ioloop
tornado.options.define("secret", default='secret', help="Secret")
tornado.options.define("debug", default=True, help="Debug mode")
tornado.options.define("debug", default=False, help="Debug mode")
tornado.options.define("host", default='wsterm.l', help="Server host")
tornado.options.define("port", default=11112, type=int, help="Server port")