Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

More feature-complete pros::io module. #83

Open
Tropix126 opened this issue Feb 1, 2024 · 1 comment
Open

More feature-complete pros::io module. #83

Tropix126 opened this issue Feb 1, 2024 · 1 comment

Comments

@Tropix126
Copy link
Member

What's the motivation for this feature?

Currently pros::io exists to do the following things:

  • Provide macros for printing data to the serial terminal.
  • Re-export stuff that should be in core from no_std_io.

There are several things, especially concerning terminal interactions that could be added.

  • Reimplementing io::stdin/io::stdout/io::stderr locks from std for safe raw access to the I/O writers.
  • Support for stdin in general.

Describe the solution you'd like

Implement Stdin, Stdout, Stderr structs similarly to what's provided by std::io.

Describe the drawbacks, if any

N/A

Describe the alternative solutions, if any

N/A

Additional context

https://doc.rust-lang.org/stable/std/io/index.html

@Tropix126
Copy link
Member Author

Another thing we should look at is how this plays into serctl and the serial driver, which is technically part of the kernel's VFS. This would need to be thought out along with #103.

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

No branches or pull requests

1 participant