15 lines
No EOL
322 B
TypeScript
15 lines
No EOL
322 B
TypeScript
import { Command, ExecuteParams } from "../command";
|
|
|
|
export const clear = new Command()
|
|
.setManual({
|
|
purpose: "Clear terminal screen",
|
|
})
|
|
.setExecute(function(args, params) {
|
|
const { pushHistory } = params as ExecuteParams;
|
|
pushHistory?.({
|
|
clear: true,
|
|
isInput: false
|
|
});
|
|
|
|
return { blank: true };
|
|
}); |