X-Git-Url: https://jasonwoof.com/gitweb/?p=watch-my-terminal.git;a=blobdiff_plain;f=server.coffee;h=f79fe33108c099279a42e4d2f9b94350562e6fe1;hp=5a20e97ecfa101c443484a33d0fcf555ebf8e013;hb=HEAD;hpb=9c8a049528fc2d75883a76581635335ed98956a6 diff --git a/server.coffee b/server.coffee index 5a20e97..f79fe33 100644 --- a/server.coffee +++ b/server.coffee @@ -1,8 +1,13 @@ # SETTINGS -term_lines = 32 -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) ->