mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 12:29:04 +08:00
17 lines
301 B
Rust
17 lines
301 B
Rust
extern crate scrap;
|
|
|
|
use scrap::Display;
|
|
|
|
fn main() {
|
|
let displays = Display::all().unwrap();
|
|
|
|
for (i, display) in displays.iter().enumerate() {
|
|
println!(
|
|
"Display {} [{}x{}]",
|
|
i + 1,
|
|
display.width(),
|
|
display.height()
|
|
);
|
|
}
|
|
}
|