this is a demo application for child_pty and terminal.js.
npm install
npm start
Then point your browser to http://127.0.0.1:3000
simple demo application for child_pty and terminal.js.
this is a demo application for child_pty and terminal.js.
npm install
npm start
Then point your browser to http://127.0.0.1:3000
There is an error on Mac OS X 10.10.3:
$ sudo npm install
....
[email protected] install ~/www/node-webterm/node_modules/child_pty
node-gyp rebuildCXX(target) Release/obj.target/exechelper/src/exechelper.o
LINK(target) Release/exechelper
LINK(target) Release/exechelper: Finished
CXX(target) Release/obj.target/pty/src/pty.o
../src/pty.cpp:51:5: error: use of undeclared identifier 'openpty'
if(openpty(&master, &slave, NULL, NULL, &w) < 0)
^
1 error generated.
make: *** [Release/obj.target/pty/src/pty.o] Error 1
.....
-removed-
happens when a character is typed. I suspect it's due some bug in browserify but let's ensure it.
Hi,
Greate work by the way....
CLI doesn't seem to show up on IE9?
When I start server and open page in Chrome v41.0.2253.2
, I see nothing but black square.
Here is server log:
> [email protected] start /home/coderaiser/tmp/node-webterm
> DEBUG='*' node app.js
socket.io:server initializing namespace / +0ms
socket.io:server creating engine.io instance with opts {"path":"/socket.io"} +6ms
socket.io:server attaching client serving req handler +6ms
socket.io:server initializing namespace /pty +1ms
Listening on 0.0.0.0:3000
/
socket.io:server serve client source +2s
/socket.io-stream.js
/terminal.js
engine intercepting request for path "/socket.io/" +0ms
engine handling "GET" http request "/socket.io/?EIO=3&transport=polling&t=1422028669245-0" +1ms
engine handshaking client "--Y6_Pq4k8l_UgpzAAAA" +4ms
engine:socket sending packet "open" ({"sid":"--Y6_Pq4k8l_UgpzAAAA","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000}) +1ms
engine:polling setting request +1ms
engine:socket flushing buffer to transport +1ms
engine:polling writing " �0{"sid":"--Y6_Pq4k8l_UgpzAAAA","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000}" +1ms
engine:socket executing batch send callback +2ms
socket.io:server incoming connection with id --Y6_Pq4k8l_UgpzAAAA +873ms
socket.io:client connecting to namespace / +1ms
socket.io:namespace adding socket to nsp / +0ms
socket.io:socket socket connected - writing packet +2ms
socket.io:socket joining room --Y6_Pq4k8l_UgpzAAAA +0ms
socket.io:client writing packet {"type":0,"nsp":"/"} +0ms
socket.io-parser encoding packet {"type":0,"nsp":"/"} +0ms
socket.io-parser encoded {"type":0,"nsp":"/"} as 0 +0ms
engine:socket sending packet "message" (0) +4ms
socket.io:socket joined room --Y6_Pq4k8l_UgpzAAAA +2ms
engine intercepting request for path "/socket.io/" +52ms
engine handling "GET" http request "/socket.io/?EIO=3&transport=polling&t=1422028669314-1&sid=--Y6_Pq4k8l_UgpzAAAA" +0ms
engine setting new request for existing client +1ms
engine:polling setting request +0ms
engine:socket flushing buffer to transport +0ms
engine:polling writing "�40" +1ms
engine:socket executing batch send callback +0ms
engine intercepting request for path "/socket.io/" +58ms
engine handling "POST" http request "/socket.io/?EIO=3&transport=polling&t=1422028669369-2&sid=--Y6_Pq4k8l_UgpzAAAA" +0ms
engine setting new request for existing client +0ms
engine:polling received "91:42["$stream","new",[0],"813e6a06-8341-4115-8011-04552110f297",{"columns":"80","rows":"24"}]" +2ms
engine:socket packet +2ms
socket.io-parser decoded 2["$stream","new",[0],"813e6a06-8341-4115-8011-04552110f297",{"columns":"80","rows":"24"}] as {"type":2,"nsp":"/","data":["$stream","new",[0],"813e6a06-8341-4115-8011-04552110f297",{"columns":"80","rows":"24"}]} +117ms
socket.io:socket got packet {"type":2,"nsp":"/","data":["$stream","new",[0],"813e6a06-8341-4115-8011-04552110f297",{"columns":"80","rows":"24"}]} +117ms
socket.io:socket emitting event ["$stream","new",[0],"813e6a06-8341-4115-8011-04552110f297",{"columns":"80","rows":"24"}] +0ms
engine intercepting request for path "/socket.io/" +3ms
engine handling "GET" http request "/socket.io/?EIO=3&transport=polling&t=1422028669375-3&sid=--Y6_Pq4k8l_UgpzAAAA" +0ms
engine setting new request for existing client +0ms
engine:polling setting request +1ms
engine intercepting request for path "/socket.io/" +52ms
engine handling "POST" http request "/socket.io/?EIO=3&transport=polling&t=1422028669432-4&sid=--Y6_Pq4k8l_UgpzAAAA" +1ms
engine setting new request for existing client +0ms
engine:polling received "63:42["$stream-read","813e6a06-8341-4115-8011-04552110f297",16384]" +1ms
engine:socket packet +1ms
socket.io-parser decoded 2["$stream-read","813e6a06-8341-4115-8011-04552110f297",16384] as {"type":2,"nsp":"/","data":["$stream-read","813e6a06-8341-4115-8011-04552110f297",16384]} +59ms
socket.io:socket got packet {"type":2,"nsp":"/","data":["$stream-read","813e6a06-8341-4115-8011-04552110f297",16384]} +58ms
socket.io:socket emitting event ["$stream-read","813e6a06-8341-4115-8011-04552110f297",16384] +1ms
engine upgrading existing transport +379ms
engine:socket might upgrade socket transport from "polling" to "websocket" +2ms
engine:ws received "2probe" +43ms
engine:ws writing "3probe" +1ms
engine:socket writing a noop packet to polling for fast upgrade +104ms
engine:polling writing "�6" +0ms
engine:ws received "5" +57ms
engine:socket got upgrade packet - upgrading +1ms
engine:ws received "2" +24s
engine:socket packet +1ms
engine:socket got ping +1ms
engine:socket sending packet "pong" (undefined) +0ms
engine:socket flushing buffer to transport +0ms
engine:ws writing "3" +1ms
engine:ws received "2" +25s
engine:socket packet +1ms
engine:socket got ping +1ms
engine:socket sending packet "pong" (undefined) +0ms
engine:socket flushing buffer to transport +1ms
engine:ws writing "3" +0ms
Can't find file terminal.js
:
/terminal.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: ENOENT, open '/home/coderaiser/tmp/node-webterm/node_modules/terminal.js/dist/terminal.js'
terminal.js have no dist
folder.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.