diff --git a/src/app.ts b/src/app.ts index b0722b7..233333e 100644 --- a/src/app.ts +++ b/src/app.ts @@ -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)) } diff --git a/src/terminal/Terminal.ts b/src/terminal/Terminal.ts index dee6cb8..e56c279 100644 --- a/src/terminal/Terminal.ts +++ b/src/terminal/Terminal.ts @@ -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')