chore: fix chrome
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user