mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Clear scrollback as well as viewport
This commit is contained in:
@ -36,7 +36,7 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
}));
|
||||
|
||||
context.subscriptions.push(vscode.commands.registerCommand('extensionTerminalSample.clear', () => {
|
||||
writeEmitter.fire('\x1b[2J\x1b[;H');
|
||||
writeEmitter.fire('\x1b[2J\x1b[3J\x1b[;H');
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user