sync: wip changes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { CreateKeyboardListeners } from './input/keyboard'
|
||||
import { Wush } from './shell/Wush'
|
||||
import { Terminal } from './terminal/Terminal'
|
||||
import { EventBroadcaster } from './utils/EventBroadcaster'
|
||||
|
||||
@@ -8,11 +9,12 @@ const init = () => {
|
||||
|
||||
// creates keyboard listeners for the local event broadcaster
|
||||
CreateKeyboardListeners(
|
||||
(key: string) => localBroadcaster.emit('keydown', key),
|
||||
(key: string) => localBroadcaster.emit('keyup', key),
|
||||
(key: string, isCharacter: boolean) => localBroadcaster.emit('keydown', key, isCharacter),
|
||||
(key: string, isCharacter: boolean) => localBroadcaster.emit('keyup', key, isCharacter),
|
||||
)
|
||||
|
||||
const terminal = new Terminal()
|
||||
const terminal = new Terminal(localBroadcaster)
|
||||
terminal.LoadShell(new Wush(localBroadcaster, terminal))
|
||||
}
|
||||
|
||||
init()
|
||||
|
||||
Reference in New Issue
Block a user