This commit is contained in:
MeexReay 2025-02-09 12:06:25 +03:00
commit f2f44a3d2f
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ better RAC client
## how to use
```bash
rustc main.rs -o main # build
rustc main.rs # build
./main # run
cargo build # build with cargo
cargo run # run with cargo

View File

@ -111,8 +111,8 @@ fn get_input(prompt: &str, default: &str) -> String {
}
fn main() {
let host = get_input("Host (default: meex.lol:11234) > ", DEFAULT_HOST);
let name = get_input("Name (default: Anon) > ", "Anon");
let host = get_input(&format!("Host (default: {}) > ", DEFAULT_HOST), DEFAULT_HOST);
let prefix = get_input("Prefix (default: none) > ", "");
thread::spawn({
let host = host.clone();