0.3.4 • Published 4 years ago

@evlad/vue-terminal-ui v0.3.4

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

npm version license

Vue terminal UI

gif

Installation

npm install @evlad/vue-terminal-ui

Usage

The list of components that it exports

VueTerminalUI

Here is an example

Template

<vue-terminal-ui
  ref="my-terminal-ui"
  prefix="user@host:"
  @triggerCommand="commandHandler"
/>

Script

import VueTerminalUI from "@evlad/vue-terminal-ui"

export default {
  ...

  methods: {
    commandHandler(command, args) {
      if (command === "write" && args.length > 0) {
        this.$refs["my-terminal-ui"].$emit("write", "\\color:rainbow;" + args.join(" "));
      }
    }
  }
}
0.3.4

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.3

4 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.0

5 years ago