mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-06-05 03:49:41 +00:00
Minor fixes commited from wsterm :)
This commit is contained in:
@@ -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...')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
2
serve.py
2
serve.py
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user