feat: add some utilities

This commit is contained in:
2026-03-26 22:33:04 +01:00
parent 21a1a34309
commit 983cf59476
10 changed files with 119 additions and 27 deletions

10
src/program/Clear.ts Normal file
View 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
}
}