Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal frontend #25

Open
andreas-jonsson opened this issue Oct 27, 2022 · 3 comments
Open

Terminal frontend #25

andreas-jonsson opened this issue Oct 27, 2022 · 3 comments
Labels

Comments

@andreas-jonsson
Copy link
Owner

Port the old terminal frontend to edge branch.

@andreas-jonsson andreas-jonsson added the enhancement New feature or request label Oct 27, 2022
@fmahnke
Copy link
Contributor

fmahnke commented Nov 1, 2022

Is this a terminal emulator UI for text modes? If so, I'd use it. Although I currently hack in debug output to port 0xe9 (like Bochs), and it works just fine.

diff --git a/lib/vxt/system.c b/lib/vxt/system.c
index f55e489..d59069d 100644
--- a/lib/vxt/system.c
+++ b/lib/vxt/system.c
@@ -306,4 +306,9 @@ void system_out(CONSTP(vxt_system) s, vxt_word port, vxt_byte data) {
     CONSTSP(vxt_pirepheral) dev = s->devices[s->io_map[port]];
     VALIDATOR_DISCARD(&s->cpu);
     dev->io.out(dev, port, data);
+
+    if (port == 0xe9) {
+        VXT_PRINT("%c", data);
+    }
 }

@andreas-jonsson
Copy link
Owner Author

That's more like the postcard.c device available with the -Dat build option.
It can be useful. But I was thinking more like using the mda.c to render a full-blown TUI in the terminal with Termbox (available in the lib directory)

@andreas-jonsson andreas-jonsson added frontend and removed enhancement New feature or request labels Feb 14, 2023
@andreas-jonsson
Copy link
Owner Author

It boots and render! https://github.com/andreas-jonsson/virtualxt/tree/terminal-frontend
(Requires static modules)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants