/* * Copyright (c) 2022, Liav A. * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include ErrorOr serenity_main(Main::Arguments arguments) { TRY(Core::System::pledge("stdio rpath wpath")); StringView display_connector_file_name; Core::ArgsParser args; args.add_positional_argument(display_connector_file_name, "Display Connector Device Path", "display connector file name", Core::ArgsParser::Required::Yes); args.parse(arguments); auto edid = TRY(EDID::Parser::from_framebuffer_device(display_connector_file_name, 0)); out("{}", StringView { edid.bytes() }); return 0; }