repo.or.cz
/
factor
/
jcg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove math.blas.syntax and merge parsing words into math.blas.vectors/matrices
[factor/jcg.git]
/
extra
/
tty-server
/
tty-server.factor
blob
4ba38ad06a7d669d3d8e0a87208e02036e36b475
1
USING: listener io.servers.connection io.encodings.utf8
2
accessors kernel ;
3
IN: tty-server
4
5
: <tty-server> ( port -- )
6
<threaded-server>
7
"tty-server" >>name
8
utf8 >>encoding
9
swap local-server >>insecure
10
[ listener ] >>handler
11
start-server ;
12
13
: tty-server ( -- ) 9999 <tty-server> ;
14
15
MAIN: tty-server