final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBufferAPI.class);
int dev_count = devs.size();
if (dev_count > 0) {
startFBConsole(devs.iterator().next());
} else {
DeviceUtils.getDeviceManager().addListener(new DeviceManagerListener() {
public void deviceRegistered(Device device) {
if (device.implementsAPI(FrameBufferAPI.class)) {
startFBConsole(device);
}