Skip to content

Commit

Permalink
When used with --quiet, don't print a blank line on startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Corry committed Sep 28, 2024
1 parent f93974c commit 93be9a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ use anyhow::{bail, Context};
use clap::ArgMatches;
use image::FlatSamples;
use std::borrow::Borrow;
use std::io::{self, Write};
use std::sync::{mpsc, Arc, Mutex};
use std::time::{Duration, Instant};
use std::{env, thread};
Expand Down Expand Up @@ -109,6 +110,7 @@ fn main() -> Result<()> {
let interact = thread::spawn(move || -> Result<()> { sub_shell_thread(&program).map(|_| ()) });

clear_screen();
io::stdout().flush().unwrap();
if args.get_flag("verbose") {
println!(
"Frame cache dir: {:?}",
Expand All @@ -121,7 +123,6 @@ fn main() -> Result<()> {
}
}
if args.get_flag("quiet") {
println!();
} else {
println!("[t-rec]: Press Ctrl+D to end recording");
}
Expand Down

0 comments on commit 93be9a2

Please sign in to comment.