diff --git a/src/shell.js b/src/shell.js index 7fa3bf2..08b14cb 100644 --- a/src/shell.js +++ b/src/shell.js @@ -179,4 +179,12 @@ export default class Shell extends Base { return results.flat(Infinity) } + + // Clear the terminal + clear () { + console.clear() + // .write('\x1b[0f') // regular clear + // .write('\x1b[2J') // full clear + // .write('\033[0;0f') //ubuntu + } }