Skip to content

Commit

Permalink
Merge pull request #77 from pickfire/patch-1
Browse files Browse the repository at this point in the history
Mention terminal size is rows and columns
  • Loading branch information
pksunkara authored Dec 21, 2020
2 parents ccdbd30 + 1f1de33 commit 281c1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ impl Term {
TermFeatures(self)
}

/// Returns the terminal size or gets sensible defaults.
/// Returns the terminal size in rows and columns or gets sensible defaults.
#[inline]
pub fn size(&self) -> (u16, u16) {
self.size_checked().unwrap_or((24, DEFAULT_WIDTH))
Expand Down

0 comments on commit 281c1df

Please sign in to comment.