mirror of
https://github.com/voideditor/void
synced 2026-05-24 01:48:25 +00:00
add terminal
This commit is contained in:
parent
a1bf83b5a6
commit
70fe79c4fe
1 changed files with 4 additions and 1 deletions
|
|
@ -351,8 +351,11 @@ export class TerminalToolService extends Disposable implements ITerminalToolServ
|
|||
result = await this.readTerminal(terminalId)
|
||||
}
|
||||
|
||||
result = removeAnsiEscapeCodes(result)
|
||||
|
||||
|
||||
if (!isPersistent) result = `$ ${command}\n${result}`
|
||||
result = removeAnsiEscapeCodes(result)
|
||||
// trim
|
||||
if (result.length > MAX_TERMINAL_CHARS) {
|
||||
const half = MAX_TERMINAL_CHARS / 2
|
||||
result = result.slice(0, half)
|
||||
|
|
|
|||
Loading…
Reference in a new issue