fix(alias): move terminal raw mode before loading bat assets #444 (#484)

This commit is contained in:
Swann Castel 2025-04-29 21:42:12 +02:00 committed by GitHub
parent e2f52b835d
commit dbff3a330b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,7 @@ use std::process::exit;
use anyhow::Result;
use clap::Parser;
use crossterm::terminal::enable_raw_mode;
use television::cable;
use television::channels::cable::{
preview::PreviewKind, prototypes::CableChannels,
@ -54,6 +55,8 @@ async fn main() -> Result<()> {
.as_ref()
.map(|x| handle_subcommands(x, &config));
enable_raw_mode()?;
// optionally change the working directory
args.working_directory.as_ref().map(set_current_dir);