File: ts.rs

package info (click to toggle)
rust-termsize 0.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 156 kB
  • sloc: makefile: 8; sh: 3
file content (6 lines) | stat: -rw-r--r-- 135 bytes parent folder | download
1
2
3
4
5
6
pub fn main() {
    match termsize::get() {
        Some(size) => println!("{:?}", size),
        _ => println!("not a term"),
    }
}