{"id":4074,"date":"2022-12-20T17:39:19","date_gmt":"2022-12-20T20:39:19","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/display-file-man7\/"},"modified":"2022-12-20T17:39:19","modified_gmt":"2022-12-20T20:39:19","slug":"display-file-man7","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/display-file-man7\/","title":{"rendered":"display-file (man7)"},"content":{"rendered":"<h1 align=\"center\">display-file<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#FEATURES\">FEATURES<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>display-file<\/b> : Render display into image file<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">display-file: [-flushcmd=<command>] [-flushframe=<n>] <br \/> [-flushtime=<t>] <filename><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Renders an image into a file. The file can be a framebuffer device (e.g. <b>\/dev\/fb0<\/b>), in which case a reasonable representation of the image will be drawn on the console <i>so long as<\/i> the program\u2019s mode matches the framebuffer\u2019s mode.<\/p>\n<p style=\"margin-left:22%;\"><b>Note:<\/b> This target generates no input. The <b>display-multi(7)<\/b> target can be used in order to see (and control) what the program does (using a normal target) and then generate a snapshot when the program exits.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>filename<\/i> is the file to render the images to. If the filename is a PPM file (has the extension <b>.ppm<\/b>), then the image will be generated at <b>ggiClose(3)<\/b> time. Otherwise the file is a custom <i>GGIFILE<\/i> format and is generated continuously.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>display-file<\/b> target can be used to generate movies from running LibGGI applications. To do this, set -flushcmd to a shell command to execute at the times given by one of the two other parameters. This looks typically like:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">ppmtogif foo.ppm > foo.%04d.gif<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The command is passed through a printf(3) which has the current count of saved frames as an argument (or rather as 10 arguments to allow a few more complex commands).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This shell command is either executed at every <i>n<\/i>-th invocation of ggiFlush or every <i>t<\/i> seconds, where <i>t<\/i> can have fractional components (specified as decimal).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note, that the invocation of the shell command will slow down the program, so make sure you use a reasonable value, if you use the -flushtime argument.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The primary file is updated before every invocation of the shell command.<\/p>\n<h2>FEATURES <a name=\"FEATURES\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"46%\">\n<p style=\"margin-top: 1em\">DirectBuffer always available.<\/p>\n<\/td>\n<td width=\"37%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"46%\">\n<p>Unaccelerated.<\/p>\n<\/td>\n<td width=\"37%\"> <\/td>\n<\/tr>\n<\/table>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  display-file : Render display into image file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[971],"tags":[973,1154,972],"class_list":["post-4074","post","type-post","status-publish","format-standard","hentry","category-7-miscelanea","tag-973","tag-display-file","tag-man7"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4074"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4074\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}