pros-rs
pros-rs copied to clipboard
More feature-complete `pros::io` module.
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
fromno_std_io
.
There are several things, especially concerning terminal interactions that could be added.
- Reimplementing
io::stdin
/io::stdout
/io::stderr
locks fromstd
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