feat: use termwiz as backend as that enables a ptty, which can be cleaned up nicely
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-23 22:16:19 +02:00
parent f0f81f8a0b
commit 348e448ce9
10 changed files with 663 additions and 107 deletions

View File

@@ -1,23 +1,15 @@
use std::{
io::{stderr, Write},
time::Duration,
};
use std::time::Duration;
use anyhow::Context;
use crossterm::{
event::{EventStream, KeyCode, KeyEventKind},
terminal::{enable_raw_mode, EnterAlternateScreen},
ExecutableCommand,
};
use crossterm::event::{EventStream, KeyCode};
use futures::{FutureExt, StreamExt};
use ratatui::{
crossterm,
prelude::*,
widgets::{Block, Padding, Paragraph},
widgets::{Block, Padding},
TerminalOptions, Viewport,
};
use crate::components::{BatchCommand, Command};
use crate::components::BatchCommand;
use super::{
create_dispatch,