feat: streams, 'clear' command

This commit is contained in:
2026-03-26 21:05:35 +01:00
parent 686abeafb4
commit 21a1a34309
7 changed files with 173 additions and 11 deletions

7
src/program/clear.ts Normal file
View File

@@ -0,0 +1,7 @@
import type { SimpleStream } from '../utils/SimpleStream'
export const ClearExec = async (stdin: SimpleStream<string>, stdout: SimpleStream<string>): Promise<number> => {
stdout.emit("\f")
return 0
}