New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vue-term

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-term

xtermjs + vuejs

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

vue-term

xtermjs + Vue.js

Installation

Yarn:

$ yarn add vue-term

For developer

$ git clone https://github.com/gwangyi/vue-term
$ cd vue-term
$ yarn
$ yarn build

How to use

import Vue
import VueTerm from 'vue-term'

Vue.use(VueTerm)

new Vue({ template: '<vue-term></vue-term>' }).$mount('#app')
<!-- insert Vuejs before this -->
<script src="https://unpkg.com/vue-term/dist/vue-term.web.min.js"></script>
<div id="app">
<vue-term ref="term"></vue-term>
</div>
<script>
var app = new Vue()
app.$mount('#app')
app.$refs.term.$stream.pipe(app.$refs.term.$stream)
</script>

Properties

See Terminal.ts in xterm.js

buffer synchronized property is used to keep buffer between destruction and re-creation of component.

cols and rows also synchronized property.

Events

update:title is emitted when title is changed.

blur and focus event are emitted when corresponding event is occurred.

link event is emitted when linkified hypertext link is clicked. There's no default action for this event.

Methods

fit() method fits the terminal to parent node.

FAQs

Package last updated on 05 Feb 2018

Did you know?

Socket

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.

Install

Related posts