mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 19:45:23 +00:00
fix(alias): move terminal raw mode before loading bat assets #444
This commit is contained in:
parent
e2f52b835d
commit
43e9d133c5
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user