thag_rs 0.2.1

A versatile cross-platform playground and REPL for Rust snippets, expressions and programs. Accepts a script file or dynamic options.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// This is the "control" test for the `demo/win_test_*.rs` scripts. It seems to reliably NOT swallow the first character.
//# Purpose: Show how crates *not* sending an OSC to the terminal in Windows will *not* the first character you enter to be swallowed.
//# Categories: testing
use std::io::{self, Read};

fn main() {
    println!("Run with -qq in Windows Terminal to suppress background execution of suspect crates, then type in something and see if first character gets swallowed");
    let mut buffer = String::new();
    io::stdin().lock().read_to_string(&mut buffer).unwrap();
    println!("buffer={buffer:?}");
}