Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
term.js
Advanced tools
Readme
A full xterm clone written in javascript. Used by tty.js.
Server:
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);
While 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 screenKeys
option) which makes copy and paste very simple. Ctrl-A
enters prefix
mode,
from here you can type Ctrl-V
to paste. Press [
in prefix mode to enter
selection mode. To select text press v
(or space
) to enter visual mode, use
hjkl
to navigate and create a selection, and press Ctrl-C
to copy.
Ctrl-C
(in visual mode) and Ctrl-V
(in prefix mode) should work in any OS
for copy and paste. y
(in visual mode) will work for copying only on X11
systems. It will copy to the primary selection.
Note: Ctrl-C
will also work in prefix mode for the regular OS/browser
selection. If you want to select text with your mouse and copy it to the
clipboard, simply select the text and type Ctrl-A + Ctrl-C
, and
Ctrl-A + Ctrl-V
to paste it.
For mac users: consider Ctrl
to be Command/Apple
above.
If 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. </legalese>
Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
FAQs
A terminal written in javascript
The npm package term.js receives a total of 342 weekly downloads. As such, term.js popularity was classified as not popular.
We found that term.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.