feat: basic terminal printing

This commit is contained in:
2026-03-23 23:42:24 +01:00
parent 64717cc652
commit 6cc4837a8e
9 changed files with 176 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
import { CreateKeyboardListeners } from './input/keyboard'
import { Terminal } from './terminal/Terminal'
import { EventBroadcaster } from './utils/EventBroadcaster'
// Initializes the app
const init = () => {
const localBroadcaster = new EventBroadcaster()
// creates keyboard listeners for the local event broadcaster
CreateKeyboardListeners(
(key: string) => localBroadcaster.emit('keydown', key),
(key: string) => localBroadcaster.emit('keyup', key),
)
const terminal = new Terminal()
}
init()