JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
run.sh: complain if not passed width/height
[watch-my-terminal.git] / server.coffee
index 2d008a5..f79fe33 100644 (file)
@@ -1,8 +1,13 @@
 # SETTINGS
-term_lines = 34
-term_columns = 104
+term_columns = 97
+term_lines = 63
 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) ->