rust
use std::io::{self, BufRead};
use rustclamp::prelude::*;
fn main() {
Clamp::run(|| {
println!("Clamp TUI. Type a line, or `quit` to exit.");
for line in io::stdin().lock().lines().map_while(Result::ok) {
if line.trim() == "quit" {
break;
}
println!("you said: {line}");
}
});
}commit 40a1fa6