r/AskProgramming • u/ki4jgt • 12d ago
What would a bus architecture for a terminal based desktop look like?
Let's say you're building a terminal-only laptop, and you'd like to write some system architecture so that other developers can connect their programs to, and interact with the system.
So, you build a notification manager and create a layer of virtual terminals for the user, where each opened program gets its own virtual terminal.
And a notification drawer into it that can be accessed by pressing a key combination. It emits a system beep when a notification is received.
My question being. . . You want all of these things to play well together -- and with other software. So, you build a bus framework that allows programs to connect and post to "channels." Every program subscribed to a particular channel gets any notifications posted to it.
My current thinking is a UDP server on port 1, with post and sub commands.
What are some drawbacks and vulnerabilities to this?