         
         frequency = _frequency
     }
+
+    func format() -> String {
+        // We assume that 4 digits are enough to hold dimensions.
+        // 10K monitor users will just have to live with a bit of formatting misalignment.
+        return String(
+            format:"%4d x %4d @ %dx @ %dHz",
+            width,
+            height,
+            scale,
+            frequency
+        )
+    }
 }
 
 

        if let displayIDs = self.displayIDs {
            for i in 0..<self.displayCount {
                let di = DisplayInfo(displayIDs[i])
                print("Display \(i):  \(di.width) x \(di.height) @ \(di.scale)x @ \(di.frequency)Hz")
            }
        }
    }

    
    func showModes() {
        if let modes = self.modes() {
            for (_, m) in modes.enumerated() {
                let di = DisplayInfo(displayID:displayID, mode:m)
                print("       \(di.format())")
            }
        }
    }
