chore: cleanup Terminal.ts

This commit is contained in:
2026-03-26 11:57:11 +01:00
parent 141204164a
commit 1d54c8b650
2 changed files with 2 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ const init = () => {
(key: string, isCharacter: boolean) => localBroadcaster.emit('keyup', key, isCharacter),
)
const terminal = new Terminal(localBroadcaster)
const terminal = new Terminal()
terminal.LoadShell(new Wush(localBroadcaster, terminal))
}

View File

@@ -1,7 +1,5 @@
import type { Shell } from '../shell/Shell'
import type { EventBroadcaster } from '../utils/EventBroadcaster'
import sqs from '../utils/sqs'
import type { CellContent } from './CellContent'
import type { CursorPosition, CursorStyle } from './CursorProperties'
export class Terminal {
@@ -17,7 +15,7 @@ export class Terminal {
private shell?: Shell
constructor(broadcaster: EventBroadcaster) {
constructor() {
this.terminal = sqs('#terminal')
this.cursor = sqs('#cursor')