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

This commit is contained in:
Cr4ftx 2025-04-28 23:34:21 +02:00 committed by Alexandre Pasmantier
parent e2f52b835d
commit 43e9d133c5

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);