feat: add some utilities
This commit is contained in:
10
src/program/Clear.ts
Normal file
10
src/program/Clear.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { SimpleStream } from '../utils/SimpleStream'
|
||||
import { Program } from './Program'
|
||||
|
||||
export class Clear extends Program {
|
||||
async Exec(_: SimpleStream<string>, stdout: SimpleStream<string>, __: string[]): Promise<number> {
|
||||
stdout.emit('\f')
|
||||
|
||||
return 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user