Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
watch-my-terminal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run.sh: complain if not passed width/height
[watch-my-terminal.git]
/
server.coffee
diff --git
a/server.coffee
b/server.coffee
index
f1e208a
..
f79fe33
100644
(file)
--- a/
server.coffee
+++ b/
server.coffee
@@
-1,8
+1,13
@@
# SETTINGS
# SETTINGS
-term_lines = 32
-term_columns = 104
+term_columns = 97
+term_lines = 63
http_port = 2218
http_port = 2218
+if process.argv.length > 2
+ term_columns = parseInt process.argv[2]
+if process.argv.length > 3
+ term_lines = parseInt process.argv[3]
+
handler = (req, res) ->
reply_err = (req, res, msg) ->
handler = (req, res) ->
reply_err = (req, res, msg) ->
@@
-18,6
+23,9
@@
handler = (req, res) ->
when '/terminal.js'
filename = __dirname + '/terminal.coffee'
type = 'text/javascript'
when '/terminal.js'
filename = __dirname + '/terminal.coffee'
type = 'text/javascript'
+ when '/htmlterm.js'
+ filename = __dirname + '/htmlterm.coffee'
+ type = 'text/javascript'
when '/client.js'
filename = __dirname + '/client.coffee'
type = 'text/javascript'
when '/client.js'
filename = __dirname + '/client.coffee'
type = 'text/javascript'