BaSL integration almost complete
terminal :333
i’ve added my very basic Bash-like shell project as a program!
since BaSL written in .NET, i can “just reference it,” and it works
(not every package works out of the box in Blazor WebAssembly)
on the left you can see the version without escape sequence parsing
on the right, it parsed the output properly
currently, it only supports setting/resetting bold mode and 8 types of foregrounds (black, red, green, yellow, blue, magenta, cyan, white)
for some reason, using an inline <pre> tag sometimes inserts a newline even though it’s not in the content string… idk 😭
the other feature i added in these 3 hours was cache-based file storage (yes, the Cache API)
it only saves files in the /home/user directory
the files will be loaded on startup
since there’s no filesystem watcher in BaSL, saving has to be manually triggered either via the terminal or from the meta menu
i’ve still yet to make it so concurrent sync operations cannot occur
it would also be nice to have sync -f so it rewrites the whole cache (mode changes are not detected yet)
for some reason, IJSStreamReference didn’t marshal properly in an object, so i tried use byte[] from an Uint8Array which also didn’t work… string it is, hopefully it doesn’t mess up binary content
gotta integrate the file system with Nowotes
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.