| Crates.io | onelineout |
| lib.rs | onelineout |
| version | 0.1.0 |
| created_at | 2025-11-13 19:26:35.971493+00 |
| updated_at | 2025-11-13 19:26:35.971493+00 |
| description | Print piped input lines and update the terminal line using carriage return (\r). |
| homepage | https://github.com/fepfitra/onelineout |
| repository | https://github.com/fepfitra/onelineout |
| max_upload_size | |
| id | 1931764 |
| size | 3,552 |
Small Rust utility that reads lines from stdin and prints each line followed by a carriage return (\r), allowing the output to overwrite the current terminal line.
Behavior
\r and clears any leftover characters from the previous longer line.Examples (POSIX shell)
# Print two lines where the second is shorter; the program clears leftover characters
printf "aaaaaaaaaa\nbbbb\n" | onelineout
# Pipe output from another program
ls -lah | onelineout
Notes
src/main.rs.