feat: add neofetch, fix buffer backspacing

This commit is contained in:
2026-03-27 09:20:21 +01:00
parent 91eeb33d9e
commit 83830c7717
2 changed files with 47 additions and 3 deletions

29
src/program/Neofetch.ts Normal file
View File

@@ -0,0 +1,29 @@
import type { SimpleStream } from '../utils/SimpleStream'
import { Program } from './Program'
export class Neofetch extends Program {
async Exec(_: SimpleStream<string>, stdout: SimpleStream<string>, __: string[]): Promise<number> {
const art = `++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++
+++++++++++++++++++++;..:+++++
++++ ++ +++
++++++++. +++++ +++++++++
++++++++. +++++: ++++++++
++++++++. ++++++; ++++
++++++++. ++++++++++. +++
++++++++. +++++.++++++ ;++
++++++++. +++++ +++
++++++++;...++++++; ;+++++
++++++++++++++++++++++++++++++`
art.split("\n").forEach(line => {
stdout.emit(`${line}\n`)
})
return 0
}
}