Base: codex-main originale (prima del fork aKode)
This commit is contained in:
16
codex-rs/tui/src/custom_terminal_test_support.rs
Normal file
16
codex-rs/tui/src/custom_terminal_test_support.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
//! Inspect the completed frame without adding test helpers to the terminal implementation.
|
||||
|
||||
use std::io;
|
||||
use std::io::Write;
|
||||
|
||||
use ratatui::backend::Backend;
|
||||
use ratatui::buffer::Buffer;
|
||||
|
||||
use super::Terminal;
|
||||
|
||||
pub(crate) fn last_rendered_buffer<B>(terminal: &Terminal<B>) -> &Buffer
|
||||
where
|
||||
B: Backend<Error = io::Error> + Write,
|
||||
{
|
||||
terminal.previous_buffer()
|
||||
}
|
||||
Reference in New Issue
Block a user