Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
watch-my-terminal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad7cec9
)
move settings to the top of server.coffee
author
Jason Woofenden
<jason@jasonwoof.com>
Fri, 1 Feb 2013 07:14:01 +0000
(
02:14
-0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Fri, 1 Feb 2013 07:14:01 +0000
(
02:14
-0500)
server.coffee
patch
|
blob
|
history
diff --git
a/server.coffee
b/server.coffee
index
adf1d55
..
f1e208a
100644
(file)
--- a/
server.coffee
+++ b/
server.coffee
@@
-1,3
+1,9
@@
+# SETTINGS
+term_lines = 32
+term_columns = 104
+http_port = 2218
+
+
handler = (req, res) ->
reply_err = (req, res, msg) ->
res.writeHead(200, 'Content-Type': 'text/plain')
@@
-35,9
+41,8
@@
io = require('socket.io').listen(app)
fs = require('fs')
terminal = require('./terminal.coffee')
-# SETTINGS
-app.listen(2218)
-term = terminal.new(104, 34)
+app.listen(http_port)
+term = terminal.new(term_columns, term_lines)
sockets = []