I'm working on a web app that mimics the look and feel of an old MS-DOS program—think Turbo Pascal IDE or Norton Commander.
The goal* is a keyboard-only, text-based UI running inside a browser, with windowed UI elements and ASCII graphics.
I've looked into Xterm.js, React TUI libraries, and vanilla JS canvas solutions, but I'd love input from those who've built something similar.
Are there any existing projects or libraries I should check out?
Would appreciate any insights, cheers!
(*And the ultimate end goal is to have an LLM create interfaces on the fly from user prompts)
You can use CSS to make the scrolling window grow from the bottom to the top of the screen, like a DOS window would scroll up and then off.
If this were my project, I'd start with plain browser web components[0] rather than a framework. You could definitely have Cursor write the UI portion for you and then, once you like it, add the command handling.
I wrote an article[1] with some strategies and examples of this kind of complex prompt-driven development with Cursor.
[0] https://levelup.gitconnected.com/getting-started-with-web-co...
[1] https://levelup.gitconnected.com/license-to-kill-coding-with...