fix: filter ANSI color for shell (#2529)
* feat: filter ANSI color for shell * chore: fix formatting --------- Co-authored-by: Oleg Lobanov <oleg.lobanov@bitvavo.com>pull/2559/head
parent
c2f1423c02
commit
9bcfa900f9
|
@ -113,7 +113,10 @@ export default {
|
||||||
this.scroll();
|
this.scroll();
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
results.text = results.text.trimEnd();
|
results.text = results.text
|
||||||
|
// eslint-disable-next-line no-control-regex
|
||||||
|
.replace(/\u001b\[[0-9;]+m/g, "") // Filter ANSI color for now
|
||||||
|
.trimEnd();
|
||||||
this.canInput = true;
|
this.canInput = true;
|
||||||
this.$refs.input.focus();
|
this.$refs.input.focus();
|
||||||
this.scroll();
|
this.scroll();
|
||||||
|
|
Loading…
Reference in New Issue