在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:chjj/term.js开源软件地址:https://github.com/chjj/term.js开源编程语言:JavaScript 98.5%开源软件介绍:term.jsA full xterm clone written in javascript. Used by tty.js. ExampleServer: var term = require('term.js');
app.use(term.middleware());
... Client: window.addEventListener('load', function() {
var socket = io.connect();
socket.on('connect', function() {
var term = new Terminal({
cols: 80,
rows: 24,
screenKeys: true
});
term.on('data', function(data) {
socket.emit('data', data);
});
term.on('title', function(title) {
document.title = title;
});
term.open(document.body);
term.write('\x1b[31mWelcome to term.js!\x1b[m\r\n');
socket.on('data', function(data) {
term.write(data);
});
socket.on('disconnect', function() {
term.destroy();
});
});
}, false); Tmux-likeWhile term.js has always supported copy/paste using the mouse, it now also supports several keyboard based solutions for copy/paste. term.js includes a tmux-like selection mode (enabled with the
Note: For mac users: consider Contribution and License AgreementIf you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. LicenseCopyright (c) 2012-2013, Christopher Jeffrey (MIT License) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论