pub fn parse_display(name: &str) -> Option<DisplayInfo>
Expand description

Parses a display string in the form documented by X (7x).

Returns Some(DisplayInfo) on success and None otherwise. Has no side effects on failure.

If name empty, it uses the environment variable DISPLAY.

If name does not contain a screen number, DisplayInfo::screen is set to 0.