-
Notifications
You must be signed in to change notification settings - Fork 9
Enable screen echo to USB_UART #62
base: master
Are you sure you want to change the base?
Conversation
Nice! I wonder though if we can make this optional? The uart fifo is only 16 bytes and some of the fancier demos (like the flames) can't afford to wait for a 115,200 uart. Some possibilities:
Once that's in place, I'd probably also add keyboard language selection using the same mechanism. |
Now I'm also wondering if I should scrap the weird escape codes I invented and make the framebuffer handle standard ANSI / VT100 codes. Then your serial terminal would look correct, and simple UNIX programs would be easier to port... |
I would agree with scraping any proprietory escape seqences, this is something I can investigate myself. The logical place for config would be the SD card RN, however I would insist that the UART echo default to on. |
Cool. I'll look for the PR on vga-framebuffer and/or console-traits. Would be nice to make a crate that Phil Opperman could use on his OS blog.
Sounds good. A UI command would be useful. I can look at this.
In the absence of an SD card? That's fine - I'll always have an SD card fitted for demos. |
Not sure who own's the console-traits crate, but that's where the code needs to go, sadly that currently doesn't support multichar escape sequences. I can probably patch it, but for that I need to know where it's repo is. docs.rs does not list a repo for console-traits. EDIT: @thejpster of course it's one of yours, I am starting to think you're some kind of embedded Jedi. PR in console-traits coming when I figure it out. |
Oh, it's one of mine. I pulled it out of vga-framebuffer, which was
getting a bit big and scary.
Yeah, it doesn't do multi-byte. Sorry.
|
I've started full ANSI support in thejpster/console-traits#1. Updates / fixes / more tests welcome! |
Also, if you want to rebase this, I'll merge it as-is, then think about adding the opt-out. |
Any further thoughts on this one? |
Haven't had time or energy to work on this in the last few months. Sorry, more to come when I fixed my monotron XD |
I don't always have a VGA monitor to hand.
Enabling UART loopback of the screen allows for development on the go.