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
Vue template: '<vue-term></vue-term>'
<!-- insert Vuejs before this -->
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.