5656//! Each backend handles raw mode differently, so the behavior may vary depending on the backend
5757//! being used. Be sure to consult the backend's specific documentation for exact details on how it
5858//! implements raw mode.
59-
59+ //!
6060//! # Alternate Screen
6161//!
6262//! The alternate screen is a separate buffer that some terminals provide, distinct from the main
9090//! backend being used, and developers should consult the specific backend's documentation to
9191//! understand how it implements mouse capture.
9292//!
93- //! [`TermionBackend`]: termion/struct.TermionBackend.html
94- //! [`Terminal`]: crate::terminal::Terminal
95- //! [`TermionBackend`]: termion/struct.TermionBackend.html
93+ //! [`CrosstermBackend`]: https://docs.rs/ratatui/latest/ratatui/backend/struct.CrosstermBackend.html
94+ //! [`TermionBackend`]: https://docs.rs/ratatui/latest/ratatui/backend/struct.TermionBackend.html
95+ //! [`TermwizBackend`]: https://docs.rs/ratatui/latest/ratatui/backend/struct.TermwizBackend.html
96+ //! [`Terminal`]: https://docs.rs/ratatui/latest/ratatui/struct.Terminal.html
9697//! [Crossterm]: https://crates.io/crates/crossterm
9798//! [Termion]: https://crates.io/crates/termion
9899//! [Termwiz]: https://crates.io/crates/termwiz
99100//! [Examples]: https://github.com/ratatui/ratatui/tree/main/ratatui/examples/README.md
100- //! [Backend Comparison]:
101- //! https://ratatui.rs/concepts/backends/comparison/
101+ //! [Backend Comparison]: https://ratatui.rs/concepts/backends/comparison/
102102//! [Ratatui Website]: https://ratatui.rs
103103use std:: io;
104104
@@ -109,21 +109,6 @@ use crate::{
109109 layout:: { Position , Size } ,
110110} ;
111111
112- #[ cfg( feature = "crossterm" ) ]
113- mod crossterm;
114- #[ cfg( feature = "crossterm" ) ]
115- pub use self :: crossterm:: { CrosstermBackend , FromCrossterm , IntoCrossterm } ;
116-
117- #[ cfg( all( not( windows) , feature = "termion" ) ) ]
118- mod termion;
119- #[ cfg( all( not( windows) , feature = "termion" ) ) ]
120- pub use self :: termion:: { FromTermion , IntoTermion , TermionBackend } ;
121-
122- #[ cfg( feature = "termwiz" ) ]
123- mod termwiz;
124- #[ cfg( feature = "termwiz" ) ]
125- pub use self :: termwiz:: { FromTermwiz , IntoTermwiz , TermwizBackend } ;
126-
127112mod test;
128113pub use self :: test:: TestBackend ;
129114
@@ -162,7 +147,7 @@ pub struct WindowSize {
162147/// Most applications should not need to interact with the `Backend` trait directly as the
163148/// [`Terminal`] struct provides a higher level interface for interacting with the terminal.
164149///
165- /// [`Terminal`]: crate::terminal:: Terminal
150+ /// [`Terminal`]: https://docs.rs/ratatui/latest/ratatui/struct. Terminal.html
166151pub trait Backend {
167152 /// Draw the given content to the terminal screen.
168153 ///
0 commit comments