I am attempting to write my own operating system. So far everything is going perfectly fine, except for this extremely annoying issue I am having. (I am not writing my own core libraries, I copied those from the OpenOS files on GitHub) For my Shell, I would like tasks running in the background to be able to print to the screen without messing up the user input prompt. My attempt at doing this:
The step function is called in the main loop. My issue is that term.read() pauses everything, including the main loop. Is there any way around this? I attempted to use coroutines, but could not get them to function correctly.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I am attempting to write my own operating system. So far everything is going perfectly fine, except for this extremely annoying issue I am having. (I am not writing my own core libraries, I copied those from the OpenOS files on GitHub) For my Shell, I would like tasks running in the background to be able to print to the screen without messing up the user input prompt. My attempt at doing this:
The step function is called in the main loop. My issue is that term.read() pauses everything, including the main loop. Is there any way around this? I attempted to use coroutines, but could not get them to function correctly.
Link to post
Share on other sites