     
     func showModes() {
         if let modes = self.modes() {
-            let nf = NumberFormatter()
-            nf.paddingPosition = NumberFormatter.PadPosition.beforePrefix
-            nf.paddingCharacter = " " // XXX: Swift does not support padding yet
-            nf.minimumIntegerDigits = 3 // XXX
-            
             for (_, m) in modes.enumerated() {
                 let di = DisplayInfo(displayID:displayID, mode:m)
-                print("       \(di.width) x \(di.height) @ \(di.scale)x @ \(di.frequency)Hz")
+                print("       \(di.format())")
             }
         }
     }

        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")
            }
        }
    }

        "   -h          get help\n",
        "   -l          list displays\n",
        "   -m 0        list all mode from a certain display\n",
        "   -s 0 800    set resolution of display 0 to 800 [x 600] \n",
        "   -s 0 800 2  set resolution of display 0 to 800 [x 600] @ 2x [@ 60Hz]\n",
        ]).joined(separator:"")
    let help_display_list = "List all available displays by:\n    \(binary_name) -l"
    
