sync: wip changes

This commit is contained in:
2026-03-24 13:58:59 +01:00
parent 6cc4837a8e
commit 475ba9d8ab
10 changed files with 227 additions and 21 deletions

View File

@@ -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()