feat: add neofetch, fix buffer backspacing
This commit is contained in:
29
src/program/Neofetch.ts
Normal file
29
src/program/Neofetch.ts
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user