chore: fix chrome

This commit is contained in:
2026-04-15 11:40:45 +02:00
parent ea968b8492
commit dc706d6262
10 changed files with 112 additions and 32 deletions

View File

@@ -1,24 +1,13 @@
import { GetCurrentTerminal, WEBSHELL_VERSION } from '../app'
import { Terminal } from '../terminal/Terminal'
import type { SimpleStream } from '../utils/SimpleStream'
import { Program } from './Program'
export class Info extends Program {
async Exec(_: SimpleStream<string>, stdout: SimpleStream<string>, __: string[]): Promise<number> {
const art = `++++++++++++++++++++++++++++++\n++++++++++++++++++++++++++++++\n++++++++++++++++++++++++++++++\n++++++++++++++++++++++++++++++\n++++++++++++++++++++++++++++++\n++++++++++++++++++++++++++++++\n+++++++++++++++++++++;..:+++++\n++++ ++ +++\n++++++++. +++++ +++++++++\n++++++++. +++++: ++++++++\n++++++++. ++++++; ++++\n++++++++. ++++++++++. +++\n++++++++. +++++.++++++ ;++\n++++++++. +++++ +++\n++++++++;...++++++; ;+++++\n++++++++++++++++++++++++++++++`
const modules = [
{ text: "" },
{ text: "" },
{ text: "" },
{ text: "" },
{ text: "" },
]
const lines = art.split("\n")
const padding = Math.floor((lines.length - modules.length) / 2)
lines.forEach((line, i) => {
stdout.emit(`${line}${i + 1 > padding && i + 1 < ? 'hm' : ''}\n`)
})
stdout.emit(`Webshell v${WEBSHELL_VERSION}\n`)
stdout.emit(`Terminal v${Terminal.Version}\n`)
stdout.emit(`Running ${GetCurrentTerminal().GetShell()?.Name} v${GetCurrentTerminal().GetShell()?.Version}\n`)
return 0
}