X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=server.coffee;h=f79fe33108c099279a42e4d2f9b94350562e6fe1;hb=a8e795159779d8bbb7ae012fe22f7bd8c3aac411;hp=2d008a54bb5bebc7bae2cc6c47679d79974903e5;hpb=39f62411c552700fd78c8f457f6e84dd2fdd8c8d;p=watch-my-terminal.git diff --git a/server.coffee b/server.coffee index 2d008a5..f79fe33 100644 --- a/server.coffee +++ b/server.coffee @@ -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) ->