Skip to content

Commit

Permalink
docs(terminal): add docs for terminal module (#486)
Browse files Browse the repository at this point in the history
- moves the impl Terminal block up to be closer to the type definition
  • Loading branch information
joshka authored Sep 12, 2023
1 parent 1414fbc commit 42f8169
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 101 deletions.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ pub mod terminal;
pub mod text;
pub mod widgets;

pub use self::terminal::{Frame, Terminal, TerminalOptions, Viewport};
#[doc(inline)]
pub use self::terminal::{CompletedFrame, Frame, Terminal, TerminalOptions, Viewport};

pub mod prelude;
2 changes: 1 addition & 1 deletion src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ pub use crate::{
layout::{self, Alignment, Constraint, Corner, Direction, Layout, Margin, Rect},
style::{self, Color, Modifier, Style, Styled, Stylize},
symbols::{self, Marker},
terminal::{self, Frame, Terminal, TerminalOptions, Viewport},
terminal::{CompletedFrame, Frame, Terminal, TerminalOptions, Viewport},
text::{self, Line, Masked, Span, Text},
};
Loading

0 comments on commit 42f8169

Please sign in to comment.