chore: cleanup Terminal.ts
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user