@@ -31,7 +31,7 @@ Let's start with a dead simple example. We want to send "Hello world" to
31
31
</template>
32
32
33
33
<script>
34
- import VueCommand, { createStdout, textFormatter } from "vue-command";
34
+ import VueCommand, { createStdout } from "vue-command";
35
35
import "vue-command/dist/vue-command.css";
36
36
37
37
export default {
@@ -41,7 +41,7 @@ export default {
41
41
42
42
data: () => ({
43
43
commands: {
44
- "hello-world": () => createStdout(textFormatter( "Hello world") ),
44
+ "hello-world": () => createStdout("Hello world"),
45
45
},
46
46
}),
47
47
};
@@ -59,7 +59,7 @@ switch the terminal into fullscreen mode.
59
59
60
60
``` vue
61
61
<template>
62
- <div v-show="terminal.isFullscreen" style="height: 100%" >
62
+ <div v-show="terminal.isFullscreen">
63
63
<textarea ref="nano" @keyup.ctrl.x.exact="exit">
64
64
This is a nano text editor emulator! Press Ctrl + x to leave.</textarea
65
65
>
@@ -131,6 +131,7 @@ required.
131
131
| ` hide-prompt ` | Hides the prompt | ` Boolean ` | ` false ` | No | No |
132
132
| ` history ` | Terminal history | ` Array ` | ` [] ` | No | Yes |
133
133
| ` history-position ` | Points to the latest dispatched query entry | ` Number ` | ` 0 ` | No | Yes |
134
+ | ` invert ` | Inverts the terminals colors | ` Boolean ` | ` false ` | No | No |
134
135
| ` is-fullscreen ` | Terminal fullscreen mode | ` Boolean ` | ` false ` | No | Yes |
135
136
| ` options-resolver ` | See [ Options resolver] ( #Options-resolver ) | ` Function ` | ` null ` | No | No |
136
137
| ` parser ` | Query parser | ` Function ` | See ` defaultParser ` | No | No |
0 commit comments