This commit is contained in:
Christopher Jeffrey
2013-08-08 09:27:30 -05:00
parent 6cc8b3cd8a
commit 14248234d4
5 changed files with 25 additions and 5 deletions
+5 -2
View File
@@ -10,6 +10,7 @@ Server:
``` js
var term = require('term.js');
express.use(term.middleware());
...
```
Client:
@@ -27,6 +28,10 @@ window.addEventListener('load', function() {
console.log(data);
});
term.on('title', function(title) {
console.log('New title: ' + title);
});
term.write('\x1b[41hello world\x1b[m');
}, false);
```
@@ -34,5 +39,3 @@ window.addEventListener('load', function() {
## License
Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
[1]: http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#Mouse%20Tracking