chore: cleanup Terminal.ts
This commit is contained in:
@@ -13,7 +13,7 @@ const init = () => {
|
|||||||
(key: string, isCharacter: boolean) => localBroadcaster.emit('keyup', key, isCharacter),
|
(key: string, isCharacter: boolean) => localBroadcaster.emit('keyup', key, isCharacter),
|
||||||
)
|
)
|
||||||
|
|
||||||
const terminal = new Terminal(localBroadcaster)
|
const terminal = new Terminal()
|
||||||
terminal.LoadShell(new Wush(localBroadcaster, terminal))
|
terminal.LoadShell(new Wush(localBroadcaster, terminal))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import type { Shell } from '../shell/Shell'
|
import type { Shell } from '../shell/Shell'
|
||||||
import type { EventBroadcaster } from '../utils/EventBroadcaster'
|
|
||||||
import sqs from '../utils/sqs'
|
import sqs from '../utils/sqs'
|
||||||
import type { CellContent } from './CellContent'
|
|
||||||
import type { CursorPosition, CursorStyle } from './CursorProperties'
|
import type { CursorPosition, CursorStyle } from './CursorProperties'
|
||||||
|
|
||||||
export class Terminal {
|
export class Terminal {
|
||||||
@@ -17,7 +15,7 @@ export class Terminal {
|
|||||||
|
|
||||||
private shell?: Shell
|
private shell?: Shell
|
||||||
|
|
||||||
constructor(broadcaster: EventBroadcaster) {
|
constructor() {
|
||||||
this.terminal = sqs('#terminal')
|
this.terminal = sqs('#terminal')
|
||||||
this.cursor = sqs('#cursor')
|
this.cursor = sqs('#cursor')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user