Compare commits
No commits in common. "995aee7e871d28288c7f503c8ddf341c65ff91c8" and "4a34da6ba6638bdf7bb86a4893fb4f52d9311c47" have entirely different histories.
995aee7e87
...
4a34da6ba6
1 changed files with 3 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
||||||
extern crate cat2text;
|
extern crate cat2text;
|
||||||
use cat2text::base4;
|
use cat2text::{base4, core};
|
||||||
use std::io::{self, stdout, Write};
|
use std::{io, process::exit};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let stdin = io::stdin();
|
let stdin = io::stdin();
|
||||||
let mut input;
|
let mut input = String::new();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
println!("Pick your translation:");
|
println!("Pick your translation:");
|
||||||
|
@ -12,8 +12,6 @@ fn main() {
|
||||||
println!("2) text to cat");
|
println!("2) text to cat");
|
||||||
input = "".to_string();
|
input = "".to_string();
|
||||||
stdin.read_line(&mut input).unwrap();
|
stdin.read_line(&mut input).unwrap();
|
||||||
print!("~> ");
|
|
||||||
stdout().flush().unwrap();
|
|
||||||
let trimmed = input.trim();
|
let trimmed = input.trim();
|
||||||
if trimmed == "1".to_string() {
|
if trimmed == "1".to_string() {
|
||||||
input = "".to_string();
|
input = "".to_string();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue