pros-rs icon indicating copy to clipboard operation
pros-rs copied to clipboard

More feature-complete `pros::io` module.

Open Tropix126 opened this issue 1 year ago • 1 comments

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 avatar Feb 01 '24 18:02 Tropix126